DASH Media Packaging SDK
|
Public Member Functions | |
EncryptionHandler (const EncryptionOptions &encryption_options, KeySource *key_source) | |
Public Member Functions inherited from shaka::media::MediaHandler | |
Status | SetHandler (int output_stream_index, std::shared_ptr< MediaHandler > handler) |
Connect downstream handler at the specified output stream index. | |
Status | AddHandler (std::shared_ptr< MediaHandler > handler) |
Connect downstream handler to the next availble output stream index. | |
Status | Initialize () |
Protected Member Functions | |
MediaHandler implementation overrides. | |
Status | InitializeInternal () override |
Status | Process (std::unique_ptr< StreamData > stream_data) override |
Protected Member Functions inherited from shaka::media::MediaHandler | |
virtual Status | FlushStream (int input_stream_index) |
Flush the stream at the specified input stream index. | |
virtual bool | ValidateOutputStreamIndex (int stream_index) const |
Validate if the stream at the specified index actually exists. | |
bool | initialized () |
int | num_input_streams () |
Status | Dispatch (std::unique_ptr< StreamData > stream_data) |
Status | DispatchPeriodInfo (int stream_index, std::unique_ptr< PeriodInfo > period_info) |
Dispatch the period info to downstream handlers. | |
Status | DispatchStreamInfo (int stream_index, std::unique_ptr< StreamInfo > stream_info) |
Dispatch the stream info to downstream handlers. | |
Status | DispatchEncryptionConfig (int stream_index, std::unique_ptr< EncryptionConfig > encryption_config) |
Dispatch the encryption config to downstream handlers. | |
Status | DispatchMediaSample (int stream_index, std::unique_ptr< MediaSample > media_sample) |
Dispatch the media sample to downstream handlers. | |
Status | DispatchMediaEvent (int stream_index, std::unique_ptr< MediaEvent > media_event) |
Dispatch the media event to downstream handlers. | |
Status | DispatchSegmentInfo (int stream_index, std::unique_ptr< SegmentInfo > segment_info) |
Dispatch the segment info to downstream handlers. | |
int | num_input_streams () const |
int | next_output_stream_index () const |
Friends | |
class | EncryptionHandlerTest |
Definition at line 47 of file encryption_handler.h.
|
overrideprotectedvirtual |
Internal implementation of initialize. Note that it should only initialize the MediaHandler itself. Downstream handlers are handled in Initialize().
Implements shaka::media::MediaHandler.
Definition at line 92 of file encryption_handler.cc.
|
overrideprotectedvirtual |
Process the incoming stream data. Note that (1) stream_data.stream_index should be the input stream index; (2) The implementation needs to call DispatchXxx to dispatch the processed stream data to the downstream handlers after finishing processing if needed.
Implements shaka::media::MediaHandler.
Definition at line 100 of file encryption_handler.cc.