Reference of FileChannel

Description of FileChannel

PTTClient PTTChannel Group FileChannel

FileChannel Class

nametypeattributesdescription
IDintreadonlyFileChannel instance ID
channelIDintreadonlyChannel ID
fileSizelong64readonlyFile size
fileNamestringFile name
filePathstringFile path
channelTypeintreadonlyChannel type (1:Sender, 2:Receiver)
encryptedbooleanreadonlyIs a encrypted channel
ownerIDstringreadonlyChannel Owner ID
ownerNamestringreadonlyChannel Owner Name
Methods
Events

Methods

createChannel

int createChannel(string ChannelAttributesJson)
ChannelAttributesJsonFileChannelAttributesJson
ReturnRequest Sequence ID. If less then 0, ErrorCode.
Expected EventsonFileChannelCreated()
DescriptionCreate a file channel
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet
< FileChannelAttributesJson >
fieldtypeDescriptionDefaultCRUD
FileIDintid for file. unique key is not required.M
FileNamestringfile nameM
FilePathstringfile location without file nameM

startStream

int startStream()
Return0:Call Success, 0<ErrorCode
Expected EventsonFileChannelStreamStarted()
DescriptionStart video stream
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

stopStream

int stopStream()
Return0:Call Success, 0<ErrorCode
Expected EventsonFileChannelStreamStopped()
DescriptionStop video stream
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

Events

onFileChannelError

void onFileChannelError(FileChannel ChannelInstance, int ErrorCode, string ErrorMesssage)
ChannelInstanceFileChannel instance of event
ErrorCodeError code. see Main 7
ErrorMesssageError message
DescriptionErrer event
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

onFileChannelResult

void onFileChannelResult(FileChannel ChannelInstance, int Seq, int ResultCode, string ResultMesssage)
ChannelInstanceFileChannel instance of event
SeqRequested Sequence ID
ResultCodeError code. see Main 8
ResultMesssageError message
DescriptionResult event for request
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

onFileChannelCreated

void onFileChannelCreated(FileChannel ChannelInstance, int ChannelID)
ChannelInstanceFileChannel instance of event
ChannelID Created FileChannel's ID
DescriptionFile Channel is created
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

onFileChannelStreamStarted

void onFileChannelStreamStarted(FileChannel ChannelInstance)
ChannelInstanceFileChannel instance of event
DescriptionFile stream is started.
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

onFileChannelStreamStopped

void onFileChannelStreamStopped(FileChannel ChannelInstance)
ChannelInstanceFileChannel instance of event
DescriptionFile stream is stopped.
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

onFileChannelTrackDataCaptured

void onFileChannelTrackDataCaptured(FileChannel ChannelInstance, byte[] TrackDataBuffer, long64 DataLength)
ChannelInstanceFileChannel instance of event
TrackDataBufferBuffer of data.
DataLengthData size
DescriptionTrack data is captured from device.
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet

onFileChannelTrackDataReceived

void onFileChannelTrackDataReceived(FileChannel ChannelInstance, byte[] TrackDataBuffer, long64 DataLength)
ChannelInstanceFileChannel instance of event
TrackDataBufferBuffer of data.
DataLengthData size
DescriptionTrack data is received from server.
Android SDK4.0.0
iOS SDK4.0.0
Windows SDK4.0.0
Linux SDKNot supported yet