BCOVGoogleCastManagerDelegate Protocol Reference

Conforms to NSObject
Declared in BCOVGoogleCastManager.h

Overview

Conform to this protocol to receive information about the state the Google Cast session

  playbackController required method

@property (nonatomic, strong, readonly) id<BCOVPlaybackController> _Nullable playbackController

– switchedToLocalPlayback:withError:

This method is called when a cast session ends

- (void)switchedToLocalPlayback:(NSTimeInterval)lastKnownStreamPosition withError:(nullable NSError *)error

Parameters

lastKnownStreamPosition

An NSTimeInterval value of the last known stream position

error

If we received an error from the Google Cast SDK, it will be passed through here

Discussion

You can use this to show/hide UI elements, or trigger other events, once a cast session ends

Declared In

BCOVGoogleCastManager.h

– switchedToRemotePlayback

This method is called when a cast session starts

- (void)switchedToRemotePlayback

Discussion

You can use this to show/hide UI elements, or trigger other events, once a cast session begins.

Declared In

BCOVGoogleCastManager.h

– currentCastedVideoDidComplete

This method is called when a casted video has finished playing.

- (void)currentCastedVideoDidComplete

Discussion

You can use this to show/hide UI elements, or trigger other events, once a casted video has completed playback

Declared In

BCOVGoogleCastManager.h

– castedVideoFailedToPlay

This method is called when a casted video fails to play.

- (void)castedVideoFailedToPlay

Discussion

You can use this to show/hide UI elements, or trigger other events, once a casted video fails to play

Declared In

BCOVGoogleCastManager.h

– suitableSourceNotFound

This method is called when a suitable source is not found.

- (void)suitableSourceNotFound

Discussion

The BCOVGoogleCastManager will look for HTTPS version of HLS v3, then check for DASH, and finally an MP4 source. If no HTTPS versions are found it will then check for HTTP versions of the same source types. If no HTTP versions are found this method will be called.

Declared In

BCOVGoogleCastManager.h