两个也许是简单的问题:
1.我正在尝试使用功能onended
结束视频,但无法正常工作,因为我有一个<object>
,例如:
<object width="100%" height="100%" id="player_api" data="https://my-url.com" type="application/x-shockwave-flash"></object>
2。我有我的参数,但是如果我添加 <param name="autoPlay" value="true">
和<param name="autoStart" value="true">
,则无论如何都不会自动播放。...
谢谢。
编辑: 这是我的全部目的:
<object width="100%" height="100%" id="player_api" data="https://my-url.com" type="application/x-shockwave-flash">
<param name="allowscriptaccess" value="always">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="flashvars" value="config={"playlist":[{"url":"https://medialibrary-diretteweb-it.s3.amazonaws.com/advert/spot_crsa_40sec.mp4","autoPlay":false}],"clip":{"autoPlay":false},"plugins":{"controls":{"url":"https%3A//adserver.tigicongress.com/revive/www/delivery/fc.php%3Fscript%3DdeliveryLog%3AvastServeVideoPlayer%3Aplayer%26file_to_serve%3Dflowplayer/3.1.1/flowplayer.controls-3.1.1.swf"}},"playerId":"player"}">
<param name="autoPlay" value="true">
<param name="autoStart" value="true">
<param name="ShowControls" value="false">
</object>
编辑2:我自己解决了第二个问题,但我仍然停留在第一个问题上。
答案 0 :(得分:0)
<object onended="myFunction()" width="400" height="250" id="player_api" data="https://www.quirksmode.org/html5/videos/big_buck_bunny.mp4">
<param name="allowscriptaccess" value="always">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="true">
<param name="ShowControls" value="true">
</object>