Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

YouTube full screen problem

Posted on 2009-05-16
5
Medium Priority
?
493 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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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 what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

636 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