SysAddEvent
Add event to stream.
Service | Operation |
---|---|
playbackStream | SYS_ADD_EVENT |
Method Parameters
Parameter | Description |
---|---|
profileId | The player adding an event. |
playbackStreamId | Identifies the stream to read. |
eventData | Describes the event. |
summary | Current summary data as of this event. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var profileId = "player";
var playbackStreamId = "stream";
var eventData = {
"value": 1
};
var summary = {
"total": 5
};
var playbackStreamProxy = bridge.getPlaybackStreamServiceProxy();
var postResult = playbackStreamProxy.sysAddEvent(profileId, playbackStreamId, eventData, summary);
{
"service":"playbackStream",
"operation":"SYS_ADD_EVENT",
"data":{
"profileId":"player",
"playbackStreamId":"stream",
"eventData":{
"value":1
},
"summary":{
"total":5
}
}
}
JSON Response
{
"status": 200,
"data": null
}