The data obtained by the StreamDataListener is most likely unable to be decoded due to a high probability of missing I-frames.
【Solution】
1.While decoding the video frames using the videoDecoder, you can simultaneously obtain the video stream data through the StreamDataListener.
Currently, there is no interface available for actively requesting I-frames. However, the videoDecoder will automatically request I-frames during the decoding process to ensure successful decoding of the frames. Therefore, by using the addStreamDataListener to obtain the data and simultaneously using the videoDecoder, you can resolve any issues related to the failure of decoding without I-frames.
2. you can use the KeyManager.getInstance().performAction(KeyTools.createKey(AirLinkKey.KeyM300RTKRequestIFrame), 0 OR 1,callback) to request an I-frame. The reason for the options 0 or 1 is that different aircraft may use different parameters.
Comments
0 comments
Please sign in to leave a comment.