BambuserBroadcaster, BambuserPlayer  1.0.5
Enumerations | Variables
libbambuserplayer-constants.h File Reference

Enumerations

enum  BambuserPlayerState {
  kBambuserPlayerStateStopped = 0, kBambuserPlayerStateLoading = 1, kBambuserPlayerStatePlaying = 2, kBambuserPlayerStatePaused = 3,
  kBambuserPlayerStateBuffering = 4, kBambuserPlayerStateError = 5, kBambuserPlayerStateIdle = 6
}
 
enum  BroadcastState { kBambuserBroadcastStateAny = 0, kBambuserBroadcastStateLive = 1, kBambuserBroadcastStateArchived = 2 }
 
enum  VideoScaleMode { VideoScaleAspectFit = 0, VideoScaleAspectFill = 1, VideoScaleToFill = 2 }
 
enum  BambuserPlayerError { BambuserPlayerErrorUnknowError = 0, BambuserPlayerErrorLoadingMetadata = 1, BambuserPlayerErrorPlaybackFailed = 2 }
 
enum  BambuserLatencyMode { BambuserPlayerLatencyModeLow = 0, BambuserPlayerLatencyModeHigh = 1 }
 

Variables

NSErrorDomain const BambuserPlayerErrorDomain
 

Enumeration Type Documentation

Latency mode for live playback

Enumerator
BambuserPlayerLatencyModeLow 

Low latency mode.

BambuserPlayerLatencyModeHigh 

High latency mode.

Error codes in BambuserPlayerErrorDomain

Enumerator
BambuserPlayerErrorUnknowError 

An Unkown error has occurred.

BambuserPlayerErrorLoadingMetadata 

Error loading broadcast metadata.

BambuserPlayerErrorPlaybackFailed 

Playback failed.

Possible values of BambuserPlayer.status.

Enumerator
kBambuserPlayerStateStopped 

Playback is stopped.

kBambuserPlayerStateLoading 

Playback of the stream has been requested but not yet started.

kBambuserPlayerStatePlaying 

Playback is in progress.

kBambuserPlayerStatePaused 

Playback is paused.

kBambuserPlayerStateBuffering 

Player is buffering.

kBambuserPlayerStateError 

Playback has failed.

kBambuserPlayerStateIdle 

Playback has not yet started.

Possible values for BambuserPlayer.requiredBroadcastState

Enumerator
kBambuserBroadcastStateAny 

Any broadcast state.

kBambuserBroadcastStateLive 

Only live broadcasts.

kBambuserBroadcastStateArchived 

Only archived broadcasts.

Possible values for BambuserPlayer.videoScaleMode

Enumerator
VideoScaleAspectFit 

Specifies that the player should preserve the video's aspect ratio and fit the video within the view's bounds.

VideoScaleAspectFill 

Specifies that the player should preserve the video's aspect ratio and fill the view's bounds.

VideoScaleToFill 

Specifies that the video should be stretched to fill the view's bounds.

Variable Documentation

NSErrorDomain const BambuserPlayerErrorDomain

Error domain for BambuserPlayerError in BambuserPlayer