Solved

YouTube full screen problem

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Embedding Flash App/Movie on Website 3 496
EMET 5.2 / Adobe Flash 2 236
camtasia alternative that can record 3 hours video plus audio 24 115
Adobe Flash player - Microsoft Edge 9 167
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

776 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