我正在使用BrightCove Player在我的应用程序中流式传输视频,有没有办法在BrightCove播放器上自定义视频控件?
答案 0 :(得分:0)
是。您将需要实现自定义视图策略。以下示例改编自SDK README:
BCOVPlaybackControllerViewStrategy viewStrategy =
^(UIView *videoView, id<BCOVPlaybackController> playbackController) {
UIView *controlsView = [[UIView alloc] init];
UIView *controlsAndVideoView = [[UIView alloc] init];
[controlsAndVideoView addSubview:videoView];
[controlsAndVideoView addSubview:controlsView];
[playbackController addSessionConsumer:controlsView];
return controlsAndVideoView;
};