我有一个能够播放视频的视频视图,还有我的专业帐号。 我可以上传预告片(电影)。 我需要任何人帮忙,我如何获得可以在视频视图中加载的视频的直接链接。 我已经探索了一些方法,比如在webview中加载视频,我真的不想要。 所以请帮我在videoview中加载它。
我希望在原生视频视图中流式传输的链接
链接
I have a video view which is able to stream video, plus I have pro account. where I can upload trailers (movies). I need anyone to help,how can I get direct link of video which is possible to load in video view. I have explored some method like to load video in webview which I really don't want. so help me out in loading it in videoview.
link which I want to stream in native video view
Link
最满意答案
如果你想获得vimeo视频的直接链接,你可以传递给任何玩家。 这是方法:首先点击这个链接https://player.vimeo.com/video/[VIDEO_ID]/config你得到一个json responce.you可以用这种方式解析json
String URL = json.getJSONObject("request") .getJSONObject("files") .getJSONObject("h264") .getJSONObject("sd").getString("url");现在输出字符串“URL”可以在任何播放器中使用。 这实际上是流视频的直接链接。
If you want to get a direct link of vimeo video, which you can pass to any player. Here's the method: first hit on to this link https://player.vimeo.com/video/[VIDEO_ID]/config you get a json responce.you can parse json this way
String URL = json.getJSONObject("request") .getJSONObject("files") .getJSONObject("h264") .getJSONObject("sd").getString("url");Now the output string "URL" can be used in any player. which is actually a direct link to stream video.
更多推荐
发布评论