請用 html5 方式.
如下:
<script type="text/javascript" src="jwplayer.js"></script>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
'height': '260',
'width': '320',
'file': "DSCN0207.mp4",
'title': 'test',
'autostart': 'true',
'bufferlength': '10',
'controlbar': 'bottom',
'display.showmute': 'true',
'stretching': 'uniform',
'wmode': 'transparent',
'modes': [
{ 'type': 'flash', 'src': 'player.swf' },
{ 'type': 'html5' },
{ 'type': 'download' }
]
});
</script>
有支援 flash 就用 flash, 沒有就用 html5.
modes 的順序可以隨你改... 不過建議先 flash 後 html5, 再來是 download...
因為 firefox 對 html5 的 mp4 不支援, 把 html5 放前面反而會造成 firefox 不能看.