Reference of IVideoShareManager
Description of IVideoShareManager. It is to support an external video device. One of examples is external UVC camera.
Methods
isVSMInitialized
int isVSMInitialized() |
Return | 1: initialized, 0< uninitialized |
Description | Check initialization |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
setVSMEventHandler
int setVSMEventHandler(IVideoShareManager event) |
event | IVideoShareManager callback |
Return | 0:Success, 0<ErrorCode |
Description | set IVideoShareManager event callback |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getVSMType
int getVSMType() |
Return | 10 : capturer(Video), 11 : capturer(Video+Audio), 20 : player(Video), 21 : player(Video+Audio) |
Expected Events | |
Description | get video share manager's type |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
int getVSMAudioFormat() |
Return | 0:PCM |
Expected Events | |
Description | get audio's format |
Android SDK | Not used |
iOS SDK | Not supported yet |
Windows SDK | Not used |
Linux SDK | Not supported yet |
getVSMAudioSampleRate
int getVSMAudioSampleRate() |
Return | Hz |
Expected Events | |
Description | get audio's samplerate |
Android SDK | Not used |
iOS SDK | Not supported yet |
Windows SDK | Not used |
Linux SDK | Not supported yet |
getVSMAudioChannelCount
int getVSMAudioChannelCount() |
Return | count |
Expected Events | |
Description | get audio's channel count |
Android SDK | Not used |
iOS SDK | Not supported yet |
Windows SDK | Not used |
Linux SDK | Not supported yet |
getVSMAudioBitsPerSample
int getVSMAudioBitsPerSample() |
Return | 16 |
Expected Events | |
Description | get audio's sample size |
Android SDK | Not used |
iOS SDK | Not supported yet |
Windows SDK | Not used |
Linux SDK | Not supported yet |
int getVSMVideoFormat() |
Return | 1:RAW(RGB565) |
Expected Events | |
Description | get video's format |
Android SDK | Not used |
iOS SDK | Not supported yet |
Windows SDK | Not used |
Linux SDK | Not supported yet |
getVSMVideoWidth
int getVSMVideoWidth() |
Return | pixels |
Expected Events | |
Description | get video's width resolution |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getVSMVideoHeight
int getVSMVideoHeight() |
Return | pixels |
Expected Events | |
Description | get video's height resolution |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getVSMVideoFPS
int getVSMVideoFPS() |
Return | count |
Expected Events | |
Description | get video's frame rate |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
startVSM
int startVSM() |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Start VideoShareManager |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
writeVSMAudio
int writeVSMAudio( byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp) |
TrackDataBuffer | Buffer of data |
DataLength | Received data length |
TimeStamp | Stream time |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Write audio to device. |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
writeVSMVideo
int writeVSMVideo( byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp) |
TrackDataBuffer | Received data |
DataLength | Received data length |
TimeStamp | Stream time |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Write video to device. |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
stopVSM
int stopVSM() |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Stop VideoShareManager |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
Events
onVSMError
onVSMError(int ErrorCode) |
ErrorCode | Error code |
Description | Errer event |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onReadVSMAudio
void onReadVSMAudio(byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp ) |
TrackDataBuffer | Buffer of data |
DataLength | Data size |
TimeStamp | Stream time |
Description | Captured External Audio Data |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onReadVSMVideo
void onReadVSMVideo(byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp ) |
TrackDataBuffer | Buffer of data |
DataLength | Data size |
TimeStamp | Stream time |
Description | Captured External Video Data |
Android SDK | 2.1.1 |
iOS SDK | Not supported yet |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |