道路事件视频静音播放

This commit is contained in:
liujing
2020-11-04 14:26:16 +08:00
parent 278eda4d02
commit 8507b11d4c
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,6 @@ public class V2XRoadVideoWindow extends RelativeLayout implements
* 开始播放
*/
private void startPlayWithVideoUrl(String videoUrl) {
GSYVideoManager.instance().setNeedMute(true);
gsyVideoOptionBuilder.setUrl(videoUrl).setCacheWithPlay(false).setPlayTag(TAG)
.build(simpleCoverVideoPlayer);
simpleCoverVideoPlayer.getStartButton().performClick();

View File

@@ -50,6 +50,7 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
override fun getGSYVideoManager(): GSYVideoViewBridge {
GSYVideoManager.instance().initContext(context.applicationContext)
GSYVideoManager.instance().isNeedMute = true
return GSYVideoManager.instance()
}
@@ -77,6 +78,7 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
* 因为相应区域的关系 改为onClick方法实现
* */
override fun onClickUiToggle() {
// super.touchDoubleUp()
}
@@ -177,7 +179,6 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
}
override fun onCompletion() {
}
override fun onSurfaceUpdated(surface: Surface) {