WebSite using Tvheadend streming link how ?
Added by Issa Issa almost 7 years ago
Hello,
so i have my server with tvheadend working with vlc player,
so now i want create a web page to access to all my channel froom tvheadend :
this is my channel files :
is an extract :
#EXTM3U #EXTINF:-1,TF1 http://192.168.50.50:9981/stream/channelid/170578283?ticket=61548A1A493A079395C121FBAE9EB5C9F99397C8&profile=pass #EXTINF:-1,France 2 http://192.168.50.50:9981/stream/channelid/2027332605?ticket=B82FFC60B48B6770F9035D2F053795B852D4C1D1&profile=pass #EXTINF:-1,F3 Aquitaine http://192.168.50.50:9981/stream/channelid/1720143351?ticket=E3D2D809BABB869FFB6DD08E519F8529A3F8A04A&profile=pass #EXTINF:-1,CANAL+ http://192.168.50.50:9981/stream/channelid/72323235?ticket=4574EE21A951744F7A1BEF6B16F0AFF69683B6F0&profile=pass #EXTINF:-1,France 5 http://192.168.50.50:9981/stream/channelid/817842855?ticket=CF00B162784B5FAA57422A561EE6B2DB4FC949CB&profile=pass #EXTINF:-1,M6 http://192.168.50.50:9981/stream/channelid/612954711?ticket=CD3EE51830A5C4682FC0402A1923A8F1C41395A1&profile=pass #EXTINF:-1,Arte http://192.168.50.50:9981/stream/channelid/1546583627?ticket=7F458C960EF354CB90F24CC0308F137C3AD63BB9&profile=pass #EXTINF:-1,D8 http://192.168.50.50:9981/stream/channelid/1749067505?ticket=A0A15D2F7784EB9136FC7CE2FCEDA0DABCA2F536&profile=pass #EXTINF:-1,W9 http://192.168.50.50:9981/stream/channelid/523506522?ticket=A664BE9FFD6875135E61033AFDFF1B6A4086C1FE&profile=pass #EXTINF:-1,TMC http://192.168.50.50:9981/stream/channelid/1242028057?ticket=FD735C0E9EE7D1FCD3BD80CF3644766F027590CB&profile=pass #EXTINF:-1,NT1 http://192.168.50.50:9981/stream/channelid/1090906267?ticket=33CC9B59AFB157AD6F02ABF52CDCA7B131CBA565&profile=pass #EXTINF:-1,NRJ12 http://192.168.50.50:9981/stream/channelid/544973810?ticket=3F310E60A2A0D80507AC9641FB865D37C6B44206&profile=pass #EXTINF:-1,LCP http://192.168.50.50:9981/stream/channelid/87198059?ticket=3CD1F436B5316DDF126BFDB11522C436230CB7B3&profile=pass
ok now i create my web page :
<head> <link href="http://vjs.zencdn.net/6.6.0/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> </head> <body> <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" poster="http://192.168.50.50:9981/stream/channelid/170578283?ticket=61548A1A493A079395C121FBAE9EB5C9F99397C8.jpg" data-setup="{}"> <source src="http://192.168.50.50:9981/stream/channelid/170578283?ticket=61548A1A493A079395C121FBAE9EB5C9F99397C8?fake=/play.mp4" 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> <script src="http://vjs.zencdn.net/6.6.0/video.js"></script> </body>
of course not working :
i have the message :
Media resource http://192.168.50.50:9981/stream/channelid/170578283?ticket=61548A1A493A079395C121FBAE9EB5C9F99397C8?fake=/play.mp4 could not be decoded. index.html All candidate resources failed to load. Media load paused. index.html Media resource http://192.168.50.50:9981/stream/channelid/170578283?ticket=61548A1A493A079395C121FBAE9EB5C9F99397C8?fake=/play.mp4 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)
i found this in tvheadend log :
2018-01-06 12:01:05.694 subscription: 0019: "HTTP" unsubscribing from "TF1", hostname="192.168.50.21", client="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0" 2018-01-06 12:02:22.166 mpegts: 546MHz in FrenchTV - tuning on Afatech AF9033 (DVB-T) : DVB-T #0 2018-01-06 12:02:22.450 subscription: 001A: "HTTP" subscribing on channel "TF1", weight: 100, adapter: "Afatech AF9033 (DVB-T) : DVB-T #0", network: "FrenchTV", mux: "546MHz", provider: "SMR6", service: "TF1", profile="matroska", hostname="192.168.50.21", client="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0" 2018-01-06 12:02:24.317 mkv: WEBM format supports only VP8+VORBIS streams (detected H264) 2018-01-06 12:02:24.317 mkv: WEBM format supports only VP8+VORBIS streams (detected EAC3) 2018-01-06 12:02:24.317 mkv: WEBM format supports only VP8+VORBIS streams (detected EAC3) 2018-01-06 12:02:24.317 mkv: WEBM format supports only VP8+VORBIS streams (detected EAC3) 2018-01-06 12:02:24.317 mkv: WEBM format supports only VP8+VORBIS streams (detected DVBSUB) 2018-01-06 12:02:24.317 mkv: WEBM format supports only VP8+VORBIS streams (detected DVBSUB)
so my question is how get a link with mp4 link to see on my webbrowser ?
thanks
Source :
Replies (2)
RE: WebSite using Tvheadend streming link how ? - Added by Issa Issa almost 7 years ago
No way
streaming works with internet explorer and not with Firefox i m totaly crazy !!!!
with this code :
[[<head>
<link href="http://vjs.zencdn.net/6.6.0/video-js.css" rel="stylesheet">
<!-- If you'd like to support IE8 -->
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
</head>
<body>
<video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
poster="_YPTuniqid_5a4e6b51cc78c4.71777935.jpg" data-setup="{}">
<source src="_YPTuniqid_5a4e6b51cc78c4.71777935_HD.mp4" 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>
<br><br>
<video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
poster="_YPTuniqid_5a4e6b51cc78c4.71777935.jpg" data-setup="{}">
<source src="http://192.168.50.50:9981/stream/channelid/544973810?ticket=3F310E60A2A0D80507AC9641FB865D37C6B44206&profile=pass" 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>
<script src="http://vjs.zencdn.net/6.6.0/video.js"></script>
</body>]]
RE: WebSite using Tvheadend streming link how ? - Added by saen acro almost 7 years ago
if some one success
https://tvheadend.org/issues/3992
some more info
https://tvheadend.org/boards/5/topics/29897
also make difference from continuous live stream and file stream