道路事件视频静音播放
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user