Add: video loop(on modal and Pleroma) and autoplay on modal

This commit is contained in:
Cutls 2019-07-29 00:42:52 +09:00
parent 7fa805fe3a
commit 15f428528b
5 changed files with 5 additions and 5 deletions

View File

@ -572,7 +572,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url + acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url +
'" data-type="video" class="img-parsed"><video src="' + '" data-type="video" class="img-parsed"><video src="' +
purl + '" class="' + sense + purl + '" class="' + sense +
' toot-img pointer" style="max-width:100%;"></a></span>'; ' toot-img pointer" style="max-width:100%;" loop="true"></a></span>';
} else { } else {
if (media.type == "unknown") { if (media.type == "unknown") {
viewer = viewer + '<a href="' + media.remote_url + '" title="' + media.remote_url + '">[' + lang.lang_parse_unknown + ']</a> ' viewer = viewer + '<a href="' + media.remote_url + '" title="' + media.remote_url + '">[' + lang.lang_parse_unknown + ']</a> '

View File

@ -667,7 +667,7 @@
<!-- Modal Structure Video--> <!-- Modal Structure Video-->
<div id="videomodal" class="modal modal-fixed-footer"> <div id="videomodal" class="modal modal-fixed-footer">
<div class="modal-content"> <div class="modal-content">
<video src="" id="video" style="max-width:100%; max-height:100%;" controls> <video src="" id="video" style="max-width:100%; max-height:100%;" controls loop="true" autoplay="true">
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>

View File

@ -667,7 +667,7 @@
<!-- Modal Structure Video--> <!-- Modal Structure Video-->
<div id="videomodal" class="modal modal-fixed-footer"> <div id="videomodal" class="modal modal-fixed-footer">
<div class="modal-content"> <div class="modal-content">
<video src="" id="video" style="max-width:100%; max-height:100%;" controls> <video src="" id="video" style="max-width:100%; max-height:100%;" controls loop="true" autoplay="true">
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>

View File

@ -667,7 +667,7 @@
<!-- Modal Structure Video--> <!-- Modal Structure Video-->
<div id="videomodal" class="modal modal-fixed-footer"> <div id="videomodal" class="modal modal-fixed-footer">
<div class="modal-content"> <div class="modal-content">
<video src="" id="video" style="max-width:100%; max-height:100%;" controls> <video src="" id="video" style="max-width:100%; max-height:100%;" controls loop="true" autoplay="true">
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">@@close@@</a> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">@@close@@</a>

View File

@ -667,7 +667,7 @@
<!-- Modal Structure Video--> <!-- Modal Structure Video-->
<div id="videomodal" class="modal modal-fixed-footer"> <div id="videomodal" class="modal modal-fixed-footer">
<div class="modal-content"> <div class="modal-content">
<video src="" id="video" style="max-width:100%; max-height:100%;" controls> <video src="" id="video" style="max-width:100%; max-height:100%;" controls loop="true" autoplay="true">
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">crwdns385:0crwdne385:0</a> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">crwdns385:0crwdne385:0</a>