Skip to content

Commit

Permalink
Merge branch 'master' into addReconnectionCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustafa BOLEKEN authored Oct 4, 2023
2 parents 7e8baf8 + 896c2bd commit 739648f
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/main/webapp/js/webrtc_adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,39 @@ export class WebRTCAdaptor {
this.webSocketAdaptor.send(JSON.stringify(jsCmd));
}

/**
* Called to get the list of video track assignments. AMS responds with the videoTrackAssignmentList message.
* Parameters:
* @param {string} streamId: unique id for the stream that you want to get info about
*/
requestVideoTrackAssignments(streamId) {
var jsCmd = {
command: "getVideoTrackAssignments",
streamId: streamId,
};
this.webSocketAdaptor.send(JSON.stringify(jsCmd));
}

/**
* Called to get the broadcast object for a specific stream. AMS responds with the broadcastObject callback.
* Parameters:
* @param {string} streamId: unique id for the stream that you want to get info about
*/
getBroadcastObject(streamId) {
var jsCmd = {
command: "getBroadcastObject",
streamId: streamId,
};
this.webSocketAdaptor.send(JSON.stringify(jsCmd));
}

/**
* Called to update the meta information for a specific stream.
* Parameters:
* @param {string} streamId: unique id for the stream that you want to update MetaData
* @param {string} metaData: new free text information for the stream
*/
upateStreamMetaData(streamId, metaData) {
updateStreamMetaData(streamId, metaData) {
var jsCmd = {
command: "updateStreamMetaData",
streamId: streamId,
Expand Down

0 comments on commit 739648f

Please sign in to comment.