Ocean
Loading...
Searching...
No Matches
LiveMedium.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_MEDIA_LIVE_MEDIUM_H
9#define META_OCEAN_MEDIA_LIVE_MEDIUM_H
10
11#include "ocean/media/Media.h"
12#include "ocean/media/Medium.h"
14
15namespace Ocean
16{
17
18namespace Media
19{
20
21// Forward declaration.
22class LiveMedium;
23
24/**
25 * Definition of a smart medium reference holding a live medium object.
26 * @see SmartMediumRef, LiveMedium.
27 * @ingroup media
28 */
30
31/**
32 * This class it the base class for all live mediums.
33 * @ingroup media
34 */
35class OCEAN_MEDIA_EXPORT LiveMedium :
36 public virtual Medium,
37 public virtual ConfigMedium
38{
39 protected:
40
41 /**
42 * Creates a new live medium by a given url.
43 */
44 explicit LiveMedium(const std::string& url);
45};
46
47}
48
49}
50
51#endif // META_OCEAN_MEDIA_LIVE_MEDIUM_H
ConfigMedium(const std::string &url)
Creates a new ConfigMedium object by a given url.
This class it the base class for all live mediums.
Definition LiveMedium.h:38
LiveMedium(const std::string &url)
Creates a new live medium by a given url.
Medium(const Medium &medium)=delete
Disabled copy constructor.
const std::string & url() const
Returns the url of the medium.
Definition Medium.h:236
This class implements a smart medium reference.
Definition MediumRef.h:33
SmartMediumRef< LiveMedium > LiveMediumRef
Definition of a smart medium reference holding a live medium object.
Definition LiveMedium.h:29
Namespace of the Media library.
Definition AAudio.h:26
The namespace covering the entire Ocean framework.
Definition Accessor.h:15