VideoCanvas
Attributes of the video canvas object.
struct VideoCanvas { view_t view; uid_t uid; VIDEO_SOURCE_TYPE sourceType; int mediaPlayerId; VideoCanvas() : view(NULL), uid(0), sourceType(VIDEO_SOURCE_CAMERA_PRIMARY), mediaPlayerId(-ERR_NOT_READY) {} VideoCanvas(view_t v, uid_t u) : view(v), uid(u), sourceType(VIDEO_SOURCE_CAMERA_PRIMARY), mediaPlayerId(-ERR_NOT_READY) VideoCanvas(view_t v, user_id_t) : view(v), uid(0), sourceType(VIDEO_SOURCE_CAMERA_PRIMARY), mediaPlayerId(-ERR_NOT_READY) {} };
- view
- The video image. You need to define a pointer of UImage type and pass in this parameter. The sample code is as follows:
- uid
- The user ID.
- sourceType
- The type of the video source. See VIDEO_SOURCE_TYPE.
- mediaPlayerId
- The ID of the media player. You can get the Device ID by calling getMediaPlayerId.