123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!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">
- <meta name="format-detection"content="telephone=no">
- <title>index</title>
- <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
- <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
- <link rel="stylesheet" href="../../css/aui.css">
- <link rel="stylesheet" href="../../css/projeck.css">
- <style media="screen">
- body,html{
- margin: 0;
- background: #fff;
- }
- </style>
- </head>
- <body>
- <div class="api_layout">
- <!-- <header class="header-login">
- <img class="backBtn" src="../../image/btn_back.png" alt="" tapmode onclick="backIndex()">
- <p class="api_text">视频</p>
- </header> -->
- </div>
- <!-- <div class="loading_">
- <span></span>
- </div> -->
- </body>
- </html>
- <script type="text/javascript" src="../../script/api.js"></script>
- <!-- <script src="../../script/fastclick.min.js"></script> -->
- <!-- <script src="../../script/aui-toast.js"></script> -->
- <script src="../../script/config.js"></script>
- <script type="text/javascript">
- var toast = new auiToast();
- apiready = function () {
- $api.fixStatusBar($api.dom('header') );
- var urls = api.pageParam.videoUrl,title = api.pageParam.title;
- openVideo(urls);
- }
- function openVideo(url) {
- var neteasePlayer = api.require('neteasePlayer');
- neteasePlayer.open({
- title:'视频',
- definition:["高清","标清","流畅"],
- styles:{
- head:{
- bg: 'rgba(161,161,161,1)',
- height: 44,
- title:{
- size:20,
- color:'#fff',
- width:100,
- leftMargin:10
- },
- backSize: 44,
- // backImg:'widget://image/back.png',
- definition:{
- bg:'#fff',
- textSize:14,
- textColor:"#FFF",
- textWidth: 30,
- marginRight:5
- },
- },
- playCenterBtn:{
- size : 44,
- // playCenterImg:'fs://img/play.png',
- // pauseCenterImg:'fs://img/pause.png',
- },
- foot:{
- bg: 'rgba(0,0,0,0.5)',
- height: 44,
- playBtn:{
- size: 44,
- // playImg:'widget://image/play.png',
- // pauseImg:'widget://image/pause.png',
- marginLeft:5
- },
- currentTimeLabel:{
- textSize:10,
- textColor:"#FFF",
- textWidth: 50,
- marginLeft:5
- },
- seekBar:{
- // sliderImg:'widget://image/circle.png',
- sliderW : 20,
- sliderH : 20,
- progressColor: '#696969',
- progressSelected: '#76EE00',
- marginLeft:10,
- marginRight:10
- },
- totalTimeLabel:{
- textSize:10,
- textColor:"#FFF",
- textWidth: 50,
- marginRight:5
- },
- voiceBtn:{
- size:44,
- // muteImg:'widget://img/muteImg.png',
- // disMuteImg:'widget://img/disMuteImg.png',
- },
- fullscreenBtn:{
- size:44,
- // verticalImg:'widget://image/vertical.png',
- // horizontalImg:'widget://image/horizontal.png',
- }
- } },
- path:url,
- autoPlay: true
- },function(ret, err){
- if(ret){
- alert(JSON.stringify(ret));
- } else {
- alert(JSON.stringify(err));
- }
- });
- // var obj = api.require('UIPLPlayer');
- // obj.openPlayer({
- // rect:
- // { x: 0,
- // y: 70,
- // w: api.winWidth,
- // h: $api.winHeight
- // },
- // title: '返回',
- // videoUrlPath: url,
- // fixedOn: api.frameName,
- // }, function(ret, err) {
- // if(ret){
- // console.log(ret);
- // }else{
- // alert(JSON.stringify(err));
- // }
- // });
- }
- // function backIndex() {
- // api.closeWin();
- // var UIPLPlayer = api.require('UIPLPlayer');
- // UIPLPlayer.closePlayer();
- // }
- // // video
- // function functionName(url) {
- // var mediaPlayer = api.require('aliyunLive');
- // mediaPlayer.prepareToPlay({
- // url:url
- // }, function(ret, err) {
- // if(ret && ret.status){
- // alert("MediaPlayer Prepare Ready");
- // var mediaPlayer = api.require('aliyunLive');
- // mediaPlayer.play();
- // }
- // });
- // }
- </script>
|