문제

I use Ooyala video player in my project, and I need to have my own video control, so I need a way to hind its built-in video control, I found that the OOOoyalaPlayerViewController has method showControls, but the control appears when you tap the video, so is there a way to explicitly hide the controls? I've tried subclassing OOOoyalaPlayerViewController and overwrite showControls to do nothing but it did not work.

Thanks!

도움이 되었습니까?

해결책

If you are creating custom controls, you probably want to use an OOOoyalaPlayer directly versus going through the OOOoyalaPlayerViewController- all the viewcontroller does is add controls on top of the player.

If you must use an OOOoyalaPlayerViewController, try subclassing OOControlsViewController and overwriting - (void)onTap:(UITapGestureRecognizer *)sender. The source for this is bundled with our SDK.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top