DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs 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 edash_packager {
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 Initialize() override;
28  Status Finalize() override;
29  Status DoAddSample(const MediaStream* stream,
30  scoped_refptr<MediaSample> sample) override;
31 
32  void FireOnMediaStartEvent();
33  void FireOnMediaEndEvent();
34 
35  scoped_ptr<Segmenter> segmenter_;
36 
37  DISALLOW_COPY_AND_ASSIGN(WebMMuxer);
38 };
39 
40 } // namespace webm
41 } // namespace media
42 } // namespace edash_packager
43 
44 #endif // MEDIA_FORMATS_WEBM_WEBM_MUXER_H_
WebMMuxer(const MuxerOptions &options)
Create a WebMMuxer object from MuxerOptions.
Definition: webm_muxer.cc:22
This structure contains the list of configuration options for Muxer.
Definition: muxer_options.h:18