2.6.7 IBMDStreamingH264InputCallback Interface¶
The IBMDStreamingH264InputCallback
interface is a callback class which is called when encoded video and audio packets are available or when the video input to the streaming device changes.
Once a capture has been started with the IBMDStreamingDeviceInput::StartCapture()
method, compressed video and audio packets will become available asynchronously.
This callback interface can also be used to detect changes to the video input display mode and changes to the video input connector, whether or not a capture is in progress.
Interface |
Interface ID |
Description |
---|---|---|
IID_IBMDStreamingH264NALPacket |
An |
|
IID_IBMDStreamingAudioPacket |
An |
|
IID_IBMDStreamingMPEG2TSPacket |
An |
2.6.7.1 IBMDStreamingH264InputCallback::H264NALPacketArrived method¶
-
HRESULT IBMDStreamingH264InputCallback::H264NALPacketArrived(IBMDStreamingH264NALPacket *nalPacket);¶
The H264NALPacketArrived method is called when an
IBMDStreamingH264NALPacket
becomes available from the streaming device while a capture is in progress.This method is abstract in the base interface and must be implemented by the application developer. The result parameter (required by COM) is ignored by the caller.
- Parameters:
nalPacket – NAL packet containing compressed video.
2.6.7.2 IBMDStreamingH264InputCallback::H264AudioPacketArrived method¶
-
HRESULT IBMDStreamingH264InputCallback::H264AudioPacketArrived(IBMDStreamingAudioPacket *audioPacket);¶
The H264AudioPacketArrived method is called when an
IBMDStreamingAudioPacket
becomes available from the streaming device while a capture is in progress.This method is abstract in the base interface and must be implemented by the application developer. The result parameter (required by COM) is ignored by the caller.
- Parameters:
audioPacket – Audio packet containing compressed audio.
2.6.7.3 IBMDStreamingH264InputCallback::MPEG2TSPacketArrived method¶
-
HRESULT IBMDStreamingH264InputCallback::MPEG2TSPacketArrived(IBMDStreamingMPEG2TSPacket *tsPacket);¶
The MPEG2TSPacketArrived method is called when an
IBMDStreamingMPEG2TSPacket
becomes available from the streaming device while a capture is in progress.This method is abstract in the base interface and must be implemented by the application developer. The result parameter (required by COM) is ignored by the caller.
- Parameters:
tsPacket – MPEG transport stream packet containing video or audio data.
2.6.7.4 IBMDStreamingH264InputCallback::H264VideoInputConnectorScanningChanged method¶
-
HRESULT IBMDStreamingH264InputCallback::H264VideoInputConnectorScanningChanged();¶
The H264VideoInputConnectorScanningChanged method is called when the input connect scanning mode has changed.
This method will be called independently of capture state.
This method is abstract in the base interface and must be implemented by the application developer. The result parameter (required by COM) is ignored by the caller.
2.6.7.5 IBMDStreamingH264InputCallback::H264VideoInputConnectorChanged method¶
-
HRESULT IBMDStreamingH264InputCallback::H264VideoInputConnectorChanged();¶
The H264VideoInputConnectorChanged method is called when the streaming device detects a change to the input connector.
This method will be called independently of capture state.
This method is abstract in the base interface and must be implemented by the application developer. The result parameter (required by COM) is ignored by the caller.
2.6.7.6 IBMDStreamingH264InputCallback::H264VideoInputModeChanged method¶
-
HRESULT IBMDStreamingH264InputCallback::H264VideoInputModeChanged();¶
The H264VideoInputModeChanged method is called when the streaming device detects a change to the video input display mode.
This method will be called independently of capture state.
This method is abstract in the base interface and must be implemented by the application developer. The result parameter (required by COM) is ignored by the caller.