You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using flv.js but am trying to change to mpegts.js.
I am trying to receive OBS data over a local IP.
In flv.js.
/flv?port=1935&app=live&stream=ch1
I can stream flv with this.
but in mpegts.js it only shows still images.
I am using nginx rtmp to flv module,Is there anything I should fix?
<script src="static/mpegts.js"></script>
<video id="videoElement"></video>
<script>
if (mpegts.getFeatureList().mseLivePlayback) {
var videoElement = document.getElementById('videoElement');
var player = mpegts.createPlayer({
type: 'flv', // could also be mpegts, m2ts, flv
isLive: true,
url: '/flv?port=1935&app=live&stream=ch1'
});
player.attachMediaElement(videoElement);
player.load();
player.play();
}
</script>
The text was updated successfully, but these errors were encountered:
I was using flv.js but am trying to change to mpegts.js.
I am trying to receive OBS data over a local IP.
In flv.js.
/flv?port=1935&app=live&stream=ch1
I can stream flv with this.
but in mpegts.js it only shows still images.
I am using nginx rtmp to flv module,Is there anything I should fix?
<script src="static/mpegts.js"></script>
<video id="videoElement"></video>
<script>
if (mpegts.getFeatureList().mseLivePlayback) {
var videoElement = document.getElementById('videoElement');
var player = mpegts.createPlayer({
type: 'flv', // could also be mpegts, m2ts, flv
isLive: true,
url: '/flv?port=1935&app=live&stream=ch1'
});
player.attachMediaElement(videoElement);
player.load();
player.play();
}
</script>
The text was updated successfully, but these errors were encountered: