if (videoList.length > 0) {
console.log('goloadvideo1', videoList)
const videoIdList = [];
const videos = await Promise.all(videoList.map((videoItem) => {
console.log(`video-${videoItem.id}`, 'https:' + videoItem.mediaUrl)
videoIdList.push(videoItem.id);
return scene.assets.loadAsset({
type: 'video-texture',
assetId: `video-${videoItem.id}`,
src: 'https:' + videoItem.mediaUrl,
options: { loop: true },
})
}))
console.log(videos)
c从真机调试上只能看到console.log('goloadvideo1', videoList)和console.log(`video-${videoItem.id}`, 'https:' + videoItem.mediaUrl),代码没有走到console.log(videos)这一步
解决了嘛,我这也是一样的问题