播放的視頻在我的應用我有我我附加SRC視頻標籤動態無法在HTML5
這是我的代碼
<video autobuffer controls autoplay>
<source id="howtovideoimg" src="" type="video/mp4">
</video>
$(document).ready(function() {
$('#howtovideoimg').attr('src', 'http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4');
});
這是我的小提琴
http://jsfiddle.net/cod7ceho/125/
請讓我知道如何播放視頻
[更改源的可能的複製在html5視頻標籤](http://stackoverflow.com/questions/5235145/changing-source-on-html5-video-tag) – insertusernamehere
「src」不是視頻標籤的屬性。它需要一個''標籤。 http://www.w3schools.com/html/html5_video.asp。 –
ADyson
我更新了小提琴http://jsfiddle.net/cod7ceho/127/ – nmanikiran