|
@@ -13,34 +13,45 @@ $(document).ready(function() {
|
|
|
const title = JSON.parse(dataList).shareTask.title;
|
|
|
const shareJoinUserId = JSON.parse(dataList).shareJoinUser.id;
|
|
|
$('.title p').html(title)
|
|
|
- /**
|
|
|
- * chimeeplayer播放器
|
|
|
- */
|
|
|
- // let bigVideo = new ChimeePlayer({
|
|
|
- // wrapper: '#bigVideo', // video dom容器
|
|
|
- // src: 'http://live.ai160.com/SCREEN/SCREEN1559033120490640.flv',
|
|
|
- // box: 'flv',
|
|
|
- // isLive: true,
|
|
|
- // autoplay: true,
|
|
|
- // muted: false
|
|
|
- // });
|
|
|
- // let smallVideo = new ChimeePlayer({
|
|
|
- // wrapper: '#smallVideo', // video dom容器
|
|
|
- // src: 'http://live.ai160.com/SCREEN/SCREEN1559033120490640.flv',
|
|
|
- // box: 'flv',
|
|
|
- // isLive: true,
|
|
|
- // autoplay: true,
|
|
|
- // muted: true
|
|
|
- // });
|
|
|
+
|
|
|
+ // new Player({
|
|
|
+ // "id": "bigVideo",
|
|
|
+ // "url": "//s1.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/xgplayer-demo.mp4",
|
|
|
+ // "playsinline": false,
|
|
|
+ // "volume": 1,
|
|
|
+ // "autoplay": true,
|
|
|
+ // "width": "100%",
|
|
|
+ // "height": "714",
|
|
|
+ // "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'time'],
|
|
|
+ // "closeVideoClick": true,
|
|
|
+ // "closeVideoTouch": true,
|
|
|
+ // "keyShortcut": "off",
|
|
|
+ // "cssFullscreen": true
|
|
|
+ // })
|
|
|
+ // new Player({
|
|
|
+ // "id": "smallVideo",
|
|
|
+ // "url": "//s1.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/xgplayer-demo.mp4",
|
|
|
+ // "playsinline": false,
|
|
|
+ // "volume": 0,
|
|
|
+ // "autoplay": true,
|
|
|
+ // "width": "100%",
|
|
|
+ // "height": "714",
|
|
|
+ // "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'time'],
|
|
|
+ // "closeVideoClick": true,
|
|
|
+ // "closeVideoTouch": true,
|
|
|
+ // "keyShortcut": "off",
|
|
|
+ // "cssFullscreen": true
|
|
|
+ // })
|
|
|
+
|
|
|
let bigVideo = new FlvJsPlayer({
|
|
|
"id": "bigVideo",
|
|
|
- "url": desktopUrl,
|
|
|
+ "url": boardUrl,
|
|
|
"playsinline": false,
|
|
|
"volume": 1,
|
|
|
"autoplay": true,
|
|
|
"width": "100%",
|
|
|
"height": "714",
|
|
|
- "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'volume'],
|
|
|
+ "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'time'],
|
|
|
"closeVideoClick": true,
|
|
|
"closeVideoTouch": true,
|
|
|
"keyShortcut": "off",
|
|
@@ -48,19 +59,19 @@ $(document).ready(function() {
|
|
|
});
|
|
|
let smallVideo = new FlvJsPlayer({
|
|
|
"id": "smallVideo",
|
|
|
- "url": boardUrl,
|
|
|
+ "url": desktopUrl,
|
|
|
"playsinline": false,
|
|
|
- "volume": 1,
|
|
|
+ "volume": 0,
|
|
|
"autoplay": true,
|
|
|
"width": "100%",
|
|
|
"height": "714",
|
|
|
- "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'volume'],
|
|
|
+ "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'time'],
|
|
|
"closeVideoClick": true,
|
|
|
"closeVideoTouch": true,
|
|
|
"keyShortcut": "off",
|
|
|
"cssFullscreen": true
|
|
|
});
|
|
|
- $('#smallVideo').hide();
|
|
|
+ // $('#smallVideo').hide();
|
|
|
// $('#smallVideo').click(function () {
|
|
|
// $('#bigVideo').removeClass('big-video').addClass('small-video');
|
|
|
// $('#smallVideo').removeClass('small-video').addClass('big-video');
|
|
@@ -73,20 +84,19 @@ $(document).ready(function() {
|
|
|
// smallVideo.muted = true;
|
|
|
// bigVideo.muted = false;
|
|
|
// })
|
|
|
- console.log(smallVideo)
|
|
|
- $('input:radio').click(function () {
|
|
|
- // console.log($(this).val())
|
|
|
- const type = $(this).val();
|
|
|
- if (type == 'desktopUrl') {
|
|
|
- $('#bigVideo').show();
|
|
|
- $('#smallVideo').hide();
|
|
|
- } else {
|
|
|
- $('#bigVideo').hide();
|
|
|
- $('#smallVideo').show();
|
|
|
- }
|
|
|
- // player.flvOpts.url = 'http://aldirect.flv.huya.com/huyalive/94525224-2460686034-10568566041753944064-2789274542-10057-A-0-1.flv?wsSecret=a90ccc2ccf9420344d388def9c190893&wsTime=5ced08e1&ratio=500'
|
|
|
- // console.log(player.config.url)
|
|
|
- })
|
|
|
+ // $('input:radio').click(function () {
|
|
|
+ // // console.log($(this).val())
|
|
|
+ // const type = $(this).val();
|
|
|
+ // if (type == 'desktopUrl') {
|
|
|
+ // $('#bigVideo').show();
|
|
|
+ // $('#smallVideo').hide();
|
|
|
+ // } else {
|
|
|
+ // $('#bigVideo').hide();
|
|
|
+ // $('#smallVideo').show();
|
|
|
+ // }
|
|
|
+ // // player.flvOpts.url = 'http://aldirect.flv.huya.com/huyalive/94525224-2460686034-10568566041753944064-2789274542-10057-A-0-1.flv?wsSecret=a90ccc2ccf9420344d388def9c190893&wsTime=5ced08e1&ratio=500'
|
|
|
+ // // console.log(player.config.url)
|
|
|
+ // })
|
|
|
// 判断用户是否存在回调
|
|
|
function shareJoin () {
|
|
|
setTimeout(function () {
|