You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting an ftp:// URL to a localhosthttp:// URL sounds unusual - I suspect whatever is facilitating this 'conversion' (presumably by proxying HTTP calls and forwarding them over FTP) is responsible for the issues you're seeing.
Using DefaultHttpDataSource throw HttpDataSrouce$InvaildResponseCodeException : 503
This error is coming from the HTTP server - if you want to know why it's occuring, you need to inspect the server logs, we can't really help from the client side. In this case it seems likely the "HTTP server" is the tool you're using to "convert" from FTP to HTTP.
If it's an HTTP service issue, ijk or vlc will also fail to play.
http://127.0.0.1:8089/%D1%A9%C3%D4%B9%AC02.mp4
There is no problem with converting this address, and the IDM downloader can also download the file normally.
This is a P2P address, and I believe it is due to exo's DefaultMediaSourceFactory not correctly converting to the corresponding MediaSource (convert to ProgressiveMediaSource) , which caused the program to use the wrong BaseDataSource, OkHttpDataSource.open (DataSpec dataSpec)
This is just a speculation. If needed, I can provide a GitHub demo that integrates ijk and exo
Version
Media3 main branch
More version details
1.4.1
Devices that reproduce the issue
all device
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
No
Reproduction steps
1、Media url : ftp://a.gbl.114s.com:20320/8895/雪迷宫02.mp4
2、Using P2P libraries, convert to : http://127.0.0.1:8089/%D1%A9%C3%D4%B9%AC02.mp4
`
p2p.P2Pdoxstart(path.getBytes("GBK"));
`
3、Using IjkPlayer SDK / VLC SDK / Mpv SDK , can play successfully , but only using exoplayer play error.
4、The ExoPlayer HttpDataSource.Factory I am using.
`
private HttpDataSource.Factory getHttpDataSourceFactory() {
`
Using OkHttpDataSource throw java.net.SocketTimeoutException :timeout.
`
private HttpDataSource.Factory getHttpDataSourceFactory() {
`
Using DefaultHttpDataSource throw HttpDataSrouce$InvaildResponseCodeException : 503
Expected result
play successfully
Actual result
error
Media
ftp://a.gbl.114s.com:20320/8895/雪迷宫02.mp4
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: