[Flashcoders] Html coding: video for iPad and Flash on one page
Hi I am trying to find a simple way to show video file for devices that don't have Flash Here is the code div id=video style=display:none OBJECT CLASSID=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B CODEBASE=http://www.apple.com/qtactivex/qtplugin.cab; WIDTH=900 HEIGHT=575 PARAM NAME=src VALUE=jack_giant_video.mp4 PARAM NAME=autoplay VALUE=true EMBED SRC=jack_giant_video.mp4 TYPE=image/x-macpaint PLUGINSPAGE=http://www.apple.com/quicktime/download; WIDTH=900 HEIGHT=575 AUTOPLAY=true/EMBED /OBJECT /div div id=flash style=display:block object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0; width=100% height=100% id=jack_giant align=middle param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=false / param name=movie value=jack_giant.swf /param name=quality value=high /param name=scale value=noscale /param name=bgcolor value=#fdef96 / embed src=jack_giant.swf quality=high scale=noscale bgcolor=#fdef96 width=100% height=100% name=jack_giant align=middle allowScriptAccess=sameDomain allowFullScreen=false type=application/x-shockwave-flash pluginspage= http://www.macromedia.com/go/getflashplayer; / /object /div script language=javascript if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById(video).style.display = block; document.getElementById(flash).style.display = none; } /script But unfortunately that does not work. Can anybody give me an advice what is the correct way for this task? Thank you very much in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
You don't embed QuickTime for iOS, you use the html5 video tag. Whatever solution you use should do that when flash isn't detected. Sent from my iPhone On Jul 20, 2014, at 3:36 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Hi I am trying to find a simple way to show video file for devices that don't have Flash Here is the code div id=video style=display:none OBJECT CLASSID=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B CODEBASE=http://www.apple.com/qtactivex/qtplugin.cab; WIDTH=900 HEIGHT=575 PARAM NAME=src VALUE=jack_giant_video.mp4 PARAM NAME=autoplay VALUE=true EMBED SRC=jack_giant_video.mp4 TYPE=image/x-macpaint PLUGINSPAGE=http://www.apple.com/quicktime/download; WIDTH=900 HEIGHT=575 AUTOPLAY=true/EMBED /OBJECT /div div id=flash style=display:block object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0; width=100% height=100% id=jack_giant align=middle param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=false / param name=movie value=jack_giant.swf /param name=quality value=high /param name=scale value=noscale /param name=bgcolor value=#fdef96 / embed src=jack_giant.swf quality=high scale=noscale bgcolor=#fdef96 width=100% height=100% name=jack_giant align=middle allowScriptAccess=sameDomain allowFullScreen=false type=application/x-shockwave-flash pluginspage= http://www.macromedia.com/go/getflashplayer; / /object /div script language=javascript if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById(video).style.display = block; document.getElementById(flash).style.display = none; } /script But unfortunately that does not work. Can anybody give me an advice what is the correct way for this task? Thank you very much in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
ok. I use now div id=video style=display:none video id=example_video_1 class=video-js width=900 height=575 controls preload=auto poster=video.png/video /div I tested on Windows - just blank page. It seems does not like style=display:none but I don't know another solition. 2014-07-20 18:42 GMT+04:00 Ross P. Sclafani ross.sclaf...@gmail.com: You don't embed QuickTime for iOS, you use the html5 video tag. Whatever solution you use should do that when flash isn't detected. Sent from my iPhone On Jul 20, 2014, at 3:36 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Hi I am trying to find a simple way to show video file for devices that don't have Flash Here is the code div id=video style=display:none OBJECT CLASSID=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B CODEBASE=http://www.apple.com/qtactivex/qtplugin.cab; WIDTH=900 HEIGHT=575 PARAM NAME=src VALUE=jack_giant_video.mp4 PARAM NAME=autoplay VALUE=true EMBED SRC=jack_giant_video.mp4 TYPE=image/x-macpaint PLUGINSPAGE=http://www.apple.com/quicktime/download; WIDTH=900 HEIGHT=575 AUTOPLAY=true/EMBED /OBJECT /div div id=flash style=display:block object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0 width=100% height=100% id=jack_giant align=middle param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=false / param name=movie value=jack_giant.swf /param name=quality value=high /param name=scale value=noscale /param name=bgcolor value=#fdef96 / embed src=jack_giant.swf quality=high scale=noscale bgcolor=#fdef96 width=100% height=100% name=jack_giant align=middle allowScriptAccess=sameDomain allowFullScreen=false type=application/x-shockwave-flash pluginspage= http://www.macromedia.com/go/getflashplayer; / /object /div script language=javascript if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById(video).style.display = block; document.getElementById(flash).style.display = none; } /script But unfortunately that does not work. Can anybody give me an advice what is the correct way for this task? Thank you very much in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: I tested on Windows - just blank page. It seems does not like style=display:none but I don't know another solition. I typically use: video poster=foo.jpg width=480 height=360 preload=none controls source src=foo.webm type=video/webm source src=foo.ogv type=video/ogg source src=foo.mp4 type=video/mp4 ... Flash fallback goes here ... /video You'll have to change width/height to match video. This app is great for converting your source to diff formats: http://www.mirovideoconverter.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
I need play video only for iPad and other devices that does not support Flash. Does this code do that? 2014-07-20 19:51 GMT+04:00 Micky Hulse mickyhulse.li...@gmail.com: On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: I tested on Windows - just blank page. It seems does not like style=display:none but I don't know another solition. I typically use: video poster=foo.jpg width=480 height=360 preload=none controls source src=foo.webm type=video/webm source src=foo.ogv type=video/ogg source src=foo.mp4 type=video/mp4 ... Flash fallback goes here ... /video You'll have to change width/height to match video. This app is great for converting your source to diff formats: http://www.mirovideoconverter.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
http://coolestguidesontheplanet.com/use-html-5-video-on-all-browsers/ On Sun, Jul 20, 2014 at 12:05 PM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: I need play video only for iPad and other devices that does not support Flash. Does this code do that? 2014-07-20 19:51 GMT+04:00 Micky Hulse mickyhulse.li...@gmail.com: On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: I tested on Windows - just blank page. It seems does not like style=display:none but I don't know another solition. I typically use: video poster=foo.jpg width=480 height=360 preload=none controls source src=foo.webm type=video/webm source src=foo.ogv type=video/ogg source src=foo.mp4 type=video/mp4 ... Flash fallback goes here ... /video You'll have to change width/height to match video. This app is great for converting your source to diff formats: http://www.mirovideoconverter.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders