Package io.antmedia.websocket
Class WebSocketConstants
java.lang.Object
io.antmedia.websocket.WebSocketConstants
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
This is sent back to the user when a new play message received while it is playing or it is just to playstatic final String
This is sent back to the user when a new publish message received while there it's publishing or it's just to publishstatic final String
It's sent for conference in Audio Only MCU modestatic final String
Command to inform AMS if a stream is pinned in conference modestatic final String
P2P Mode used in session user parametersstatic final String
P2P Mode used in session user parametersstatic final String
static final String
static final String
static final String
audio field that defines if there is audiostatic final String
Field to specify the stream audio bitratestatic final String
static final String
Notification to send measured bitratestatic final String
This is sent back to the user when subscriber is blocked to play or publishstatic final String
broadcast object constantstatic final String
broadcast object notificationstatic final String
static final String
static final String
static final String
static final String
This command used for P2P connections with multipeers to connect new peers to generated new connections with desired idstatic final String
static final String
Error definition.static final String
Generated debug info in conferencestatic final String
static final String
This command used for multitrack stream to play or pause a tranckstatic final String
static final String
Error definition, it's send when video encoder is blockedstatic final String
Error definition, it's send when video encoder is not openedstatic final String
static final String
static final String
Command that stream set resolution request.static final String
Command to get broadcast objectstatic final String
Command to get debug info in conferencestatic final String
Command that let server returns information about a specific room.static final String
Command that let server returns information about a specific stream.static final String
Command to get subtrack infos for a main trackstatic final String
Command to get subtrack count for a main trackstatic final String
This command used to get subtracks for a stream idstatic final String
Command to get video track assignmentsstatic final String
Error definition it is send when cpu usage exceeds the limitstatic final String
It's the field that maps sdp mid to stream idstatic final String
Information field in websocket communicationstatic final String
Error definition it is send when stream name contains special charactersstatic final String
static final String
static final String
static final String
This is peer to peer connection notification.static final String
This is p2p connection command Peer send it to leave the roomstatic final String
this is for leaving from room in 1-N and N-N connectionstatic final String
This is peer to peer connection notification ıt is sent back to the suser when it is leaved from the streamstatic final String
static final String
It's sent for conference in legacy modestatic final String
It's sent when license is suspendedstatic final String
static final String
It's sent to determine mainTrackId if existsstatic final String
This is the error definition that is sent when mainTrack cannot be created or updated in publishing process.static final String
This is sent back to the user if mainTrackstatic final String
maximum number of tracksstatic final String
It's sent for conference in MCU modestatic final String
It can be used to add some meta data to a broadcaststatic final String
static final String
It's sent as parameter conference modestatic final String
It's sent for conference in MCU modestatic final String
This is sent back to the user when there is no codec enabled in the server and someone try to make a publishstatic final String
This is the error definition that is sent when the stream does not get video or audio packet for the timeout duration.static final String
This is peer to peer connection error definition.static final String
This is sent back to the user when there is no room specified in joining the video conferencestatic final String
static final String
Error definition it is send when stream id is not specified in the messagestatic final String
This is sent back to the user if publisher wants to send a stream with an unregistered id and server is configured not to allow this kind of streamsstatic final String
This is sent back to the user when context is not initialized yetstatic final String
Error definition it is send when local description is not set successfullystatic final String
Error definition, it's send when remote description is not set, it's generally due to encoder incompatibilitiesstatic final String
static final String
Start index of a list for paginationstatic final String
P2P Mode bothstatic final String
P2P Mode playstatic final String
This command used for message and data transfer between peersstatic final String
static final String
static final String
static final String
static final String
Push Notificaiton Service Registration Tokenstatic final String
Push Notificaiton Service type, it can fcm or apn FCM: Firebase Cloud Messaging APN: Apple Notification Servicestatic final String
static final String
static final String
static final String
static final String
Error definition, it's send when publishing has not started and timeoutstatic final String
Push Notification Contentstatic final String
Topic field to send push notificationstatic final String
static final String
static final String
static final String
static final String
Command that client stream change resolution notication.static final String
Participant role in the roomstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Notification field used when returning room informationstatic final String
This is error definition and it's sent when one requests to get room information and there is no active stream or no roomstatic final String
This is sent back to the user when there is no room specified in joining the video conferencestatic final String
static final String
static final String
It's sent when community handler does not start streamingstatic final String
static final String
It's sent for the restored webrtc publish sessionsstatic final String
Command to set max video track count in conferencestatic final String
Length of a page for paginationstatic final String
static final String
This command used for P2P connections with multipeers to start new connection with desired idstatic final String
status field in websocket communicationstatic final String
static final String
Field to specify the stream heightstatic final String
static final String
Error definition it is send when publisher tries to publish with in use stream idstatic final String
Field in messaging to specify the stream infostatic final String
Notification field used when returning stream informationstatic final String
Stream Name list in the roomstatic final String
static final String
This is sent back to the user when stream plannedStartDate and plannedEndDate values are in interval or not.static final String
Field to specify the stream widthstatic final String
Stream Id list in the roomstatic final String
this subscriber code is used to access resources or start broadcast when time based subscriber security is enabledstatic final String
this subscriber id is used to access resources or start broadcast when time based subscriber security is enabledstatic final String
Subscriber id list to send push notificationstatic final String
subtrack (broadcast) object count notificationstatic final String
subtrack (broadcast) object liststatic final String
subtrack (broadcast) object list notificationstatic final String
Success field in websocket communication.static final String
static final String
static final String
Field to specify the measured bitrate for a WebRTCClientstatic final String
static final String
static final String
this token is used to access resources or start broadcast when token security is enabledstatic final String
static final String
This command used to send subtracks for a stream idstatic final String
static final String
This is sent back to the user if token is not validstatic final String
Command to update the meta data for a broadcaststatic final String
Command to change visible streams in conference mode, used for paginationstatic final String
This is passed in play websocket method to define the publisher stream id (if available) which uses same websocket channel with player For example in conference case a participant use same websocket to publish its stream and to play the othersstatic final String
video field that defines if there is videostatic final String
Field to specify the stream video bitratestatic final String
Field to specify the stream video codecstatic final String
Track id that is pinned for a streamstatic final String
Free text info for the viewerstatic final String
Error definition it is send when viewer limit reached -
Constructor Summary
-
Method Summary
-
Field Details
-
ATTR_STREAM_NAME
- See Also:
-
ATTR_ROOM_NAME
- See Also:
-
NOTIFICATION_COMMAND
- See Also:
-
PING_COMMAND
- See Also:
-
PONG_COMMAND
- See Also:
-
COMMAND
- See Also:
-
ATTR_SIGNALLING_CONNECTION
- See Also:
-
STREAM_ID
- See Also:
-
STREAM_NAME
- See Also:
-
DEFINITION
- See Also:
-
CANDIDATE_LABEL
- See Also:
-
SDP
- See Also:
-
TYPE
- See Also:
-
PLAY_FINISHED
- See Also:
-
PLAY_STARTED
- See Also:
-
CANDIDATE_ID
- See Also:
-
TOGGLE_AUDIO_COMMAND
- See Also:
-
TOGGLE_VIDEO_COMMAND
- See Also:
-
CANDIDATE_SDP
- See Also:
-
TAKE_CONFIGURATION_COMMAND
- See Also:
-
TAKE_CANDIDATE_COMMAND
- See Also:
-
ERROR_COMMAND
- See Also:
-
PLAY_COMMAND
- See Also:
-
STOP_COMMAND
- See Also:
-
START_COMMAND
- See Also:
-
PUBLISH_COMMAND
- See Also:
-
PUBLISH_STARTED
- See Also:
-
PUBLISH_FINISHED
- See Also:
-
ERROR_CODE
- See Also:
-
LINK_SESSION
- See Also:
-
REGISTER_ORIGIN_SERVER
- See Also:
-
REGISTER_EDGE_SERVER
- See Also:
-
REGISTER_BROADCAST
- See Also:
-
NO_STREAM_EXIST
- See Also:
-
JOIN_ROOM_COMMAND
- See Also:
-
ROOM
Deprecated, for removal: This API element is subject to removal in a future version.Please useMAIN_TRACK
instead- See Also:
-
JOIN_COMMAND
- See Also:
-
SERVER_WILL_STOP
- See Also:
-
TRACK_ID
- See Also:
-
ENABLED
- See Also:
-
LEAVE_THE_ROOM
this is for leaving from room in 1-N and N-N connection- See Also:
-
JOINED_THE_ROOM
- See Also:
-
LEAVED_THE_ROOM
- See Also:
-
ROOM_NOT_ACTIVE
This is error definition and it's sent when one requests to get room information and there is no active stream or no room- See Also:
-
TOKEN
this token is used to access resources or start broadcast when token security is enabled- See Also:
-
SUBSCRIBER_ID
this subscriber id is used to access resources or start broadcast when time based subscriber security is enabled- See Also:
-
SUBSCRIBER_CODE
this subscriber code is used to access resources or start broadcast when time based subscriber security is enabled- See Also:
-
NO_PEER_ASSOCIATED
This is peer to peer connection error definition. It is sent back to the user when there is no peer associated with the stream- See Also:
-
JOINED_THE_STREAM
This is peer to peer connection notification. It is sent back to the user when it is joined to a stream- See Also:
-
LEAVE_COMMAND
This is p2p connection command Peer send it to leave the room- See Also:
-
LEAVED_STREAM
This is peer to peer connection notification ıt is sent back to the suser when it is leaved from the stream- See Also:
-
NOT_ALLOWED_UNREGISTERED_STREAM
This is sent back to the user if publisher wants to send a stream with an unregistered id and server is configured not to allow this kind of streams- See Also:
-
MAX_SUBTRACK_COUNT_REACHED
This is sent back to the user if mainTrack- See Also:
-
NO_ROOM_SPECIFIED
This is sent back to the user when there is no room specified in joining the video conference- See Also:
-
NOT_INITIALIZED_YET
This is sent back to the user when context is not initialized yet- See Also:
-
ROOM_TIME_INVALID
This is sent back to the user when there is no room specified in joining the video conference- See Also:
-
STREAM_TIME_INVALID
This is sent back to the user when stream plannedStartDate and plannedEndDate values are in interval or not.- See Also:
-
UNAUTHORIZED
This is sent back to the user if token is not valid- See Also:
-
BLOCKED
This is sent back to the user when subscriber is blocked to play or publish- See Also:
-
ALREADY_PLAYING
This is sent back to the user when a new play message received while it is playing or it is just to play- See Also:
-
ALREADY_PUBLISHING
This is sent back to the user when a new publish message received while there it's publishing or it's just to publish- See Also:
-
NO_CODEC_ENABLED_IN_THE_SERVER
This is sent back to the user when there is no codec enabled in the server and someone try to make a publish- See Also:
-
GET_STREAM_INFO_COMMAND
Command that let server returns information about a specific stream. This info includes height, bitrates, etc.- See Also:
-
FORCE_STREAM_QUALITY
Command that stream set resolution request.- See Also:
-
RESOLUTION_CHANGE_INFO_COMMAND
Command that client stream change resolution notication.- See Also:
-
GET_ROOM_INFO_COMMAND
Command that let server returns information about a specific room. This info includes stream ID's list in room.- See Also:
-
STREAM_INFORMATION_NOTIFICATION
Notification field used when returning stream information- See Also:
-
ROOM_INFORMATION_NOTIFICATION
Notification field used when returning room information- See Also:
-
STREAM_INFO
Field in messaging to specify the stream info- See Also:
-
STREAM_WIDTH
Field to specify the stream width- See Also:
-
STREAM_HEIGHT
Field to specify the stream height- See Also:
-
VIDEO_BITRATE
Field to specify the stream video bitrate- See Also:
-
AUDIO_BITRATE
Field to specify the stream audio bitrate- See Also:
-
TARGET_BITRATE
Field to specify the measured bitrate for a WebRTCClient- See Also:
-
VIDEO_CODEC
Field to specify the stream video codec- See Also:
-
VIDEO
video field that defines if there is video- See Also:
-
AUDIO
audio field that defines if there is audio- See Also:
-
STREAMS_IN_ROOM
Stream Id list in the room- See Also:
-
STREAM_LIST_IN_ROOM
Stream Name list in the room- See Also:
-
NO_STREAM_ID_SPECIFIED
Error definition it is send when stream id is not specified in the message- See Also:
-
NOT_SET_LOCAL_DESCRIPTION
Error definition it is send when local description is not set successfully- See Also:
-
STREAM_ID_IN_USE
Error definition it is send when publisher tries to publish with in use stream id- See Also:
-
HIGH_RESOURCE_USAGE
Error definition it is send when cpu usage exceeds the limit- See Also:
-
VIEWER_LIMIT_REACHED
Error definition it is send when viewer limit reached- See Also:
-
INVALID_STREAM_NAME
Error definition it is send when stream name contains special characters- See Also:
-
ENCODER_NOT_OPENED
Error definition, it's send when video encoder is not opened- See Also:
-
ENCODER_BLOCKED
Error definition, it's send when video encoder is blocked- See Also:
-
PUBLISH_TIMEOUT_ERROR
Error definition, it's send when publishing has not started and timeout- See Also:
-
NOT_SET_REMOTE_DESCRIPTION
Error definition, it's send when remote description is not set, it's generally due to encoder incompatibilities- See Also:
-
ATTR_P2P_MULTIPEER
P2P Mode used in session user parameters- See Also:
-
ATTR_P2P_MODE
P2P Mode used in session user parameters- See Also:
-
P2P_MODE_PLAY
P2P Mode play- See Also:
-
P2P_MODE_BOTH
P2P Mode both- See Also:
-
CONNECT_WITH_NEW_ID_COMMAND
This command used for P2P connections with multipeers to connect new peers to generated new connections with desired id- See Also:
-
START_NEW_P2P_CONNECTION_COMMAND
This command used for P2P connections with multipeers to start new connection with desired id- See Also:
-
PEER_MESSAGE_COMMAND
This command used for message and data transfer between peers- See Also:
-
ENABLE_TRACK
This command used for multitrack stream to play or pause a tranck- See Also:
-
GET_TRACK_LIST
This command used to get subtracks for a stream id- See Also:
-
TRACK_LIST
This command used to send subtracks for a stream id- See Also:
-
BITRATE_MEASUREMENT
Notification to send measured bitrate- See Also:
-
DATA_STORE_NOT_AVAILABLE
Error definition. It's sent when data store is not available. It's not available if it's closed or not available;- See Also:
-
SERVER_ERROR_CHECK_LOGS
It's sent when community handler does not start streaming- See Also:
-
VIEWER_INFO
Free text info for the viewer- See Also:
-
LICENCE_SUSPENDED
It's sent when license is suspended- See Also:
-
MAIN_TRACK
It's sent to determine mainTrackId if exists- See Also:
-
MODE
It's sent as parameter conference mode- See Also:
-
MCU
It's sent for conference in MCU mode- See Also:
-
AMCU
It's sent for conference in Audio Only MCU mode- See Also:
-
MULTI_TRACK
It's sent for conference in MCU mode- See Also:
-
LEGACY
It's sent for conference in legacy mode- See Also:
-
SESSION_RESTORED_DESCRIPTION
It's sent for the restored webrtc publish sessions- See Also:
-
ID_MAPPING
It's the field that maps sdp mid to stream id- See Also:
-
META_DATA
It can be used to add some meta data to a broadcast- See Also:
-
UPDATE_STREAM_META_DATA_COMMAND
Command to update the meta data for a broadcast- See Also:
-
ASSIGN_VIDEO_TRACK_COMMAND
Command to inform AMS if a stream is pinned in conference mode- See Also:
-
UPDATE_VIDEO_TRACK_ASSIGNMENTS_COMMAND
Command to change visible streams in conference mode, used for pagination- See Also:
-
SET_MAX_VIDEO_TRACK_COUNT_COMMAND
Command to set max video track count in conference- See Also:
-
GET_DEBUG_INFO_COMMAND
Command to get debug info in conference- See Also:
-
DEBUG_INFO
Generated debug info in conference- See Also:
-
VIDEO_TRACK_ID
Track id that is pinned for a stream- See Also:
-
OFFSET
Start index of a list for pagination- See Also:
-
SIZE
Length of a page for pagination- See Also:
-
MAX_TRACK_COUNT
maximum number of tracks- See Also:
-
GET_BROADCAST_OBJECT_COMMAND
Command to get broadcast object- See Also:
-
GET_VIDEO_TRACK_ASSIGNMENTS_COMMAND
Command to get video track assignments- See Also:
-
BROADCAST_OBJECT_NOTIFICATION
broadcast object notification- See Also:
-
BROADCAST
broadcast object constant- See Also:
-
SEND_PUSH_NOTIFICATION_COMMAND
- See Also:
-
REGISTER_PUSH_NOTIFICATION_TOKEN_COMMAND
- See Also:
-
AUTH_TOKEN_NOT_VALID_ERROR_DEFINITION
- See Also:
-
PNS_REGISTRATION_TOKEN
Push Notificaiton Service Registration Token- See Also:
-
PNS_TYPE
Push Notificaiton Service type, it can fcm or apn FCM: Firebase Cloud Messaging APN: Apple Notification Service- See Also:
-
MISSING_PARAMETER_DEFINITION
- See Also:
-
INFORMATION
Information field in websocket communication- See Also:
-
SUCCESS
Success field in websocket communication. If it's value true, the operation is successful. If it's value is false, the operation is failed- See Also:
-
PUSH_NOTIFICATION_TOPIC
Topic field to send push notification- See Also:
-
SUBSCRIBER_ID_LIST_TO_NOTIFY
Subscriber id list to send push notification- See Also:
-
PUSH_NOTIFICATION_CONTENT
Push Notification Content- See Also:
-
ROLE
Participant role in the room- See Also:
-
GET_SUBTRACKS_COMMAND
Command to get subtrack infos for a main track- See Also:
-
GET_SUBTRACKS_COUNT_COMMAND
Command to get subtrack count for a main track- See Also:
-
SUBTRACK_LIST_NOTIFICATION
subtrack (broadcast) object list notification- See Also:
-
STATUS
status field in websocket communication- See Also:
-
COUNT
- See Also:
-
SUBTRACK_COUNT_NOTIFICATION
subtrack (broadcast) object count notification- See Also:
-
SUBTRACK_LIST
subtrack (broadcast) object list- See Also:
-
NO_PACKET_RECEIVED_FOR_TIMEOUT_DURATION
This is the error definition that is sent when the stream does not get video or audio packet for the timeout duration. Currently it's implemented for WebRTC ingest- See Also:
-
MAINTRACK_DB_OPERATION_FAILED
This is the error definition that is sent when mainTrack cannot be created or updated in publishing process.- See Also:
-
USER_PUBLISH_ID
This is passed in play websocket method to define the publisher stream id (if available) which uses same websocket channel with player For example in conference case a participant use same websocket to publish its stream and to play the others- See Also:
-
-
Constructor Details
-
WebSocketConstants
private WebSocketConstants()
-