Created
April 22, 2019 06:14
-
-
Save meishixiu/dd4ff47bc864393b57948584d61c7f00 to your computer and use it in GitHub Desktop.
通过 url schema 打开 mkPlayer,在 mkPlayer 里直接播放
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/> | |
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no"> | |
<style type="text/css"> | |
.spinner { | |
margin: 100px auto 0; | |
width: 150px; | |
text-align: center; | |
} | |
.spinner > div { | |
width: 30px; | |
height: 30px; | |
background-color: #6f81e0; | |
border-radius: 100%; | |
display: inline-block; | |
-webkit-animation: bouncedelay 1.4s infinite ease-in-out; | |
animation: bouncedelay 1.4s infinite ease-in-out; | |
/* Prevent first frame from flickering when animation starts */ | |
-webkit-animation-fill-mode: both; | |
animation-fill-mode: both; | |
} | |
.spinner .bounce1 { | |
-webkit-animation-delay: -0.32s; | |
animation-delay: -0.32s; | |
} | |
.spinner .bounce2 { | |
-webkit-animation-delay: -0.16s; | |
animation-delay: -0.16s; | |
} | |
@-webkit-keyframes bouncedelay { | |
0%, 80%, 100% { | |
-webkit-transform: scale(0.0) | |
} | |
40% { | |
-webkit-transform: scale(1.0) | |
} | |
} | |
@keyframes bouncedelay { | |
0%, 80%, 100% { | |
transform: scale(0.0); | |
-webkit-transform: scale(0.0); | |
} | |
40% { | |
transform: scale(1.0); | |
-webkit-transform: scale(1.0); | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="spinner"> | |
<div class="bounce1"></div> | |
<div class="bounce2"></div> | |
<div class="bounce3"></div> | |
</div> | |
</body> | |
<script type="text/javascript"> | |
window.location.href="mkpalyer://m3u8.play?url=" + encodeURIComponent( get_query_string('url') ) ; | |
function get_query_string(name){ | |
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); | |
var r = window.location.search.substr(1).match(reg);//search,查询?后面的参数,并匹配正则 | |
if(r!=null)return unescape(r[2]); return null; | |
} | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment