Skip to content

Latest commit

 

History

History
104 lines (64 loc) · 2.22 KB

api-page-template.md

File metadata and controls

104 lines (64 loc) · 2.22 KB

Methods Reference

Events Reference

Types Reference

start(settings, callback)

Version added: 0.78

Permissions required: FileSystem

Start a new stream.

Parameter Type Description
settings StreamSettings object The stream settings. See notes below
callback function A callback function which will be called with the status of the request

settings notes

an array of http headers (key,value) pairs, for example: [{ key: "Content-Type", value: "application/json" }].

Callback argument: Success

A callback function which will be called with the status of the request

{ "status": "success", "stream_id": 1 }

Callback argument: Failure

A callback function which will be called with the status of the request

{ "status": "error", "error": "something went wrong..." }

Usage Example

function(result) {
	if (result.status == "success")
    {
		console.debug(result.stream_id);
    }
}

onStreamingSourceImageChanged

Version added: 0.78

Fired when the stream started streaming a new image source (desktop, game).

Usage Example

Event Data Example: Success

StreamSettings Object

Version added: 0.78

Container for the stream settings.

Parameter Type Description
rate int The frame rate of this stream
quality int The quality of this stream

Object Data Example

overwolf.media.enums.eMediaType enum

Version added: 0.78

Media type for the Media Event.

Option Description
Video
Image