You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
* * @param {Array.<id: string, url: string, media: Object>} streamingOutList -The list of streaming-outs.
860
+
* * @param {Array.<id: string, protocol: string, url: string, parameters: Object, media: Object>} streamingOutList -The list of streaming-outs.
861
861
* * @param {Object} streamingOutList[x].media -The media description of the streaming-out, which must follow the definition of object "MediaSubOptions" in section "3.3.11 Participant Starts a Subscription" in "Client-Portal Protocol.md" doc.
* * @param {string} streamingOutInfo.url -The URL of the target streaming-out.
892
+
* * @param {string} streamingOutInfo.parameters -The connection parameters of the target streaming-out.
891
893
* * @param {Object} streamingOutInfo.media -The media description of the streaming-out, which must follow the definition of object "MediaSubOptions" in section "3.3.11 Participant Starts a Subscription" in "Client-Portal Protocol.md" doc.
892
894
*/
893
895
/**
894
896
* @function startStreamingOut
895
897
* @desc This function starts a streaming-out to the specified room.
* @param {string} url -The URL of the target streaming-out.
902
+
* @param {Object} parameters -The connection parameters of the target streaming-out.
903
+
* @param {string} parameters.method -The HTTP(s) method to create file on streaming servers, 'PUT' or 'POST, 'PUT' by default.
904
+
* @param {string} parameters.hlsTime -The hls segment length in seconds, 2 by default, required in case protocol is 'hls'.
905
+
* @param {string} parameters.hlsListSize -The maximum number of playlist entries, 5 by default, required in case protocol is 'hls'.
906
+
* @param {string} parameters.dashSegDuration -The segment length in seconds, 2 by default, required in case protocol is 'dash'.
907
+
* @param {string} parameters.dashWindowSize -The maximum number of segments kept in the manifest, 5 by default, required in case protocol is 'dash'.
899
908
* @param {Object} media -The media description of the streaming-out, which must follow the definition of object "MediaSubOptions" in section "3.3.11 Participant Starts a Subscription" in "Client-Portal Protocol.md" doc.
900
909
* @param {onStartingStreamingOutOK} callback -Callback function on success
901
910
* @param {function} callbackError -Callback function on error
902
911
* @example
903
912
var roomId = '51c10d86909ad1f939000001';
904
-
var url = 'rtmp://USER:PASS@localhost:1935/live';
913
+
var protocol = 'hls'
914
+
var url = 'https://USER:PASS@localhost:443/live.m3u8';
0 commit comments