mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
fix: html5 video tag resolution adaptive. (#2128)
This commit is contained in:
parent
248085edfe
commit
3c14a96bdd
3 changed files with 3 additions and 3 deletions
|
@ -392,7 +392,7 @@ if [ ! -f ${SRS_OBJS}/st/libst.a ]; then echo "Build state-threads static lib fa
|
||||||
function write_nginx_html5()
|
function write_nginx_html5()
|
||||||
{
|
{
|
||||||
cat<<END > ${html_file}
|
cat<<END > ${html_file}
|
||||||
<video autoplay controls autobuffer type="application/vnd.apple.mpegurl"
|
<video width="100%" autoplay controls autobuffer type="application/vnd.apple.mpegurl"
|
||||||
src="${hls_stream}">
|
src="${hls_stream}">
|
||||||
</video>
|
</video>
|
||||||
END
|
END
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label></label>
|
<label></label>
|
||||||
<video id="rtc_media_player" controls autoplay></video>
|
<video id="rtc_media_player" width="100%" controls autoplay></video>
|
||||||
|
|
||||||
<label></label>
|
<label></label>
|
||||||
SessionID: <span id='sessionid'></span>
|
SessionID: <span id='sessionid'></span>
|
||||||
|
|
|
@ -347,7 +347,7 @@
|
||||||
<h3><a href="https://github.com/ossrs/srs">RtcPlayer</a></h3>
|
<h3><a href="https://github.com/ossrs/srs">RtcPlayer</a></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<video id="rtc_media_player" controls autoplay ></video>
|
<video id="rtc_media_player" width="100%" controls autoplay ></video>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer" id="my_modal_footer">
|
<div class="modal-footer" id="my_modal_footer">
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue