Reference of IVideoShareManager

Description of IVideoShareManager. It is to support an external video device. One of examples is external UVC camera.

Methods
Events

Methods

isVSMInitialized

int isVSMInitialized()
Return1: initialized, 0< uninitialized
DescriptionCheck initialization
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

setVSMEventHandler

int setVSMEventHandler(IVideoShareManager event)
eventIVideoShareManager callback
Return0:Success, 0<ErrorCode
Descriptionset IVideoShareManager event callback
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

getVSMType

int getVSMType()
Return10 : capturer(Video), 11 : capturer(Video+Audio), 20 : player(Video), 21 : player(Video+Audio)
Expected Events
Descriptionget video share manager's type
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

getVSMAudioFormat

int getVSMAudioFormat()
Return0:PCM
Expected Events
Descriptionget audio's format
Android SDKNot used
iOS SDKNot supported yet
Windows SDKNot used
Linux SDKNot supported yet

getVSMAudioSampleRate

int getVSMAudioSampleRate()
ReturnHz
Expected Events
Descriptionget audio's samplerate
Android SDKNot used
iOS SDKNot supported yet
Windows SDKNot used
Linux SDKNot supported yet

getVSMAudioChannelCount

int getVSMAudioChannelCount()
Returncount
Expected Events
Descriptionget audio's channel count
Android SDKNot used
iOS SDKNot supported yet
Windows SDKNot used
Linux SDKNot supported yet

getVSMAudioBitsPerSample

int getVSMAudioBitsPerSample()
Return16
Expected Events
Descriptionget audio's sample size
Android SDKNot used
iOS SDKNot supported yet
Windows SDKNot used
Linux SDKNot supported yet

getVSMVideoFormat

int getVSMVideoFormat()
Return1:RAW(RGB565)
Expected Events
Descriptionget video's format
Android SDKNot used
iOS SDKNot supported yet
Windows SDKNot used
Linux SDKNot supported yet

getVSMVideoWidth

int getVSMVideoWidth()
Returnpixels
Expected Events
Descriptionget video's width resolution
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

getVSMVideoHeight

int getVSMVideoHeight()
Returnpixels
Expected Events
Descriptionget video's height resolution
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

getVSMVideoFPS

int getVSMVideoFPS()
Returncount
Expected Events
Descriptionget video's frame rate
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

startVSM

int startVSM()
Return0:Success, 0<ErrorCode
Expected Events
DescriptionStart VideoShareManager
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

writeVSMAudio

int writeVSMAudio( byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp)
TrackDataBufferBuffer of data
DataLengthReceived data length
TimeStampStream time
Return0:Success, 0<ErrorCode
Expected Events
DescriptionWrite audio to device.
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

writeVSMVideo

int writeVSMVideo( byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp)
TrackDataBufferReceived data
DataLengthReceived data length
TimeStampStream time
Return0:Success, 0<ErrorCode
Expected Events
DescriptionWrite video to device.
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

stopVSM

int stopVSM()
Return0:Success, 0<ErrorCode
Expected Events
DescriptionStop VideoShareManager
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

Events

onVSMError

onVSMError(int ErrorCode)
ErrorCodeError code
DescriptionErrer event
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

onReadVSMAudio

void onReadVSMAudio(byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp )
TrackDataBufferBuffer of data
DataLengthData size
TimeStampStream time
DescriptionCaptured External Audio Data
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet

onReadVSMVideo

void onReadVSMVideo(byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp )
TrackDataBufferBuffer of data
DataLengthData size
TimeStampStream time
DescriptionCaptured External Video Data
Android SDK2.1.1
iOS SDKNot supported yet
Windows SDK2.1.1
Linux SDKNot supported yet