Streaming mpeg-ts
I'm trying to live stream mpeg-ts generated by vlc to a website using jw player. I can stream it into a VLC client with no problem.
The VLC streamer:
cvlc v4l2:///dev/video0:chroma=h264:width=1920:height=1080 --sout '#standard{access=http,mux=ts,dst=x.x.x.x:8080,mime=video/ts}' -vvv
The VLC player can play this just by opening:
http://x.x.x.x:8080
But I can't play this using JW Player, I receive "No playable sources found" error with the following code:
<html>
<title>JW Player</title>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="xxxxx";</script>
<body>
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://x.x.x.x:8080",
type: "mpegts.stream",
image: "/uploads/myPoster.jpg"
});
</script>
</body>
</html>
Any idea how to make JW Player to play this mpeg-ts stream?
Thanks