Commit d30d0a15 authored by Quxl's avatar Quxl

x

parent 38c263eb
......@@ -13,43 +13,44 @@
<script type="text/javascript" src="https://unpkg.com/element-ui@2.0.11/lib/index.js"></script>
<script type="text/javascript" src="assets/jquery/jquery.min.js"></script>
<style>
* {margin:0px; padding:0px; border:0px;}
body {overflow:hidden;}
#playBox {overflow:hidden; background:#000;}
* {
margin: 0px;
padding: 0px;
border: 0px;
}
body {
overflow: hidden;
}
#playBox {
overflow: hidden;
background: #000;
}
</style>
</head>
<body>
<div id="app">
<div class="prism-player" id="J_prismPlayer"></div>
<el-dialog :visible.sync="loginVisible" style="width:800px;margin:auto;">
<el-form>
<el-form-item label="用户名:" label-width="75px">
<el-input v-model="loginForm.username" placeholder="请输入登陆名" style="width:85%;"></el-input>
</el-form-item>
<el-form-item label="密码:" label-width="75px">
<el-input type="password" v-model="loginForm.password" placeholder="请输入登陆密码" style="width:85%;"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="mini" @click="loginVisible = false">关闭</el-button>
<el-button size="mini" type="primary" @click="doLogin">登 陆</el-button>
</div>
<el-dialog :visible.sync="loginVisible" style="width:800px;margin:auto;"> <el-form> <el-form-item label="用户名:" label-width="75px"> <el-input v-model="loginForm.username" placeholder="请输入登陆名" style="width:85%;"></el-input> </el-form-item> <el-form-item label="密码:" label-width="75px"> <el-input type="password" v-model="loginForm.password" placeholder="请输入登陆密码" style="width:85%;"></el-input> </el-form-item> </el-form>
<div slot="footer" class="dialog-footer">
<el-button size="mini" @click="loginVisible = false">关闭</el-button>
<el-button size="mini" type="primary" @click="doLogin">登 陆</el-button>
</div>
</el-dialog>
<el-dialog :visible.sync="payVisible" style="width:800px;margin:auto;">
<el-form >
<div v-if="buyLicenceList && buyLicenceList[0]">
<div>支付金额: {{buyLicenceList[0].price}}元</div>
<div>有效期: {{buyLicenceList[0].expire_hours}}小时</div>
</div>
<div v-else>
<div>未发现有效许可证</div>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="mini" @click="payVisible = false">关闭</el-button>
<el-button v-if="buyLicenceList && buyLicenceList[0]" size="mini" type="primary" @click="doPay">模拟支付</el-button>
</div>
<el-dialog :visible.sync="payVisible" style="width:800px;margin:auto;"> <el-form>
<div v-if="buyLicenceList && buyLicenceList[0]">
<div>支付金额: {{buyLicenceList[0].price}}元</div>
<div>有效期: {{buyLicenceList[0].expire_hours}}小时</div>
</div>
<div v-else>
<div>未发现有效许可证</div>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="mini" @click="payVisible = false">关闭</el-button>
<el-button v-if="buyLicenceList && buyLicenceList[0]" size="mini" type="primary" @click="doPay">模拟支付</el-button>
</div>
</el-dialog>
</div>
<script type="text/javascript" src="assets/common.js"></script>
......@@ -91,6 +92,35 @@ body {overflow:hidden;}
}, function(player) {
console.log("播放器创建好了。")
});
document.οnkeydοwn=function(e){
var keyNum=window.event ? e.keyCode :e.which;
if(keyNum=='32'){
var status = xplayer.getStatus();
if(status == 'play') {
xplayer.pause();
} else {
xplayer.play();
}
} else if(keyNum=='37'){//快进
var videotimes = xplayer.getDuration();
var playnum = xplayer.getCurrentTime();
playnum =parseInt(playnum-10);
if(playnum<=(videotimes-30)){
xplayer.seek(playnum);
}
} else if(keyNum=='39'){
var videotimes = xplayer.getDuration();
var playnum = xplayer.getCurrentTime();
playnum = parseInt(playnum +10);
if(playnum>15){
xplayer.seek(playnum);
} else{
xplayer.seek(0);
}
}
e.preventDefault();
}
} else if(authJsonObject.code == 300) {
scope.toLogin();
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment