An Client End Point Application developed using Android Toolkit can’t initiate HTML5 Canvas Streaming. However, it can receive Canvas Streaming initiated by other Client End Point Application developed using Web Toolkit that runs on Web Browsers.
When a user starts or stops HTML5 Canvas Streaming, all connected users of the room are notified with canvasStarted
and canvasStopped
. As its a Stream, you can play it using a Video Player. Note that Canvas Stream is carried on Stream ID# 102. Client End Point must subscribe to this Stream ID to receive and play it locally.
Observers:
canvasStarted
– To know that Canvas Streaming has startedcanvasStopped
– To know that Canvas Streaming has stopped
// You are notified that Canvas Streaming has started canvasStarted : event=>{ /* event = { clientId : "xxx", name : "XXX", result : 0, streamId : 102 } */ // Handle UI to play Canvas Streaming } // You are notified that Canvas Streaming has stopped canvasStopped: event=>{ /* event = { clientId : "xxx", name : "XXX", result : 0, streamId : 102 } */ // Handle UI to stop playing Canvas Streaming }