MediaPlayerReason enum

Reasons for the changes in the media player status.

Inheritance
Available extensions
Annotations
  • @JsonEnum(alwaysCreate: true)

Values

playerReasonNone → const MediaPlayerReason

0: No error.

playerReasonInvalidArguments → const MediaPlayerReason

-1: Invalid arguments.

playerReasonInternal → const MediaPlayerReason

-2: Internal error.

playerReasonNoResource → const MediaPlayerReason

-3: No resource.

playerReasonInvalidMediaSource → const MediaPlayerReason

-4: Invalid media resource.

playerReasonUnknownStreamType → const MediaPlayerReason

-5: The media stream type is unknown.

playerReasonObjNotInitialized → const MediaPlayerReason

-6: The object is not initialized.

playerReasonCodecNotSupported → const MediaPlayerReason

-7: The codec is not supported.

playerReasonVideoRenderFailed → const MediaPlayerReason

-8: Invalid renderer.

playerReasonInvalidState → const MediaPlayerReason

-9: An error with the internal state of the player occurs.

playerReasonUrlNotFound → const MediaPlayerReason

-10: The URL of the media resource cannot be found.

playerReasonInvalidConnectionState → const MediaPlayerReason

-11: Invalid connection between the player and the Agora Server.

playerReasonSrcBufferUnderflow → const MediaPlayerReason

-12: The playback buffer is insufficient.

playerReasonInterrupted → const MediaPlayerReason

-13: The playback is interrupted.

playerReasonNotSupported → const MediaPlayerReason

-14: The SDK does not support the method being called.

playerReasonTokenExpired → const MediaPlayerReason

-15: The authentication information of the media resource is expired.

playerReasonUnknown → const MediaPlayerReason

-17: An unknown error.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<MediaPlayerReason>
A constant List of the values in this enum, in order of their declaration.