vimeo android的直接链接(Direct link of vimeo android)

编程入门 行业动态 更新时间:2024-10-27 08:29:35
vimeo android的直接链接(Direct link of vimeo android)

我有一个能够播放视频的视频视图,还有我的专业帐号。 我可以上传预告片(电影)。 我需要任何人帮忙,我如何获得可以在视频视图中加载的视频的直接链接。 我已经探索了一些方法,比如在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.

更多推荐

本文发布于:2023-07-05 02:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1032113.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:链接   android   vimeo   Direct   link

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!