Solved

YouTube full screen problem

Posted on 2009-05-16
5
487 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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.

730 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