2014-09-22 333 views
1

我正在使用Wowza的Gocoder應用程序將視頻從我的iPhone直播到Wowza服務器(4.0.4版)。從服務器上,我也可以將視頻提取到我的網頁上。我使用Video.js播放器來做同樣的事情。但所有這些僅適用於IOS(HLS流)。現在,我想知道是否可以使用同一個播放器從我的Android移動設備(RTSP)支持流式傳輸。 有沒有什麼我可以包括讓單人連接到RTSP或HLS流分別?直播 - 使用Video.js(Wowza服務器)的HLS + RTSP

謝謝你的幫助! :)

代碼

<head> 
 
    <script type="text/javascript"> 
 
document.createElement('video');document.createElement('audio');document.createElement('track'); 
 
</script> 
 
<link href="//vjs.zencdn.net/4.8/video-js.css" rel="stylesheet"> 
 
<script src="//vjs.zencdn.net/4.8/video.js"></script> 
 
</head> 
 

 
<body> 
 
<video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered" 
 
    controls preload="auto" width="500" height="300" 
 
    poster="nfllogo.png" 
 
    data-setup='{"example_option":true}'> 
 
<source src="http://a.b.c.d:1935/live/myStream/playlist.m3u8" type='video/mp4'/> 
 
    
 
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> 
 
</video> 
 
</body>

回答

0
,如果你想顯示RTMP流,據我所知,你需要回落到一個基於Flash播放器

,但限制你的平臺以及廣告。我搜索了一下,但Video.js能否做到這一點並不清楚。 JW Player可以。

+0

感謝您的回覆。 Yse我試圖通過使用video.js的HLS或RTSP從android移動設備獲取流。無論如何感謝您的幫助! – TelecomCoder 2014-09-26 13:33:54

+0

@TelecomCoder您是否在Android手機上找到了rtsp解決方案?是否支持videojs rtsp mp4流? – 2017-01-13 07:11:25