├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── rtsp
│ │ │ └── poe
│ │ │ └── rtsplive555
│ │ │ └── ExampleUnitTest.kt
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── rtsp
│ │ └── poe
│ │ └── rtsplive555
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
├── build.gradle
└── CMakeLists.txt
├── live555_rtsp_player
├── .gitignore
├── src
│ ├── main
│ │ ├── cpp
│ │ │ ├── live
│ │ │ │ ├── Makefile.head
│ │ │ │ ├── README
│ │ │ │ ├── UsageEnvironment
│ │ │ │ │ ├── Makefile.head
│ │ │ │ │ ├── include
│ │ │ │ │ │ ├── UsageEnvironment_version.hh
│ │ │ │ │ │ ├── Boolean.hh
│ │ │ │ │ │ └── strDup.hh
│ │ │ │ │ ├── Makefile.tail
│ │ │ │ │ ├── HashTable.cpp
│ │ │ │ │ └── strDup.cpp
│ │ │ │ ├── groupsock
│ │ │ │ │ ├── Makefile.head
│ │ │ │ │ ├── include
│ │ │ │ │ │ ├── groupsock_version.hh
│ │ │ │ │ │ └── IOHandlers.hh
│ │ │ │ │ ├── GroupEId.cpp
│ │ │ │ │ └── Makefile.tail
│ │ │ │ ├── liveMedia
│ │ │ │ │ ├── Makefile.head
│ │ │ │ │ ├── include
│ │ │ │ │ │ ├── liveMedia_version.hh
│ │ │ │ │ │ ├── OutputFile.hh
│ │ │ │ │ │ ├── FramedFileSource.hh
│ │ │ │ │ │ ├── QCELPAudioRTPSource.hh
│ │ │ │ │ │ ├── MP3Transcoder.hh
│ │ │ │ │ │ ├── TextRTPSink.hh
│ │ │ │ │ │ ├── VideoRTPSink.hh
│ │ │ │ │ │ ├── GSMAudioRTPSink.hh
│ │ │ │ │ │ ├── AudioRTPSink.hh
│ │ │ │ │ │ ├── AMRAudioFileSource.hh
│ │ │ │ │ │ ├── FileServerMediaSubsession.hh
│ │ │ │ │ │ ├── MP3ADURTPSource.hh
│ │ │ │ │ │ ├── H265VideoStreamFramer.hh
│ │ │ │ │ │ ├── H264VideoStreamFramer.hh
│ │ │ │ │ │ ├── Base64.hh
│ │ │ │ │ │ ├── H264or5VideoFileSink.hh
│ │ │ │ │ │ ├── AMRAudioSource.hh
│ │ │ │ │ │ ├── DVVideoRTPSource.hh
│ │ │ │ │ │ ├── FramedFilter.hh
│ │ │ │ │ │ ├── VP8VideoRTPSource.hh
│ │ │ │ │ │ ├── VP9VideoRTPSource.hh
│ │ │ │ │ │ ├── AC3AudioRTPSource.hh
│ │ │ │ │ │ ├── BasicUDPSource.hh
│ │ │ │ │ │ ├── MPEG4ESVideoRTPSource.hh
│ │ │ │ │ │ ├── H264VideoStreamDiscreteFramer.hh
│ │ │ │ │ │ ├── H265VideoStreamDiscreteFramer.hh
│ │ │ │ │ │ ├── MPEG1or2AudioRTPSink.hh
│ │ │ │ │ │ ├── AMRAudioFileSink.hh
│ │ │ │ │ │ ├── MPEG1or2AudioRTPSource.hh
│ │ │ │ │ │ ├── H264VideoFileSink.hh
│ │ │ │ │ │ ├── ourMD5.hh
│ │ │ │ │ │ ├── AMRAudioRTPSource.hh
│ │ │ │ │ │ ├── H261VideoRTPSource.hh
│ │ │ │ │ │ ├── TheoraVideoRTPSource.hh
│ │ │ │ │ │ ├── MPEG1or2VideoRTPSource.hh
│ │ │ │ │ │ ├── VP8VideoRTPSink.hh
│ │ │ │ │ │ ├── VP9VideoRTPSink.hh
│ │ │ │ │ │ ├── MP3ADURTPSink.hh
│ │ │ │ │ │ ├── AC3AudioFileServerMediaSubsession.hh
│ │ │ │ │ │ ├── ADTSAudioFileSource.hh
│ │ │ │ │ │ ├── AMRAudioFileServerMediaSubsession.hh
│ │ │ │ │ │ ├── JPEGVideoRTPSink.hh
│ │ │ │ │ │ └── ADTSAudioFileServerMediaSubsession.hh
│ │ │ │ │ ├── FramedFileSource.cpp
│ │ │ │ │ ├── TextRTPSink.cpp
│ │ │ │ │ ├── AMRAudioSource.cpp
│ │ │ │ │ ├── FileServerMediaSubsession.cpp
│ │ │ │ │ ├── VideoRTPSink.cpp
│ │ │ │ │ ├── AudioRTPSink.cpp
│ │ │ │ │ ├── JPEGVideoSource.cpp
│ │ │ │ │ ├── GSMAudioRTPSink.cpp
│ │ │ │ │ ├── H264VideoStreamFramer.cpp
│ │ │ │ │ ├── H265VideoStreamFramer.cpp
│ │ │ │ │ ├── OggDemuxedTrack.cpp
│ │ │ │ │ ├── AudioInputDevice.cpp
│ │ │ │ │ ├── H264VideoStreamDiscreteFramer.cpp
│ │ │ │ │ ├── H265VideoStreamDiscreteFramer.cpp
│ │ │ │ │ ├── MPEGVideoStreamParser.cpp
│ │ │ │ │ ├── MP3ADUdescriptor.hh
│ │ │ │ │ ├── MatroskaDemuxedTrack.cpp
│ │ │ │ │ ├── MP3Transcoder.cpp
│ │ │ │ │ └── FramedFilter.cpp
│ │ │ │ ├── BasicUsageEnvironment
│ │ │ │ │ ├── Makefile.head
│ │ │ │ │ ├── include
│ │ │ │ │ │ └── BasicUsageEnvironment_version.hh
│ │ │ │ │ └── Makefile.tail
│ │ │ │ ├── testProgs
│ │ │ │ │ ├── testMP3.sdp
│ │ │ │ │ ├── testMPEG1or2Video.sdp
│ │ │ │ │ ├── testMP3-using-ADUs.sdp
│ │ │ │ │ ├── testMPEG2Transport.sdp
│ │ │ │ │ ├── testMPEG1or2AudioVideo.sdp
│ │ │ │ │ └── Makefile.head
│ │ │ │ ├── mediaServer
│ │ │ │ │ ├── version.hh
│ │ │ │ │ ├── Makefile.head
│ │ │ │ │ ├── Makefile.tail
│ │ │ │ │ └── DynamicRTSPServer.hh
│ │ │ │ ├── configure
│ │ │ │ ├── config.sunos
│ │ │ │ ├── config.irix
│ │ │ │ ├── proxyServer
│ │ │ │ │ ├── Makefile.head
│ │ │ │ │ └── Makefile.tail
│ │ │ │ ├── config.aix
│ │ │ │ ├── config.alpha
│ │ │ │ ├── config.freebsd
│ │ │ │ ├── config.openbsd
│ │ │ │ ├── config.linux-gdb
│ │ │ │ ├── config.macosx-before-version-10.4
│ │ │ │ ├── #config.macosx#
│ │ │ │ ├── config.linux-64bit
│ │ │ │ ├── config.cygwin
│ │ │ │ ├── config.macosx-32bit
│ │ │ │ ├── config.macosx
│ │ │ │ ├── config.solaris-32bit
│ │ │ │ ├── config.linux
│ │ │ │ ├── config.cygwin-for-vlc
│ │ │ │ ├── genMakefiles
│ │ │ │ ├── config.armlinux
│ │ │ │ ├── fix-makefile
│ │ │ │ ├── config.qnx4
│ │ │ │ ├── config.mingw
│ │ │ │ ├── config.solaris-64bit
│ │ │ │ ├── config.bfin-uclinux
│ │ │ │ ├── config.bfin-linux-uclibc
│ │ │ │ ├── config.avr32-linux
│ │ │ │ ├── config.armeb-uclibc
│ │ │ │ ├── config.bsplinux
│ │ │ │ ├── config.uClinux
│ │ │ │ ├── genWindowsMakefiles.cmd
│ │ │ │ ├── config.cris-axis-linux-gnu
│ │ │ │ ├── genWindowsMakefiles
│ │ │ │ ├── config.iphoneos
│ │ │ │ ├── WindowsAudioInputDevice
│ │ │ │ │ └── showAudioInputPorts.cpp
│ │ │ │ ├── config.iphone-simulator
│ │ │ │ ├── win32config.Borland
│ │ │ │ ├── win32config
│ │ │ │ └── Makefile.tail
│ │ │ └── base64
│ │ │ │ ├── Boolean.h
│ │ │ │ ├── strDup.h
│ │ │ │ ├── Base64.h
│ │ │ │ └── strDup.cpp
│ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── rtsp
│ │ │ │ └── poe
│ │ │ │ └── rtsplive555
│ │ │ │ ├── PreviewView.java
│ │ │ │ └── RTSPClient.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── rtsp
│ │ │ └── poe
│ │ │ └── rtsplive555
│ │ │ └── ExampleUnitTest.kt
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── rtsp
│ │ └── poe
│ │ └── rtsplive555
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── 1767153251.jpg
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── gradle.properties
└── README.md
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/live555_rtsp_player/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':live555_rtsp_player'
2 |
--------------------------------------------------------------------------------
/1767153251.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/1767153251.jpg
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/Makefile.head:
--------------------------------------------------------------------------------
1 | ##### Change the following for your environment:
2 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | RtspLive555
3 |
4 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | RtspLive555
3 |
4 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/README:
--------------------------------------------------------------------------------
1 | For documentation and instructions for building this software,
2 | see
3 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyaotangLEO/android_live555_rtsp_client/HEAD/live555_rtsp_player/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -Iinclude -I../groupsock/include
2 | PREFIX = /usr/local
3 | LIBDIR = $(PREFIX)/lib
4 | ##### Change the following for your environment:
5 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/groupsock/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -Iinclude -I../UsageEnvironment/include
2 | PREFIX = /usr/local
3 | LIBDIR = $(PREFIX)/lib
4 | ##### Change the following for your environment:
5 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -Iinclude -I../UsageEnvironment/include -I../groupsock/include
2 | PREFIX = /usr/local
3 | LIBDIR = $(PREFIX)/lib
4 | ##### Change the following for your environment:
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches/build_file_checksums.ser
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/*
9 | .DS_Store
10 | /build
11 | /captures
12 | .externalNativeBuild
13 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/BasicUsageEnvironment/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -Iinclude -I../UsageEnvironment/include -I../groupsock/include
2 | PREFIX = /usr/local
3 | LIBDIR = $(PREFIX)/lib
4 | ##### Change the following for your environment:
5 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/testProgs/testMP3.sdp:
--------------------------------------------------------------------------------
1 | v=0
2 | o=- 49452 4 IN IP4 127.0.0.1
3 | s=Test MP3 session
4 | i=Parameters for the session streamed by "testMP3Streamer"
5 | t=0 0
6 | a=tool:testMP3Streamer
7 | a=type:broadcast
8 | m=audio 6666 RTP/AVP 14
9 | c=IN IP4 239.255.42.42/127
10 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/testProgs/testMPEG1or2Video.sdp:
--------------------------------------------------------------------------------
1 | v=0
2 | o=- 49451 3 IN IP4 127.0.0.1
3 | s=Test MPEG Video session
4 | i=Parameters for the session streamed by "testMPEG1or2VideoStreamer"
5 | t=0 0
6 | a=tool:testMPEG1or2VideoStreamer
7 | a=type:broadcast
8 | m=video 8888 RTP/AVP 32
9 | c=IN IP4 239.255.42.42/127
10 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/testProgs/testMP3-using-ADUs.sdp:
--------------------------------------------------------------------------------
1 | v=0
2 | o=- 49452 4 IN IP4 127.0.0.1
3 | s=Test MP3 session
4 | i=Parameters for the session streamed by "testMP3Streamer"
5 | t=0 0
6 | a=tool:testMP3Streamer
7 | a=type:broadcast
8 | m=audio 6666 RTP/AVP 96
9 | c=IN IP4 239.255.42.42/127
10 | a=rtpmap:96 mpa-robust/90000
11 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/testProgs/testMPEG2Transport.sdp:
--------------------------------------------------------------------------------
1 | v=0
2 | o=- 49451 3 IN IP4 127.0.0.1
3 | s=Test MPEG-2 Transport Stream session
4 | i=Parameters for the session streamed by "testMPEG2TransportStreamer"
5 | t=0 0
6 | a=tool:testMPEG2TransportStreamer
7 | a=type:broadcast
8 | m=video 1234 RTP/AVP 33
9 | c=IN IP4 239.255.42.42/127
10 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/java/com/rtsp/poe/rtsplive555/PreviewView.java:
--------------------------------------------------------------------------------
1 | package com.rtsp.poe.rtsplive555;
2 |
3 | import android.view.SurfaceView;
4 |
5 | /**
6 | * @author liyaotang
7 | * @date 2019/1/23
8 | */
9 | public interface PreviewView {
10 |
11 | SurfaceView getSurfaceView();
12 |
13 | void showInfo(String info);
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/mediaServer/version.hh:
--------------------------------------------------------------------------------
1 | // Copyright (c) 1996-2018, Live Networks, Inc. All rights reserved
2 | // Version information for the LIVE555 Media Server application
3 | // Header file
4 |
5 | #ifndef _MEDIA_SERVER_VERSION_HH
6 | #define _MEDIA_SERVER_VERSION_HH
7 |
8 | #define MEDIA_SERVER_VERSION_STRING "0.93"
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/groupsock/include/groupsock_version.hh:
--------------------------------------------------------------------------------
1 | // Version information for the "groupsock" library
2 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
3 |
4 | #ifndef _GROUPSOCK_VERSION_HH
5 | #define _GROUPSOCK_VERSION_HH
6 |
7 | #define GROUPSOCK_LIBRARY_VERSION_STRING "2018.10.17"
8 | #define GROUPSOCK_LIBRARY_VERSION_INT 1539734400
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/liveMedia_version.hh:
--------------------------------------------------------------------------------
1 | // Version information for the "liveMedia" library
2 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
3 |
4 | #ifndef _LIVEMEDIA_VERSION_HH
5 | #define _LIVEMEDIA_VERSION_HH
6 |
7 | #define LIVEMEDIA_LIBRARY_VERSION_STRING "2018.10.17"
8 | #define LIVEMEDIA_LIBRARY_VERSION_INT 1539734400
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/testProgs/testMPEG1or2AudioVideo.sdp:
--------------------------------------------------------------------------------
1 | v=0
2 | o=- 49451 3 IN IP4 127.0.0.1
3 | s=Test MPEG Audio+Video session
4 | i=Parameters for the session streamed by "testMPEG1or2AudioVideoStreamer"
5 | t=0 0
6 | a=tool:testMPEG1or2AudioVideoStreamer
7 | a=type:broadcast
8 | m=audio 6666 RTP/AVP 14
9 | c=IN IP4 239.255.42.42/127
10 | m=video 8888 RTP/AVP 32
11 | c=IN IP4 239.255.42.42/127
12 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/configure:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | echo "Whoa! This software distribution does NOT use the normal Unix \"configure\" mechanism for generating a Makefile. For instructions on how to build this software, see ."
4 | echo "Also, please make sure that you're using the most up-to-date version of the source code - available from ."
5 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/include/UsageEnvironment_version.hh:
--------------------------------------------------------------------------------
1 | // Version information for the "UsageEnvironment" library
2 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
3 |
4 | #ifndef _USAGEENVIRONMENT_VERSION_HH
5 | #define _USAGEENVIRONMENT_VERSION_HH
6 |
7 | #define USAGEENVIRONMENT_LIBRARY_VERSION_STRING "2018.10.17"
8 | #define USAGEENVIRONMENT_LIBRARY_VERSION_INT 1539734400
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/app/src/test/java/com/rtsp/poe/rtsplive555/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.rtsp.poe.rtsplive555
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/BasicUsageEnvironment/include/BasicUsageEnvironment_version.hh:
--------------------------------------------------------------------------------
1 | // Version information for the "BasicUsageEnvironment" library
2 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
3 |
4 | #ifndef _BASICUSAGEENVIRONMENT_VERSION_HH
5 | #define _BASICUSAGEENVIRONMENT_VERSION_HH
6 |
7 | #define BASICUSAGEENVIRONMENT_LIBRARY_VERSION_STRING "2018.10.17"
8 | #define BASICUSAGEENVIRONMENT_LIBRARY_VERSION_INT 1539734400
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/test/java/com/rtsp/poe/rtsplive555/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.rtsp.poe.rtsplive555
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.sunos:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -DBSD=1 -O
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cc
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.irix:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS) -DIRIX
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DIRIX
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -B static
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/mediaServer/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../BasicUsageEnvironment/include
2 | # Default library filename suffixes for each library that we link with. The "config.*" file might redefine these later.
3 | libliveMedia_LIB_SUFFIX = $(LIB_SUFFIX)
4 | libBasicUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
5 | libUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
6 | libgroupsock_LIB_SUFFIX = $(LIB_SUFFIX)
7 | ##### Change the following for your environment:
8 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/proxyServer/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../BasicUsageEnvironment/include
2 | # Default library filename suffixes for each library that we link with. The "config.*" file might redefine these later.
3 | libliveMedia_LIB_SUFFIX = $(LIB_SUFFIX)
4 | libBasicUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
5 | libUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
6 | libgroupsock_LIB_SUFFIX = $(LIB_SUFFIX)
7 | ##### Change the following for your environment:
8 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/testProgs/Makefile.head:
--------------------------------------------------------------------------------
1 | INCLUDES = -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../BasicUsageEnvironment/include
2 | # Default library filename suffixes for each library that we link with. The "config.*" file might redefine these later.
3 | libliveMedia_LIB_SUFFIX = $(LIB_SUFFIX)
4 | libBasicUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
5 | libUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
6 | libgroupsock_LIB_SUFFIX = $(LIB_SUFFIX)
7 | ##### Change the following for your environment:
8 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.aix:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -DBSD=1 -O -DTIME_BASE=int -DSOCKLEN_T=socklen_t
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DAIX=1
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.alpha:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DTIME_BASE=int
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS) -DALPHA
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 -DALPHA
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -B static
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.freebsd:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DBSD=1 -DNEWLOCALE_NOT_USED=1 -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ar cr
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.openbsd:
--------------------------------------------------------------------------------
1 | .SUFFIXES: .cpp
2 | COMPILE_OPTS = $(INCLUDES) -I. -DBSD=1 -O -DSOCKLEN_T=socklen_t
3 | C = c
4 | C_COMPILER = cc
5 | C_FLAGS = $(COMPILE_OPTS)
6 | CPP = cpp
7 | CPLUSPLUS_COMPILER = c++
8 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DAIX=1
9 | OBJ = o
10 | LINK = c++ -o
11 | LINK_OPTS = -L.
12 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
13 | LIBRARY_LINK = ld -o
14 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r
15 | LIB_SUFFIX = a
16 | LIBS_FOR_CONSOLE_APPLICATION =
17 | LIBS_FOR_GUI_APPLICATION =
18 | EXE =
19 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.linux-gdb:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DSOCKLEN_T=socklen_t -g -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ar cr
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.macosx-before-version-10.4:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -DBSD=1 -O -DSOCKLEN_T=int -DTIME_BASE=int
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/#config.macosx#:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. $(EXTRA_LDFLAGS) -DBSD=1 -O -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -DTIME_BASE=in
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = libtool -s -o
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.linux-64bit:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -m64 -fPIC -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ar cr
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.cygwin:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DSOCKLEN_T=socklen_t -DNEWLOCALE_NOT_USED=1
2 | C = c
3 | C_COMPILER = gcc
4 | C_FLAGS = $(COMPILE_OPTS) -DUSE_OUR_BZERO=1 -D__CYGWIN__
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.macosx-32bit:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = -m32 $(INCLUDES) -I. $(EXTRA_LDFLAGS) -DBSD=1 -O -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -DTIME_BASE=int
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L. -m32
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = libtool -s -o
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.macosx:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. $(EXTRA_LDFLAGS) -DBSD=1 -O -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -DTIME_BASE=int -DNEED_XLOCALE_H=1
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = libtool -s -o
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.solaris-32bit:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DSOLARIS -DNEWLOCALE_NOT_USED -DSOCKLEN_T=socklen_t
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -dn
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION = -lsocket -lnsl
16 | LIBS_FOR_GUI_APPLICATION = $(LIBS_FOR_CONSOLE_APPLICATION)
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.linux:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 $(CPPFLAGS) $(CXXFLAGS)
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L. $(LDFLAGS)
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ar cr
13 | LIBRARY_LINK_OPTS =
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
18 |
19 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.cygwin-for-vlc:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DSOCKLEN_T=socklen_t -DNEWLOCALE_NOT_USED=1
2 | C = c
3 | C_COMPILER = gcc
4 | C_FLAGS = $(COMPILE_OPTS) -DUSE_OUR_BZERO=1 -D_WIN32 -mno-cygwin
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 -D_WIN32 -Wno-deprecated -mno-cygwin
8 | OBJ = o
9 | LINK = c++ -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION =
16 | LIBS_FOR_GUI_APPLICATION =
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/genMakefiles:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | usage() {
4 | echo "Usage: $0 "
5 | exit 1
6 | }
7 |
8 | if [ $# -ne 1 ]
9 | then
10 | usage $*
11 | fi
12 |
13 | platform=$1
14 | subdirs="liveMedia groupsock UsageEnvironment BasicUsageEnvironment testProgs mediaServer proxyServer"
15 |
16 | for subdir in $subdirs
17 | do
18 | /bin/rm -f $subdir/Makefile
19 | cat $subdir/Makefile.head config.$platform $subdir/Makefile.tail > $subdir/Makefile
20 | chmod a-w $subdir/Makefile
21 | done
22 |
23 | /bin/rm -f Makefile
24 | cat Makefile.head config.$1 Makefile.tail > Makefile
25 | chmod a-w Makefile
26 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.armlinux:
--------------------------------------------------------------------------------
1 | CROSS_COMPILE?= arm-elf-
2 | COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
3 | C = c
4 | C_COMPILER = $(CROSS_COMPILE)gcc
5 | C_FLAGS = $(COMPILE_OPTS)
6 | CPP = cpp
7 | CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++
8 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
9 | OBJ = o
10 | LINK = $(CROSS_COMPILE)g++ -o
11 | LINK_OPTS =
12 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
13 | LIBRARY_LINK = $(CROSS_COMPILE)ar cr
14 | LIBRARY_LINK_OPTS = $(LINK_OPTS)
15 | LIB_SUFFIX = a
16 | LIBS_FOR_CONSOLE_APPLICATION =
17 | LIBS_FOR_GUI_APPLICATION =
18 | EXE =
19 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/fix-makefile:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # the next line restarts using tclsh \
3 | exec tclsh8.4 "$0" "$@"
4 |
5 | set makefileName [lindex $argv 0]
6 | set tmpfileName /tmp/rsftmp
7 |
8 | set inFid [open $makefileName r]
9 | set outFid [open $tmpfileName w]
10 |
11 | while {![eof $inFid]} {
12 | set line [gets $inFid]
13 | if {[string match *\)\$* $line]} {
14 | set pos [string first \)\$ $line]
15 | set prefix [string range $line 0 $pos]
16 | incr pos
17 | set suffix [string range $line $pos end]
18 | set line $prefix\ $suffix
19 | }
20 |
21 | puts $outFid $line
22 | }
23 |
24 | close $inFid
25 | close $outFid
26 | file rename -force $tmpfileName $makefileName
27 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.qnx4:
--------------------------------------------------------------------------------
1 | #
2 | # Requires:
3 | # QNX 4.25
4 | # Watcom 10.6
5 | # TCP/IP 5.0
6 | #
7 | COMPILE_OPTS = $(INCLUDES) -I. -D_QNX4 -DBSD -DSOCKLEN_T=uint32_t -I/usr/watcom/10.6/usr/include
8 | C = c
9 | C_COMPILER = cc32
10 | C_FLAGS = $(COMPILE_OPTS)
11 | CPP = cpp
12 | CPLUSPLUS_COMPILER = cc32
13 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -WC,-xs
14 | OBJ = o
15 | LINK = cc32 -b -M -N30000 -o
16 | LINK_OPTS = -l.
17 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
18 | LIBRARY_LINK = wlib -n -b -c
19 | LIBRARY_LINK_OPTS = $(LINK_OPTS)
20 | LIB_SUFFIX = lib
21 | LIBS_FOR_CONSOLE_APPLICATION = -lsocket
22 | LIBS_FOR_GUI_APPLICATION = $(LIBS_FOR_CONSOLE_APPLICATION)
23 | EXE =
24 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.mingw:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -I. -O -DSOCKLEN_T=int -DLOCALE_NOT_USED
2 | C = c
3 | C_COMPILER = $(CC)
4 | C_FLAGS = $(COMPILE_OPTS) -DUSE_OUR_BZERO=1 -D__MINGW32__
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = $(CXX)
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -D__MINGW32__ -Wall -Wno-deprecated
8 | OBJ = o
9 | LINK = $(CXX) -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = $(LD) -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION = -lws2_32
16 | LIBS_FOR_GUI_APPLICATION = -lws2_32
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.solaris-64bit:
--------------------------------------------------------------------------------
1 | COMPILE_OPTS = $(INCLUDES) -m64 -I. -O -DSOLARIS -DNEWLOCALE_NOT_USED -DSOCKLEN_T=socklen_t
2 | C = c
3 | C_COMPILER = cc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
8 | OBJ = o
9 | LINK = c++ -m64 -o
10 | LINK_OPTS = -L.
11 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
12 | LIBRARY_LINK = ld -o
13 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -64 -r -dn
14 | LIB_SUFFIX = a
15 | LIBS_FOR_CONSOLE_APPLICATION = -lsocket -lnsl
16 | LIBS_FOR_GUI_APPLICATION = $(LIBS_FOR_CONSOLE_APPLICATION)
17 | EXE =
18 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.bfin-uclinux:
--------------------------------------------------------------------------------
1 | CROSS_COMPILER= bfin-uclinux-
2 | COMPILE_OPTS = $(INCLUDES) -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -DUCLINUX -D_FILE_OFFSET_BITS=64
3 | C = c
4 | C_COMPILER = $(CROSS_COMPILER)gcc
5 | C_FLAGS = $(COMPILE_OPTS) -Wall
6 | CPP = cpp
7 | CPLUSPLUS_COMPILER = $(CROSS_COMPILER)g++
8 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
9 | OBJ = o
10 | LINK = $(CROSS_COMPILER)g++ -Wl,-elf2flt -o
11 | LINK_OPTS = -L.
12 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
13 | LIBRARY_LINK = $(CROSS_COMPILER)ar cr
14 | LIBRARY_LINK_OPTS =
15 | LIB_SUFFIX = a
16 | LIBS_FOR_CONSOLE_APPLICATION =
17 | LIBS_FOR_GUI_APPLICATION =
18 | EXE =
19 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.bfin-linux-uclibc:
--------------------------------------------------------------------------------
1 | CROSS_COMPILER = bfin-linux-uclibc-
2 | COMPILE_OPTS = $(INCLUDES) -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -DUCLINUX -D_FILE_OFFSET_BITS=64
3 | C = c
4 | C_COMPILER = $(CROSS_COMPILER)gcc
5 | C_FLAGS = $(COMPILE_OPTS) -Wall
6 | CPP = cpp
7 | CPLUSPLUS_COMPILER = $(CROSS_COMPILER)g++
8 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
9 | OBJ = o
10 | LINK = $(CROSS_COMPILER)g++ -o
11 | LINK_OPTS = -L.
12 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
13 | LIBRARY_LINK = $(CROSS_COMPILER)ar cr
14 | LIBRARY_LINK_OPTS =
15 | LIB_SUFFIX = a
16 | LIBS_FOR_CONSOLE_APPLICATION =
17 | LIBS_FOR_GUI_APPLICATION =
18 | EXE =
19 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 |
15 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.avr32-linux:
--------------------------------------------------------------------------------
1 | CROSS_COMPILE= avr32-linux-uclibc-
2 | COMPILE_OPTS = -Os $(INCLUDES) -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 C = c
3 | C_COMPILER = $(CROSS_COMPILE)gcc
4 | C_FLAGS = $(COMPILE_OPTS)
5 | CPP = cpp
6 | CPLUSPLUS_COMPILER = $(CROSS_COMPILE)c++
7 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -fuse-cxa-atexit -DBSD=1 OBJ = o
8 | LINK = $(CROSS_COMPILE)c++ -o
9 | LINK_OPTS =
10 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
11 | LIBRARY_LINK = $(CROSS_COMPILE)ar cr LIBRARY_LINK_OPTS =
12 | LIB_SUFFIX = a
13 | LIBS_FOR_CONSOLE_APPLICATION =
14 | LIBS_FOR_GUI_APPLICATION =
15 | EXE =
16 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/rtsp/poe/rtsplive555/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.rtsp.poe.rtsplive555
2 |
3 | import android.support.test.InstrumentationRegistry
4 | import android.support.test.runner.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getTargetContext()
22 | assertEquals("com.rtsp.poe.rtsplive555", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.armeb-uclibc:
--------------------------------------------------------------------------------
1 | CROSS_COMPILE= armeb-linux-uclibc-
2 | COMPILE_OPTS = $(INCLUDES) -I. -Os -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D
3 | LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
4 | C = c
5 | C_COMPILER = $(CROSS_COMPILE)gcc
6 | C_FLAGS = $(COMPILE_OPTS)
7 | CPP = cpp
8 | CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++
9 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
10 | OBJ = o
11 | LINK = $(CROSS_COMPILE)gcc -o
12 | LINK_OPTS = -L.
13 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
14 | LIBRARY_LINK = $(CROSS_COMPILE)ar cr
15 | LIBRARY_LINK_OPTS =
16 | LIB_SUFFIX = a
17 | LIBS_FOR_CONSOLE_APPLICATION =
18 | LIBS_FOR_GUI_APPLICATION =
19 | EXE =
20 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.bsplinux:
--------------------------------------------------------------------------------
1 | CROSS_COMPILE=
2 | COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
3 | C = c
4 | C_COMPILER = $(CROSS_COMPILE)ecc
5 | C_FLAGS = $(COMPILE_OPTS)
6 | CPP = cpp
7 | CPLUSPLUS_COMPILER = $(CROSS_COMPILE)e++
8 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
9 | OBJ = o
10 | LINK = $(CROSS_COMPILE)e++ -o
11 | LINK_OPTS = -L.
12 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
13 | LIBRARY_LINK = $(CROSS_COMPILE)eld -o
14 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
15 | LIB_SUFFIX = a
16 | LIBS_FOR_CONSOLE_APPLICATION = -lm
17 | LIBS_FOR_GUI_APPLICATION =
18 | EXE =
19 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/androidTest/java/com/rtsp/poe/rtsplive555/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.rtsp.poe.rtsplive555
2 |
3 | import android.support.test.InstrumentationRegistry
4 | import android.support.test.runner.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getTargetContext()
22 | assertEquals("com.rtsp.poe.rtsplive555", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/live555_rtsp_player/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.uClinux:
--------------------------------------------------------------------------------
1 | CROSS_COMPILE= arc-linux-uclibc-
2 | COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
3 | C = c
4 | C_COMPILER = $(CROSS_COMPILE)gcc
5 | CFLAGS += $(COMPILE_OPTS)
6 | C_FLAGS = $(CFLAGS)
7 | CPP = cpp
8 | CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++
9 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
10 | CPLUSPLUS_FLAGS += $(CPPFLAGS) -fexceptions
11 | OBJ = o
12 | LINK = $(CROSS_COMPILE)g++ -o
13 | LINK_OPTS = -L. $(LDFLAGS)
14 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
15 | LIBRARY_LINK = $(CROSS_COMPILE)ar cr
16 | LIBRARY_LINK_OPTS =
17 | LIB_SUFFIX = a
18 | LIBS_FOR_CONSOLE_APPLICATION = $(CXXLIBS)
19 | LIBS_FOR_GUI_APPLICATION = $(LIBS_FOR_CONSOLE_APPLICATION)
20 | EXE =
21 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/genWindowsMakefiles.cmd:
--------------------------------------------------------------------------------
1 | @Echo OFF
2 | SETLOCAL
3 | for %%I in (%0) do %%~dI
4 | for %%I in (%0) do cd "%%~pI"
5 | cd liveMedia
6 | del /Q liveMedia.mak
7 | type Makefile.head ..\win32config Makefile.tail > liveMedia.mak
8 | cd ../groupsock
9 | del /Q groupsock.mak
10 | type Makefile.head ..\win32config Makefile.tail > groupsock.mak
11 | cd ../UsageEnvironment
12 | del /Q UsageEnvironment.mak
13 | type Makefile.head ..\win32config Makefile.tail > UsageEnvironment.mak
14 | cd ../BasicUsageEnvironment
15 | del /Q BasicUsageEnvironment.mak
16 | type Makefile.head ..\win32config Makefile.tail > BasicUsageEnvironment.mak
17 | cd ../testProgs
18 | del /Q testProgs.mak
19 | type Makefile.head ..\win32config Makefile.tail > testProgs.mak
20 | cd ../mediaServer
21 | del /Q mediaServer.mak
22 | type Makefile.head ..\win32config Makefile.tail > mediaServer.mak
23 | cd ../proxyServer
24 | del /Q proxyServer.mak
25 | type Makefile.head ..\win32config Makefile.tail > proxyServer.mak
26 |
27 | ENDLOCAL
28 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.cris-axis-linux-gnu:
--------------------------------------------------------------------------------
1 | # Note: AXIS_TOP_DIR is assumed to already be set in your environment.
2 | # You can set this using the "init_env" script.
3 | # See http://developer.axis.com/doc/software/apps/apps-howto.html
4 | # for more information.
5 | AXIS_DIR = $(AXIS_TOP_DIR)/target/cris-axis-linux-gnu
6 | COMPILE_OPTS = $(INCLUDES) -I. -mlinux -isystem $(AXIS_DIR)/include -Wall -O2 -DSOCKLEN_T=socklen_t -DCRIS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
7 | C = c
8 | C_COMPILER = gcc-cris
9 | C_FLAGS = $(COMPILE_OPTS)
10 | CPP = cpp
11 | CPLUSPLUS_COMPILER = c++-cris
12 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wno-ctor-dtor-privacy -ansi -pipe
13 | OBJ = o
14 | LINK = c++-cris -static -o
15 | AXIS_LINK_OPTS = -L$(AXIS_DIR)/lib
16 | LINK_OPTS = -L.
17 | CONSOLE_LINK_OPTS = $(LINK_OPTS) -L$(AXIS_DIR)/lib -mlinux
18 | LIBRARY_LINK = ld-cris -mcrislinux -o
19 | LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
20 | LIB_SUFFIX = a
21 | LIBS_FOR_CONSOLE_APPLICATION =
22 | LIBS_FOR_GUI_APPLICATION =
23 | EXE =
24 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/genWindowsMakefiles:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | cd liveMedia
4 | /bin/rm -f liveMedia.mak
5 | /bin/rm -f Makefile
6 | cat Makefile.head ../win32config Makefile.tail > liveMedia.mak
7 |
8 | cd ../groupsock
9 | /bin/rm -f groupsock.mak
10 | /bin/rm -f Makefile
11 | cat Makefile.head ../win32config Makefile.tail > groupsock.mak
12 |
13 | cd ../UsageEnvironment
14 | /bin/rm -f UsageEnvironment.mak
15 | /bin/rm -f Makefile
16 | cat Makefile.head ../win32config Makefile.tail > UsageEnvironment.mak
17 |
18 | cd ../BasicUsageEnvironment
19 | /bin/rm -f BasicUsageEnvironment.mak
20 | /bin/rm -f Makefile
21 | cat Makefile.head ../win32config Makefile.tail > BasicUsageEnvironment.mak
22 |
23 | cd ../testProgs
24 | /bin/rm -f testProgs.mak
25 | /bin/rm -f Makefile
26 | cat Makefile.head ../win32config Makefile.tail > testProgs.mak
27 |
28 | cd ../mediaServer
29 | /bin/rm -f mediaServer.mak
30 | /bin/rm -f Makefile
31 | cat Makefile.head ../win32config Makefile.tail > mediaServer.mak
32 |
33 | cd ../proxyServer
34 | /bin/rm -f proxyServer.mak
35 | /bin/rm -f Makefile
36 | cat Makefile.head ../win32config Makefile.tail > proxyServer.mak
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # android_live555_rtsp_client
2 |
3 | ## 描述
4 | - 使用 Live555 库,实现 Android 平台下 rtsp 客户端
5 |
6 | ## 参考
7 |
8 | jdpxiaoming 参考 Live555 例程实现 RtspLive555 ,笔者再基于 RtspLive555 项目优化
9 | - https://github.com/jdpxiaoming/RtspLive555
10 | - live555 官方例程 testRTSPClient
11 |
12 | ## 优化点
13 |
14 | - 修复视频下半部花屏的问题
15 | > 增加缓冲区 DUMMY_SINK_RECEIVE_BUFFER_SIZE 的大小,笔者测试用 1080P 视频,
16 | > 缓冲区设置为 50 * 10000
17 |
18 |
19 | - 修复读帧函数 DummySink::afterGettingFrame() 没有收到 sps 和 pps,使用了默认的 sps 和 pps,引起了绿屏的问题
20 | > 从sdp中解析出 sps 和 pps。
21 | > sdp 是 rtsp 初始化过程当中可以获取到的一个字串,包含很多明文的信息,也包括了 base64 加密的 sps 和 pps。
22 | > 以下函数被回调
23 | ```
24 | // Implementation of the RTSP 'response handlers':
25 | void continueAfterDESCRIBE(RTSPClient *rtspClient, int resultCode, char *resultString);
26 | ```
27 | > resultString 即为 sdp。从 sdp 解析出 sps 和 pps 的代码,请查看 RTSPClient.cpp 文件中的函数 get_sps_pps_from_sdp()。
28 | > 原理参考 RTSPClient.cpp 中的注释。
29 |
30 | ## 知识点总结
31 | - sps 和 pps 包含了解码的关键信息,必须先把 sps 和 pps 这两种帧数据喂给解码器,才能解码成功
32 | - rtsp 服务器有可能,不会把 sps 和 pps 帧打包进码流当中,需要我们从 sdp 中解析出来
33 | - 网上的例程中,一般会有默认的 sps 和 pps ,其实是针对他们当时调试的编码平台,并不具有通用性
34 |
35 | ---
36 |
37 |
38 | 作者:黎耀棠 邮箱: 316477169@qq.com
39 | 欢迎交流学习
40 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/FramedFileSource.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Framed File Sources
19 | // Implementation
20 |
21 | #include "FramedFileSource.hh"
22 |
23 | ////////// FramedFileSource //////////
24 |
25 | FramedFileSource::FramedFileSource(UsageEnvironment& env, FILE* fid)
26 | : FramedSource(env), fFid(fid) {
27 | }
28 |
29 | FramedFileSource::~FramedFileSource() {
30 | }
31 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/groupsock/include/IOHandlers.hh:
--------------------------------------------------------------------------------
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 .)
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 | // "mTunnel" multicast access service
17 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
18 | // IO event handlers
19 | // C++ header
20 |
21 | #ifndef _IO_HANDLERS_HH
22 | #define _IO_HANDLERS_HH
23 |
24 | #ifndef _NET_INTERFACE_HH
25 | #include "NetInterface.hh"
26 | #endif
27 |
28 | // Handles incoming data on sockets:
29 | void socketReadHandler(Socket* sock, int mask);
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/OutputFile.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Common routines for opening/closing named output files
19 | // C++ header
20 |
21 | #ifndef _OUTPUT_FILE_HH
22 | #define _OUTPUT_FILE_HH
23 |
24 | #include
25 | #include
26 |
27 | FILE* OpenOutputFile(UsageEnvironment& env, char const* fileName);
28 |
29 | void CloseOutputFile(FILE* fid);
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/base64/Boolean.h:
--------------------------------------------------------------------------------
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 2.1 of the License, or (at your
5 | option) any later version. (See .)
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 | #ifndef _BOOLEAN_HH
17 | #define _BOOLEAN_HH
18 |
19 | #if defined(__BORLANDC__) || (defined(_MSC_VER) && _MSC_VER >= 1400) // MSVC++ 8.0, Visual Studio 2005 and higher
20 | #define Boolean bool
21 | #define False false
22 | #define True true
23 | #else
24 | typedef unsigned char Boolean;
25 | #ifndef __MSHTML_LIBRARY_DEFINED__
26 | #ifndef False
27 | const Boolean False = 0;
28 | #endif
29 | #ifndef True
30 | const Boolean True = 1;
31 | #endif
32 |
33 | #endif
34 | #endif
35 |
36 | #endif
37 |
--------------------------------------------------------------------------------
/live555_rtsp_player/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 28
5 | defaultConfig {
6 | //applicationId "com.rtsp.poe.rtsplive555"
7 | minSdkVersion 18
8 | targetSdkVersion 28
9 | versionCode 1
10 | versionName "1.0"
11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12 | ndk {
13 | abiFilters 'armeabi-v7a'
14 | }
15 | externalNativeBuild {
16 | cmake {
17 | cppFlags "-frtti -fexceptions"
18 | }
19 | }
20 | }
21 | buildTypes {
22 | release {
23 | minifyEnabled false
24 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25 | }
26 | }
27 | externalNativeBuild {
28 | cmake {
29 | path "CMakeLists.txt"
30 | }
31 | }
32 | }
33 |
34 | dependencies {
35 | implementation fileTree(dir: 'libs', include: ['*.jar'])
36 | implementation 'com.android.support:appcompat-v7:28.0.0'
37 | implementation 'com.android.support.constraint:constraint-layout:1.1.3'
38 | testImplementation 'junit:junit:4.12'
39 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
40 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
41 | }
42 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.iphoneos:
--------------------------------------------------------------------------------
1 | # **Note: You must install the relevant "Command line tools (OSX *.*) for Xcode - Xcode *.*"
2 | # for this configuration file to work.
3 | #
4 | # Change the following version number, if necessary, before running "genMakefiles iphoneos"
5 | IOS_VERSION = 8.3
6 |
7 | DEVELOPER_PATH = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
8 | TOOL_PATH = $(DEVELOPER_PATH)/usr/bin
9 | SDK_PATH = $(DEVELOPER_PATH)/SDKs
10 | SDK = $(SDK_PATH)/iPhoneOS$(IOS_VERSION).sdk
11 | COMPILE_OPTS = $(INCLUDES) -I. $(EXTRA_LDFLAGS) -DBSD=1 -O2 -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -arch armv7 --sysroot=$(SDK)
12 | C = c
13 | C_COMPILER = /usr/bin/xcrun clang
14 | C_FLAGS = $(COMPILE_OPTS)
15 | CPP = cpp
16 | CPLUSPLUS_COMPILER = /usr/bin/xcrun clang
17 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
18 | OBJ = o
19 | LINK = /usr/bin/xcrun clang -o
20 | LINK_OPTS = -v -L. -arch armv7 --sysroot=$(SDK) -L$(SDK)/usr/lib/system /usr/lib/libc++.dylib
21 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
22 | LIBRARY_LINK = /usr/bin/xcrun libtool -static -o
23 | LIBRARY_LINK_OPTS =
24 | LIB_SUFFIX = a
25 | LIBS_FOR_CONSOLE_APPLICATION =
26 | LIBS_FOR_GUI_APPLICATION =
27 | EXE =
28 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/base64/strDup.h:
--------------------------------------------------------------------------------
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 2.1 of the License, or (at your
5 | option) any later version. (See .)
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 |
17 | #ifndef _STRDUP_HH
18 | #define _STRDUP_HH
19 |
20 | // Copyright (c) 1996-2013 Live Networks, Inc. All rights reserved.
21 | // A C++ equivalent to the standard C routine "strdup()".
22 | // This generates a char* that can be deleted using "delete[]"
23 | // Header
24 |
25 | char* strDup(char const* str);
26 | // Note: strDup(NULL) returns NULL
27 |
28 | char* strDupSize(char const* str);
29 | // Like "strDup()", except that it *doesn't* copy the original.
30 | // (Instead, it just allocates a string of the same size as the original.)
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/FramedFileSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Framed File Sources
19 | // C++ header
20 |
21 | #ifndef _FRAMED_FILE_SOURCE_HH
22 | #define _FRAMED_FILE_SOURCE_HH
23 |
24 | #ifndef _FRAMED_SOURCE_HH
25 | #include "FramedSource.hh"
26 | #endif
27 |
28 | class FramedFileSource: public FramedSource {
29 | protected:
30 | FramedFileSource(UsageEnvironment& env, FILE* fid); // abstract base class
31 | virtual ~FramedFileSource();
32 |
33 | protected:
34 | FILE* fFid;
35 | };
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/include/Boolean.hh:
--------------------------------------------------------------------------------
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 .)
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 | #ifndef _BOOLEAN_HH
17 | #define _BOOLEAN_HH
18 |
19 | #if defined(__BORLANDC__) || (!defined(USE_LIVE555_BOOLEAN) && defined(_MSC_VER) && _MSC_VER >= 1400)
20 | // Use the "bool" type defined by the Borland compiler, and MSVC++ 8.0, Visual Studio 2005 and higher
21 | typedef bool Boolean;
22 | #define False false
23 | #define True true
24 | #else
25 | typedef unsigned char Boolean;
26 | #ifndef __MSHTML_LIBRARY_DEFINED__
27 | #ifndef False
28 | const Boolean False = 0;
29 | #endif
30 | #ifndef True
31 | const Boolean True = 1;
32 | #endif
33 |
34 | #endif
35 | #endif
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/Makefile.tail:
--------------------------------------------------------------------------------
1 | ##### End of variables to change
2 |
3 | NAME = libUsageEnvironment
4 | USAGE_ENVIRONMENT_LIB = $(NAME).$(LIB_SUFFIX)
5 | ALL = $(USAGE_ENVIRONMENT_LIB)
6 | all: $(ALL)
7 |
8 | OBJS = UsageEnvironment.$(OBJ) HashTable.$(OBJ) strDup.$(OBJ)
9 |
10 | $(USAGE_ENVIRONMENT_LIB): $(OBJS)
11 | $(LIBRARY_LINK)$@ $(LIBRARY_LINK_OPTS) $(OBJS)
12 |
13 | .$(C).$(OBJ):
14 | $(C_COMPILER) -c $(C_FLAGS) $<
15 |
16 | .$(CPP).$(OBJ):
17 | $(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<
18 |
19 | UsageEnvironment.$(CPP): include/UsageEnvironment.hh
20 | include/UsageEnvironment.hh: include/UsageEnvironment_version.hh include/Boolean.hh include/strDup.hh
21 | HashTable.$(CPP): include/HashTable.hh
22 | include/HashTable.hh: include/Boolean.hh
23 | strDup.$(CPP): include/strDup.hh
24 |
25 | clean:
26 | -rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~
27 |
28 | install: install1 $(INSTALL2)
29 | install1: $(USAGE_ENVIRONMENT_LIB)
30 | install -d $(DESTDIR)$(PREFIX)/include/UsageEnvironment $(DESTDIR)$(LIBDIR)
31 | install -m 644 include/*.hh $(DESTDIR)$(PREFIX)/include/UsageEnvironment
32 | install -m 644 $(USAGE_ENVIRONMENT_LIB) $(DESTDIR)$(LIBDIR)
33 | install_shared_libraries: $(USAGE_ENVIRONMENT_LIB)
34 | ln -fs $(NAME).$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)/$(NAME).$(SHORT_LIB_SUFFIX)
35 | ln -fs $(NAME).$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)/$(NAME).so
36 |
37 | ##### Any additional, platform-specific rules come here:
38 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/TextRTPSink.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A generic RTP sink for text codecs (abstract base class)
19 | // Implementation
20 |
21 | #include "TextRTPSink.hh"
22 |
23 | TextRTPSink::TextRTPSink(UsageEnvironment& env,
24 | Groupsock* rtpgs, unsigned char rtpPayloadType,
25 | unsigned rtpTimestampFrequency,
26 | char const* rtpPayloadFormatName)
27 | : MultiFramedRTPSink(env, rtpgs, rtpPayloadType, rtpTimestampFrequency,
28 | rtpPayloadFormatName) {
29 | }
30 |
31 | TextRTPSink::~TextRTPSink() {
32 | }
33 |
34 | char const* TextRTPSink::sdpMediaType() const {
35 | return "text";
36 | }
37 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/AMRAudioSource.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A source object for AMR audio sources
19 | // Implementation
20 |
21 | #include "AMRAudioSource.hh"
22 |
23 | AMRAudioSource::AMRAudioSource(UsageEnvironment& env,
24 | Boolean isWideband, unsigned numChannels)
25 | : FramedSource(env),
26 | fIsWideband(isWideband), fNumChannels(numChannels), fLastFrameHeader(0) {
27 | }
28 |
29 | AMRAudioSource::~AMRAudioSource() {
30 | }
31 |
32 | char const* AMRAudioSource::MIMEtype() const {
33 | return "audio/AMR";
34 | }
35 |
36 | Boolean AMRAudioSource::isAMRAudioSource() const {
37 | return True;
38 | }
39 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/proxyServer/Makefile.tail:
--------------------------------------------------------------------------------
1 | ##### End of variables to change
2 |
3 | PROXY_SERVER = live555ProxyServer$(EXE)
4 |
5 | PREFIX = /usr/local
6 | ALL = $(PROXY_SERVER)
7 | all: $(ALL)
8 |
9 | .$(C).$(OBJ):
10 | $(C_COMPILER) -c $(C_FLAGS) $<
11 | .$(CPP).$(OBJ):
12 | $(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<
13 |
14 | PROXY_SERVER_OBJS = live555ProxyServer.$(OBJ)
15 |
16 | USAGE_ENVIRONMENT_DIR = ../UsageEnvironment
17 | USAGE_ENVIRONMENT_LIB = $(USAGE_ENVIRONMENT_DIR)/libUsageEnvironment.$(libUsageEnvironment_LIB_SUFFIX)
18 | BASIC_USAGE_ENVIRONMENT_DIR = ../BasicUsageEnvironment
19 | BASIC_USAGE_ENVIRONMENT_LIB = $(BASIC_USAGE_ENVIRONMENT_DIR)/libBasicUsageEnvironment.$(libBasicUsageEnvironment_LIB_SUFFIX)
20 | LIVEMEDIA_DIR = ../liveMedia
21 | LIVEMEDIA_LIB = $(LIVEMEDIA_DIR)/libliveMedia.$(libliveMedia_LIB_SUFFIX)
22 | GROUPSOCK_DIR = ../groupsock
23 | GROUPSOCK_LIB = $(GROUPSOCK_DIR)/libgroupsock.$(libgroupsock_LIB_SUFFIX)
24 | LOCAL_LIBS = $(LIVEMEDIA_LIB) $(GROUPSOCK_LIB) \
25 | $(BASIC_USAGE_ENVIRONMENT_LIB) $(USAGE_ENVIRONMENT_LIB)
26 | LIBS = $(LOCAL_LIBS) $(LIBS_FOR_CONSOLE_APPLICATION)
27 |
28 | live555ProxyServer$(EXE): $(PROXY_SERVER_OBJS) $(LOCAL_LIBS)
29 | $(LINK)$@ $(CONSOLE_LINK_OPTS) $(PROXY_SERVER_OBJS) $(LIBS)
30 |
31 | clean:
32 | -rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~
33 |
34 | install: $(PROXY_SERVER)
35 | install -d $(DESTDIR)$(PREFIX)/bin
36 | install -m 755 $(PROXY_SERVER) $(DESTDIR)$(PREFIX)/bin
37 |
38 | ##### Any additional, platform-specific rules come here:
39 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/FileServerMediaSubsession.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
19 | // on demand, from a file.
20 | // Implementation
21 |
22 | #include "FileServerMediaSubsession.hh"
23 |
24 | FileServerMediaSubsession
25 | ::FileServerMediaSubsession(UsageEnvironment& env, char const* fileName,
26 | Boolean reuseFirstSource)
27 | : OnDemandServerMediaSubsession(env, reuseFirstSource),
28 | fFileSize(0) {
29 | fFileName = strDup(fileName);
30 | }
31 |
32 | FileServerMediaSubsession::~FileServerMediaSubsession() {
33 | delete[] (char*)fFileName;
34 | }
35 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/VideoRTPSink.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A generic RTP sink for video codecs (abstract base class)
19 | // Implementation
20 |
21 | #include "VideoRTPSink.hh"
22 |
23 | VideoRTPSink::VideoRTPSink(UsageEnvironment& env,
24 | Groupsock* rtpgs, unsigned char rtpPayloadType,
25 | unsigned rtpTimestampFrequency,
26 | char const* rtpPayloadFormatName)
27 | : MultiFramedRTPSink(env, rtpgs, rtpPayloadType, rtpTimestampFrequency,
28 | rtpPayloadFormatName) {
29 | }
30 |
31 | VideoRTPSink::~VideoRTPSink() {
32 | }
33 |
34 | char const* VideoRTPSink::sdpMediaType() const {
35 | return "video";
36 | }
37 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/WindowsAudioInputDevice/showAudioInputPorts.cpp:
--------------------------------------------------------------------------------
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 .)
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 | // Copyright (c) 1996-2018, Live Networks, Inc. All rights reserved
17 | // A program that prints out this computer's audio input ports
18 |
19 | #include "AudioInputDevice.hh"
20 | #include
21 |
22 | int main(int argc, char** argv) {
23 | AudioPortNames* portNames = AudioInputDevice::getPortNames();
24 | if (portNames == NULL) {
25 | fprintf(stderr, "AudioInputDevice::getPortNames() failed!\n");
26 | exit(1);
27 | }
28 |
29 | printf("%d available audio input ports:\n", portNames->numPorts);
30 | for (unsigned i = 0; i < portNames->numPorts; ++i) {
31 | printf("%d\t%s\n", i, portNames->portName[i]);
32 | }
33 |
34 | return 0;
35 | }
36 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/base64/Base64.h:
--------------------------------------------------------------------------------
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 2.1 of the License, or (at your
5 | option) any later version. (See .)
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-2013 Live Networks, Inc. All rights reserved.
18 | // Base64 encoding and decoding
19 | // C++ header
20 |
21 | #ifndef _BASE64_HH
22 | #define _BASE64_HH
23 |
24 | #ifndef _BOOLEAN_HH
25 | #include "Boolean.h"
26 | #endif
27 |
28 | unsigned char* base64Decode(char const* in, unsigned& resultSize,
29 | Boolean trimTrailingZeros = True);
30 | // returns a newly allocated array - of size "resultSize" - that
31 | // the caller is responsible for delete[]ing.
32 |
33 | char* base64Encode(char const* orig, unsigned origLength);
34 | // returns a 0-terminated string that
35 | // the caller is responsible for delete[]ing.
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/base64/strDup.cpp:
--------------------------------------------------------------------------------
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 2.1 of the License, or (at your
5 | option) any later version. (See .)
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 | // Copyright (c) 1996-2013 Live Networks, Inc. All rights reserved.
17 | // A C++ equivalent to the standard C routine "strdup()".
18 | // This generates a char* that can be deleted using "delete[]"
19 | // Implementation
20 |
21 | #include "strDup.h"
22 | #include "string.h"
23 |
24 | char* strDup(char const* str) {
25 | if (str == NULL) return NULL;
26 | size_t len = strlen(str) + 1;
27 | char* copy = new char[len];
28 |
29 | if (copy != NULL) {
30 | memcpy(copy, str, len);
31 | }
32 | return copy;
33 | }
34 |
35 | char* strDupSize(char const* str) {
36 | if (str == NULL) return NULL;
37 | size_t len = strlen(str) + 1;
38 | char* copy = new char[len];
39 |
40 | return copy;
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/config.iphone-simulator:
--------------------------------------------------------------------------------
1 | # **Note: You must install the relevant "Command line tools (OSX *.*) for Xcode - Xcode *.*"
2 | # for this configuration file to work.
3 |
4 | # Change the following version number, if necessary, before running "genMakefiles iphone-simulator"
5 | IOS_VERSION = 8.3
6 | MIN_IOS_VERSION = 7.0
7 |
8 | DEVELOPER_PATH = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
9 | TOOL_PATH = $(DEVELOPER_PATH)/usr/bin
10 | SDK_PATH = $(DEVELOPER_PATH)/SDKs
11 | SDK = $(SDK_PATH)/iPhoneSimulator$(IOS_VERSION).sdk
12 | COMPILE_OPTS = $(INCLUDES) -I. $(EXTRA_LDFLAGS) -DBSD=1 -O2 -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -miphoneos-version-min=$(MIN_IOS_VERSION) -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -arch i386 --sysroot=$(SDK) -isysroot $(SDK)
13 | C = c
14 | C_COMPILER = /usr/bin/xcrun clang
15 | C_FLAGS = $(COMPILE_OPTS)
16 | CPP = cpp
17 | CPLUSPLUS_COMPILER = /usr/bin/xcrun clang
18 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
19 | OBJ = o
20 | LINK = /usr/bin/xcrun clang -o
21 | LINK_OPTS = -L. -arch i386 -miphoneos-version-min=$(MIN_IOS_VERSION) --sysroot=$(SDK) -isysroot -L$(SDK)/usr/lib/system -I$(SDK)/usr/lib /usr/lib/libc++.dylib
22 | CONSOLE_LINK_OPTS = $(LINK_OPTS)
23 | LIBRARY_LINK = /usr/bin/xcrun libtool -static -o
24 | LIBRARY_LINK_OPTS =
25 | LIB_SUFFIX = a
26 | LIBS_FOR_CONSOLE_APPLICATION =
27 | LIBS_FOR_GUI_APPLICATION =
28 | EXE =
29 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/AudioRTPSink.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A generic RTP sink for audio codecs (abstract base class)
19 | // Implementation
20 |
21 | #include "AudioRTPSink.hh"
22 |
23 | AudioRTPSink::AudioRTPSink(UsageEnvironment& env,
24 | Groupsock* rtpgs, unsigned char rtpPayloadType,
25 | unsigned rtpTimestampFrequency,
26 | char const* rtpPayloadFormatName,
27 | unsigned numChannels)
28 | : MultiFramedRTPSink(env, rtpgs, rtpPayloadType, rtpTimestampFrequency,
29 | rtpPayloadFormatName, numChannels) {
30 | }
31 |
32 | AudioRTPSink::~AudioRTPSink() {
33 | }
34 |
35 | char const* AudioRTPSink::sdpMediaType() const {
36 | return "audio";
37 | }
38 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | apply plugin: 'kotlin-android'
4 |
5 | apply plugin: 'kotlin-android-extensions'
6 |
7 | android {
8 | compileSdkVersion 28
9 | defaultConfig {
10 | applicationId "com.rtsp.poe.rtsplive555"
11 | minSdkVersion 18
12 | targetSdkVersion 28
13 | versionCode 1
14 | versionName "1.0"
15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16 | ndk {
17 | abiFilters 'armeabi-v7a'
18 | }
19 | // externalNativeBuild {
20 | // cmake {
21 | // cppFlags "-frtti -fexceptions"
22 | // }
23 | // }
24 | }
25 | buildTypes {
26 | release {
27 | minifyEnabled false
28 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
29 | }
30 | }
31 | // externalNativeBuild {
32 | // cmake {
33 | // path "CMakeLists.txt"
34 | // }
35 | // }
36 | }
37 |
38 | dependencies {
39 | implementation fileTree(include: ['*.jar'], dir: 'libs')
40 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
41 | implementation 'com.android.support:appcompat-v7:28.0.0'
42 | implementation 'com.android.support.constraint:constraint-layout:1.1.3'
43 | testImplementation 'junit:junit:4.12'
44 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
45 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
46 | implementation project(':live555_rtsp_player')
47 | }
48 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/JPEGVideoSource.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // JPEG video sources
19 | // Implementation
20 |
21 | #include "JPEGVideoSource.hh"
22 |
23 | JPEGVideoSource::JPEGVideoSource(UsageEnvironment& env)
24 | : FramedSource(env) {
25 | }
26 |
27 | JPEGVideoSource::~JPEGVideoSource() {
28 | }
29 |
30 | u_int8_t const* JPEGVideoSource::quantizationTables(u_int8_t& precision,
31 | u_int16_t& length) {
32 | // Default implementation
33 | precision = 0;
34 | length = 0;
35 | return NULL;
36 | }
37 |
38 | u_int16_t JPEGVideoSource::restartInterval() {
39 | // Default implementation
40 | return 0;
41 | }
42 |
43 | Boolean JPEGVideoSource::isJPEGVideoSource() const {
44 | return True;
45 | }
46 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/QCELPAudioRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Qualcomm "PureVoice" (aka. "QCELP") Audio RTP Sources
19 | // C++ header
20 |
21 | #ifndef _QCELP_AUDIO_RTP_SOURCE_HH
22 | #define _QCELP_AUDIO_RTP_SOURCE_HH
23 |
24 | #ifndef _RTP_SOURCE_HH
25 | #include "RTPSource.hh"
26 | #endif
27 |
28 | class QCELPAudioRTPSource {
29 | public:
30 | static FramedSource* createNew(UsageEnvironment& env,
31 | Groupsock* RTPgs,
32 | RTPSource*& resultRTPSource,
33 | unsigned char rtpPayloadFormat = 12,
34 | unsigned rtpTimestampFrequency = 8000);
35 | // This returns a source to read from, but "resultRTPSource" will
36 | // point to RTP-related state.
37 | };
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/include/strDup.hh:
--------------------------------------------------------------------------------
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 .)
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 |
17 | #ifndef _STRDUP_HH
18 | #define _STRDUP_HH
19 |
20 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
21 | // A C++ equivalent to the standard C routine "strdup()".
22 | // This generates a char* that can be deleted using "delete[]"
23 | // Header
24 |
25 | #include
26 |
27 | char* strDup(char const* str);
28 | // Note: strDup(NULL) returns NULL
29 |
30 | char* strDupSize(char const* str);
31 | // Like "strDup()", except that it *doesn't* copy the original.
32 | // (Instead, it just allocates a string of the same size as the original.)
33 |
34 | char* strDupSize(char const* str, size_t& resultBufSize);
35 | // An alternative form of "strDupSize()" that also returns the size of the allocated buffer.
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MP3Transcoder.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // MP3 Transcoder
19 | // C++ header
20 |
21 | #ifndef _MP3_TRANSCODER_HH
22 | #define _MP3_TRANSCODER_HH
23 |
24 | #ifndef _MP3_ADU_HH
25 | #include "MP3ADU.hh"
26 | #endif
27 | #ifndef _MP3_ADU_TRANSCODER_HH
28 | #include "MP3ADUTranscoder.hh"
29 | #endif
30 |
31 | class MP3Transcoder: public MP3FromADUSource {
32 | public:
33 | static MP3Transcoder* createNew(UsageEnvironment& env,
34 | unsigned outBitrate /* in kbps */,
35 | FramedSource* inputSource);
36 |
37 | protected:
38 | MP3Transcoder(UsageEnvironment& env,
39 | MP3ADUTranscoder* aduTranscoder);
40 | // called only by createNew()
41 | virtual ~MP3Transcoder();
42 | };
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/win32config.Borland:
--------------------------------------------------------------------------------
1 | # Comment out the following line to produce Makefiles that generate debuggable code:
2 | NODEBUG=1
3 |
4 | # The following definition ensures that we are properly matching
5 | # the WinSock2 library file with the correct header files.
6 | # (will link with "ws2_32.lib" and include "winsock2.h" & "Ws2tcpip.h")
7 | TARGETOS = WINNT
8 |
9 | # If for some reason you wish to use WinSock1 instead, uncomment the
10 | # following two definitions.
11 | # (will link with "wsock32.lib" and include "winsock.h")
12 | #TARGETOS = WIN95
13 | #APPVER = 4.0
14 |
15 | #!include
16 |
17 | UI_OPTS = $(guilflags) $(guilibsdll)
18 | # Use the following to get a console (e.g., for debugging):
19 | CONSOLE_UI_OPTS = $(conlflags) $(conlibsdll)
20 | CPU=i386
21 |
22 | TOOLS32 = C:\Progra~1\Borland\CBuilder5
23 | COMPILE_OPTS = $(INCLUDES) $(cdebug) $(cflags) $(cvarsdll) -I. -I$(TOOLS32)\include
24 | C = c
25 | C_COMPILER = $(TOOLS32)\bin\bcc32
26 | C_FLAGS = $(COMPILE_OPTS)
27 | CPP = cpp
28 | CPLUSPLUS_COMPILER = $(C_COMPILER)
29 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS)
30 | OBJ = obj
31 | LINK = $(TOOLS32)\bin\ilink32
32 | LIBRARY_LINK = $(TOOLS32)\bin\tlib
33 | LINK_OPTS_0 = $(linkdebug) msvcirt.lib
34 | LIBRARY_LINK_OPTS = /u
35 | LINK_OPTS = $(LINK_OPTS_0) $(UI_OPTS)
36 | CONSOLE_LINK_OPTS = c0x32
37 |
38 | SERVICE_LINK_OPTS = kernel32.lib advapi32.lib shell32.lib -subsystem:console,$(APPVER)
39 | LIB_SUFFIX = lib
40 | LIBS_FOR_CONSOLE_APPLICATION = cw32.lib import32.lib
41 | LIBS_FOR_GUI_APPLICATION = ,,cw32
42 | EXE =
43 |
44 | rc32 = $(TOOLS32)\bin\brc32"
45 | .rc.res:
46 | $(rc32) $<
47 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/GSMAudioRTPSink.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for GSM audio
19 | // Implementation
20 |
21 | #include "GSMAudioRTPSink.hh"
22 |
23 | GSMAudioRTPSink::GSMAudioRTPSink(UsageEnvironment& env, Groupsock* RTPgs)
24 | : AudioRTPSink(env, RTPgs, 3, 8000, "GSM") {
25 | }
26 |
27 | GSMAudioRTPSink::~GSMAudioRTPSink() {
28 | }
29 |
30 | GSMAudioRTPSink*
31 | GSMAudioRTPSink::createNew(UsageEnvironment& env, Groupsock* RTPgs) {
32 | return new GSMAudioRTPSink(env, RTPgs);
33 | }
34 |
35 | Boolean GSMAudioRTPSink
36 | ::frameCanAppearAfterPacketStart(unsigned char const* /*frameStart*/,
37 | unsigned /*numBytesInFrame*/) const {
38 | // Allow at most 5 frames in a single packet:
39 | return numFramesUsedSoFar() < 5;
40 | }
41 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/TextRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A generic RTP sink for text codecs (abstract base class)
19 | // C++ header
20 |
21 | #ifndef _TEXT_RTP_SINK_HH
22 | #define _TEXT_RTP_SINK_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SINK_HH
25 | #include "MultiFramedRTPSink.hh"
26 | #endif
27 |
28 | class TextRTPSink: public MultiFramedRTPSink {
29 | protected:
30 | TextRTPSink(UsageEnvironment& env,
31 | Groupsock* rtpgs, unsigned char rtpPayloadType,
32 | unsigned rtpTimestampFrequency,
33 | char const* rtpPayloadFormatName);
34 | // (we're an abstract base class)
35 | virtual ~TextRTPSink();
36 |
37 | private: // redefined virtual functions:
38 | virtual char const* sdpMediaType() const;
39 | };
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/win32config:
--------------------------------------------------------------------------------
1 | # Comment out the following line to produce Makefiles that generate debuggable code:
2 | NODEBUG=1
3 |
4 | # The following definition ensures that we are properly matching
5 | # the WinSock2 library file with the correct header files.
6 | # (will link with "ws2_32.lib" and include "winsock2.h" & "Ws2tcpip.h")
7 | TARGETOS = WINNT
8 |
9 | # If for some reason you wish to use WinSock1 instead, uncomment the
10 | # following two definitions.
11 | # (will link with "wsock32.lib" and include "winsock.h")
12 | #TARGETOS = WIN95
13 | #APPVER = 4.0
14 |
15 | !include
16 |
17 | UI_OPTS = $(guilflags) $(guilibsdll)
18 | # Use the following to get a console (e.g., for debugging):
19 | CONSOLE_UI_OPTS = $(conlflags) $(conlibsdll)
20 | CPU=i386
21 |
22 | TOOLS32 = c:\Program Files\DevStudio\Vc
23 | COMPILE_OPTS = $(INCLUDES) $(cdebug) $(cflags) $(cvarsdll) -I. -I"$(TOOLS32)\include"
24 | C = c
25 | C_COMPILER = "$(TOOLS32)\bin\cl"
26 | C_FLAGS = $(COMPILE_OPTS)
27 | CPP = cpp
28 | CPLUSPLUS_COMPILER = $(C_COMPILER)
29 | CPLUSPLUS_FLAGS = $(COMPILE_OPTS)
30 | OBJ = obj
31 | LINK = $(link) -out:
32 | LIBRARY_LINK = lib -out:
33 | LINK_OPTS_0 = $(linkdebug) msvcirt.lib
34 | LIBRARY_LINK_OPTS =
35 | LINK_OPTS = $(LINK_OPTS_0) $(UI_OPTS)
36 | CONSOLE_LINK_OPTS = $(LINK_OPTS_0) $(CONSOLE_UI_OPTS)
37 | SERVICE_LINK_OPTS = kernel32.lib advapi32.lib shell32.lib -subsystem:console,$(APPVER)
38 | LIB_SUFFIX = lib
39 | LIBS_FOR_CONSOLE_APPLICATION =
40 | LIBS_FOR_GUI_APPLICATION =
41 | MULTIMEDIA_LIBS = winmm.lib
42 | EXE = .exe
43 | PLATFORM = Windows
44 |
45 | rc32 = "$(TOOLS32)\bin\rc"
46 | .rc.res:
47 | $(rc32) $<
48 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/VideoRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A generic RTP sink for video codecs (abstract base class)
19 | // C++ header
20 |
21 | #ifndef _VIDEO_RTP_SINK_HH
22 | #define _VIDEO_RTP_SINK_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SINK_HH
25 | #include "MultiFramedRTPSink.hh"
26 | #endif
27 |
28 | class VideoRTPSink: public MultiFramedRTPSink {
29 | protected:
30 | VideoRTPSink(UsageEnvironment& env,
31 | Groupsock* rtpgs, unsigned char rtpPayloadType,
32 | unsigned rtpTimestampFrequency,
33 | char const* rtpPayloadFormatName);
34 | // (we're an abstract base class)
35 | virtual ~VideoRTPSink();
36 |
37 | private: // redefined virtual functions:
38 | virtual char const* sdpMediaType() const;
39 | };
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/HashTable.cpp:
--------------------------------------------------------------------------------
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 .)
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 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
17 | // Generic Hash Table
18 | // Implementation
19 |
20 | #include "HashTable.hh"
21 |
22 | HashTable::HashTable() {
23 | }
24 |
25 | HashTable::~HashTable() {
26 | }
27 |
28 | HashTable::Iterator::Iterator() {
29 | }
30 |
31 | HashTable::Iterator::~Iterator() {}
32 |
33 | void* HashTable::RemoveNext() {
34 | Iterator* iter = Iterator::create(*this);
35 | char const* key;
36 | void* removedValue = iter->next(key);
37 | if (removedValue != 0) Remove(key);
38 |
39 | delete iter;
40 | return removedValue;
41 | }
42 |
43 | void* HashTable::getFirst() {
44 | Iterator* iter = Iterator::create(*this);
45 | char const* key;
46 | void* firstValue = iter->next(key);
47 |
48 | delete iter;
49 | return firstValue;
50 | }
51 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/mediaServer/Makefile.tail:
--------------------------------------------------------------------------------
1 | ##### End of variables to change
2 |
3 | MEDIA_SERVER = live555MediaServer$(EXE)
4 |
5 | PREFIX = /usr/local
6 | ALL = $(MEDIA_SERVER)
7 | all: $(ALL)
8 |
9 | .$(C).$(OBJ):
10 | $(C_COMPILER) -c $(C_FLAGS) $<
11 | .$(CPP).$(OBJ):
12 | $(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<
13 |
14 | MEDIA_SERVER_OBJS = live555MediaServer.$(OBJ) DynamicRTSPServer.$(OBJ)
15 |
16 | live555MediaServer.$(CPP): DynamicRTSPServer.hh version.hh
17 | DynamicRTSPServer.$(CPP): DynamicRTSPServer.hh
18 |
19 | USAGE_ENVIRONMENT_DIR = ../UsageEnvironment
20 | USAGE_ENVIRONMENT_LIB = $(USAGE_ENVIRONMENT_DIR)/libUsageEnvironment.$(libUsageEnvironment_LIB_SUFFIX)
21 | BASIC_USAGE_ENVIRONMENT_DIR = ../BasicUsageEnvironment
22 | BASIC_USAGE_ENVIRONMENT_LIB = $(BASIC_USAGE_ENVIRONMENT_DIR)/libBasicUsageEnvironment.$(libBasicUsageEnvironment_LIB_SUFFIX)
23 | LIVEMEDIA_DIR = ../liveMedia
24 | LIVEMEDIA_LIB = $(LIVEMEDIA_DIR)/libliveMedia.$(libliveMedia_LIB_SUFFIX)
25 | GROUPSOCK_DIR = ../groupsock
26 | GROUPSOCK_LIB = $(GROUPSOCK_DIR)/libgroupsock.$(libgroupsock_LIB_SUFFIX)
27 | LOCAL_LIBS = $(LIVEMEDIA_LIB) $(GROUPSOCK_LIB) \
28 | $(BASIC_USAGE_ENVIRONMENT_LIB) $(USAGE_ENVIRONMENT_LIB)
29 | LIBS = $(LOCAL_LIBS) $(LIBS_FOR_CONSOLE_APPLICATION)
30 |
31 | live555MediaServer$(EXE): $(MEDIA_SERVER_OBJS) $(LOCAL_LIBS)
32 | $(LINK)$@ $(CONSOLE_LINK_OPTS) $(MEDIA_SERVER_OBJS) $(LIBS)
33 |
34 | clean:
35 | -rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~
36 |
37 | install: $(MEDIA_SERVER)
38 | install -d $(DESTDIR)$(PREFIX)/bin
39 | install -m 755 $(MEDIA_SERVER) $(DESTDIR)$(PREFIX)/bin
40 |
41 | ##### Any additional, platform-specific rules come here:
42 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/GSMAudioRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for GSM audio
19 | // C++ header
20 |
21 | #ifndef _GSM_AUDIO_RTP_SINK_HH
22 | #define _GSM_AUDIO_RTP_SINK_HH
23 |
24 | #ifndef _AUDIO_RTP_SINK_HH
25 | #include "AudioRTPSink.hh"
26 | #endif
27 |
28 | class GSMAudioRTPSink: public AudioRTPSink {
29 | public:
30 | static GSMAudioRTPSink* createNew(UsageEnvironment& env, Groupsock* RTPgs);
31 |
32 | protected:
33 | GSMAudioRTPSink(UsageEnvironment& env, Groupsock* RTPgs);
34 | // called only by createNew()
35 |
36 | virtual ~GSMAudioRTPSink();
37 |
38 | private: // redefined virtual functions:
39 | virtual
40 | Boolean frameCanAppearAfterPacketStart(unsigned char const* frameStart,
41 | unsigned numBytesInFrame) const;
42 | };
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AudioRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A generic RTP sink for audio codecs (abstract base class)
19 | // C++ header
20 |
21 | #ifndef _AUDIO_RTP_SINK_HH
22 | #define _AUDIO_RTP_SINK_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SINK_HH
25 | #include "MultiFramedRTPSink.hh"
26 | #endif
27 |
28 | class AudioRTPSink: public MultiFramedRTPSink {
29 | protected:
30 | AudioRTPSink(UsageEnvironment& env,
31 | Groupsock* rtpgs, unsigned char rtpPayloadType,
32 | unsigned rtpTimestampFrequency,
33 | char const* rtpPayloadFormatName,
34 | unsigned numChannels = 1);
35 | // (we're an abstract base class)
36 | virtual ~AudioRTPSink();
37 |
38 | private: // redefined virtual functions:
39 | virtual char const* sdpMediaType() const;
40 | };
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/UsageEnvironment/strDup.cpp:
--------------------------------------------------------------------------------
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 .)
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 | // Copyright (c) 1996-2018 Live Networks, Inc. All rights reserved.
17 | // A C++ equivalent to the standard C routine "strdup()".
18 | // This generates a char* that can be deleted using "delete[]"
19 | // Implementation
20 |
21 | #include "strDup.hh"
22 |
23 | char* strDup(char const* str) {
24 | if (str == NULL) return NULL;
25 | size_t len = strlen(str) + 1;
26 | char* copy = new char[len];
27 |
28 | if (copy != NULL) {
29 | memcpy(copy, str, len);
30 | }
31 | return copy;
32 | }
33 |
34 | char* strDupSize(char const* str) {
35 | size_t dummy;
36 |
37 | return strDupSize(str, dummy);
38 | }
39 |
40 | char* strDupSize(char const* str, size_t& resultBufSize) {
41 | if (str == NULL) {
42 | resultBufSize = 0;
43 | return NULL;
44 | }
45 |
46 | resultBufSize = strlen(str) + 1;
47 | char* copy = new char[resultBufSize];
48 |
49 | return copy;
50 | }
51 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/Makefile.tail:
--------------------------------------------------------------------------------
1 | ##### End of variables to change
2 |
3 | LIVEMEDIA_DIR = liveMedia
4 | GROUPSOCK_DIR = groupsock
5 | USAGE_ENVIRONMENT_DIR = UsageEnvironment
6 | BASIC_USAGE_ENVIRONMENT_DIR = BasicUsageEnvironment
7 |
8 | TESTPROGS_DIR = testProgs
9 |
10 | MEDIA_SERVER_DIR = mediaServer
11 |
12 | PROXY_SERVER_DIR = proxyServer
13 |
14 | all:
15 | cd $(LIVEMEDIA_DIR) ; $(MAKE)
16 | cd $(GROUPSOCK_DIR) ; $(MAKE)
17 | cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE)
18 | cd $(BASIC_USAGE_ENVIRONMENT_DIR) ; $(MAKE)
19 | cd $(TESTPROGS_DIR) ; $(MAKE)
20 | cd $(MEDIA_SERVER_DIR) ; $(MAKE)
21 | cd $(PROXY_SERVER_DIR) ; $(MAKE)
22 | @echo
23 | @echo "For more information about this source code (including your obligations under the LGPL), please see our FAQ at http://live555.com/liveMedia/faq.html"
24 |
25 | install:
26 | cd $(LIVEMEDIA_DIR) ; $(MAKE) install
27 | cd $(GROUPSOCK_DIR) ; $(MAKE) install
28 | cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) install
29 | cd $(BASIC_USAGE_ENVIRONMENT_DIR) ; $(MAKE) install
30 | cd $(TESTPROGS_DIR) ; $(MAKE) install
31 | cd $(MEDIA_SERVER_DIR) ; $(MAKE) install
32 | cd $(PROXY_SERVER_DIR) ; $(MAKE) install
33 |
34 | clean:
35 | cd $(LIVEMEDIA_DIR) ; $(MAKE) clean
36 | cd $(GROUPSOCK_DIR) ; $(MAKE) clean
37 | cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) clean
38 | cd $(BASIC_USAGE_ENVIRONMENT_DIR) ; $(MAKE) clean
39 | cd $(TESTPROGS_DIR) ; $(MAKE) clean
40 | cd $(MEDIA_SERVER_DIR) ; $(MAKE) clean
41 | cd $(PROXY_SERVER_DIR) ; $(MAKE) clean
42 |
43 | distclean: clean
44 | -rm -f $(LIVEMEDIA_DIR)/Makefile $(GROUPSOCK_DIR)/Makefile \
45 | $(USAGE_ENVIRONMENT_DIR)/Makefile $(BASIC_USAGE_ENVIRONMENT_DIR)/Makefile \
46 | $(TESTPROGS_DIR)/Makefile $(MEDIA_SERVER_DIR)/Makefile \
47 | $(PROXY_SERVER_DIR)/Makefile Makefile
48 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AMRAudioFileSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A source object for AMR audio files (as defined in RFC 4867, section 5)
19 | // C++ header
20 |
21 | #ifndef _AMR_AUDIO_FILE_SOURCE_HH
22 | #define _AMR_AUDIO_FILE_SOURCE_HH
23 |
24 | #ifndef _AMR_AUDIO_SOURCE_HH
25 | #include "AMRAudioSource.hh"
26 | #endif
27 |
28 | class AMRAudioFileSource: public AMRAudioSource {
29 | public:
30 | static AMRAudioFileSource* createNew(UsageEnvironment& env,
31 | char const* fileName);
32 |
33 | private:
34 | AMRAudioFileSource(UsageEnvironment& env, FILE* fid,
35 | Boolean isWideband, unsigned numChannels);
36 | // called only by createNew()
37 |
38 | virtual ~AMRAudioFileSource();
39 |
40 | private:
41 | // redefined virtual functions:
42 | virtual void doGetNextFrame();
43 |
44 | private:
45 | FILE* fFid;
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/H264VideoStreamFramer.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A filter that breaks up a H.264 Video Elementary Stream into NAL units.
19 | // Implementation
20 |
21 | #include "H264VideoStreamFramer.hh"
22 |
23 | H264VideoStreamFramer* H264VideoStreamFramer
24 | ::createNew(UsageEnvironment& env, FramedSource* inputSource, Boolean includeStartCodeInOutput) {
25 | return new H264VideoStreamFramer(env, inputSource, True, includeStartCodeInOutput);
26 | }
27 |
28 | H264VideoStreamFramer
29 | ::H264VideoStreamFramer(UsageEnvironment& env, FramedSource* inputSource, Boolean createParser, Boolean includeStartCodeInOutput)
30 | : H264or5VideoStreamFramer(264, env, inputSource, createParser, includeStartCodeInOutput) {
31 | }
32 |
33 | H264VideoStreamFramer::~H264VideoStreamFramer() {
34 | }
35 |
36 | Boolean H264VideoStreamFramer::isH264VideoStreamFramer() const {
37 | return True;
38 | }
39 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/H265VideoStreamFramer.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A filter that breaks up a H.265 Video Elementary Stream into NAL units.
19 | // Implementation
20 |
21 | #include "H265VideoStreamFramer.hh"
22 |
23 | H265VideoStreamFramer* H265VideoStreamFramer
24 | ::createNew(UsageEnvironment& env, FramedSource* inputSource, Boolean includeStartCodeInOutput) {
25 | return new H265VideoStreamFramer(env, inputSource, True, includeStartCodeInOutput);
26 | }
27 |
28 | H265VideoStreamFramer
29 | ::H265VideoStreamFramer(UsageEnvironment& env, FramedSource* inputSource, Boolean createParser, Boolean includeStartCodeInOutput)
30 | : H264or5VideoStreamFramer(265, env, inputSource, createParser, includeStartCodeInOutput) {
31 | }
32 |
33 | H265VideoStreamFramer::~H265VideoStreamFramer() {
34 | }
35 |
36 | Boolean H265VideoStreamFramer::isH265VideoStreamFramer() const {
37 | return True;
38 | }
39 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/FileServerMediaSubsession.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
19 | // on demand, from a file.
20 | // C++ header
21 |
22 | #ifndef _FILE_SERVER_MEDIA_SUBSESSION_HH
23 | #define _FILE_SERVER_MEDIA_SUBSESSION_HH
24 |
25 | #ifndef _SERVER_MEDIA_SESSION_HH
26 | #include "ServerMediaSession.hh"
27 | #endif
28 | #ifndef _ON_DEMAND_SERVER_MEDIA_SUBSESSION_HH
29 | #include "OnDemandServerMediaSubsession.hh"
30 | #endif
31 |
32 | class FileServerMediaSubsession: public OnDemandServerMediaSubsession {
33 | protected: // we're a virtual base class
34 | FileServerMediaSubsession(UsageEnvironment& env, char const* fileName,
35 | Boolean reuseFirstSource);
36 | virtual ~FileServerMediaSubsession();
37 |
38 | protected:
39 | char const* fFileName;
40 | u_int64_t fFileSize; // if known
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MP3ADURTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP source for 'ADUized' MP3 frames ("mpa-robust")
19 | // C++ header
20 |
21 | #ifndef _MP3_ADU_SOURCE_HH
22 | #define _MP3_ADU_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class MP3ADURTPSource: public MultiFramedRTPSource {
29 | public:
30 | static MP3ADURTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat,
33 | unsigned rtpTimestampFrequency = 90000);
34 |
35 | protected:
36 | virtual ~MP3ADURTPSource();
37 |
38 | private:
39 | MP3ADURTPSource(UsageEnvironment& env, Groupsock* RTPgs,
40 | unsigned char rtpPayloadFormat,
41 | unsigned rtpTimestampFrequency);
42 | // called only by createNew()
43 |
44 | private:
45 | // redefined virtual functions:
46 | virtual char const* MIMEtype() const;
47 | };
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H265VideoStreamFramer.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A filter that breaks up a H.265 Video Elementary Stream into NAL units.
19 | // C++ header
20 |
21 | #ifndef _H265_VIDEO_STREAM_FRAMER_HH
22 | #define _H265_VIDEO_STREAM_FRAMER_HH
23 |
24 | #ifndef _H264_OR_5_VIDEO_STREAM_FRAMER_HH
25 | #include "H264or5VideoStreamFramer.hh"
26 | #endif
27 |
28 | class H265VideoStreamFramer: public H264or5VideoStreamFramer {
29 | public:
30 | static H265VideoStreamFramer* createNew(UsageEnvironment& env, FramedSource* inputSource,
31 | Boolean includeStartCodeInOutput = False);
32 |
33 | protected:
34 | H265VideoStreamFramer(UsageEnvironment& env, FramedSource* inputSource, Boolean createParser, Boolean includeStartCodeInOutput);
35 | // called only by "createNew()"
36 | virtual ~H265VideoStreamFramer();
37 |
38 | // redefined virtual functions:
39 | virtual Boolean isH265VideoStreamFramer() const;
40 | };
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H264VideoStreamFramer.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A filter that breaks up a H.264 Video Elementary Stream into NAL units.
19 | // C++ header
20 |
21 | #ifndef _H264_VIDEO_STREAM_FRAMER_HH
22 | #define _H264_VIDEO_STREAM_FRAMER_HH
23 |
24 | #ifndef _H264_OR_5_VIDEO_STREAM_FRAMER_HH
25 | #include "H264or5VideoStreamFramer.hh"
26 | #endif
27 |
28 | class H264VideoStreamFramer: public H264or5VideoStreamFramer {
29 | public:
30 | static H264VideoStreamFramer* createNew(UsageEnvironment& env, FramedSource* inputSource,
31 | Boolean includeStartCodeInOutput = False);
32 |
33 | protected:
34 | H264VideoStreamFramer(UsageEnvironment& env, FramedSource* inputSource,
35 | Boolean createParser, Boolean includeStartCodeInOutput);
36 | // called only by "createNew()"
37 | virtual ~H264VideoStreamFramer();
38 |
39 | // redefined virtual functions:
40 | virtual Boolean isH264VideoStreamFramer() const;
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/OggDemuxedTrack.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A media track, demultiplexed from an Ogg file
19 | // Implementation
20 |
21 | #include "OggDemuxedTrack.hh"
22 | #include "OggFile.hh"
23 |
24 | OggDemuxedTrack::OggDemuxedTrack(UsageEnvironment& env, unsigned trackNumber, OggDemux& sourceDemux)
25 | : FramedSource(env),
26 | fOurTrackNumber(trackNumber), fOurSourceDemux(sourceDemux),
27 | fCurrentPageIsContinuation(False) {
28 | fNextPresentationTime.tv_sec = 0; fNextPresentationTime.tv_usec = 0;
29 | }
30 |
31 | OggDemuxedTrack::~OggDemuxedTrack() {
32 | fOurSourceDemux.removeTrack(fOurTrackNumber);
33 | }
34 |
35 | void OggDemuxedTrack::doGetNextFrame() {
36 | fOurSourceDemux.continueReading();
37 | }
38 |
39 | char const* OggDemuxedTrack::MIMEtype() const {
40 | OggTrack* track = fOurSourceDemux.fOurFile.lookup(fOurTrackNumber);
41 | if (track == NULL) return "(unknown)"; // shouldn't happen
42 | return track->mimeType;
43 | }
44 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/AudioInputDevice.cpp:
--------------------------------------------------------------------------------
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 .)
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 | // Copyright (c) 2001-2003 Live Networks, Inc. All rights reserved.
17 | // Generic audio input device (such as a microphone, or an input sound card)
18 | // Implementation
19 |
20 | #include
21 |
22 | AudioInputDevice
23 | ::AudioInputDevice(UsageEnvironment& env, unsigned char bitsPerSample,
24 | unsigned char numChannels,
25 | unsigned samplingFrequency, unsigned granularityInMS)
26 | : FramedSource(env), fBitsPerSample(bitsPerSample),
27 | fNumChannels(numChannels), fSamplingFrequency(samplingFrequency),
28 | fGranularityInMS(granularityInMS) {
29 | }
30 |
31 | AudioInputDevice::~AudioInputDevice() {
32 | }
33 |
34 | char** AudioInputDevice::allowedDeviceNames = NULL;
35 |
36 | ////////// AudioPortNames implementation //////////
37 |
38 | AudioPortNames::AudioPortNames()
39 | : numPorts(0), portName(NULL) {
40 | }
41 |
42 | AudioPortNames::~AudioPortNames() {
43 | for (unsigned i = 0; i < numPorts; ++i) delete portName[i];
44 | delete portName;
45 | }
46 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/H264VideoStreamDiscreteFramer.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A simplified version of "H264VideoStreamFramer" that takes only complete,
19 | // discrete frames (rather than an arbitrary byte stream) as input.
20 | // This avoids the parsing and data copying overhead of the full
21 | // "H264VideoStreamFramer".
22 | // Implementation
23 |
24 | #include "H264VideoStreamDiscreteFramer.hh"
25 |
26 | H264VideoStreamDiscreteFramer*
27 | H264VideoStreamDiscreteFramer::createNew(UsageEnvironment& env, FramedSource* inputSource) {
28 | return new H264VideoStreamDiscreteFramer(env, inputSource);
29 | }
30 |
31 | H264VideoStreamDiscreteFramer
32 | ::H264VideoStreamDiscreteFramer(UsageEnvironment& env, FramedSource* inputSource)
33 | : H264or5VideoStreamDiscreteFramer(264, env, inputSource) {
34 | }
35 |
36 | H264VideoStreamDiscreteFramer::~H264VideoStreamDiscreteFramer() {
37 | }
38 |
39 | Boolean H264VideoStreamDiscreteFramer::isH264VideoStreamFramer() const {
40 | return True;
41 | }
42 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/H265VideoStreamDiscreteFramer.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A simplified version of "H265VideoStreamFramer" that takes only complete,
19 | // discrete frames (rather than an arbitrary byte stream) as input.
20 | // This avoids the parsing and data copying overhead of the full
21 | // "H265VideoStreamFramer".
22 | // Implementation
23 |
24 | #include "H265VideoStreamDiscreteFramer.hh"
25 |
26 | H265VideoStreamDiscreteFramer*
27 | H265VideoStreamDiscreteFramer::createNew(UsageEnvironment& env, FramedSource* inputSource) {
28 | return new H265VideoStreamDiscreteFramer(env, inputSource);
29 | }
30 |
31 | H265VideoStreamDiscreteFramer
32 | ::H265VideoStreamDiscreteFramer(UsageEnvironment& env, FramedSource* inputSource)
33 | : H264or5VideoStreamDiscreteFramer(265, env, inputSource) {
34 | }
35 |
36 | H265VideoStreamDiscreteFramer::~H265VideoStreamDiscreteFramer() {
37 | }
38 |
39 | Boolean H265VideoStreamDiscreteFramer::isH265VideoStreamFramer() const {
40 | return True;
41 | }
42 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/MPEGVideoStreamParser.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // An abstract parser for MPEG video streams
19 | // Implementation
20 |
21 | #include "MPEGVideoStreamParser.hh"
22 |
23 | MPEGVideoStreamParser
24 | ::MPEGVideoStreamParser(MPEGVideoStreamFramer* usingSource,
25 | FramedSource* inputSource)
26 | : StreamParser(inputSource, FramedSource::handleClosure, usingSource,
27 | &MPEGVideoStreamFramer::continueReadProcessing, usingSource),
28 | fUsingSource(usingSource) {
29 | }
30 |
31 | MPEGVideoStreamParser::~MPEGVideoStreamParser() {
32 | }
33 |
34 | void MPEGVideoStreamParser::restoreSavedParserState() {
35 | StreamParser::restoreSavedParserState();
36 | fTo = fSavedTo;
37 | fNumTruncatedBytes = fSavedNumTruncatedBytes;
38 | }
39 |
40 | void MPEGVideoStreamParser::registerReadInterest(unsigned char* to,
41 | unsigned maxSize) {
42 | fStartOfFrame = fTo = fSavedTo = to;
43 | fLimit = to + maxSize;
44 | fNumTruncatedBytes = fSavedNumTruncatedBytes = 0;
45 | }
46 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/groupsock/GroupEId.cpp:
--------------------------------------------------------------------------------
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 .)
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 | // Copyright (c) 1996-2018, Live Networks, Inc. All rights reserved
17 | // "Group Endpoint Id"
18 | // Implementation
19 |
20 | #include "GroupEId.hh"
21 |
22 |
23 | GroupEId::GroupEId(struct in_addr const& groupAddr,
24 | portNumBits portNum, u_int8_t ttl) {
25 | struct in_addr sourceFilterAddr;
26 | sourceFilterAddr.s_addr = ~0; // indicates no source filter
27 |
28 | init(groupAddr, sourceFilterAddr, portNum, ttl);
29 | }
30 |
31 | GroupEId::GroupEId(struct in_addr const& groupAddr,
32 | struct in_addr const& sourceFilterAddr,
33 | portNumBits portNum) {
34 | init(groupAddr, sourceFilterAddr, portNum, 255);
35 | }
36 |
37 | Boolean GroupEId::isSSM() const {
38 | return fSourceFilterAddress.s_addr != netAddressBits(~0);
39 | }
40 |
41 | void GroupEId::init(struct in_addr const& groupAddr,
42 | struct in_addr const& sourceFilterAddr,
43 | portNumBits portNum,
44 | u_int8_t ttl) {
45 | fGroupAddress = groupAddr;
46 | fSourceFilterAddress = sourceFilterAddr;
47 | fPortNum = portNum;
48 | fTTL = ttl;
49 | }
50 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/BasicUsageEnvironment/Makefile.tail:
--------------------------------------------------------------------------------
1 | ##### End of variables to change
2 |
3 | NAME = libBasicUsageEnvironment
4 | LIB_FILE = $(NAME).$(LIB_SUFFIX)
5 | ALL = $(LIB_FILE)
6 | all: $(ALL)
7 |
8 | OBJS = BasicUsageEnvironment0.$(OBJ) BasicUsageEnvironment.$(OBJ) \
9 | BasicTaskScheduler0.$(OBJ) BasicTaskScheduler.$(OBJ) \
10 | DelayQueue.$(OBJ) BasicHashTable.$(OBJ)
11 |
12 | libBasicUsageEnvironment.$(LIB_SUFFIX): $(OBJS)
13 | $(LIBRARY_LINK)$@ $(LIBRARY_LINK_OPTS) \
14 | $(OBJS)
15 |
16 | .$(C).$(OBJ):
17 | $(C_COMPILER) -c $(C_FLAGS) $<
18 |
19 | .$(CPP).$(OBJ):
20 | $(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<
21 |
22 | BasicUsageEnvironment0.$(CPP): include/BasicUsageEnvironment0.hh
23 | include/BasicUsageEnvironment0.hh: include/BasicUsageEnvironment_version.hh include/DelayQueue.hh
24 | BasicUsageEnvironment.$(CPP): include/BasicUsageEnvironment.hh
25 | include/BasicUsageEnvironment.hh: include/BasicUsageEnvironment0.hh
26 | BasicTaskScheduler0.$(CPP): include/BasicUsageEnvironment0.hh include/HandlerSet.hh
27 | BasicTaskScheduler.$(CPP): include/BasicUsageEnvironment.hh include/HandlerSet.hh
28 | DelayQueue.$(CPP): include/DelayQueue.hh
29 | BasicHashTable.$(CPP): include/BasicHashTable.hh
30 |
31 | clean:
32 | -rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~
33 |
34 | install: install1 $(INSTALL2)
35 | install1: libBasicUsageEnvironment.$(LIB_SUFFIX)
36 | install -d $(DESTDIR)$(PREFIX)/include/BasicUsageEnvironment $(DESTDIR)$(LIBDIR)
37 | install -m 644 include/*.hh $(DESTDIR)$(PREFIX)/include/BasicUsageEnvironment
38 | install -m 644 libBasicUsageEnvironment.$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)
39 | install_shared_libraries: libBasicUsageEnvironment.$(LIB_SUFFIX)
40 | ln -fs $(NAME).$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)/$(NAME).$(SHORT_LIB_SUFFIX)
41 | ln -fs $(NAME).$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)/$(NAME).so
42 |
43 | ##### Any additional, platform-specific rules come here:
44 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/Base64.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Base64 encoding and decoding
19 | // C++ header
20 |
21 | #ifndef _BASE64_HH
22 | #define _BASE64_HH
23 |
24 | #ifndef _BOOLEAN_HH
25 | #include "Boolean.hh"
26 | #endif
27 |
28 | unsigned char* base64Decode(char const* in, unsigned& resultSize,
29 | Boolean trimTrailingZeros = True);
30 | // returns a newly allocated array - of size "resultSize" - that
31 | // the caller is responsible for delete[]ing.
32 |
33 | unsigned char* base64Decode(char const* in, unsigned inSize,
34 | unsigned& resultSize,
35 | Boolean trimTrailingZeros = True);
36 | // As above, but includes the size of the input string (i.e., the number of bytes to decode) as a parameter.
37 | // This saves an extra call to "strlen()" if we already know the length of the input string.
38 |
39 | char* base64Encode(char const* orig, unsigned origLength);
40 | // returns a 0-terminated string that
41 | // the caller is responsible for delete[]ing.
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H264or5VideoFileSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // H.264 or H.265 Video File Sinks
19 | // C++ header
20 |
21 | #ifndef _H264_OR_5_VIDEO_FILE_SINK_HH
22 | #define _H264_OR_5_VIDEO_FILE_SINK_HH
23 |
24 | #ifndef _FILE_SINK_HH
25 | #include "FileSink.hh"
26 | #endif
27 |
28 | class H264or5VideoFileSink: public FileSink {
29 | protected:
30 | H264or5VideoFileSink(UsageEnvironment& env, FILE* fid,
31 | unsigned bufferSize, char const* perFrameFileNamePrefix,
32 | char const* sPropParameterSetsStr1,
33 | char const* sPropParameterSetsStr2 = NULL,
34 | char const* sPropParameterSetsStr3 = NULL);
35 | // we're an abstract base class
36 | virtual ~H264or5VideoFileSink();
37 |
38 | protected: // redefined virtual functions:
39 | virtual void afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime);
40 |
41 | private:
42 | char const* fSPropParameterSetsStr[3];
43 | Boolean fHaveWrittenFirstFrame;
44 | };
45 |
46 | #endif
47 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AMRAudioSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A source object for AMR audio sources
19 | // C++ header
20 |
21 | #ifndef _AMR_AUDIO_SOURCE_HH
22 | #define _AMR_AUDIO_SOURCE_HH
23 |
24 | #ifndef _FRAMED_SOURCE_HH
25 | #include "FramedSource.hh"
26 | #endif
27 |
28 | class AMRAudioSource: public FramedSource {
29 | public:
30 | Boolean isWideband() const { return fIsWideband; }
31 | unsigned numChannels() const { return fNumChannels; }
32 |
33 | u_int8_t lastFrameHeader() const { return fLastFrameHeader; }
34 | // The frame header for the most recently read frame (RFC 4867, sec. 5.3)
35 |
36 | protected:
37 | AMRAudioSource(UsageEnvironment& env, Boolean isWideband, unsigned numChannels);
38 | // virtual base class
39 | virtual ~AMRAudioSource();
40 |
41 | private:
42 | // redefined virtual functions:
43 | virtual char const* MIMEtype() const;
44 | virtual Boolean isAMRAudioSource() const;
45 |
46 | protected:
47 | Boolean fIsWideband;
48 | unsigned fNumChannels;
49 | u_int8_t fLastFrameHeader;
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/DVVideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // DV Video RTP Sources
19 | // C++ header
20 |
21 | #ifndef _DV_VIDEO_RTP_SOURCE_HH
22 | #define _DV_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class DVVideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static DVVideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat,
33 | unsigned rtpTimestampFrequency);
34 |
35 | protected:
36 | virtual ~DVVideoRTPSource();
37 |
38 | private:
39 | DVVideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
40 | unsigned char rtpPayloadFormat,
41 | unsigned rtpTimestampFrequency);
42 | // called only by createNew()
43 |
44 | private:
45 | // redefined virtual functions:
46 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
47 | unsigned& resultSpecialHeaderSize);
48 | virtual char const* MIMEtype() const;
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/FramedFilter.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Framed Filters
19 | // C++ header
20 |
21 | #ifndef _FRAMED_FILTER_HH
22 | #define _FRAMED_FILTER_HH
23 |
24 | #ifndef _FRAMED_SOURCE_HH
25 | #include "FramedSource.hh"
26 | #endif
27 |
28 | class FramedFilter: public FramedSource {
29 | public:
30 | FramedSource* inputSource() const { return fInputSource; }
31 |
32 | void reassignInputSource(FramedSource* newInputSource) { fInputSource = newInputSource; }
33 |
34 | // Call before destruction if you want to prevent the destructor from closing the input source
35 | void detachInputSource();
36 |
37 | protected:
38 | FramedFilter(UsageEnvironment& env, FramedSource* inputSource);
39 | // abstract base class
40 | virtual ~FramedFilter();
41 |
42 | protected:
43 | // Redefined virtual functions (with default 'null' implementations):
44 | virtual char const* MIMEtype() const;
45 | virtual void getAttributes() const;
46 | virtual void doStopGettingFrames();
47 |
48 | protected:
49 | FramedSource* fInputSource;
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/VP8VideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // VP8 Video RTP Sources
19 | // C++ header
20 |
21 | #ifndef _VP8_VIDEO_RTP_SOURCE_HH
22 | #define _VP8_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class VP8VideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static VP8VideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat,
33 | unsigned rtpTimestampFrequency = 90000);
34 |
35 | protected:
36 | VP8VideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
37 | unsigned char rtpPayloadFormat,
38 | unsigned rtpTimestampFrequency);
39 | // called only by createNew()
40 |
41 | virtual ~VP8VideoRTPSource();
42 |
43 | protected:
44 | // redefined virtual functions:
45 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
46 | unsigned& resultSpecialHeaderSize);
47 | virtual char const* MIMEtype() const;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/VP9VideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // VP9 Video RTP Sources
19 | // C++ header
20 |
21 | #ifndef _VP9_VIDEO_RTP_SOURCE_HH
22 | #define _VP9_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class VP9VideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static VP9VideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat,
33 | unsigned rtpTimestampFrequency = 90000);
34 |
35 | protected:
36 | VP9VideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
37 | unsigned char rtpPayloadFormat,
38 | unsigned rtpTimestampFrequency);
39 | // called only by createNew()
40 |
41 | virtual ~VP9VideoRTPSource();
42 |
43 | protected:
44 | // redefined virtual functions:
45 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
46 | unsigned& resultSpecialHeaderSize);
47 | virtual char const* MIMEtype() const;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AC3AudioRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // AC3 Audio RTP Sources
19 | // C++ header
20 |
21 | #ifndef _AC3_AUDIO_RTP_SOURCE_HH
22 | #define _AC3_AUDIO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class AC3AudioRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static AC3AudioRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat,
33 | unsigned rtpTimestampFrequency);
34 |
35 | protected:
36 | virtual ~AC3AudioRTPSource();
37 |
38 | private:
39 | AC3AudioRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
40 | unsigned char rtpPayloadFormat,
41 | unsigned rtpTimestampFrequency);
42 | // called only by createNew()
43 |
44 | private:
45 | // redefined virtual functions:
46 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
47 | unsigned& resultSpecialHeaderSize);
48 | virtual char const* MIMEtype() const;
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/BasicUDPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A simple UDP source, where every UDP payload is a complete frame
19 | // C++ header
20 |
21 | #ifndef _BASIC_UDP_SOURCE_HH
22 | #define _BASIC_UDP_SOURCE_HH
23 |
24 | #ifndef _FRAMED_SOURCE_HH
25 | #include "FramedSource.hh"
26 | #endif
27 | #ifndef _GROUPSOCK_HH
28 | #include "Groupsock.hh"
29 | #endif
30 |
31 | class BasicUDPSource: public FramedSource {
32 | public:
33 | static BasicUDPSource* createNew(UsageEnvironment& env, Groupsock* inputGS);
34 |
35 | virtual ~BasicUDPSource();
36 |
37 | Groupsock* gs() const { return fInputGS; }
38 |
39 | private:
40 | BasicUDPSource(UsageEnvironment& env, Groupsock* inputGS);
41 | // called only by createNew()
42 |
43 | static void incomingPacketHandler(BasicUDPSource* source, int mask);
44 | void incomingPacketHandler1();
45 |
46 | private: // redefined virtual functions:
47 | virtual void doGetNextFrame();
48 | virtual void doStopGettingFrames();
49 |
50 | private:
51 | Groupsock* fInputGS;
52 | Boolean fHaveStartedReading;
53 | };
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MPEG4ESVideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // MP4V-ES video RTP stream sources
19 | // C++ header
20 |
21 | #ifndef _MPEG4_ES_VIDEO_RTP_SOURCE_HH
22 | #define _MPEG4_ES_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class MPEG4ESVideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static MPEG4ESVideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat,
33 | unsigned rtpTimestampFrequency);
34 |
35 | protected:
36 | virtual ~MPEG4ESVideoRTPSource();
37 |
38 | private:
39 | MPEG4ESVideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
40 | unsigned char rtpPayloadFormat,
41 | unsigned rtpTimestampFrequency);
42 | // called only by createNew()
43 |
44 | private:
45 | // redefined virtual functions:
46 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
47 | unsigned& resultSpecialHeaderSize);
48 | virtual char const* MIMEtype() const;
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H264VideoStreamDiscreteFramer.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A simplified version of "H264VideoStreamFramer" that takes only complete,
19 | // discrete frames (rather than an arbitrary byte stream) as input.
20 | // This avoids the parsing and data copying overhead of the full
21 | // "H264VideoStreamFramer".
22 | // C++ header
23 |
24 | #ifndef _H264_VIDEO_STREAM_DISCRETE_FRAMER_HH
25 | #define _H264_VIDEO_STREAM_DISCRETE_FRAMER_HH
26 |
27 | #ifndef _H264_OR_5_VIDEO_STREAM_DISCRETE_FRAMER_HH
28 | #include "H264or5VideoStreamDiscreteFramer.hh"
29 | #endif
30 |
31 | class H264VideoStreamDiscreteFramer: public H264or5VideoStreamDiscreteFramer {
32 | public:
33 | static H264VideoStreamDiscreteFramer*
34 | createNew(UsageEnvironment& env, FramedSource* inputSource);
35 |
36 | protected:
37 | H264VideoStreamDiscreteFramer(UsageEnvironment& env, FramedSource* inputSource);
38 | // called only by createNew()
39 | virtual ~H264VideoStreamDiscreteFramer();
40 |
41 | private:
42 | // redefined virtual functions:
43 | virtual Boolean isH264VideoStreamFramer() const;
44 | };
45 |
46 | #endif
47 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H265VideoStreamDiscreteFramer.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A simplified version of "H265VideoStreamFramer" that takes only complete,
19 | // discrete frames (rather than an arbitrary byte stream) as input.
20 | // This avoids the parsing and data copying overhead of the full
21 | // "H265VideoStreamFramer".
22 | // C++ header
23 |
24 | #ifndef _H265_VIDEO_STREAM_DISCRETE_FRAMER_HH
25 | #define _H265_VIDEO_STREAM_DISCRETE_FRAMER_HH
26 |
27 | #ifndef _H264_OR_5_VIDEO_STREAM_DISCRETE_FRAMER_HH
28 | #include "H264or5VideoStreamDiscreteFramer.hh"
29 | #endif
30 |
31 | class H265VideoStreamDiscreteFramer: public H264or5VideoStreamDiscreteFramer {
32 | public:
33 | static H265VideoStreamDiscreteFramer*
34 | createNew(UsageEnvironment& env, FramedSource* inputSource);
35 |
36 | protected:
37 | H265VideoStreamDiscreteFramer(UsageEnvironment& env, FramedSource* inputSource);
38 | // called only by createNew()
39 | virtual ~H265VideoStreamDiscreteFramer();
40 |
41 | private:
42 | // redefined virtual functions:
43 | virtual Boolean isH265VideoStreamFramer() const;
44 | };
45 |
46 | #endif
47 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MPEG1or2AudioRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for MPEG audio (RFC 2250)
19 | // C++ header
20 |
21 | #ifndef _MPEG_1OR2_AUDIO_RTP_SINK_HH
22 | #define _MPEG_1OR2_AUDIO_RTP_SINK_HH
23 |
24 | #ifndef _AUDIO_RTP_SINK_HH
25 | #include "AudioRTPSink.hh"
26 | #endif
27 |
28 | class MPEG1or2AudioRTPSink: public AudioRTPSink {
29 | public:
30 | static MPEG1or2AudioRTPSink* createNew(UsageEnvironment& env,
31 | Groupsock* RTPgs);
32 |
33 | protected:
34 | MPEG1or2AudioRTPSink(UsageEnvironment& env, Groupsock* RTPgs);
35 | // called only by createNew()
36 |
37 | virtual ~MPEG1or2AudioRTPSink();
38 |
39 | private: // redefined virtual functions:
40 | virtual void doSpecialFrameHandling(unsigned fragmentationOffset,
41 | unsigned char* frameStart,
42 | unsigned numBytesInFrame,
43 | struct timeval framePresentationTime,
44 | unsigned numRemainingBytes);
45 | virtual unsigned specialHeaderSize() const;
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AMRAudioFileSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // AMR Audio File Sinks
19 | // C++ header
20 |
21 | #ifndef _AMR_AUDIO_FILE_SINK_HH
22 | #define _AMR_AUDIO_FILE_SINK_HH
23 |
24 | #ifndef _FILE_SINK_HH
25 | #include "FileSink.hh"
26 | #endif
27 |
28 | class AMRAudioFileSink: public FileSink {
29 | public:
30 | static AMRAudioFileSink* createNew(UsageEnvironment& env, char const* fileName,
31 | unsigned bufferSize = 10000,
32 | Boolean oneFilePerFrame = False);
33 | // (See "FileSink.hh" for a description of these parameters.)
34 |
35 | protected:
36 | AMRAudioFileSink(UsageEnvironment& env, FILE* fid, unsigned bufferSize,
37 | char const* perFrameFileNamePrefix);
38 | // called only by createNew()
39 | virtual ~AMRAudioFileSink();
40 |
41 | protected: // redefined virtual functions:
42 | virtual Boolean sourceIsCompatibleWithUs(MediaSource& source);
43 | virtual void afterGettingFrame(unsigned frameSize,
44 | unsigned numTruncatedBytes,
45 | struct timeval presentationTime);
46 |
47 | protected:
48 | Boolean fHaveWrittenHeader;
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/java/com/rtsp/poe/rtsplive555/RTSPClient.java:
--------------------------------------------------------------------------------
1 | package com.rtsp.poe.rtsplive555;
2 |
3 | import android.text.TextUtils;
4 | import android.util.Log;
5 |
6 | public class RTSPClient {
7 |
8 | private static final String TAG = "RTSPClient";
9 | private static RTSPVideoListener mVideoListener;
10 | private static RTSPInfoListener mInfoListener;
11 |
12 | public static final String DEFAULT_RTSP_PATH = "rtsp://192.168.1.110/media/live/1/1";
13 |
14 | static {
15 | System.loadLibrary("rtsp-lib");
16 | }
17 |
18 | public interface Callback {
19 | void onFrame(byte[] data, int len);
20 |
21 | void onInfo(String info);
22 |
23 | void onResolution(int width, int height);
24 | }
25 |
26 | public static native int start(String path);
27 |
28 | public static native void stop();
29 |
30 | public static native void setCallback(Callback callback);
31 |
32 |
33 | public static void Play(String path){
34 | start(path);
35 | }
36 |
37 | public static void Stop(){
38 | stop();
39 | }
40 |
41 | public void onNativeCallBack(byte[] data, int len) {
42 | // 获取的数据回调,加入自己的逻辑
43 | Log.i(TAG,"len: "+len+" byte[]: "+data.toString());
44 | if(null != mVideoListener) mVideoListener.videoCallBack(data,len);
45 | }
46 |
47 | public void onNativeInfo(String errorMsg) {
48 | if (TextUtils.isEmpty(errorMsg)) {
49 | return;
50 | }
51 | Log.d("RTSPClient", errorMsg);
52 | }
53 |
54 |
55 | public static void setRTSPVideoListener(RTSPVideoListener listener) {
56 | mVideoListener = listener;
57 | }
58 |
59 | public static void setRTSPInfoListener(RTSPInfoListener listener) {
60 | mInfoListener = listener;
61 | }
62 |
63 | public interface RTSPVideoListener {
64 | void videoCallBack(byte[] data, int len);
65 | }
66 |
67 | public interface RTSPInfoListener {
68 | void infoCallBack(String msg);
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MPEG1or2AudioRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // MPEG-1 or MPEG-2 Audio RTP Sources
19 | // C++ header
20 |
21 | #ifndef _MPEG_1OR2_AUDIO_RTP_SOURCE_HH
22 | #define _MPEG_1OR2_AUDIO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class MPEG1or2AudioRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static MPEG1or2AudioRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat = 14,
33 | unsigned rtpTimestampFrequency = 90000);
34 |
35 | protected:
36 | virtual ~MPEG1or2AudioRTPSource();
37 |
38 | private:
39 | MPEG1or2AudioRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
40 | unsigned char rtpPayloadFormat,
41 | unsigned rtpTimestampFrequency);
42 | // called only by createNew()
43 |
44 | private:
45 | // redefined virtual functions:
46 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
47 | unsigned& resultSpecialHeaderSize);
48 | virtual char const* MIMEtype() const;
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/mediaServer/DynamicRTSPServer.hh:
--------------------------------------------------------------------------------
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 .)
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 | // Copyright (c) 1996-2018, Live Networks, Inc. All rights reserved
17 | // A subclass of "RTSPServer" that creates "ServerMediaSession"s on demand,
18 | // based on whether or not the specified stream name exists as a file
19 | // Header file
20 |
21 | #ifndef _DYNAMIC_RTSP_SERVER_HH
22 | #define _DYNAMIC_RTSP_SERVER_HH
23 |
24 | #ifndef _RTSP_SERVER_SUPPORTING_HTTP_STREAMING_HH
25 | #include "RTSPServerSupportingHTTPStreaming.hh"
26 | #endif
27 |
28 | class DynamicRTSPServer: public RTSPServerSupportingHTTPStreaming {
29 | public:
30 | static DynamicRTSPServer* createNew(UsageEnvironment& env, Port ourPort,
31 | UserAuthenticationDatabase* authDatabase,
32 | unsigned reclamationTestSeconds = 65);
33 |
34 | protected:
35 | DynamicRTSPServer(UsageEnvironment& env, int ourSocket, Port ourPort,
36 | UserAuthenticationDatabase* authDatabase, unsigned reclamationTestSeconds);
37 | // called only by createNew();
38 | virtual ~DynamicRTSPServer();
39 |
40 | protected: // redefined virtual functions
41 | virtual ServerMediaSession*
42 | lookupServerMediaSession(char const* streamName, Boolean isFirstLookupInSession);
43 | };
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/MP3ADUdescriptor.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Descriptor preceding frames of 'ADU' MP3 streams (for improved loss-tolerance)
19 | // C++ header
20 |
21 | #ifndef _MP3_ADU_DESCRIPTOR_HH
22 | #define _MP3_ADU_DESCRIPTOR_HH
23 |
24 | // A class for handling the descriptor that begins each ADU frame:
25 | // (Note: We don't yet implement fragmentation)
26 | class ADUdescriptor {
27 | public:
28 | // Operations for generating a new descriptor
29 | static unsigned computeSize(unsigned remainingFrameSize) {
30 | return remainingFrameSize >= 64 ? 2 : 1;
31 | }
32 | static unsigned generateDescriptor(unsigned char*& toPtr, unsigned remainingFrameSize);
33 | // returns descriptor size; increments "toPtr" afterwards
34 | static void generateTwoByteDescriptor(unsigned char*& toPtr, unsigned remainingFrameSize);
35 | // always generates a 2-byte descriptor, even if "remainingFrameSize" is
36 | // small enough for a 1-byte descriptor
37 |
38 | // Operations for reading a descriptor
39 | static unsigned getRemainingFrameSize(unsigned char*& fromPtr);
40 | // increments "fromPtr" afterwards
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/MatroskaDemuxedTrack.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A media track, demultiplexed from a Matroska file
19 | // Implementation
20 |
21 | #include "MatroskaDemuxedTrack.hh"
22 | #include "MatroskaFile.hh"
23 |
24 | void MatroskaDemuxedTrack::seekToTime(double& seekNPT) {
25 | fOurSourceDemux.seekToTime(seekNPT);
26 | }
27 |
28 | MatroskaDemuxedTrack::MatroskaDemuxedTrack(UsageEnvironment& env, unsigned trackNumber, MatroskaDemux& sourceDemux)
29 | : FramedSource(env),
30 | fOurTrackNumber(trackNumber), fOurSourceDemux(sourceDemux), fDurationImbalance(0),
31 | fOpusTrackNumber(0) {
32 | fPrevPresentationTime.tv_sec = 0; fPrevPresentationTime.tv_usec = 0;
33 | }
34 |
35 | MatroskaDemuxedTrack::~MatroskaDemuxedTrack() {
36 | fOurSourceDemux.removeTrack(fOurTrackNumber);
37 | }
38 |
39 | void MatroskaDemuxedTrack::doGetNextFrame() {
40 | fOurSourceDemux.continueReading();
41 | }
42 |
43 | char const* MatroskaDemuxedTrack::MIMEtype() const {
44 | MatroskaTrack* track = fOurSourceDemux.fOurFile.lookup(fOurTrackNumber);
45 | if (track == NULL) return "(unknown)"; // shouldn't happen
46 | return track->mimeType;
47 | }
48 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H264VideoFileSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // H.264 Video File Sinks
19 | // C++ header
20 |
21 | #ifndef _H264_VIDEO_FILE_SINK_HH
22 | #define _H264_VIDEO_FILE_SINK_HH
23 |
24 | #ifndef _H264_OR_5_VIDEO_FILE_SINK_HH
25 | #include "H264or5VideoFileSink.hh"
26 | #endif
27 |
28 | class H264VideoFileSink: public H264or5VideoFileSink {
29 | public:
30 | static H264VideoFileSink* createNew(UsageEnvironment& env, char const* fileName,
31 | char const* sPropParameterSetsStr = NULL,
32 | // "sPropParameterSetsStr" is an optional 'SDP format' string
33 | // (comma-separated Base64-encoded) representing SPS and/or PPS NAL-units
34 | // to prepend to the output
35 | unsigned bufferSize = 100000,
36 | Boolean oneFilePerFrame = False);
37 | // See "FileSink.hh" for a description of these parameters.
38 |
39 | protected:
40 | H264VideoFileSink(UsageEnvironment& env, FILE* fid,
41 | char const* sPropParameterSetsStr,
42 | unsigned bufferSize, char const* perFrameFileNamePrefix);
43 | // called only by createNew()
44 | virtual ~H264VideoFileSink();
45 | };
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/groupsock/Makefile.tail:
--------------------------------------------------------------------------------
1 | ##### End of variables to change
2 |
3 | NAME = libgroupsock
4 | ALL = $(NAME).$(LIB_SUFFIX)
5 | all: $(ALL)
6 |
7 | .$(C).$(OBJ):
8 | $(C_COMPILER) -c $(C_FLAGS) $<
9 | .$(CPP).$(OBJ):
10 | $(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<
11 |
12 | GROUPSOCK_LIB_OBJS = GroupsockHelper.$(OBJ) GroupEId.$(OBJ) inet.$(OBJ) Groupsock.$(OBJ) NetInterface.$(OBJ) NetAddress.$(OBJ) IOHandlers.$(OBJ)
13 |
14 | GroupsockHelper.$(CPP): include/GroupsockHelper.hh
15 | include/GroupsockHelper.hh: include/NetAddress.hh
16 | include/NetAddress.hh: include/NetCommon.h
17 | GroupEId.$(CPP): include/GroupEId.hh
18 | include/GroupEId.hh: include/NetAddress.hh
19 | inet.$(C): include/NetCommon.h
20 | Groupsock.$(CPP): include/Groupsock.hh include/GroupsockHelper.hh include/TunnelEncaps.hh
21 | include/Groupsock.hh: include/groupsock_version.hh include/NetInterface.hh include/GroupEId.hh
22 | include/NetInterface.hh: include/NetAddress.hh
23 | include/TunnelEncaps.hh: include/NetAddress.hh
24 | NetInterface.$(CPP): include/NetInterface.hh include/GroupsockHelper.hh
25 | NetAddress.$(CPP): include/NetAddress.hh include/GroupsockHelper.hh
26 | IOHandlers.$(CPP): include/IOHandlers.hh include/TunnelEncaps.hh
27 |
28 | libgroupsock.$(LIB_SUFFIX): $(GROUPSOCK_LIB_OBJS) \
29 | $(PLATFORM_SPECIFIC_LIB_OBJS)
30 | $(LIBRARY_LINK)$@ $(LIBRARY_LINK_OPTS) \
31 | $(GROUPSOCK_LIB_OBJS)
32 |
33 | clean:
34 | -rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~
35 |
36 | install: install1 $(INSTALL2)
37 | install1: libgroupsock.$(LIB_SUFFIX)
38 | install -d $(DESTDIR)$(PREFIX)/include/groupsock $(DESTDIR)$(LIBDIR)
39 | install -m 644 include/*.hh include/*.h $(DESTDIR)$(PREFIX)/include/groupsock
40 | install -m 644 libgroupsock.$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)
41 | install_shared_libraries: libgroupsock.$(LIB_SUFFIX)
42 | ln -fs libgroupsock.$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)/libgroupsock.$(SHORT_LIB_SUFFIX)
43 | ln -fs libgroupsock.$(LIB_SUFFIX) $(DESTDIR)$(LIBDIR)/libgroupsock.so
44 |
45 | ##### Any additional, platform-specific rules come here:
46 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/ourMD5.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Because MD5 may not be implemented (at least, with the same interface) on all systems,
19 | // we have our own implementation.
20 | // C++ header
21 |
22 | #ifndef _OUR_MD5_HH
23 | #define _OUR_MD5_HH
24 |
25 | extern char* our_MD5Data(unsigned char const* data, unsigned dataSize, char* outputDigest);
26 | // "outputDigest" must be either NULL (in which case this function returns a heap-allocated
27 | // buffer, which should be later delete[]d by the caller), or else it must point to
28 | // a (>=)33-byte buffer (which this function will also return).
29 |
30 | extern unsigned char* our_MD5DataRaw(unsigned char const* data, unsigned dataSize,
31 | unsigned char* outputDigest);
32 | // Like "ourMD5Data()", except that it returns the digest in 'raw' binary form, rather than
33 | // as an ASCII hex string.
34 | // "outputDigest" must be either NULL (in which case this function returns a heap-allocated
35 | // buffer, which should be later delete[]d by the caller), or else it must point to
36 | // a (>=)16-byte buffer (which this function will also return).
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/MP3Transcoder.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // MP3 Transcoder
19 | // Implementation
20 |
21 | #include "MP3Transcoder.hh"
22 |
23 | MP3Transcoder::MP3Transcoder(UsageEnvironment& env,
24 | MP3ADUTranscoder* aduTranscoder)
25 | : MP3FromADUSource(env, aduTranscoder, False) {
26 | }
27 |
28 | MP3Transcoder::~MP3Transcoder() {
29 | }
30 |
31 | MP3Transcoder* MP3Transcoder::createNew(UsageEnvironment& env,
32 | unsigned outBitrate /* in kbps */,
33 | FramedSource* inputSource) {
34 | MP3Transcoder* newSource = NULL;
35 |
36 | do {
37 | // Create the intermediate filters that help implement the transcoder:
38 | ADUFromMP3Source* aduFromMP3
39 | = ADUFromMP3Source::createNew(env, inputSource, False);
40 | // Note: This also checks that "inputSource" is an MP3 source
41 | if (aduFromMP3 == NULL) break;
42 |
43 | MP3ADUTranscoder* aduTranscoder
44 | = MP3ADUTranscoder::createNew(env, outBitrate, aduFromMP3);
45 | if (aduTranscoder == NULL) break;
46 |
47 | // Then create the transcoder itself:
48 | newSource = new MP3Transcoder(env, aduTranscoder);
49 | } while (0);
50 |
51 | return newSource;
52 | }
53 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AMRAudioRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // AMR Audio RTP Sources (RFC 4867)
19 | // C++ header
20 |
21 | #ifndef _AMR_AUDIO_RTP_SOURCE_HH
22 | #define _AMR_AUDIO_RTP_SOURCE_HH
23 |
24 | #ifndef _RTP_SOURCE_HH
25 | #include "RTPSource.hh"
26 | #endif
27 | #ifndef _AMR_AUDIO_SOURCE_HH
28 | #include "AMRAudioSource.hh"
29 | #endif
30 |
31 | class AMRAudioRTPSource {
32 | public:
33 | static AMRAudioSource* createNew(UsageEnvironment& env,
34 | Groupsock* RTPgs,
35 | RTPSource*& resultRTPSource,
36 | unsigned char rtpPayloadFormat,
37 | Boolean isWideband = False,
38 | unsigned numChannels = 1,
39 | Boolean isOctetAligned = True,
40 | unsigned interleaving = 0,
41 | // relevant only if "isOctetAligned"
42 | // The maximum # of frame-blocks in a group
43 | // 0 means: no interleaving
44 | Boolean robustSortingOrder = False,
45 | // relevant only if "isOctetAligned"
46 | Boolean CRCsArePresent = False
47 | // relevant only if "isOctetAligned"
48 | );
49 | // This returns a source to read from, but "resultRTPSource" will
50 | // point to RTP-related state.
51 | };
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/H261VideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // H.261 Video RTP Sources
19 | // C++ header
20 |
21 | #ifndef _H261_VIDEO_RTP_SOURCE_HH
22 | #define _H261_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class H261VideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static H261VideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat = 31,
33 | unsigned rtpTimestampFrequency = 90000);
34 |
35 | u_int32_t lastSpecialHeader() const {return fLastSpecialHeader;}
36 |
37 | protected:
38 | virtual ~H261VideoRTPSource();
39 |
40 | private:
41 | H261VideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
42 | unsigned char rtpPayloadFormat,
43 | unsigned rtpTimestampFrequency);
44 | // called only by createNew()
45 |
46 | private:
47 | // redefined virtual functions:
48 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
49 | unsigned& resultSpecialHeaderSize);
50 | virtual char const* MIMEtype() const;
51 |
52 | private:
53 | u_int32_t fLastSpecialHeader;
54 | };
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/FramedFilter.cpp:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Framed Filters
19 | // Implementation
20 |
21 | #include "FramedFilter.hh"
22 |
23 | ////////// FramedFilter //////////
24 | #include
25 |
26 | void FramedFilter::detachInputSource() {
27 | if (fInputSource != NULL) {
28 | fInputSource->stopGettingFrames();
29 | reassignInputSource(NULL);
30 | }
31 | }
32 |
33 | FramedFilter::FramedFilter(UsageEnvironment& env,
34 | FramedSource* inputSource)
35 | : FramedSource(env),
36 | fInputSource(inputSource) {
37 | }
38 |
39 | FramedFilter::~FramedFilter() {
40 | Medium::close(fInputSource);
41 | }
42 |
43 | // Default implementations of needed virtual functions. These merely
44 | // call the same function in the input source - i.e., act like a 'null filter
45 |
46 | char const* FramedFilter::MIMEtype() const {
47 | if (fInputSource == NULL) return "";
48 |
49 | return fInputSource->MIMEtype();
50 | }
51 |
52 | void FramedFilter::getAttributes() const {
53 | if (fInputSource != NULL) fInputSource->getAttributes();
54 | }
55 |
56 | void FramedFilter::doStopGettingFrames() {
57 | FramedSource::doStopGettingFrames();
58 | if (fInputSource != NULL) fInputSource->stopGettingFrames();
59 | }
60 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/TheoraVideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // Theora Video Audio RTP Sources
19 | // C++ header
20 |
21 | #ifndef _THEORA_VIDEO_RTP_SOURCE_HH
22 | #define _THEORA_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class TheoraVideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static TheoraVideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat);
33 |
34 | u_int32_t curPacketIdent() const { return fCurPacketIdent; } // The current "Ident" field; only the low-order 24 bits are used
35 |
36 | protected:
37 | TheoraVideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
38 | unsigned char rtpPayloadFormat);
39 | // called only by createNew()
40 |
41 | virtual ~TheoraVideoRTPSource();
42 |
43 | protected:
44 | // redefined virtual functions:
45 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
46 | unsigned& resultSpecialHeaderSize);
47 | virtual char const* MIMEtype() const;
48 |
49 | private:
50 | u_int32_t fCurPacketIdent; // only the low-order 24 bits are used
51 | };
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MPEG1or2VideoRTPSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // MPEG-1 or MPEG-2 Video RTP Sources
19 | // C++ header
20 |
21 | #ifndef _MPEG_1OR2_VIDEO_RTP_SOURCE_HH
22 | #define _MPEG_1OR2_VIDEO_RTP_SOURCE_HH
23 |
24 | #ifndef _MULTI_FRAMED_RTP_SOURCE_HH
25 | #include "MultiFramedRTPSource.hh"
26 | #endif
27 |
28 | class MPEG1or2VideoRTPSource: public MultiFramedRTPSource {
29 | public:
30 | static MPEG1or2VideoRTPSource*
31 | createNew(UsageEnvironment& env, Groupsock* RTPgs,
32 | unsigned char rtpPayloadFormat = 32,
33 | unsigned rtpPayloadFrequency = 90000);
34 |
35 | protected:
36 | virtual ~MPEG1or2VideoRTPSource();
37 |
38 | private:
39 | MPEG1or2VideoRTPSource(UsageEnvironment& env, Groupsock* RTPgs,
40 | unsigned char rtpPayloadFormat,
41 | unsigned rtpTimestampFrequency);
42 | // called only by createNew()
43 |
44 | private:
45 | // redefined virtual functions:
46 | virtual Boolean processSpecialHeader(BufferedPacket* packet,
47 | unsigned& resultSpecialHeaderSize);
48 | virtual Boolean packetIsUsableInJitterCalculation(unsigned char* packet,
49 | unsigned packetSize);
50 | virtual char const* MIMEtype() const;
51 | };
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/VP8VideoRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for VP8 video
19 | // C++ header
20 |
21 | #ifndef _VP8_VIDEO_RTP_SINK_HH
22 | #define _VP8_VIDEO_RTP_SINK_HH
23 |
24 | #ifndef _VIDEO_RTP_SINK_HH
25 | #include "VideoRTPSink.hh"
26 | #endif
27 |
28 | class VP8VideoRTPSink: public VideoRTPSink {
29 | public:
30 | static VP8VideoRTPSink* createNew(UsageEnvironment& env, Groupsock* RTPgs, unsigned char rtpPayloadFormat);
31 |
32 | protected:
33 | VP8VideoRTPSink(UsageEnvironment& env, Groupsock* RTPgs, unsigned char rtpPayloadFormat);
34 | // called only by createNew()
35 |
36 | virtual ~VP8VideoRTPSink();
37 |
38 | private: // redefined virtual functions:
39 | virtual void doSpecialFrameHandling(unsigned fragmentationOffset,
40 | unsigned char* frameStart,
41 | unsigned numBytesInFrame,
42 | struct timeval framePresentationTime,
43 | unsigned numRemainingBytes);
44 | virtual
45 | Boolean frameCanAppearAfterPacketStart(unsigned char const* frameStart,
46 | unsigned numBytesInFrame) const;
47 | virtual unsigned specialHeaderSize() const;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/VP9VideoRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for VP9 video
19 | // C++ header
20 |
21 | #ifndef _VP9_VIDEO_RTP_SINK_HH
22 | #define _VP9_VIDEO_RTP_SINK_HH
23 |
24 | #ifndef _VIDEO_RTP_SINK_HH
25 | #include "VideoRTPSink.hh"
26 | #endif
27 |
28 | class VP9VideoRTPSink: public VideoRTPSink {
29 | public:
30 | static VP9VideoRTPSink* createNew(UsageEnvironment& env, Groupsock* RTPgs, unsigned char rtpPayloadFormat);
31 |
32 | protected:
33 | VP9VideoRTPSink(UsageEnvironment& env, Groupsock* RTPgs, unsigned char rtpPayloadFormat);
34 | // called only by createNew()
35 |
36 | virtual ~VP9VideoRTPSink();
37 |
38 | private: // redefined virtual functions:
39 | virtual void doSpecialFrameHandling(unsigned fragmentationOffset,
40 | unsigned char* frameStart,
41 | unsigned numBytesInFrame,
42 | struct timeval framePresentationTime,
43 | unsigned numRemainingBytes);
44 | virtual
45 | Boolean frameCanAppearAfterPacketStart(unsigned char const* frameStart,
46 | unsigned numBytesInFrame) const;
47 | virtual unsigned specialHeaderSize() const;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/MP3ADURTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for 'ADUized' MP3 frames ("mpa-robust")
19 | // C++ header
20 |
21 | #ifndef _MP3_ADU_RTP_SINK_HH
22 | #define _MP3_ADU_RTP_SINK_HH
23 |
24 | #ifndef _AUDIO_RTP_SINK_HH
25 | #include "AudioRTPSink.hh"
26 | #endif
27 |
28 | class MP3ADURTPSink: public AudioRTPSink {
29 | public:
30 | static MP3ADURTPSink* createNew(UsageEnvironment& env, Groupsock* RTPgs,
31 | unsigned char RTPPayloadType);
32 |
33 | protected:
34 | virtual ~MP3ADURTPSink();
35 |
36 | private:
37 | MP3ADURTPSink(UsageEnvironment& env, Groupsock* RTPgs,
38 | unsigned char RTPPayloadType);
39 | // called only by createNew()
40 |
41 |
42 | private:
43 | // Redefined virtual functions:
44 | virtual void doSpecialFrameHandling(unsigned fragmentationOffset,
45 | unsigned char* frameStart,
46 | unsigned numBytesInFrame,
47 | struct timeval framePresentationTime,
48 | unsigned numRemainingBytes);
49 | virtual unsigned specialHeaderSize() const;
50 |
51 | private:
52 | unsigned fCurADUSize; // used when fragmenting over multiple RTP packets
53 | };
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AC3AudioFileServerMediaSubsession.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
19 | // on demand, from an AC3 audio file.
20 | // C++ header
21 |
22 | #ifndef _AC3_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
23 | #define _AC3_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
24 |
25 | #ifndef _FILE_SERVER_MEDIA_SUBSESSION_HH
26 | #include "FileServerMediaSubsession.hh"
27 | #endif
28 |
29 | class AC3AudioFileServerMediaSubsession: public FileServerMediaSubsession{
30 | public:
31 | static AC3AudioFileServerMediaSubsession*
32 | createNew(UsageEnvironment& env, char const* fileName, Boolean reuseFirstSource);
33 |
34 | private:
35 | AC3AudioFileServerMediaSubsession(UsageEnvironment& env,
36 | char const* fileName, Boolean reuseFirstSource);
37 | // called only by createNew();
38 | virtual ~AC3AudioFileServerMediaSubsession();
39 |
40 | private: // redefined virtual functions
41 | virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
42 | unsigned& estBitrate);
43 | virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
44 | unsigned char rtpPayloadTypeIfDynamic,
45 | FramedSource* inputSource);
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/ADTSAudioFileSource.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A source object for AAC audio files in ADTS format
19 | // C++ header
20 |
21 | #ifndef _ADTS_AUDIO_FILE_SOURCE_HH
22 | #define _ADTS_AUDIO_FILE_SOURCE_HH
23 |
24 | #ifndef _FRAMED_FILE_SOURCE_HH
25 | #include "FramedFileSource.hh"
26 | #endif
27 |
28 | class ADTSAudioFileSource: public FramedFileSource {
29 | public:
30 | static ADTSAudioFileSource* createNew(UsageEnvironment& env,
31 | char const* fileName);
32 |
33 | unsigned samplingFrequency() const { return fSamplingFrequency; }
34 | unsigned numChannels() const { return fNumChannels; }
35 | char const* configStr() const { return fConfigStr; }
36 | // returns the 'AudioSpecificConfig' for this stream (in ASCII form)
37 |
38 | private:
39 | ADTSAudioFileSource(UsageEnvironment& env, FILE* fid, u_int8_t profile,
40 | u_int8_t samplingFrequencyIndex, u_int8_t channelConfiguration);
41 | // called only by createNew()
42 |
43 | virtual ~ADTSAudioFileSource();
44 |
45 | private:
46 | // redefined virtual functions:
47 | virtual void doGetNextFrame();
48 |
49 | private:
50 | unsigned fSamplingFrequency;
51 | unsigned fNumChannels;
52 | unsigned fuSecsPerFrame;
53 | char fConfigStr[5];
54 | };
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/AMRAudioFileServerMediaSubsession.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
19 | // on demand, from an AMR audio file.
20 | // C++ header
21 |
22 | #ifndef _AMR_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
23 | #define _AMR_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
24 |
25 | #ifndef _FILE_SERVER_MEDIA_SUBSESSION_HH
26 | #include "FileServerMediaSubsession.hh"
27 | #endif
28 |
29 | class AMRAudioFileServerMediaSubsession: public FileServerMediaSubsession{
30 | public:
31 | static AMRAudioFileServerMediaSubsession*
32 | createNew(UsageEnvironment& env, char const* fileName, Boolean reuseFirstSource);
33 |
34 | private:
35 | AMRAudioFileServerMediaSubsession(UsageEnvironment& env,
36 | char const* fileName, Boolean reuseFirstSource);
37 | // called only by createNew();
38 | virtual ~AMRAudioFileServerMediaSubsession();
39 |
40 | private: // redefined virtual functions
41 | virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
42 | unsigned& estBitrate);
43 | virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
44 | unsigned char rtpPayloadTypeIfDynamic,
45 | FramedSource* inputSource);
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/JPEGVideoRTPSink.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // RTP sink for JPEG video (RFC 2435)
19 | // C++ header
20 |
21 | #ifndef _JPEG_VIDEO_RTP_SINK_HH
22 | #define _JPEG_VIDEO_RTP_SINK_HH
23 |
24 | #ifndef _VIDEO_RTP_SINK_HH
25 | #include "VideoRTPSink.hh"
26 | #endif
27 |
28 | class JPEGVideoRTPSink: public VideoRTPSink {
29 | public:
30 | static JPEGVideoRTPSink* createNew(UsageEnvironment& env, Groupsock* RTPgs);
31 |
32 | protected:
33 | JPEGVideoRTPSink(UsageEnvironment& env, Groupsock* RTPgs);
34 | // called only by createNew()
35 |
36 | virtual ~JPEGVideoRTPSink();
37 |
38 | private: // redefined virtual functions:
39 | virtual Boolean sourceIsCompatibleWithUs(MediaSource& source);
40 |
41 | virtual void doSpecialFrameHandling(unsigned fragmentationOffset,
42 | unsigned char* frameStart,
43 | unsigned numBytesInFrame,
44 | struct timeval framePresentationTime,
45 | unsigned numRemainingBytes);
46 | virtual
47 | Boolean frameCanAppearAfterPacketStart(unsigned char const* frameStart,
48 | unsigned numBytesInFrame) const;
49 | virtual unsigned specialHeaderSize() const;
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/app/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # For more information about using CMake with Android Studio, read the
2 | # documentation: https://d.android.com/studio/projects/add-native-code.html
3 |
4 | # Sets the minimum version of CMake required to build the native library.
5 |
6 | cmake_minimum_required(VERSION 3.4.1)
7 |
8 | add_definitions(-DSOCKLEN_T=socklen_t)
9 | add_definitions(-DNO_SSTREAM=1)
10 | add_definitions(-DNEWLOCALE_NOT_USED)
11 | #add_definitions(-D_LARGEFILE_SOURCE=1)
12 | #add_definitions(-D_FILE_OFFSET_BITS=64)
13 | add_definitions(-DBSD=1)
14 |
15 | # 头文件引入
16 | include_directories(src/main/cpp/live/UsageEnvironment/include)
17 | include_directories(src/main/cpp/live/BasicUsageEnvironment/include)
18 | include_directories(src/main/cpp/live/groupsock/include)
19 | include_directories(src/main/cpp/live/liveMedia/include)
20 |
21 | #设置源码连接BasicUsageEnvironment
22 | file(GLOB BasicUsageEnvironmentFiles
23 | src/main/cpp/live/BasicUsageEnvironment/*.cpp)
24 | #添加临时库,Add a library to the project using the specified source files.
25 | #If no type is given explicitly the type is STATIC or SHARED based on whether the current value of the variable BUILD_SHARED_LIBS is ON.
26 | add_library(BasicUsageEnvironment
27 | ${BasicUsageEnvironmentFiles})
28 |
29 | #设置源码连接groupsock
30 | file(GLOB groupsockfiles
31 | src/main/cpp/live/groupsock/*.cpp src/main/cpp/live/groupsock/*.c)
32 | add_library(groupsock
33 | ${groupsockfiles})
34 |
35 | #设置源码连接liveMedia
36 | file(GLOB liveMediaFiles
37 | src/main/cpp/live/liveMedia/*.hh src/main/cpp/live/liveMedia/*.cpp src/main/cpp/live/liveMedia/*.c)
38 | add_library(liveMedia ${liveMediaFiles})
39 |
40 | #设置源码连接UsageEnvironment
41 | file(GLOB UsageEnvironmentFiles
42 | src/main/cpp/live/UsageEnvironment/*.cpp)
43 | add_library(UsageEnvironment
44 | ${UsageEnvironmentFiles})
45 |
46 | #应用类源码.
47 | add_library( rtsp-lib
48 | SHARED
49 | src/main/cpp/RTSPClient.cpp )
50 | #src/main/cpp/testRTSPClient.cpp )
51 |
52 | find_library(log-lib
53 | log )
54 |
55 | target_link_libraries( rtsp-lib
56 | ${log-lib}
57 | liveMedia
58 | groupsock
59 | BasicUsageEnvironment
60 | UsageEnvironment )
61 |
--------------------------------------------------------------------------------
/live555_rtsp_player/src/main/cpp/live/liveMedia/include/ADTSAudioFileServerMediaSubsession.hh:
--------------------------------------------------------------------------------
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 .)
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-2018 Live Networks, Inc. All rights reserved.
18 | // A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
19 | // on demand, from an AAC audio file in ADTS format
20 | // C++ header
21 |
22 | #ifndef _ADTS_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
23 | #define _ADTS_AUDIO_FILE_SERVER_MEDIA_SUBSESSION_HH
24 |
25 | #ifndef _FILE_SERVER_MEDIA_SUBSESSION_HH
26 | #include "FileServerMediaSubsession.hh"
27 | #endif
28 |
29 | class ADTSAudioFileServerMediaSubsession: public FileServerMediaSubsession{
30 | public:
31 | static ADTSAudioFileServerMediaSubsession*
32 | createNew(UsageEnvironment& env, char const* fileName, Boolean reuseFirstSource);
33 |
34 | protected:
35 | ADTSAudioFileServerMediaSubsession(UsageEnvironment& env,
36 | char const* fileName, Boolean reuseFirstSource);
37 | // called only by createNew();
38 | virtual ~ADTSAudioFileServerMediaSubsession();
39 |
40 | protected: // redefined virtual functions
41 | virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
42 | unsigned& estBitrate);
43 | virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
44 | unsigned char rtpPayloadTypeIfDynamic,
45 | FramedSource* inputSource);
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------