0
我有一個VideoView
在我的應用程序,從服務器流視頻。在某些情況下,玩家加註的是下面貼MediaHTTPConnectionEx com.lge.media.MediaHTTPConnectionEx 442 seekTo異常toString:java.io.IOException
com.lge.media.MediaHTTPConnectionEx 442個例外seekTo異常的toString:java.io.IOException的
誰能幫助我?
90%的視頻播放效果不錯,但有些視頻播放效果不佳。
我logcat的是這裏瞭解更多信息
09-04 16:04:20.900 7041-7052/com.amnmoj.toop360 D/MediaHTTPConnectionEx: [response code] STATUS CODE:403
09-04 16:04:20.901 7041-7052/com.amnmoj.toop360 D/MediaHTTPConnectionEx: [ResponseMessage]:Forbidden
09-04 16:04:20.901 7041-7052/com.amnmoj.toop360 E/MediaHTTPConnectionEx: MediaHTTPConnectionEx com.lge.media.MediaHTTPConnectionEx 442 seekTo exception toString: java.io.IOException
09-04 16:04:23.906 7041-7053/com.amnmoj.toop360 E/MediaHTTPConnectionEx: connect
09-04 16:04:23.906 7041-7053/com.amnmoj.toop360 E/MediaHTTPConnectionEx: disconnecting
09-04 16:04:23.906 7041-7053/com.amnmoj.toop360 E/MediaHTTPConnectionEx: disconnected
09-04 16:04:23.907 7041-7053/com.amnmoj.toop360 D/MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= LG-H818P/V20e Player/LG Player 1.0 for Android 6.0 (stagefright alternative)
09-04 16:04:23.907 7041-7359/com.amnmoj.toop360 E/MediaHTTPConnectionEx: [seekToEx] offset:0/mCurrentOffset:-1
09-04 16:04:23.908 7041-7359/com.amnmoj.toop360 D/MediaHTTPConnectionEx: proxy null port 0
09-04 16:04:25.211 7041-7359/com.amnmoj.toop360 D/MediaHTTPConnectionEx: [response code] STATUS CODE:403
09-04 16:04:25.212 7041-7359/com.amnmoj.toop360 D/MediaHTTPConnectionEx: [ResponseMessage]:Forbidden
09-04 16:04:25.212 7041-7359/com.amnmoj.toop360 E/MediaHTTPConnectionEx: MediaHTTPConnectionEx com.lge.media.MediaHTTPConnectionEx 442 seekTo exception toString: java.io.IOException
09-04 16:04:25.217 7041-7059/com.amnmoj.toop360 V/MediaPlayer[Native]: message received msg=200, ext1=702, ext2=0
09-04 16:04:25.217 7041-7059/com.amnmoj.toop360 W/MediaPlayer[Native]: info/warning (702, 0)
09-04 16:04:25.217 7041-7059/com.amnmoj.toop360 V/MediaPlayer[Native]: callback application
09-04 16:04:25.217 7041-7059/com.amnmoj.toop360 V/MediaPlayer[Native]: back from callback
09-04 16:04:25.249 7041-7041/com.amnmoj.toop360 V/MediaPlayer[Native]: isPlaying: 0
我的設備是LG G4 –
不能說我知道videoview什麼,但403在日誌中禁止意味着你根本就無法訪問您正在嘗試的任何文件流? – Thernys
@Thernys什麼時候我無法像這樣訪問服務器中的媒體?在其他情況下,客戶端和服務器端都可以正常工作 –