live
liveMedia
MP3AudioMatroskaFileServerMediaSubsession.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
// A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
19
// on demand, from an MP3 audio track within a Matroska file.
20
// (Actually, MPEG-1 or MPEG-2 audio should also work.)
21
// C++ header
22
23
#ifndef _MP3_AUDIO_MATROSKA_FILE_SERVER_MEDIA_SUBSESSION_HH
24
#define _MP3_AUDIO_MATROSKA_FILE_SERVER_MEDIA_SUBSESSION_HH
25
26
#ifndef _MP3_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
27
#include "
MP3AudioFileServerMediaSubsession.hh
"
28
#endif
29
#ifndef _MATROSKA_FILE_SERVER_DEMUX_HH
30
#include "
MatroskaFileServerDemux.hh
"
31
#endif
32
33
class
MP3AudioMatroskaFileServerMediaSubsession
:
public
MP3AudioFileServerMediaSubsession
{
34
public
:
35
static
MP3AudioMatroskaFileServerMediaSubsession
*
36
createNew
(
MatroskaFileServerDemux
& demux,
MatroskaTrack
* track,
37
Boolean
generateADUs =
False
,
Interleaving
* interleaving =
NULL
);
38
// Note: "interleaving" is used only if "generateADUs" is True,
39
// (and a value of NULL means 'no interleaving')
40
41
private
:
42
MP3AudioMatroskaFileServerMediaSubsession
(
MatroskaFileServerDemux
& demux,
MatroskaTrack
* track,
43
Boolean
generateADUs,
Interleaving
* interleaving);
44
// called only by createNew();
45
virtual
~MP3AudioMatroskaFileServerMediaSubsession
();
46
47
private
:
// redefined virtual functions
48
virtual
void
seekStreamSource
(
FramedSource
* inputSource,
double
& seekNPT,
double
streamDuration, u_int64_t& numBytes);
49
virtual
FramedSource
*
createNewStreamSource
(
unsigned
clientSessionId,
50
unsigned
& estBitrate);
51
52
private
:
53
MatroskaFileServerDemux
&
fOurDemux
;
54
unsigned
fTrackNumber
;
55
};
56
57
#endif
False
const Boolean False
Definition:
Boolean.hh:28
Boolean
unsigned char Boolean
Definition:
Boolean.hh:25
MP3AudioFileServerMediaSubsession.hh
MatroskaFileServerDemux.hh
NULL
#define NULL
Definition:
UsageEnvironment.hh:41
FramedSource
Definition:
FramedSource.hh:31
Interleaving
Definition:
MP3ADUinterleaving.hh:30
MP3AudioFileServerMediaSubsession
Definition:
MP3AudioFileServerMediaSubsession.hh:36
MP3AudioMatroskaFileServerMediaSubsession
Definition:
MP3AudioMatroskaFileServerMediaSubsession.hh:33
MP3AudioMatroskaFileServerMediaSubsession::fTrackNumber
unsigned fTrackNumber
Definition:
MP3AudioMatroskaFileServerMediaSubsession.hh:54
MP3AudioMatroskaFileServerMediaSubsession::createNewStreamSource
virtual FramedSource * createNewStreamSource(unsigned clientSessionId, unsigned &estBitrate)
MP3AudioMatroskaFileServerMediaSubsession::createNew
static MP3AudioMatroskaFileServerMediaSubsession * createNew(MatroskaFileServerDemux &demux, MatroskaTrack *track, Boolean generateADUs=False, Interleaving *interleaving=NULL)
MP3AudioMatroskaFileServerMediaSubsession::MP3AudioMatroskaFileServerMediaSubsession
MP3AudioMatroskaFileServerMediaSubsession(MatroskaFileServerDemux &demux, MatroskaTrack *track, Boolean generateADUs, Interleaving *interleaving)
MP3AudioMatroskaFileServerMediaSubsession::fOurDemux
MatroskaFileServerDemux & fOurDemux
Definition:
MP3AudioMatroskaFileServerMediaSubsession.hh:53
MP3AudioMatroskaFileServerMediaSubsession::seekStreamSource
virtual void seekStreamSource(FramedSource *inputSource, double &seekNPT, double streamDuration, u_int64_t &numBytes)
MP3AudioMatroskaFileServerMediaSubsession::~MP3AudioMatroskaFileServerMediaSubsession
virtual ~MP3AudioMatroskaFileServerMediaSubsession()
MatroskaFileServerDemux
Definition:
MatroskaFileServerDemux.hh:32
MatroskaTrack
Definition:
MatroskaFile.hh:141
Generated on Tue Jun 25 2024 22:52:35 for live by
1.9.5