add ?token arg to /stream.mp4 and /stream.m3u8 as a fallback when no cookies
このコミットが含まれているのは:
コミット
73256ca9d9
|
@ -18,10 +18,10 @@
|
|||
<div id="stream" class="border">
|
||||
<!-- https://stackoverflow.com/questions/41014197/how-can-i-play-a-m3u8-file-video-using-the-html5-video-element -->
|
||||
<video style="width: 100%;height: 100%;" id="videojs" class="video-js vjs-default-skin vjs-big-play-centered" data-setup='{"controls": true, "autoplay": true }'>
|
||||
<source src="{{ url_for('playlist') }}" type="application/x-mpegURL">
|
||||
<source src="{{ url_for('playlist', token=token) }}" type="application/x-mpegURL">
|
||||
</video>
|
||||
<noscript>
|
||||
<video style="width: 100%;height: 100%;" controls autoplay src="{{ url_for('segments') }}">
|
||||
<video style="width: 100%;height: 100%;" controls autoplay src="{{ url_for('segments', token=token) }}">
|
||||
</noscript>
|
||||
</div>
|
||||
<iframe id="stream-info" style="height:9em;" src="/stream-info"></iframe>
|
||||
|
|
読み込み中…
新しいイシューから参照