-
Notifications
You must be signed in to change notification settings - Fork 7
JavaScript API
Sergey Radionov edited this page Jun 13, 2018
·
4 revisions
var wc = require("wcjs-gs"); var player = new wc.JsPlayer();
States:
GST_STATE_VOID_PENDING
GST_STATE_NULL
GST_STATE_READY
GST_STATE_PAUSED
GST_STATE_PLAYING
AppSinkSetup
AppSinkNewPreroll
AppSinkNewSample
AppSinkEos
- for
AppSinkSetup
=function(AppSinkSetup, pixelFormatName, width, height, pixelFormat)
- for
AppSinkNewPreroll
,AppSinkNewSample
=function(eventType, frame)
- for
AppSinkEos
=function(AppSinkEos)
parseLaunch(pipelineDescription)
addAppSinkCallback(appSinkName, appSinkCallback)
setState(state)
Read only properties:
pixelFormatName
pixelFormat
width
height
-
planes
: returnsArray
of planes offsets.