Solved

YouTube full screen problem

Posted on 2009-05-16
5
482 Views
Last Modified: 2013-11-11
Hello,

We are attempting to integrate the YouTube functionality inside a flash website. Since the container itself is in Flash and not traditional HTML, the full screen of YouTube turns the entire parent SWF to go full screen.

The source can be downloaded from:
http://202.131.103.236/YouTube_Problem/YouTube_Problem.zip

Kindly unzip and run bt.html. You may require to host it since it is accessing an external URL of youtube video. Once the video is loaded, pressing the full screen from YouTube player causes the entire SWF to go full screen.

We attempated using focusrect to fullscreen only a portion but that results into a very poor quality of video while full screen, both normal and HD version.

Any idea how to achieve best quality on full screen in this scenario with only the video in full screen and not the whole screen?

Inputs and suggestions are much appreciated.
0
Comment
Question by:shardul_bartwal
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
rascalpants earned 125 total points
ID: 24413029

when you use the fullscreen mode, it does this for the entire SWF.  You cannot target one item in the SWF and make it fullscreen.

one solution, is to create a separate SWF that is just a Media Player like what youtube uses...   have your master SWF communicate with the offscreen SWF and tell it what movie to play, and use the seek() method of the NetStream class to fastforward to the same point in the movie...  

you will need to have controls the turn one player off, and the other on, when they switch back and forth between players...

I personally would rather put the video player(SWF) outside of the master SWF in a div layer, and have javascript show and hide the player above your main flash content...  this will allow you to use the normal fullscreen mode functionality, with out the other head aches...


rp / Zone Advisor
0
 

Author Comment

by:shardul_bartwal
ID: 24431674
Hi rascalpants,

Thanks for chipping in. However, the suggested steps are difficult to implement in our case. It is a mandate for us to use native YouTube buttons for full screen and other controls. So, m not sure if the suggested solution can be achieved with this mandate being there.
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 24431963

you should be able to...  if the player is a standalone that is in a Div over top of your other Flash, then you are golden...  

what would be the restrictions that you see?  

I believe using an external player is the only option you have, because you can't target movieclips in full screen yet.


rp / ZA

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now