0

Hey I am working with HTML tags and when I open the page in Safari the video player is very small.

If I enable full screen and then go back it is focused correctly.

I am not sure what is causing it to load incorrectly initially.

HTML Code:

<div id="AboutVideo">

    <video width="100%" height="100%" controls>

        <source src="../Media/Video/Intro/test.mp4"  type="video/mp4" />
        <source src="../Media/Video/Intro/test.ogv"  type="video/ogg" />
        <source src="../Media/Video/Intro/test.webm" type="video/webm">

    </video>

</div>

About Video:

#AboutVideo
{
float: left;
margin-right: 1em;
}

Any help would be great.

4

1 回答 1

0

PLease try this below code, It may be because of video fallback code you never included. thats it.

<video controls="controls" autoplay="autoplay" 
poster="#" width="212" height="160">
    <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
    <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
    <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
    <object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" 
    width="212" height="160">
        <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
        <param name="allowFullScreen" value="true" />
        <param name="wmode" value="transparent" />
        <param name="flashVars" value="config={'playlist':['http%3A%2F%2Fsandbox.thewikies.com%2Fvfe-generator%2Fimages%2Fbig-buck-bunny_poster.jpg',{'url':'http%3A%2F%2Fclips.vorwaerts-gmbh.de%2Fbig_buck_bunny.mp4','autoPlay':true}]}" />
        <img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
    </object>
</video>
于 2013-09-18T10:17:35.347 回答