• About
  • Blog News

  • Online Video
    • Trends
    • Showcase
    • Flash Video
    • HTML5 Video
    • Live Video
    • Media Servers
    • Streaming
    • Content Protection
  • Mobile
    • Trends
    • Adobe AIR
    • Showcase
    • Devices
    • Android
    • Apple
    • RIM
    • Digital Home
  • Interactive Web
    • Trends
    • Fun
    • Showcase
    • Gaming
    • 3D
    • HTML5
    • Flash/Flex
  • Advertisement
  • Articles
  • Events

Home » Online Video » Video Flash » Flash fullscreen best practices

Flash fullscreen best practices

Posted by: Jens Loeffler    Tags:  Video    Posted date:  May 8, 2009  |  No comment

Flash can play up to 1080p video, but in surprisingly a lot of cases the performance is limited by the non-optimized use of the fullscreen mode. In addition to that, FP 10 offers new options for fullscreen acceleration.

Here some tips how to efficiently use the fullscreen mode:

Fullscreen hardware acceleration in Flash Player 9+
Use the fullScreenSourceRect to define zoom area and switch displayState to “fullScreen”. (Exploring full-screen mode in Flash Player 9)

Performance best practices

  • fullScreenSourceRect should match the video object/movie size for best performance
  • Avoid video scaling
  • Disable smoothing and deblocking
  • If possible no video overlays or objects below the video object
  • If SWF dimensions are smaller than the dimensions of the video (e.g. 1080p video on 800 x 600 stage), scale the video area and adjust the fullScreenSourceRect to match video dimensions prior to switching to fullscreen. The fullScreenSourceRect is not restricted to Flex / Flash stage dimensions
  • If scaling is required, use an even scale factor, e.g. 1/2 or 1/4 or 2x of the original size
Common approach for video controls in fullscreen mode

In most cases the screen resolution and the actual video size have different dimensions, therefore video controls will change their size in fullscreen. To avoid this behavior a common practice is to use the screen resolution as fullScreenSourceRect, keep the scale of the controls and scale the video object to match the full screen dimensions. This can impact the performance of the video, especially on larger screens and with HD content.

Video control best practices

  • Flash Player 9 – Use the method above with care and only if performance impact is acceptable and UI is more important (SD content/ low screen resolution)
  • Flash Player 9 – Since the video resolution of HD content it closer to screen resolution, evaluate if a minor pixilation of controls is acceptable for HD. In this case use video object/movie size as fullScreenSourceRect, and perform minor resizing of the video controls.
  • Flash Player 10 – The method above is acceptable if the GPU accelerated mode (via wmmode “gpu”) is used with the fullscreen mode. Do not use fullScreenSourceRect in this case and simply switch with displayState to fullscreen. Since it’s not possible to zoom to a certain area without the fullScreenSourceRect, simply zoom on the stage to the desired area when in fullscreen. The GPU acceleration will minimize the performance impact.
Fullscreen and Dynamic Streaming

Dynamic streaming normally includes video streams with different dimensions. Since it’s not possible to switch the fullScreenSourceRect during fullscreen mode, and the maximum screen resolution is sometimes hard to predict with changing network conditions, one option is to use the dimensions of the highest bitrate video clip as fullScreenSourceRect.

  • To avoid quality issues with lower bitrates, turn on smoothing in case the stream dimensions don’t match the video object size.

  • This method might impact the performance, since streams with smaller dimensions need to scale to the video object

An alternative method is to predict the maximum possible resolution and use it as default fullscreen resolution. This might not offer the best possible quality under certain conditions (in case of upgrade to higher video quality/size during fullscreen), but offers the best performance.

If you use Flash Player 10 with GPU fullscreen (described above), multiple bitrate is not an issue – it’s possible to change the scaling during transition.

More information
Flash Player 10 GPU mode (Tinic Uro).
Exploring full-screen mode in Flash Player 9 (Adobe Developer Connection).

About the author
Jens Loeffler
Technology enthusiast and evangelist, with a passion for online video and mobile. Senior technical evangelist on Adobe's Media Solutions product management team focusing on online video and services. The views expressed on this blog are personal views.



