VKPlayerControllerDelegate Protocol Reference

Conforms to NSObject
Declared in VKPlayerControllerBase.h

Overview

Implement this delegate if you want to get notified about state changes with error codes of VKPlayerControllerBase

– player:didChangeState:errorCode:

Optional delegate method, add this method to your viewcontroller if you want to be notified about player state changes

- (void)player:(VKPlayerControllerBase *)player didChangeState:(VKDecoderState)state errorCode:(VKError)errCode

Parameters

player

The player object that owns the notification

state

Indicates the state in VKDecoderState type

errCode

Indicates the error code in VKError type, If success, returning error is kVKErrorNone

Declared In

VKPlayerControllerBase.h

– player:didStartRecordingWithPath:

Optional delegate method, add this method to your viewcontroller if you want to be notified about the start of recording functionality

- (void)player:(VKPlayerControllerBase *)player didStartRecordingWithPath:(NSString *)recordPath

Parameters

player

The player object that owns the notification

recordPath

Indicates the path of recorded file

Declared In

VKPlayerControllerBase.h

– player:didStopRecordingWithPath:error:

Optional delegate method, add this method to your viewcontroller if you want to be notified about the stop of recording functionality

- (void)player:(VKPlayerControllerBase *)player didStopRecordingWithPath:(NSString *)recordPath error:(VKErrorRecorder)error

Parameters

player

The player object that owns the notification

recordPath

Indicates the path of recorded file

error

Indicates the error in VKErrorRecorder type, If success, returning error is kVKErrorRecorderNone

Declared In

VKPlayerControllerBase.h

– player:didICYMetadataChanged:

Optional delegate method, add this method to your viewcontroller if you want to be notified about metadata information for http shoutcast/icy streams

- (void)player:(VKPlayerControllerBase *)player didICYMetadataChanged:(VKICYMetadata *)icyMetadata

Parameters

player

The player object that owns the notification

icyMetadata

Holds the metadata information as an instance of VKICYMetadata class

Declared In

VKPlayerControllerBase.h