Suggestions

close search

StringeeVideo

Represents a stringee video conference.

Constructor

StringeeVideo(clientId : string)

clientId: Id of StringeeClient.

Functions

connect(roomToken: string, callback: (status, code, message, data))

Connect room.
- roomToken: Your room's token.
- callback: The result
    + status = true, code = 0, message = "Success"
    + status = false, code = -1, message = "StringeeClient is not initialized or connected".
    + status = false, code = -2, message = "Generic error".
    + data:
        + data.room: The StringeeRoom.
        + data.videoTracks: List of video tracks available in room.
        + data.users: List of users available in room.

createLocalVideoTrack(options: StringeeVideoTrackOption, callback: (status, code, message, videoTrack))

Create local video track.
- options: options for create the video track.
- callback: The result
    + status = true, code = 0, message = "Success"
    + status = false, code = -1, message = "StringeeClient is not initialized or connected".
    + status = false, code = -2, message = "Generic error".     + videoTrack: Your local video track.

createCaptureScreenTrack(callback: (status, code, message, videoTrack))

Create capture screen video track.
- callback: The result:
    + status = true, code = 0, message = "Register successfully."
    + status = false, code = -1, message = "StringeeClient is not initialized or connected".
    + status = false, code = -2, message = "Generic error".     + videoTrack: Your capture screen video track.

release(room: StringeeRoom, callback: (status, code, message))

Release all your track in room.
- room: The room that your are in.
- callback: The result:
    + status = true, code = 0, message = "Register successfully."
    + status = false, code = -1, message = "StringeeClient is not initialized or connected".
    + status = false, code = -2, message = "Generic error".