Any control items in this view are either moved off-screen, or manually hidden by setting alpha to zero when not needed. One subview is the controls static view, controlsStaticView. The controls container view contains two immediate subviews to organize its content. This view can be used to present any other overlays over the video and controls. In front of the controls container view is the overlay view, overlayView. This view holds all of the control views, whether or not they are interactive. In front of the video content container is the controls container view, controlsContainerView. This view contains the AVPlayerLayer that displays the actual video. Each of its important subviews is referenced as a property inside the TV Player view.Īt the top level, there is the video content container view, contentContainerView. The TV Player view class BCOVTVPlayerView is a UIView subclass that creates a hierarchy of subviews when instantiated. You can re-use the TV Player view by creating new playback controllers and assigning them to the TV Player view's playbackController property at any time. = playbackController Īssigning the playbackController links the playback controller to the TV Player view. The TV player view is a subclass of UIView that contains both the video player layer where the video is displayed, and the controls overlays. The following Objective-C code shows how to set up and use the TV Player controls in your own tvOS app.ġ - In your view controller, add a property to hold a reference to the TV Player view. The SDK framework for tvOS can be found alongside the iOS framework in the Brightcove Player SDK repository. In addition to this reference, it's important to read the documentation for all the methods in each of the TV Player's header files, located in the SDK framework for tvOS. Controls and gestures are similar to those found in the AVKit interface so they will be familiar to current Apple TV users. TV Player controls are manipulated through gestures and button presses on the Apple Siri Remote. The TV Player provides playback controls for both regular video content, and video content with Brightcove Server-Side Ad Insertion (SSAI) enabled. The Brightcove Native Player SDK provides a full set of controls for playback in tvOS on Apple TV known as the TV Player. Using the TV Player UI With The Brightcove Player SDK for tvOS, version 6.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |