tt.vue中使用video-player组件
用到的目录如下:
pages.json
javascript
{
"path": "pages/Tabbar/tt/tt",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
// 使用自定义组件
"usingComponents": {
"video-player-dy": "/ttcomponents/videoPlayer/index"
}
}
}
tt.vue
javascript
<video-player-dy v-if="isShow" :albumId="albumId" :episodeId="episodeId"
style="width: 200px;height: 200px;"></video-player-dy>
index.json
javascript
{
"component": true,
"usingComponents": {
"video-player":"ext://industry/video-player"
}
}
index.ttml
javascript
<video-player bind:error="onError" album-id="{{albumId}}" episode-id="{{episodeId}}" cloud-type="{{1}}" version="1" />
index.js
javascript
Component({
methods: {
},
});