live
MediaSource.hh
Go to the documentation of this file.
1/**********
2This library is free software; you can redistribute it and/or modify it under
3the terms of the GNU Lesser General Public License as published by the
4Free Software Foundation; either version 3 of the License, or (at your
5option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
6
7This library is distributed in the hope that it will be useful, but WITHOUT
8ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
10more details.
11
12You should have received a copy of the GNU Lesser General Public License
13along with this library; if not, write to the Free Software Foundation, Inc.,
1451 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15**********/
16// "liveMedia"
17// Copyright (c) 1996-2024 Live Networks, Inc. All rights reserved.
18// Media Sources
19// C++ header
20
21#ifndef _MEDIA_SOURCE_HH
22#define _MEDIA_SOURCE_HH
23
24#ifndef _MEDIA_HH
25#include "Media.hh"
26#endif
27
28class MediaSource: public Medium {
29public:
30 static Boolean lookupByName(UsageEnvironment& env, char const* sourceName,
31 MediaSource*& resultSource);
32 virtual void getAttributes() const;
33 // attributes are returned in "env's" 'result message'
34
35 // The MIME type of this source:
36 virtual char const* MIMEtype() const;
37
38 // Test for specific types of source:
39 virtual Boolean isFramedSource() const;
40 virtual Boolean isRTPSource() const;
46 virtual Boolean isJPEGVideoSource() const;
47 virtual Boolean isAMRAudioSource() const;
49
50protected:
51 MediaSource(UsageEnvironment& env); // abstract base class
52 virtual ~MediaSource();
53
54private:
55 // redefined virtual functions:
56 virtual Boolean isSource() const;
57};
58
59#endif
unsigned char Boolean
Definition: Boolean.hh:25
MediaSource(UsageEnvironment &env)
static Boolean lookupByName(UsageEnvironment &env, char const *sourceName, MediaSource *&resultSource)
virtual char const * MIMEtype() const
virtual Boolean isMPEG4VideoStreamFramer() const
virtual Boolean isMPEG1or2VideoStreamFramer() const
virtual void getAttributes() const
virtual Boolean isJPEGVideoSource() const
virtual Boolean isRTPSource() const
virtual Boolean isH265VideoStreamFramer() const
virtual Boolean isDVVideoStreamFramer() const
virtual Boolean isMPEG2TransportStreamMultiplexor() const
virtual Boolean isAMRAudioSource() const
virtual ~MediaSource()
virtual Boolean isSource() const
virtual Boolean isH264VideoStreamFramer() const
virtual Boolean isFramedSource() const
Definition: Media.hh:50