如何在BrightCove播放器上自定义视频播放控件

时间:2015-08-04 10:14:37

标签: ios brightcove

我正在使用BrightCove Player在我的应用程序中流式传输视频,有没有办法在BrightCove播放器上自定义视频控件?

1 个答案:

答案 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;
};