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-2020 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 |
60 | |