处理直播列表
This commit is contained in:
parent
6420cdb6ff
commit
275b8a5758
@ -30,7 +30,9 @@ Page({
|
|||||||
getLivePlan(livePlanId) {
|
getLivePlan(livePlanId) {
|
||||||
var self = this;
|
var self = this;
|
||||||
app.restAjax.get(app.restAjax.path('{liveUrl}/app/liveplan/getliveplanbyidrelease/{livePlanId}', [self.data.liveUrl, livePlanId]), {}, null, function(code, data) {
|
app.restAjax.get(app.restAjax.path('{liveUrl}/app/liveplan/getliveplanbyidrelease/{livePlanId}', [self.data.liveUrl, livePlanId]), {}, null, function(code, data) {
|
||||||
self.data.liveDetail = data;
|
self.setData({
|
||||||
|
liveDetail: data
|
||||||
|
});
|
||||||
self.videoContext = wx.createLivePlayerContext('liveVideo');
|
self.videoContext = wx.createLivePlayerContext('liveVideo');
|
||||||
self.videoContext.play();
|
self.videoContext.play();
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<view class="broadcast">
|
<view class="broadcast">
|
||||||
<view class="page-section tc">
|
<!-- <view class="page-section tc">
|
||||||
<video id="myVideo" src="{{liveDetail.liveDeviceRtmpUrl}}" binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu show-center-play-btn='{{false}}' show-play-btn="{{true}}" controls autoplay="{{true}}" picture-in-picture-mode="{{['push', 'pop']}}" bindenterpictureinpicture='bindVideoEnterPictureInPicture' bindleavepictureinpicture='bindVideoLeavePictureInPicture'></video>
|
<video id="myVideo" src="{{liveDetail.liveDeviceRtmpUrl}}" binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu show-center-play-btn='{{false}}' show-play-btn="{{true}}" controls autoplay="{{true}}" picture-in-picture-mode="{{['push', 'pop']}}" bindenterpictureinpicture='bindVideoEnterPictureInPicture' bindleavepictureinpicture='bindVideoLeavePictureInPicture'></video>
|
||||||
</view>
|
</view> -->
|
||||||
|
<live-player id="liveVideo" src="{{liveDetail.liveDeviceRtmpUrl}}" mode="live" object-fit="contain" style="width: 100%; height: 400rpx;"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="broadcast-title">{{liveDetail.livePlanName}}</view>
|
<view class="broadcast-title">{{liveDetail.livePlanName}}</view>
|
||||||
<view class="broadcast-time">
|
<view class="broadcast-time">
|
||||||
|
@ -5,30 +5,30 @@
|
|||||||
},
|
},
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": false,
|
"urlCheck": false,
|
||||||
|
"scopeDataCheck": false,
|
||||||
|
"coverView": true,
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"enhance": false,
|
|
||||||
"postcss": true,
|
"postcss": true,
|
||||||
|
"compileHotReLoad": false,
|
||||||
"preloadBackgroundData": false,
|
"preloadBackgroundData": false,
|
||||||
"minified": true,
|
"minified": true,
|
||||||
"newFeature": true,
|
|
||||||
"coverView": true,
|
|
||||||
"nodeModules": false,
|
|
||||||
"autoAudits": false,
|
"autoAudits": false,
|
||||||
"showShadowRootInWxmlPanel": true,
|
"newFeature": true,
|
||||||
"scopeDataCheck": false,
|
|
||||||
"uglifyFileName": false,
|
"uglifyFileName": false,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"useIsolateContext": true,
|
||||||
|
"nodeModules": false,
|
||||||
|
"enhance": false,
|
||||||
|
"useCompilerModule": true,
|
||||||
|
"userConfirmedUseCompilerModuleSwitch": false,
|
||||||
|
"showShadowRootInWxmlPanel": true,
|
||||||
"checkInvalidKey": true,
|
"checkInvalidKey": true,
|
||||||
"checkSiteMap": true,
|
"checkSiteMap": true,
|
||||||
"uploadWithSourceMap": true,
|
|
||||||
"compileHotReLoad": false,
|
|
||||||
"babelSetting": {
|
"babelSetting": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
}
|
||||||
"useIsolateContext": true,
|
|
||||||
"useCompilerModule": true,
|
|
||||||
"userConfirmedUseCompilerModuleSwitch": false
|
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.11.1",
|
"libVersion": "2.11.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user