View Full Version : How does YouTube make video Full Screen?
jlfximedia
11-15-2007, 05:09 PM
Hey Peeps, how does youTube make the flash object jump to full screen without pausing the stream? I need this kind of functionality and would like to know.
Paul Ferrie
11-25-2007, 08:05 AM
someButton.onPress=function() {
if (Stage["displayState"] == "normal") {
Stage["displayState"] = "fullScreen";
} else {
Stage["displayState"] = "normal";
}
}
jayden
11-30-2007, 09:42 PM
I'd love to know how they scale a video for fullscren use. I've downloaded a youtube video, and am making a fullscreen player for it... but when I do that it becomes very pixelated, whereas the YouTube fullscreen function smoothes the video very nicely...
Paul Ferrie
11-30-2007, 09:51 PM
Most probably youtube is using a high res video for the fullscreen and low res for standard.
When you scale images or video beyond it's intended size thats what cause's the pixelated effect.
jayden
11-30-2007, 09:51 PM
okay found it: http://www.blog.lessrain.com/?p=434
Paul Ferrie
11-30-2007, 10:36 PM
i am going to have to try that myself.;)
jaxx0rr
12-09-2007, 08:51 AM
I think what you really need is a youtube-like proper fullscreen vid so I got this to work..
http://jaxxrr.110mb.com/other/fs3.html
and heres the sourcecode
http://jaxxrr.110mb.com/other/flash-fullscreen-youtube.zip
(also as attachment)
the fullscreen part is nothing special really.. one line of script on a button
on (release) {
Stage.displayState = "fullScreen";
}
but you also need to edit the html file and set the allowFullScreen parameter from false to true, it is there just set it to true (don't write it twice like I did :) )
Also make sure your file does'nt get overwritten.. go to publish settings and uncheck html
so either
<param name="allowFullScreen" value="true" />
...
<embed src="example.swf" allowFullScreen="true" ... >
or
AC_FL_RunContent( ... "allowFullScreen", "true", ... )
this is also in flash CS3 help :)
peace
Fresh_ales
10-17-2008, 12:17 AM
hi guys....
im looking a way to make swf full screen on load...
like ctrl+f if i start swf locali on computer... is this possible in browser?
i have tryed
Stage.displayState = "fullScreen";
//and alsow tryed this
someButton.onPress=function() {
if (Stage["displayState"] == "normal") {
Stage["displayState"] = "fullScreen";
} else {
Stage["displayState"] = "normal";
}
}
and add
<param name="allowFullScreen" value="true" />
in html... but dosent work...
help?? please!
Fresh_ales
10-19-2008, 10:25 AM
anyone?:eek:
Fresh_ales
10-26-2008, 02:16 AM
i have manage to get full screen mode with a button press
http://www.bezzmedia.com/swfspot/tutorials/intermediate/True_Fullscreen_Flash_Mode
nice...
thoug... i have tryed to make full screen on swf load... but have failed...
(i have some flash "catalogue" and want to make full screen on load)
any idea?
ok... i admit.... i was moving from flash to php+mysql... and really dont know js from flash any more... :rolleyes:
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.