本文介绍了new.livestream.com API来获取RTSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要得到一个livestream.com帐户的RTSP流。我读了一些用于livestream.com的API文档,但他们有一个新的网站(new.livestream.com),我找不到任何API文档谈论这一点。有谁知道,如果有新livestream.com网站,让我得到一个RTSP流的API?先谢谢了。

I need to get an RTSP stream of a livestream.com account. I was reading some of the API documentation for livestream.com, but they have a new website (new.livestream.com), and I cannot find any API documentation talking about that. Does anybody knows if there is an API for the new livestream.com website which allows me to get an RTSP stream? Thanks in advance.

推荐答案

我知道这是有点老了,但我是问了同样的问题,我这是怎么了我已经做到了:

I Know this is a bit old, but i was asking that very same question and i this is how i've done it:

我发现这个网址/ API调用,为新的直播,让事件的流的细节

I've found this URL/API call, for the new livestream, to get the details of an event's stream

http://new.livestream.com/api/accounts/[account_id]/events/[event_id]/viewing_info

这为您提供了流的细节JSON响应该事件,包括RTSP流的URL(streamInfo - > rtsp_url)

This gives you a JSON response with details of streams for that event, including the URL of the RTSP stream (streamInfo -> rtsp_url)

只是要确保打了直播事件之前调用此方法,因为时间的网址更改为时间(我认为他们使用某种类型的负载均衡/ CDN网络什么的),每次你应该得到的最新网址。

Just be sure to call this before playing a livestream event, because the URL changes from time to time (i think they use some sort of load balancing/CDN network or something) and you should get the latest URL each time.

BTW:要获得[ACCOUNT_ID]和[EVENT_ID]只看一个事件的URL中new.livestream.com的网址是类似

BTW: To get the [account_id] and [event_id] just look at the URL of an event in new.livestream.com the URLs are something like


  • [account_id]/events/[event_id]

    • [ACCOUNT_ID] [EVENT_ID] 都为数字

    • http://new.livestream.com/accounts/[account_id]/events/[event_id]
      • [account_id] and [event_id] are all numbers


      • [account_id]/events/[event_id]

        • [ACCOUNT_ID] 是一个名称(如TEDx的的)和 [EVENT_ID] 是所有数字

        • http://new.livestream.com/[account_id]/events/[event_id]
          • [account_id] is a name (like 'tedx') and [event_id] is all numbers


          • [account_id]/[event_id]

            • [ACCOUNT_ID] [EVENT_ID] 都是名字(例如'的的TEDx /华尔街的')

            • http://new.livestream.com/[account_id]/[event_id]
              • [account_id] and [event_id] are both names (like 'tedx/WallStreet')

              此外,我不知道这是一个公共的API,但它的作品现在。

              Also, i'm not sure if this is a public API, but it works for now.

              这篇关于new.livestream.com API来获取RTSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 20:17