How to get video from web socket url in android?
问题 I want to get a video mp4 file from web socket URL in android, The URL look like the following example: "ws://xxxx.xxxx.xxxx.com/mp4 I have no idea if its possible in exoplayer , and if so then how is it possible in a web socket url (Not Http). I would be happy to receive any example to this problem 回答1: Take a look at okhttp from 3.5.0 they support websockets. Then you can OkHttpDataSource with ExoPlayer. 来源: https://stackoverflow.com/questions/44725871/how-to-get-video-from-web-socket-url