libbambuser
0.9.26
|
#import <libbambuserplayer.h>
Instance Methods | |
(void) | - videoLoadFail |
(void) | - playbackStarted |
(void) | - playbackPaused |
(void) | - playbackStopped |
(void) | - playbackStatusChanged: |
(void) | - playbackCompleted |
(void) | - durationKnown: |
(void) | - currentViewerCountUpdated: |
(void) | - totalViewerCountUpdated: |
The delegate of a BambuserPlayer must adopt the BambuserPlayerDelegate protocol. Optional methods of the protocol allow the delegate to receive signals about the state of playback.
|
optional |
|
optional |
|
optional |
|
optional |
This method will be called when playback of a broadcast is paused.
An archived broadcast or a live broadcast in timeshift mode can be paused by a call to pauseVideo (BambuserPlayer). An archived broadcast where playback has finished is also considered paused, the same if the parent application is sent to background. Live broadcasts can not be paused.
|
optional |
This method will be called when playback of a broadcast starts.
|
optional |
This method will be called when BambuserPlayer.status changes
The initial state before playVideo: (BambuserPlayer) has been called.
Metadata for the broadcast is loading. Playback has not started yet.
Playback has started or continued after kBambuserPlayerStatePaused or kBambuserPlayerStateBuffering
Playback has been paused. This can be done for archived broadcasts or live broadcasts in timeshift mode by a call to pauseVideo (BambuserPlayer). An archived broadcast where playback has finished is also considered paused, the same if the parent application is sent to background. Live broadcasts can not be paused.
Playback has been stopped. A broadcast is stopped either by a call to stopVideo (BambuserPlayer), a live broadcast has finished or due to an error. A live broadcast is also stopped if the parent application is sent to background. After this status has been entered the BambuserPlayer is in a state where it no longer can be used. To start playback again create a new instance of BambuserPlayer.
BambuserPlayer needs to buffer more data to start or continue playback. When enough data has been buffered and playback continues status changes to kBambuserPlayerStatePlaying.
Playback has failed, check BambuserPlayer.error for reason. After this status has been entered the BambuserPlayer is in a state where it no longer can be used. To start playback again create a new instance of BambuserPlayer.
|
optional |
This method will be called when playback of a broadcast is stopped.
A broadcast is stopped either by a call to stopVideo (BambuserPlayer), a live broadcast has finished or due to an error. A live broadcast is also stopped if the parent application is sent to background. After this method has been called the BambuserPlayer is in a state where it no longer can be used. To start playback again create a new instance of BambuserPlayer.
|
optional |
Called when the total number of viewers is updated.
viewers | Total number of viewers of the broadcast. This accumulates over time and is generally a nice number to show for an old broadcast. The counted viewers are not guaranteed to be unique, but there are measures in place to exclude obvious duplicates, eg. replays from a viewer. |
|
optional |
This method will be called when loading of broadcast metadata fails.