1
0
Fork 0
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:
johzzy 2021-01-07 13:47:30 +08:00 committed by GitHub
parent 248085edfe
commit 3c14a96bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -392,7 +392,7 @@ if [ ! -f ${SRS_OBJS}/st/libst.a ]; then echo "Build state-threads static lib fa
function write_nginx_html5()
{
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}">
</video>
END

View file

@ -49,7 +49,7 @@
</div>
<label></label>
<video id="rtc_media_player" controls autoplay></video>
<video id="rtc_media_player" width="100%" controls autoplay></video>
<label></label>
SessionID: <span id='sessionid'></span>

View file

@ -347,7 +347,7 @@
<h3><a href="https://github.com/ossrs/srs">RtcPlayer</a></h3>
</div>
<div class="modal-body">
<video id="rtc_media_player" controls autoplay ></video>
<video id="rtc_media_player" width="100%" controls autoplay ></video>
</div>
<div class="modal-footer" id="my_modal_footer">
<div>