Skip to main content
StreamPixelApplication is the SDK entry point. It accepts a settings object and returns the core streaming instance plus helper utilities.

Signature

Parameters

The settings object accepts the following properties:

Return value

Returns an object with five properties:
Returns null if the project’s URL validation fails (when the current origin is not in the project’s allowed URLs list). Returns {} if called more than once (singleton guard).

Singleton behavior

StreamPixelApplication can only be initialized once per page. Calling it a second time logs a warning and returns an empty object ({}). Reload the page to reinitialize.

URL validation

The SDK checks window.location.origin against the project’s validPathUrl list configured in the dashboard. If the origin doesn’t match, null is returned. localhost is always allowed for development.

Next steps

Configuration options

Detailed reference for every settings field, organized by category.

pixelStreaming API

Methods and events on the returned pixelStreaming instance.