Skip to content

Instantly share code, notes, and snippets.

@kpnemo
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save kpnemo/2c39c0aab72a2ee880c4 to your computer and use it in GitHub Desktop.

Select an option

Save kpnemo/2c39c0aab72a2ee880c4 to your computer and use it in GitHub Desktop.
Showbox iOS recorder app EVENTS
Note: Every event have in data the roomId: data{room: %roomId%}
Event Server: roomCreated, data: {room: %roomId%}
Event Server: clientConnected, data: {accessToken: %accessToken%, primary: %true%} (primary only in case if mobile device connected)
Event Web: startPreviewStream, data: {streamId: %streamId%, streamUrl: %streamUrl%}
Event Web: stopPreviewStream, data: {streamId: %streamId%}
Event Web: startRecord, data: {streamId: %streamId%, streamUrl: %streamUrl%, fileId: %fileId%}
Event Web: stopRecord, data: {fileId: %fileId%}
Event Web: abordRecord, data: {fileId: %fileId%}
Event Web: cameraSwitch, data: {camera: %back | front%}
Event Web: togglerFlash, data: {flash: %on | off%} (?optional)
Event Web: showMessage, data: {title: %title%, body: %body%}
Event Mobile: deviceConnected, data: {deviceId: %deviceId%, deviceType: %mobile%}
Event Mobile: previewStreamStarted, data: {streamUrl: %streamUrl, %streamId: %streamId%}
Event Mobile: recordStarted, data: {streamId: %streamId%, fileId: %fileId%}
Event Mobile: uploadInProgress, data: {streamId: %streamId%, fileId: %fileId%}
Event Mobile: uploadDone, data: {fileId: %fileId%, asset: %api Response%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment