1
你好,我想實現一個jwplayer在網站上,當我測試本地與一個HTML頁面的一切偉大的工作,這裏是工作的測試代碼:jwplayer不加載視頻文件
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>JWPlayer test</title>
<script src="http://tms.localhost/NSwQRmZDEeOchiIACmOLpg.js"></script>
</head>
<body>
<div id='playeriybxxXWkOtaN'></div>
<script type='text/javascript'>
jwplayer('playeriybxxXWkOtaN').setup({
file: 'http://tms.localhost/video.flv',
image: 'http://tms.localhost/image.jpg',
title: 'Razer',
width: '100%',
aspectratio: '16:9',
fallback: 'false'
});
</script>
</body>
</html>
然而,當我試圖通過特定的生命週期中使用它它沒有工作。我通過cms控制面板上傳了一個視頻,並且生成的視頻鏈接是:
http://localhost:8080/documents/10180/0/test-video/a3690397-1d28-4225-9a5c-7d13dba7c789
我假設它必須對鏈接做些什麼?但是當我在我的瀏覽器上嘗試它時,視頻下載完全正常。
我在這裏做錯了什麼?
你可以提供確切的代碼,你正在嘗試liferay? –