#[repr(C)]pub struct OH_AVCodecAsyncCallback {
pub onError: OH_AVCodecOnError,
pub onStreamChanged: OH_AVCodecOnStreamChanged,
pub onNeedInputData: OH_AVCodecOnNeedInputData,
pub onNeedOutputData: OH_AVCodecOnNewOutputData,
}👎Deprecated since 11
Expand description
A collection of all asynchronous callback function pointers in OH_AVCodec. Register an instance of this structure to the OH_AVCodec instance, and process the information reported through the callback to ensure the normal operation of OH_AVCodec.
Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
§Arguments
-
onError- Monitor OH_AVCodec operation errors, refer toOH_AVCodecOnError -
onStreamChanged- Monitor codec stream information, refer toOH_AVCodecOnStreamChanged -
onNeedInputData- Monitoring codec requires input data, refer toOH_AVCodecOnNeedInputData -
onNeedOutputData- Monitor codec to generate output data, refer toOH_AVCodecOnNewOutputData
Deprecated since 11 OH_AVCodecCallback
Available since API-level: 9
Fields§
§onError: OH_AVCodecOnError👎Deprecated since 11
§onStreamChanged: OH_AVCodecOnStreamChanged👎Deprecated since 11
§onNeedInputData: OH_AVCodecOnNeedInputData👎Deprecated since 11
§onNeedOutputData: OH_AVCodecOnNewOutputData👎Deprecated since 11
Trait Implementations§
Source§impl Clone for OH_AVCodecAsyncCallback
impl Clone for OH_AVCodecAsyncCallback
Source§fn clone(&self) -> OH_AVCodecAsyncCallback
fn clone(&self) -> OH_AVCodecAsyncCallback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OH_AVCodecAsyncCallback
impl Debug for OH_AVCodecAsyncCallback
impl Copy for OH_AVCodecAsyncCallback
Auto Trait Implementations§
impl Freeze for OH_AVCodecAsyncCallback
impl RefUnwindSafe for OH_AVCodecAsyncCallback
impl Send for OH_AVCodecAsyncCallback
impl Sync for OH_AVCodecAsyncCallback
impl Unpin for OH_AVCodecAsyncCallback
impl UnsafeUnpin for OH_AVCodecAsyncCallback
impl UnwindSafe for OH_AVCodecAsyncCallback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more