Prevent embedded HTML video from autoplaying - html

Here is my code:
<object id="flashObj" width="640" height="390" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0">
<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9?isSlim=0" />
<param name="bgcolor" value="#FFFFFF" />
<param name="flashVars" value="videoId=3945004669001&playerID=2868544859001&playerKey=AQ~~,AAAABvZFMzE~,IXjx0MpOF0rs6Zj6tTY84DVV4TqsG9K-&domain=embed&dynamicStreaming=true" />
<param name="base" value="http://admin.brightcove.com" />
<param name="seamlesstabbing" value="false" />
<param name="allowFullScreen" value="true" />
<param name="swLiveConnect" value="true" />
<param name="allowScriptAccess" value="always" />
<embed src="http://c.brightcove.com/services/viewer/federated_f9?isSlim=1" bgcolor="#FFFFFF" flashVars="videoId=3945004669001&playerID=2868544859001&playerKey=AQ~~,AAAABvZFMzE~,IXjx0MpOF0rs6Zj6tTY84DVV4TqsG9K-&domain=embed&dynamicStreaming=true" base="http://admin.brightcove.com" name="flashObj" width="640" height="390" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></embed>
</object>
What code do I need to add, or how can I otherwise prevent this from autoplaying?

You could try something like adding flashvars="play=false"
However whether that will work or not depends on a number of different unknowns.
Check out How to make an embedded video not autoplay The first answer gives a far better explaination of it than I can.
However personally if this were a problem I were facing, assuming there was nothing stopping me from doing it I would use HTML5's video tag convert the desired video to MP4 and use it that way
Check out W3cshools for more info on HTML 5 video http://www.w3schools.com/html/html5_video.asp
I hope that helps !

Related

Flash video (swf) not showing up

Is there anything wrong with the below code? Video is not showing up
<div style="vertical-align:middle;text-align:center;width:100%;height:100%">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="592" id="player" width="500">
<param name="movie" value="http://www.diareception.com/flvPlayer/Titanium1010.swf?key=key" />
<param name="FlashVars" value="userKey=key&videoIndex=4" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed allowfullscreen="true" allowscriptaccess="always" flashvars="userKey=key&videoIndex=4" height="592" name="player"
src="http://www.diareception.com/flvPlayer/Titanium1010.swf?key=key" type="application/x-shockwave-flash" width="500">
</embed></object>
</div>
I believe there is something wrong with your SWF file url/path. I tried replacing your swf file path with a sample SWF file and it worked perfectly fine.
Suggest your to recheck the SWF filepath.

chrome not displaying video in flash

I don't understand. I'm trying to embed a video on my site. works perfectly on all browsers (even IE8) but not chrome... tested on several machines using windows 7
this is the embed code:
<object height="226" id="ce_93792260" width="400">
<param name="movie" value="http://current.com/e/93792260/en_US" />
<param name="wmode" value="transparent" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed allowfullscreen="true" allowscriptaccess="always" height="226"
src="http://current.com/e/93792260/en_US" type="application/x-shockwave-flash" width="400" wmode="transparent">
</embed></object>
you can see the embed on the page here: http://www.radicalislam.org/videos/american-born-baptist-now-ruthless-islamic-terrorist
found the solution.
need to delete the file(s) gcswf32.dll
don't forget to close chrome before.
source:
http://community.spiceworks.com/how_to/show/2004

Embedded flash media player is not starting automatically upon web page load

My flash media player is not playing automatically when my webpage loads. I have changed the settings from 0 to 1 (which should auto start the file), but still does not start the song automatically. This occurs in IE, FF, and Chrome. Thanks for any help.
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=/NewAYSsite/music/Great_is_Thy_Faithfulness_Crystal_Lewis.mp3&autoplay=0&autoload=1&showstop=1&showvolume=1&bgcolor1=ffa50b&bgcolor2=d07600" />
</object>
Remove autoload=1 and set autoplay=1 so your code looks like this:
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http%3A//flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=/NewAYSsite/music/Great_is_Thy_Faithfulness_Crystal_Lewis.mp3&autoplay=1&showstop=1&showvolume=1&bgcolor1=ffa50b&bgcolor2=d07600" />
</object>
If you can't get the mp3 to load then add a full path including the http://
Remove autoload=1 and set autoplay=1 (or set 0) so your code looks like this:
<i><object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=/NewAYSsite/music/Great_is_Thy_Faithfulness_Crystal_Lewis.mp3&autoplay=0&autoload=0&showstop=1&showvolume=1&bgcolor1=ffa50b&bgcolor2=d07600" />
</object></i>

wmode=transparent lightens the gray color in swf

I am using lightbox++ to load images outside of flash in order to make that work I have to set
wmode=transparent
in the object properties
But doing this lightens the gray color used in the swf..
Without adding wmode=transparent
Screenshot with wmode=transparent
Can anybody explain this behavior?
here is the whole code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="display: block" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%;">
<param name="movie" value="site.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="allowscriptaccess" value="always" />
<param name="wmode" value="transparent" />
<param name="allowFullScreen" value="true">
<embed src="site.swf" allowfullscreen="true" wmode="transparent" menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%">
Ok I found a hint to the solution on this page
this is what i had done to fix the issue
wmode="opaque"
(by default the swf is set to be on top of all thus we have to use wmode to decide how we want to diplay the swf)
http://kb2.adobe.com/cps/127/tn_12701.html

Why is the relative path not finding the swf

I have this url and in the middle I have this embed link
<embed base="http://dev.posnation.com/images/" height="345" align="middle" width="743" type="application/x-shockwave-flash" salign="" allowscriptaccess="sameDomain"
allowfullscreen="false" menu="true" name="banner" bgcolor="#ffffff" devicefont="false"
wmode="window" scale="showall" loop="true" play="true"
pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="banner.swf">
But for some reason the flash doesnt pull up. I have the banner.swf in the /images folder as you can see with this link what am i missing
I think I know what the problem is.
You've specified base="http://dev.posnation.com/images/" and src="banner.swf", and you think that banner.swf will be searched in the images folder. I think it does not work that way.
Movie will still be searched in http://dev.posnation.com/. All the graphics for the movie will be searched in location specified by the base, while banner.swf will be searched in the location specified by src.
Source
woops ignore my previous answer. i see the problem. I used chrome's developer tools and your website throws an error
Uncaught TypeError: Cannot set property 'src' of null
to expand on awerti's suggestion this is how i embed from a different folder
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="240" height="138" id="flashdemo" align="middle" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/content/flashdemo.swf" />
<param name="quality" value="high" />
<param name="wmode" VALUE="transparent">
<param name="bgcolor" value="#ffffff" />
<param name="base" VALUE="/content/">
<embed src="/content/flashdemo.swf" base="/content/" quality="high" bgcolor="#ffffff" wmode="transparent" width="240" height="138" name="flashdemo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />