扫码关注官方订阅号
我看网上的代码是:<video><source src="" type=""/></video>当不确定是不是视频的时候 jwplayer 可以这样写 jwplayer("").setup({src:''}) 然后就有视频了。 video.js有没有类似的方法。 想要知道 video.js有没有类似的方法。
认证0级讲师
videojs("video_box",{}).ready(function(){ var myPlayer = this; myPlayer.src("http://www.example.com/path/to/video.mp4"); myPlayer.play();
});
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
认证0级讲师