【问题标题】:How can I use Livestream player in iOS/Android app? [closed]如何在 iOS/Android 应用程序中使用 Livestream 播放器? [关闭]
【发布时间】:2013-01-02 22:46:24
【问题描述】:

您可以使用他们的播放器在Livestream 上观看视频流。

是否可以嵌入iOS/Android应用中只跟踪一个频道?

【问题讨论】:

  • 离题团伙?不明白。

标签: android ios flash live-streaming


【解决方案1】:

是的,您可以通过 HTML for mobile 使用 LiveStream 的Mobile API 执行此操作。

例如,在 iOS 中,您可以通过 html 执行此操作:

<html>
<body>
<h1>iPhone Example:</h1>
<video width="300" height="225" 
   src="http://xmashablex.is.channel.livestream.com/onDemand/ls/mashable/pla_2bc0bbfa-cc39-4f80-b9ef-376b97da94a4/playlist.m3u8" 
   poster="http://www.livestream.com/filestore/user-files/chmashable/2010/06/08/d333a646-94aa-4035-a66e-1185bd885622_1.jpg" 
   controls="" 
   autoplay="true" 
   tabindex="0">
</video>
</body>
</html>

还有安卓/黑莓:

<html>
<body>
<h1>Android Example:</h1>
<a href="rtsp://xmashablex.is.channel.livestream.com:1935/onDemand/ls/mashable/pla_2bc0bbfa-cc39-4f80-b9ef-376b97da94a4" id="thumbnail">
<img width="320" height="240" 
src="http://www.livestream.com/filestore/user-files/chmashable/2010/06/08/d333a646-94aa-4035-a66e-1185bd885622_1.jpg" 
alt="thumbnail" title="thumbnail"/>
</a><br>
Click image to play
</body>
</html>

【讨论】:

  • 我似乎找不到许可证政策。这是免费的吗?
  • @vale4674 你的意思是你可以用免费/高级帐户使用它吗?
  • @vale4674 抱歉,但根据THIS 帖子:At this time, our mobile API is available only to paying Premium accounts on a long term commitment.
  • 我可以用这个本地 html 文件显示视频:&lt;html&gt; &lt;body&gt; &lt;h1&gt;iPhone Example:&lt;/h1&gt; &lt;video width="300" height="225" src="http://xmashablex.is.channel.livestream.com/onDemand/ls/mashable/pla_2bc0bbfa-cc39-4f80-b9ef-376b97da94a4/playlist.m3u8" poster="http://www.livestream.com/filestore/user-files/chmashable/2010/06/08/d333a646-94aa-4035-a66e-1185bd885622_1.jpg" controls="" autoplay="true" tabindex="0"&gt; &lt;/video&gt; &lt;/body&gt; &lt;/html&gt;
  • @vale4674 我很高兴它有效!询问您是否需要更多帮助!
猜你喜欢
  • 2016-09-13
  • 1970-01-01
  • 2015-01-11
  • 1970-01-01
  • 1970-01-01
  • 2012-07-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多