Related Posts

Online Video and Close Captioning – It’s Getting Real
Solving the challenges of close captioning on the web is not optional anymore, but a requirement as part of the 21st Century Communications and Video Accessibility Act of 2010. Without getting into the specific government requirements...


Why Cord Cutting Is Great for Cable Subscribers
The digital video world is moving fast with connected devices and smart TVs. While a couple of years ago a Saturday night trip to a spacious Blockbuster rental store was part of the "movie night" tradition, it mostly got replaced...


Adobe’s Jeremy Helfand About Future Trends of Media Monetization
An interesting interview with Jeremy Helfand, VP of Video Monetization, at NAB 2012 about online video advertisement. A recent study indicates that mobile and live video are most efficient. Completion rates on mobile...


Sign in
Livefyre logo
  • Comment help
  • Get Livefyre
Post comment as
twitter logo facebook logo
Sort: Newest | Oldest
  • Find Articles

  • Recent Posts

    • 2012 AMGEN Tour of California Tour Tracker
      Although there have been many iterations of the Tour Tracker during the last years...
    • Machinarium Now Available for Android Tablets via Google Play
      One of the best AIR games is available on Google Play now. Interestingly it's not featured...
    • Pinterest vs. Facebook: The Battle for Your Dollars
      Pinterest versus Facebook; whose users spend more money?  Fashion website Bottica.com...
  • Popular Posts

    • The Ultimate Guide to Understanding Advanced Video Delivery with AIR for Mobile
      Adobe AIR provides a very attractive abstraction layer for video playback on mobile...
    • HLS vs. HDS - What Is the Difference and Why You Should Care
      Unless you work daily in the streaming business, it's sometimes hard to get into...
    • The 54th Grammy's Rock with Stage3D
      Literally. The new site "We are music" for the 54th Grammy's, airing on CBS on Sunday,...
  • News in Pictures

  • Social Media





 
  • Online Video

    • 2012 AMGEN Tour of California Tour Tracker
      Although there have been many iterations of the Tour Tracker during the last years...

    • Online Video and Close Captioning - It's Getting Real
      Solving the challenges of close captioning on the web is not optional anymore, but a requirement...

    • Accenture Video-Over-Internet Consumer Survey 2012
      Accenture published a study called "Heart, Minds and Wallets - Winning the Battle...

    • Flash Media Server 4.5.2 Released with Robust HTTP...
      Version 4.5.2 of Flash Media Server is now available. Besides numerous bug fixes,...

  • Mobile

    • Machinarium Now Available for Android Tablets via Google...
      One of the best AIR games is available on Google Play now. Interestingly it's not featured...

    • Monster's Socks on the iPad with Adobe AIR
      A very cute Adobe AIR based book for iOS about a little monster trying to find its socks....

    • Walking Dead: Dead Reckoning with Adobe AIR
      If you are hooked on Walking Dead, AMC's blockbuster zombie TV series, you will enjoy...

    • The Unofficial Guide to the New iPad 3 Retina Display...
      Apple has been traditionally very good at introducing new features you initially...

  • Interactive Web

    • Silent Hunter Online Comes to the Web with Flash Player...
      Silent Hunter is one of the games I grew up with, and it is amazing to see it going...

    • Feel the Wrath with the "Wrath of the Titans" Augmented...
      Very interesting use of augmented reality for the movie "Wrath of the Titans". It combines...

    • KingsRoad - Stage3D Game Announcement Trailer
      KingsRoad is a promising medieval fantasy role-playing game powered by Stage3D. KingsRoad is...

    • CNN Ecosphere Demonstrates the Power and Limitations...
      CNN Ecosphere is "a real-time view of the global climate change discussion", and a great...

  • Contact Us

    CAPTCHA Image
    Refresh Image

 
The views expressed on this blog are personal views and should not be taken to represent corporate strategy or official Adobe positions.
The content of the posts at this site should not be re-distributed by commercial media.
(c) 2012 Overdigital.com | Logo Design Stiehl/Over