live
liveMedia
include
MediaSource.hh
Go to the documentation of this file.
1
/**********
2
This library is free software; you can redistribute it and/or modify it under
3
the terms of the GNU Lesser General Public License as published by the
4
Free Software Foundation; either version 3 of the License, or (at your
5
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
6
7
This library is distributed in the hope that it will be useful, but WITHOUT
8
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
10
more details.
11
12
You should have received a copy of the GNU Lesser General Public License
13
along with this library; if not, write to the Free Software Foundation, Inc.,
14
51 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
28
class
MediaSource
:
public
Medium
{
29
public
:
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
;
41
virtual
Boolean
isMPEG1or2VideoStreamFramer
()
const
;
42
virtual
Boolean
isMPEG4VideoStreamFramer
()
const
;
43
virtual
Boolean
isH264VideoStreamFramer
()
const
;
44
virtual
Boolean
isH265VideoStreamFramer
()
const
;
45
virtual
Boolean
isDVVideoStreamFramer
()
const
;
46
virtual
Boolean
isJPEGVideoSource
()
const
;
47
virtual
Boolean
isAMRAudioSource
()
const
;
48
virtual
Boolean
isMPEG2TransportStreamMultiplexor
()
const
;
49
50
protected
:
51
MediaSource
(
UsageEnvironment
& env);
// abstract base class
52
virtual
~MediaSource
();
53
54
private
:
55
// redefined virtual functions:
56
virtual
Boolean
isSource
()
const
;
57
};
58
59
#endif
Boolean
unsigned char Boolean
Definition:
Boolean.hh:25
Media.hh
MediaSource
Definition:
MediaSource.hh:28
MediaSource::MediaSource
MediaSource(UsageEnvironment &env)
MediaSource::lookupByName
static Boolean lookupByName(UsageEnvironment &env, char const *sourceName, MediaSource *&resultSource)
MediaSource::MIMEtype
virtual char const * MIMEtype() const
MediaSource::isMPEG4VideoStreamFramer
virtual Boolean isMPEG4VideoStreamFramer() const
MediaSource::isMPEG1or2VideoStreamFramer
virtual Boolean isMPEG1or2VideoStreamFramer() const
MediaSource::getAttributes
virtual void getAttributes() const
MediaSource::isJPEGVideoSource
virtual Boolean isJPEGVideoSource() const
MediaSource::isRTPSource
virtual Boolean isRTPSource() const
MediaSource::isH265VideoStreamFramer
virtual Boolean isH265VideoStreamFramer() const
MediaSource::isDVVideoStreamFramer
virtual Boolean isDVVideoStreamFramer() const
MediaSource::isMPEG2TransportStreamMultiplexor
virtual Boolean isMPEG2TransportStreamMultiplexor() const
MediaSource::isAMRAudioSource
virtual Boolean isAMRAudioSource() const
MediaSource::~MediaSource
virtual ~MediaSource()
MediaSource::isSource
virtual Boolean isSource() const
MediaSource::isH264VideoStreamFramer
virtual Boolean isH264VideoStreamFramer() const
MediaSource::isFramedSource
virtual Boolean isFramedSource() const
Medium
Definition:
Media.hh:50
UsageEnvironment
Definition:
UsageEnvironment.hh:53
Generated on Tue Jun 25 2024 22:52:35 for live by
1.9.5