我如何使用直播播放器在iOS/安卓应用程序



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

它可以嵌入在iOS/Android应用程序只跟踪一个通道?

是的,你可以通过HTML和LiveStream的移动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>

和android/黑莓:

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

相关内容

最新更新