Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

video-player插件封装组件,如何根据后端返回的URL地址动态更新播放地址

页面和需求
image.png
从后端返回的地址后缀判断如果为视频就播放,现在使用的是video-player插件,问题:每一次刷新页面第一次永远都是加载不出来视频,子组件也没有收到父组件传过去的url,但是播放下一个视频是可以的,然后再返回上一个视频就可以了。
我的代码:
父组件:image.png
image.png

image.png

子组件:image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...