我想將jwplayer整合到我的網絡應用程序中,在iPhone,iPad上播放.mov視頻。jwplayer無法在iPad和iPhone上播放視頻
集成jwplayer後,jwplayer不播放來自包含所有培訓視頻[e:\ video - 在我的本地機器]中的視頻文件夾中的視頻。
但是,如果我把.mov文件放到我的項目資源文件夾中,那麼jwplayer可以播放視頻。它也可以從網址播放視頻。
以下jwplayer樣品不工作
var selectedTrainingPlayer = jwplayer("videoContainerDiv").setup({
'flashplayer': '<%=request.getContextPath()%>/resources/js/mediaplayer-5.10/player.swf',
'id': 'playerId',
'width': '642',
'height': '412',
'mute': false,
'volume' : '100',
'controlbar' : 'bottom',
'repeat': 'list',
'volume': 100,
'stretching' : 'exactfit',
'image': '<%=request.getContextPath()%>/spring/getVideoThumbnail?videoId='+trainingVideoId,
'file': '<%=request.getContextPath() %>/spring/video/1.mov'
});
但jwplayer可以從網址或golflessons資源文件夾播放視頻的,請參考下面的代碼
var selectedTrainingPlayer = jwplayer("videoContainerDiv").setup({
'flashplayer': '<%=request.getContextPath()%>/resources/js/mediaplayer-5.10/player.swf',
'id': 'playerId',
'width': '642',
'height': '412',
'mute': false,
'volume' : '100',
'controlbar' : 'bottom',
'repeat': 'list',
'volume': 100,
'stretching' : 'exactfit',
'image': '<%=request.getContextPath()%>/spring/getVideoThumbnail?videoId='+trainingVideoId,
'file': '<%=request.getContextPath() %> /resources/images/golflessons/Pro_Book myself_Single_Lesson.mov',
});
雖然jwplayer是不是在玩視頻,eclipse顯示如下錯誤,如
引起:java.io.IOException:已建立的連接ction被您主機的sun.nio.ch.SocketDispatcher.write0(本地方法)在sun.nio.ch.SocketDispatcher.write(未知源)上的軟件在sun.nio.ch.IOUtil.writeFromNativeBuffer(未知來源)在sun.nio.ch.IOUtil.write(未知來源)在sun.nio.ch.SocketChannelImpl.write(未知來源)在org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:170)在org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:725)處的org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:221)。
我的理解:
jwplayer可以從網址和golflessons資源文件夾中的視頻。但它無法從項目文件夾外訪問視頻。
我已嘗試禁用防火牆和防病毒,但沒有解決方案爲我工作。
但相同的工作流程是工作在我的Windows桌面,只在iPhone和iPad
問題請人指導我解決這個問題
不,我也有這個解決方案......但仍然不工作,並拋出相同的錯誤...我可以嘗試jwplayer 6嗎? –
你有鏈接嗎? – emaxsaun
感謝您的持續支持..我無法理解您的信息「您有鏈接嗎?」。你是不是指jwplayer的登錄賬號? –