DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
webm_muxer.h
1 // Copyright 2015 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #ifndef MEDIA_FORMATS_WEBM_WEBM_MUXER_H_
8 #define MEDIA_FORMATS_WEBM_WEBM_MUXER_H_
9 
10 #include "packager/media/base/muxer.h"
11 
12 namespace shaka {
13 namespace media {
14 namespace webm {
15 
16 class Segmenter;
17 
19 class WebMMuxer : public Muxer {
20  public:
22  explicit WebMMuxer(const MuxerOptions& options);
23  ~WebMMuxer() override;
24 
25  private:
26  // Muxer implementation overrides.
27  Status InitializeMuxer() override;
28  Status Finalize() override;
29  Status DoAddSample(std::shared_ptr<MediaSample> sample) override;
30 
31  void FireOnMediaStartEvent();
32  void FireOnMediaEndEvent();
33 
34  std::unique_ptr<Segmenter> segmenter_;
35 
36  DISALLOW_COPY_AND_ASSIGN(WebMMuxer);
37 };
38 
39 } // namespace webm
40 } // namespace media
41 } // namespace shaka
42 
43 #endif // MEDIA_FORMATS_WEBM_WEBM_MUXER_H_
This structure contains the list of configuration options for Muxer.
Definition: muxer_options.h:18
Implements WebM Muxer.
Definition: webm_muxer.h:19
WebMMuxer(const MuxerOptions &options)
Create a WebMMuxer object from MuxerOptions.
Definition: webm_muxer.cc:21