Monday, March 5, 2007

My Full Screen Video App - Ver 1.0

I wrote about full screen support in flash, a long time back in Nov '06 (see that post here). I have been planning to write one myself. So finally i got myself down to write it. Before i put you through the app, some details on the API.

To make your application have a fullscreen support you need to do the following things.

1) Have the latest Flash Player (get it here)

2) Use the new Full Screen API
import flash.display.StageDisplayState into your Application and set the displayState of the stage. I have the following function toggling the FullScreen feature. "fsChk" is a CheckBox, based on which I'm toggling the functionality

private function toggleFullScreen():void{

stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen);


if(fsChk.selected) {
stage.displayState = StageDisplayState.FULL_SCREEN}


else {
stage.displayState = StageDisplayState.NORMAL}

}

3) Update the html-template in which you have the flash App

In the object & embed parts of the html code of the page in which the flash app is inserted, you need to add a new parameter allowFullScreen to true. You can refer the source of the app and view the html for details.

If you want to know more about this feature, refer the Adobe DevCenter article on the same or view the PDF that i have created, collating all that information.

Now the Application. This is just a small video player which can go full screen by checking a Flex CheckBox. This is written in Flex2.0 and you can find all the source files here...

Click here to view the Application
(confirm that you have the latest Flash player)

P.S - I have muted the video to start with, un-mute it if it pleases you :)

34 comments:

Anonymous said...

Hey there,

Thanks for the info, but I'm getting nothing from this link:

http://www.cetec77.com/kannan/FSVideo/JustFullScreen.html

Mac OSX 10.4.8
Firefox 2.0.0.2

Thoughts?

ken

Raghu said...

Hi Ken,

I tried it on my mac and it works. I have a MAC 10.4.8 with Firefox 1.5.0.10

Looks like the player detection code is not properly put in... See if you have the latest player. If it still persists, drop me a mail at "rrao at adobe dot com"

Raghu said...

I'll try to put my player detection code in palce by then :)

smartkit said...

Maybe the play button label needs not a function ,but just more simple ,like this label="{flvVideo.playing ? '||' : '>'}"
:-)

Anonymous said...

Hi Raghu,

I have been breaking my head on this... I am trying to do something similar.. but just cant get the "basic" video play/pause/stop buttons to work...

demo @ http://opentube.info

I'm a RIA newbie.. Please help.
I have crossposted this @
http://tech.groups.yahoo.com/group/flexcoders/message/76622

and
http://groups.google.com/group/opentube/browse_thread/thread/fc20d87c212ad559

please advise.../help !! :-)

Anonymous said...

hi i am praba

Anonymous said...

Hi i am praba

I want am having the following problem.

When i am running my mxml flex application in IE the toolbar and menu bars automatically gets disabled.

I need u r help to do this.

Please help me.

Kifah said...

hello
and thanks very much but i have some problems and
where can i found the require libraries just like FullScreenEvent

Please help me i need to run my swf in full screen mode in flex 2.

Thanks in advanced

Anonymous said...

3kL6Gj Your blog is great. Articles is interesting!

Anonymous said...

c0DcFq Nice Article.

Anonymous said...

P4RUL7 Hello all!

Anonymous said...

Nice Article.

Anonymous said...

Please write anything else!

Anonymous said...

Wonderful blog.

Anonymous said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

Anonymous said...

Thanks to author.

Anonymous said...

Good job!

Anonymous said...

Wonderful blog.

Anonymous said...

JXAxrA Please write anything else!

Anonymous said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

Anonymous said...

Thanks.Best Regards
Erotik Shop, Erotik Market, Erotic shop, Sex shop, Geciktirici, Seks shop, Penis Buyutucu, cialis, kamagra, viagra, sexshop, seksshop, erotic market, virility pills

sex shop -

sex shop -

sex shop -

seks shop -

seks shop -

seks shop -

erotik shop -

erotik shop -

penis buyutucu -

penis buyutucu -

penis buyutucu -

erotik shop -

seks shop -

sex shop -
erotik shop -
erotik market -

vidrom.com -

video share -

file upload -
free file -

image upload -

erotik market -
erotic market -
erotik market -
erotik market -
erotic shop -
erotic shop -
erotic shop -

alisveris -

12 taksit -

feromon -

Kozmetik
Shopseks.com
Hepzinde.com
penis buyutucu -
penis buyutucu -
virility pills -
elektronik sigara -
virility pills -
penis buyutucu -
penis buyutuculer -
bayan ic giyim -
virility pills -
elektronik sigara
feromon

Anonymous said...

Can anyone recommend the well-priced Endpoint Security system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central database monitoring
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

impede with this

http://redwalldeals.com/

Anonymous said...

