报错信息
js部分
Page({
data:{
videoList:[],
},
onLoad(){
this.getVideoUrl()
},
//获取视频的地址
async getVideoUrl(){
const db = wx.cloud.database()
const videodb = db.collection("lecture_video")
const videoList =await videodb.field({
videoURL : true
}).get()
this.setData({videoList})
},
})
wxml
<view class="video-list">
<block wx:for="{{videoList.data}}" wx:key="_id">
<video src="{{item.videoURL}}"></video>
</block>
</view>
云存储视频
云数据库