?
Solved

YouTube full screen problem

Posted on 2009-05-16
5
Medium Priority
?
492 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
rascalpants earned 500 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

770 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