free dating sites eugene or http://loveepicentre.com/advice.php who is ryan reynolds dating

Anonymous said...

malaysian dating http://loveepicentre.com/advice.php new dating service

Anonymous said...

[url=http://loveepicentre.com/][img]http://loveepicentre.com/uploades/photos/3.jpg[/img][/url]
adult singles dating online lavalife free [url=http://loveepicentre.com/success_stories.php]sterling knight is dating demi[/url] dating san luis obispo
plus size dating sights [url=http://loveepicentre.com/advice.php]virtual dating game download[/url] sarnia dating active lifestyle
dating japan service [url=http://loveepicentre.com/testimonials.php]sparks will fly dating service[/url] dating mn

Anonymous said...

her disguise ebook http://audiobookscollection.co.uk/K-Nolde/m69086/ functional neuroanatomy by afifi download ebook [url=http://audiobookscollection.co.uk/it/Creating-Motion-Graphics-with-After-Effects-Vol-1-The-Essentials/p174419/]java ebook by james gosling[/url] zune ebook reader

Anonymous said...

ebook edward bernays propagande http://audiobookscollection.co.uk/de/The-unfinished-bombing/p105774/ bernard malamud ebook free downloads [url=http://audiobookscollection.co.uk/fr/Independent-Component-Analysis-and-Signal-Separation-8th-International-Conference-ICA-2009-Paraty-Brazil-March-15-18-2009-Proceedings-Lecture-Computer-Science-and-General-Issues/p209300/]things fall apart ebook[/url] the screwdriver expert's guide cb ebook

Anonymous said...

sony ebook vs amazon kindle http://audiobookscollection.co.uk/Cymatics-A-Study-of-Wave-Phenomena-and-Vibration/p214030/ the collector ebook [url=http://audiobookscollection.co.uk/it/Anger-work-how-to-express-your-anger-and-still-be-kind/p119533/]hamlet free ebook catala[/url] free ebook encyclopedia on plants

Anonymous said...

siegfried engelmann and ebook http://audiobookscollection.co.uk/de/Electric-Wiring-Domestic/p123743/ photo lab index in pdf ebook [url=http://audiobookscollection.co.uk/G-Kurizki/m40453/]c ebook[/url] eragon trilogy ebook

Anonymous said...

bookup ebook torrent http://audiobooksplanet.co.uk/Why-Life-Speeds-Up-As-You-Get-Older-How-Memory-Shapes-our-Past/p168838/ free ebook compiler [url=http://audiobooksplanet.co.uk/fr/A-Guided-Meditation-for-Healing-Trauma-PTSD/p29153/]vampire earth ebook torrent[/url] ebook learn guitar free

Anonymous said...

brag book software http://buyoem.co.uk/product-37378/BeeThink-SpyDetector-2-0 windows xp software raid performance pro [url=http://buyoem.co.uk/de/product-14239/Synchronize-Pro-X-5-0-Mac]computer software for kj's[/url] parsons personal legal software
[url=http://buyoem.co.uk/de/category-2/Business]Business - Download OEM, Software Sale, OEM Software[/url] shepherd's staff software administration book
[url=http://buyoem.co.uk/category-200-207/Programming-and-Development][img]http://buyoem.co.uk/image/5.gif[/img][/url]

Anonymous said...

best rtorrent software http://buyoemsoftware.co.uk/manufacturer-1/Corel xp os software hack appz [url=http://buyoemsoftware.co.uk/es/category-200-203/Gr-ficas-y-publicaci-n?page=2]telephone dial ling software[/url] best free anti malware software
[url=http://buyoemsoftware.co.uk/category-8/Office-Tools?page=3]Office Tools - Cheap Legal OEM Software, Software Sale, Download OEM[/url] medical business outsourcing billing collections software
[url=http://buyoemsoftware.co.uk/it/product-34791/Hamrick-VueScan-Pro-9-0-Multilingual-x32][img]http://buyoem.co.uk/image/5.gif[/img][/url]

Anonymous said...

slideshow impression software http://buysoftwareonline.co.uk/es/product-31620/Super-Flexible-File-Synchronizer-4-8-MAC meal planning forms software [url=http://buysoftwareonline.co.uk/de/product-37123/PDF-Extract-TIFF-2-0]servers software[/url] what computer system and application software
[url=http://buysoftwareonline.co.uk/product-36591/Microsoft-Windows-7-Home-Premium-x32-English]Microsoft Windows 7 Home Premium x32 English - Software Store[/url] metatrade software
[url=http://buysoftwareonline.co.uk/news-30/Windows-Azure-users-will-have-to-pay-from-next-month][img]http://buyoem.co.uk/image/6.gif[/img][/url]