如何在iOS / Android应用程序中使用Livestream播放器?

时间:2013-01-02 22:46:25

标签: android ios flash live-streaming

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

是否可以在iOS / Android应用程序中嵌入以仅跟踪一个频道?

1 个答案:

答案 0 :(得分:0)

是的,您可以通过LiveStream的Mobile API移动HTML来实现此目的。

例如,在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>

和android / blackberry:

<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>