下载地址:https://github.com/EasyDarwin/EasyPlayer.js?tab=readme-ov-file
代码比较简单:
<script src="/scripts/EasyPlayer/EasyPlayer-pro.js"></script> <div class="demo_play" name="demo_play"></div> <script> var config = { //isLive: true, //是否直播 stretch: true, //视频拉伸 loadingText: '图像加载中', hasAudio: true, //是否解析音频 //poster: '', //视频封面图片 //bufferTime: 1, //加载显设置最小缓冲时长,单位:秒,播放器会自动消除延迟 debug: false } var playerInfo = new EasyPlayerPro($('[name="demo_play"]')[0], config); playerInfo.play('播放地址'); </script>
屏蔽控制面板:
playerInfo.config.operateBtns.aiFace = false; playerInfo.config.operateBtns.aiObject = false; playerInfo.config.operateBtns.audio = true; playerInfo.config.operateBtns.fullscreen = true; playerInfo.config.operateBtns.performance = false; playerInfo.config.operateBtns.play = false; playerInfo.config.operateBtns.quality = false; playerInfo.config.operateBtns.record = false; playerInfo.config.operateBtns.screenshot = false; playerInfo.config.operateBtns.stretch = false; playerInfo.config.operateBtns.zoom = false;
标签:h.265,h.264,false,true,config,playerInfo,js,EasyPlayer,operateBtns From: https://www.cnblogs.com/OleRookie/p/18471532