class DJIVideoFeeder
@interface DJIVideoFeeder : NSObject
|
Header: | DJIVideoFeeder.h |
Inherits From: | NSObject |
Description:
Class that manages live video feed from DJI products to the mobile device.
Class Members:
Primary Video Feed
property
Secondary Video Feed
property
method addVideoFeedSourceListener
- (void)addVideoFeedSourceListener:(id <DJIVideoFeedSourceListener>)sourceListener
|
Description:
Add listener to receive the physical source changes.
method removeVideoFeedSourceListener
- (void)removeVideoFeedSourceListener:(id <DJIVideoFeedSourceListener>)sourceListener
|
Description:
Remove listener to stop receiving the physical source changes.
Remove All Listener
method
method removeAllListeners
- (void)removeAllListeners
|
Description:
Remove all listeners.
Parse Decoding Assist Info
method
method parseDecodingAssistInfoWithBuffer:length:assistInfo
- (BOOL)parseDecodingAssistInfoWithBuffer:(uint8_t *)buffer length:(int)length assistInfo:(void *)assistInfo
|
Description:
Parses decoding assistant information for H.264 stream data. The information will be useful for the H.264 decoder.
uint8_t * buffer | H.264 stream data to parse. |
int length | The data's length. |
void * assistInfo | An allocated memory with at least 8 bytes to receive the assistant information. |
Return:
BOOL | YES if information is parsed successfully from the stream. |
Sync Decoder Status
method
method syncDecoderStatus
- (void)syncDecoderStatus:(BOOL)isNormal
|
Description:
Synchronizes the decoder status (if it is in normal status) to the video feeder. The decoder status is useful for the assistant information parser.
BOOL isNormal | YES if the decoder is in normal status. |
method decodingDidSucceedWithTimestamp
- (void)decodingDidSucceedWithTimestamp:(NSUInteger)timestamp
|
Description:
Tells the parser that the decoder has decoded a frame successfully.
NSUInteger timestamp | The timestamp of the decoded frame. |
method decodingDidFail
Description:
Tells the parser that the decoder has failed to decode frames from the video feed.