Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4bf7477e
authored
Apr 30, 2021
by
claincly
Committed by
bachinger
Apr 30, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Flatten packages within the RTSP package.
#minor-release PiperOrigin-RevId: 371337762
parent
dfb87638
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
122 additions
and
213 deletions
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/sdp/MediaDescription.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpDataChannel.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpDataChannel.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpDataLoadable.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpDataLoadable.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpExtractor.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpExtractor.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpPacket.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpPacket.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpPacketReorderingQueue.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpPacketReorderingQueue.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpPayloadFormat.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpPayloadFormat.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspClient.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspDescribeResponse.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspDescribeResponse.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspHeaders.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspHeaders.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMediaPeriod.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMediaSource.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMediaTrack.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspMessageChannel.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMessageChannel.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspMessageUtil.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMessageUtil.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspOptionsResponse.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspOptionsResponse.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspPlayResponse.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspPlayResponse.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspRequest.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspRequest.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspResponse.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspResponse.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspSessionTiming.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/RtspSetupResponse.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspSetupResponse.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspTrackTiming.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/sdp/SessionDescription.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/SessionDescription.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/sdp/SessionDescriptionParser.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/SessionDescriptionParser.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/UdpDataSourceRtpDataChannel.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/UdpDataSourceRtpDataChannel.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/DefaultRtpPayloadReaderFactory.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/DefaultRtpPayloadReaderFactory.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/RtpAacReader.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAacReader.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/RtpAc3Reader.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAc3Reader.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/RtpH264Reader.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpH264Reader.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/RtpPayloadReader.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpPayloadReader.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/message/package-info.java → library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/package-info.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/package-info.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/package-info.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/sdp/package-info.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpPacketReorderingQueueTest.java → library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtpPacketReorderingQueueTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpPacketTest.java → library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtpPacketTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/message/RtspHeadersTest.java → library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspHeadersTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMediaPeriodTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMediaTrackTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/message/RtspMessageUtilTest.java → library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMessageUtilTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspServer.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/sdp/SessionDescriptionTest.java → library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/SessionDescriptionTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/rtp/RtpAc3ReaderTest.java → library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAc3ReaderTest.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
sdp/
MediaDescription.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java
View file @
4bf7477e
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspMessageUtil
.
parseInt
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspMessageUtil
.
parseInt
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_FMTP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_FMTP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkState
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkState
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
...
@@ -35,7 +35,7 @@ import java.lang.annotation.Retention;
...
@@ -35,7 +35,7 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
/** Represents one media description section in a SDP message. */
/** Represents one media description section in a SDP message. */
public
final
class
MediaDescription
{
/* package */
final
class
MediaDescription
{
/** Represents the mandatory RTPMAP attribute in MediaDescription. Reference RFC 2327 Page 22. */
/** Represents the mandatory RTPMAP attribute in MediaDescription. Reference RFC 2327 Page 22. */
public
static
final
class
RtpMapAttribute
{
public
static
final
class
RtpMapAttribute
{
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpDataChannel.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpDataChannel.java
View file @
4bf7477e
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DataSource
;
/** An RTP {@link DataSource}. */
/** An RTP {@link DataSource}. */
public
interface
RtpDataChannel
extends
DataSource
{
/* package */
interface
RtpDataChannel
extends
DataSource
{
/** Creates {@link RtpDataChannel} for RTSP streams. */
/** Creates {@link RtpDataChannel} for RTSP streams. */
interface
Factory
{
interface
Factory
{
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpDataLoadable.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpDataLoadable.java
View file @
4bf7477e
/*
/*
* Copyright 202
0
The Android Open Source Project
* Copyright 202
1
The Android Open Source Project
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
closeQuietly
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
closeQuietly
;
...
@@ -27,7 +27,6 @@ import com.google.android.exoplayer2.extractor.DefaultExtractorInput;
...
@@ -27,7 +27,6 @@ import com.google.android.exoplayer2.extractor.DefaultExtractorInput;
import
com.google.android.exoplayer2.extractor.ExtractorInput
;
import
com.google.android.exoplayer2.extractor.ExtractorInput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.PositionHolder
;
import
com.google.android.exoplayer2.extractor.PositionHolder
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaTrack
;
import
com.google.android.exoplayer2.upstream.DataSpec
;
import
com.google.android.exoplayer2.upstream.DataSpec
;
import
com.google.android.exoplayer2.upstream.Loader
;
import
com.google.android.exoplayer2.upstream.Loader
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
...
@@ -47,7 +46,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
...
@@ -47,7 +46,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
* <p>Received RTP packets' payloads will be extracted by an {@link RtpExtractor}, and will be
* <p>Received RTP packets' payloads will be extracted by an {@link RtpExtractor}, and will be
* written to the {@link ExtractorOutput} instance provided at construction.
* written to the {@link ExtractorOutput} instance provided at construction.
*/
*/
public
final
class
RtpDataLoadable
implements
Loader
.
Loadable
{
/* package */
final
class
RtpDataLoadable
implements
Loader
.
Loadable
{
/** Called on loadable events. */
/** Called on loadable events. */
public
interface
EventListener
{
public
interface
EventListener
{
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpExtractor.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpExtractor.java
View file @
4bf7477e
/*
/*
* Copyright 202
0
The Android Open Source Project
* Copyright 202
1
The Android Open Source Project
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
...
@@ -27,8 +27,8 @@ import com.google.android.exoplayer2.extractor.ExtractorInput;
...
@@ -27,8 +27,8 @@ import com.google.android.exoplayer2.extractor.ExtractorInput;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.PositionHolder
;
import
com.google.android.exoplayer2.extractor.PositionHolder
;
import
com.google.android.exoplayer2.extractor.SeekMap
;
import
com.google.android.exoplayer2.extractor.SeekMap
;
import
com.google.android.exoplayer2.source.rtsp.r
tp.r
eader.DefaultRtpPayloadReaderFactory
;
import
com.google.android.exoplayer2.source.rtsp.reader.DefaultRtpPayloadReaderFactory
;
import
com.google.android.exoplayer2.source.rtsp.r
tp.r
eader.RtpPayloadReader
;
import
com.google.android.exoplayer2.source.rtsp.reader.RtpPayloadReader
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
java.io.IOException
;
import
java.io.IOException
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpPacket.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpPacket.java
View file @
4bf7477e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpPacketReorderingQueue.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpPacketReorderingQueue.java
View file @
4bf7477e
/*
/*
* Copyright 202
0
The Android Open Source Project
* Copyright 202
1
The Android Open Source Project
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
java
.
lang
.
Math
.
abs
;
import
static
java
.
lang
.
Math
.
abs
;
import
static
java
.
lang
.
Math
.
max
;
import
static
java
.
lang
.
Math
.
max
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpPayloadFormat.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpPayloadFormat.java
View file @
4bf7477e
...
@@ -13,12 +13,10 @@
...
@@ -13,12 +13,10 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.source.rtsp.sdp.MediaDescription
;
import
com.google.android.exoplayer2.source.rtsp.sdp.SessionDescription
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.common.base.Ascii
;
import
com.google.common.base.Ascii
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableMap
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspClient.java
View file @
4bf7477e
...
@@ -15,20 +15,20 @@
...
@@ -15,20 +15,20 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspMessageChannel
.
DEFAULT_RTSP_PORT
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspMessageChannel
.
DEFAULT_RTSP_PORT
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_ANNOUNCE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_ANNOUNCE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_DESCRIBE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_DESCRIBE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_GET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_GET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_OPTIONS
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_OPTIONS
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_PAUSE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_PAUSE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_PLAY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_PLAY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_PLAY_NOTIFY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_PLAY_NOTIFY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_RECORD
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_RECORD
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_REDIRECT
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_REDIRECT
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_SETUP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_SETUP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_SET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_SET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_TEARDOWN
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_TEARDOWN
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_UNSET
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_UNSET
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkState
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkState
;
...
@@ -42,20 +42,7 @@ import com.google.android.exoplayer2.C;
...
@@ -42,20 +42,7 @@ import com.google.android.exoplayer2.C;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaPeriod.RtpLoadInfo
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaPeriod.RtpLoadInfo
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaSource.RtspPlaybackException
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaSource.RtspPlaybackException
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspDescribeResponse
;
import
com.google.android.exoplayer2.source.rtsp.RtspMessageUtil.RtspSessionHeader
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspHeaders
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspMessageChannel
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspMessageUtil
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspMessageUtil.RtspSessionHeader
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspOptionsResponse
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspPlayResponse
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspRequest
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspResponse
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspSetupResponse
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.sdp.MediaDescription
;
import
com.google.android.exoplayer2.source.rtsp.sdp.SessionDescription
;
import
com.google.android.exoplayer2.source.rtsp.sdp.SessionDescriptionParser
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableMap
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspDescribeResponse.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspDescribeResponse.java
View file @
4bf7477e
...
@@ -13,12 +13,10 @@
...
@@ -13,12 +13,10 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
com.google.android.exoplayer2.source.rtsp.sdp.SessionDescription
;
/** Represents an RTSP DESCRIBE response. */
/** Represents an RTSP DESCRIBE response. */
public
final
class
RtspDescribeResponse
{
/* package */
final
class
RtspDescribeResponse
{
/** The response's status code. */
/** The response's status code. */
public
final
int
status
;
public
final
int
status
;
/** The {@link SessionDescription} (see RFC2327) in the DESCRIBE response. */
/** The {@link SessionDescription} (see RFC2327) in the DESCRIBE response. */
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspHeaders.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspHeaders.java
View file @
4bf7477e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
...
@@ -33,7 +33,7 @@ import java.util.Map;
...
@@ -33,7 +33,7 @@ import java.util.Map;
* with case-insensitive header names. The extra spaces around header names and values are trimmed.
* with case-insensitive header names. The extra spaces around header names and values are trimmed.
* Contrary to HTTP, RTSP does not allow ambiguous/arbitrary header names (RFC 2326 Section 12).
* Contrary to HTTP, RTSP does not allow ambiguous/arbitrary header names (RFC 2326 Section 12).
*/
*/
public
final
class
RtspHeaders
{
/* package */
final
class
RtspHeaders
{
public
static
final
String
ACCEPT
=
"Accept"
;
public
static
final
String
ACCEPT
=
"Accept"
;
public
static
final
String
ALLOW
=
"Allow"
;
public
static
final
String
ALLOW
=
"Allow"
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMediaPeriod.java
View file @
4bf7477e
...
@@ -43,8 +43,6 @@ import com.google.android.exoplayer2.source.TrackGroup;
...
@@ -43,8 +43,6 @@ import com.google.android.exoplayer2.source.TrackGroup;
import
com.google.android.exoplayer2.source.TrackGroupArray
;
import
com.google.android.exoplayer2.source.TrackGroupArray
;
import
com.google.android.exoplayer2.source.rtsp.RtspClient.PlaybackEventListener
;
import
com.google.android.exoplayer2.source.rtsp.RtspClient.PlaybackEventListener
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaSource.RtspPlaybackException
;
import
com.google.android.exoplayer2.source.rtsp.RtspMediaSource.RtspPlaybackException
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpDataChannel
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpDataLoadable
;
import
com.google.android.exoplayer2.trackselection.ExoTrackSelection
;
import
com.google.android.exoplayer2.trackselection.ExoTrackSelection
;
import
com.google.android.exoplayer2.trackselection.TrackSelection
;
import
com.google.android.exoplayer2.trackselection.TrackSelection
;
import
com.google.android.exoplayer2.upstream.Allocator
;
import
com.google.android.exoplayer2.upstream.Allocator
;
...
@@ -61,7 +59,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
...
@@ -61,7 +59,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
/** A {@link MediaPeriod} that loads an RTSP stream. */
/** A {@link MediaPeriod} that loads an RTSP stream. */
public
final
class
RtspMediaPeriod
implements
MediaPeriod
{
/* package */
final
class
RtspMediaPeriod
implements
MediaPeriod
{
private
static
final
String
TAG
=
"RtspMediaPeriod"
;
private
static
final
String
TAG
=
"RtspMediaPeriod"
;
/** The maximum times to retry if the underlying data channel failed to bind. */
/** The maximum times to retry if the underlying data channel failed to bind. */
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMediaSource.java
View file @
4bf7477e
...
@@ -31,7 +31,6 @@ import com.google.android.exoplayer2.source.MediaSource;
...
@@ -31,7 +31,6 @@ import com.google.android.exoplayer2.source.MediaSource;
import
com.google.android.exoplayer2.source.MediaSourceFactory
;
import
com.google.android.exoplayer2.source.MediaSourceFactory
;
import
com.google.android.exoplayer2.source.SinglePeriodTimeline
;
import
com.google.android.exoplayer2.source.SinglePeriodTimeline
;
import
com.google.android.exoplayer2.source.rtsp.RtspClient.SessionInfoListener
;
import
com.google.android.exoplayer2.source.rtsp.RtspClient.SessionInfoListener
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpDataChannel
;
import
com.google.android.exoplayer2.upstream.Allocator
;
import
com.google.android.exoplayer2.upstream.Allocator
;
import
com.google.android.exoplayer2.upstream.HttpDataSource
;
import
com.google.android.exoplayer2.upstream.HttpDataSource
;
import
com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy
;
import
com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMediaTrack.java
View file @
4bf7477e
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
.
RtpPayloadFormat
.
getMimeTypeFromRtpMediaType
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
MEDIA_TYPE_AUDIO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
MEDIA_TYPE_AUDIO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtpPayloadFormat
.
getMimeTypeFromRtpMediaType
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_CONTROL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_CONTROL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
NalUnitUtil
.
NAL_START_CODE
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
NalUnitUtil
.
NAL_START_CODE
;
...
@@ -31,8 +31,6 @@ import androidx.annotation.VisibleForTesting;
...
@@ -31,8 +31,6 @@ import androidx.annotation.VisibleForTesting;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.audio.AacUtil
;
import
com.google.android.exoplayer2.audio.AacUtil
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.sdp.MediaDescription
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.NalUnitUtil
;
import
com.google.android.exoplayer2.util.NalUnitUtil
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
...
@@ -40,7 +38,7 @@ import com.google.common.collect.ImmutableList;
...
@@ -40,7 +38,7 @@ import com.google.common.collect.ImmutableList;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableMap
;
/** Represents a media track in an RTSP playback. */
/** Represents a media track in an RTSP playback. */
public
final
class
RtspMediaTrack
{
/* package */
final
class
RtspMediaTrack
{
// Format specific parameter names.
// Format specific parameter names.
private
static
final
String
PARAMETER_PROFILE_LEVEL_ID
=
"profile-level-id"
;
private
static
final
String
PARAMETER_PROFILE_LEVEL_ID
=
"profile-level-id"
;
private
static
final
String
PARAMETER_SPROP_PARAMS
=
"sprop-parameter-sets"
;
private
static
final
String
PARAMETER_SPROP_PARAMS
=
"sprop-parameter-sets"
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspMessageChannel.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMessageChannel.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkStateNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkStateNotNull
;
...
@@ -39,7 +39,7 @@ import java.util.List;
...
@@ -39,7 +39,7 @@ import java.util.List;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
/** Sends and receives RTSP messages. */
/** Sends and receives RTSP messages. */
public
final
class
RtspMessageChannel
implements
Closeable
{
/* package */
final
class
RtspMessageChannel
implements
Closeable
{
private
static
final
String
TAG
=
"RtspMessageChannel"
;
private
static
final
String
TAG
=
"RtspMessageChannel"
;
private
static
final
boolean
LOG_RTSP_MESSAGES
=
false
;
private
static
final
boolean
LOG_RTSP_MESSAGES
=
false
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspMessageUtil.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspMessageUtil.java
View file @
4bf7477e
...
@@ -13,21 +13,21 @@
...
@@ -13,21 +13,21 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_ANNOUNCE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_ANNOUNCE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_DESCRIBE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_DESCRIBE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_GET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_GET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_OPTIONS
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_OPTIONS
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_PAUSE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_PAUSE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_PLAY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_PLAY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_PLAY_NOTIFY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_PLAY_NOTIFY
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_RECORD
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_RECORD
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_REDIRECT
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_REDIRECT
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_SETUP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_SETUP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_SET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_SET_PARAMETER
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_TEARDOWN
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_TEARDOWN
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_UNSET
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_UNSET
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
...
@@ -45,7 +45,7 @@ import java.util.regex.Matcher;
...
@@ -45,7 +45,7 @@ import java.util.regex.Matcher;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
/** Utility methods for RTSP messages. */
/** Utility methods for RTSP messages. */
public
final
class
RtspMessageUtil
{
/* package */
final
class
RtspMessageUtil
{
/** Represents a RTSP Session header (RFC2326 Section 12.37). */
/** Represents a RTSP Session header (RFC2326 Section 12.37). */
public
static
final
class
RtspSessionHeader
{
public
static
final
class
RtspSessionHeader
{
/** The session ID. */
/** The session ID. */
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspOptionsResponse.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspOptionsResponse.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -21,7 +21,7 @@ import java.util.List;
...
@@ -21,7 +21,7 @@ import java.util.List;
/** Represents an RTSP OPTIONS response. */
/** Represents an RTSP OPTIONS response. */
// TODO(b/180434754) Move all classes under message to the parent rtsp package, and change the
// TODO(b/180434754) Move all classes under message to the parent rtsp package, and change the
// visibility.
// visibility.
public
final
class
RtspOptionsResponse
{
/* package */
final
class
RtspOptionsResponse
{
/** The response's status code. */
/** The response's status code. */
public
final
int
status
;
public
final
int
status
;
/**
/**
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspPlayResponse.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspPlayResponse.java
View file @
4bf7477e
...
@@ -13,15 +13,13 @@
...
@@ -13,15 +13,13 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
com.google.android.exoplayer2.source.rtsp.RtspSessionTiming
;
import
com.google.android.exoplayer2.source.rtsp.RtspTrackTiming
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
java.util.List
;
import
java.util.List
;
/** Represents an RTSP PLAY response. */
/** Represents an RTSP PLAY response. */
public
final
class
RtspPlayResponse
{
/* package */
final
class
RtspPlayResponse
{
/** The response's status code. */
/** The response's status code. */
public
final
int
status
;
public
final
int
status
;
/** The playback start timing, {@link RtspSessionTiming#DEFAULT} if not present. */
/** The playback start timing, {@link RtspSessionTiming#DEFAULT} if not present. */
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspRequest.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspRequest.java
View file @
4bf7477e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
android.net.Uri
;
import
android.net.Uri
;
import
androidx.annotation.IntDef
;
import
androidx.annotation.IntDef
;
...
@@ -23,7 +23,7 @@ import java.lang.annotation.Retention;
...
@@ -23,7 +23,7 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
/** Represents an RTSP request. */
/** Represents an RTSP request. */
public
final
class
RtspRequest
{
/* package */
final
class
RtspRequest
{
/**
/**
* RTSP request methods, as defined in RFC2326 Section 10.
* RTSP request methods, as defined in RFC2326 Section 10.
*
*
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspResponse.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspResponse.java
View file @
4bf7477e
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
/** Represents an RTSP Response. */
/** Represents an RTSP Response. */
public
final
class
RtspResponse
{
/* package */
final
class
RtspResponse
{
// TODO(b/172331505) Move this constant to MimeTypes.
// TODO(b/172331505) Move this constant to MimeTypes.
/** The MIME type associated with Session Description Protocol (RFC4566). */
/** The MIME type associated with Session Description Protocol (RFC4566). */
public
static
final
String
SDP_MIME_TYPE
=
"application/sdp"
;
public
static
final
String
SDP_MIME_TYPE
=
"application/sdp"
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspSessionTiming.java
View file @
4bf7477e
...
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
...
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
*
*
* <p>Currently only NPT is supported. See RFC2326 Section 3.6 for detail of NPT.
* <p>Currently only NPT is supported. See RFC2326 Section 3.6 for detail of NPT.
*/
*/
public
final
class
RtspSessionTiming
{
/* package */
final
class
RtspSessionTiming
{
/** The default session timing starting from 0.000 and indefinite length, effectively live. */
/** The default session timing starting from 0.000 and indefinite length, effectively live. */
public
static
final
RtspSessionTiming
DEFAULT
=
public
static
final
RtspSessionTiming
DEFAULT
=
new
RtspSessionTiming
(
/* startTimeMs= */
0
,
/* stopTimeMs= */
C
.
TIME_UNSET
);
new
RtspSessionTiming
(
/* startTimeMs= */
0
,
/* stopTimeMs= */
C
.
TIME_UNSET
);
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspSetupResponse.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspSetupResponse.java
View file @
4bf7477e
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
/** Represents an RTSP SETUP response. */
/** Represents an RTSP SETUP response. */
// TODO(b/180434754) Move all classes under message to the parent rtsp package, and change the
// TODO(b/180434754) Move all classes under message to the parent rtsp package, and change the
// visibility.
// visibility.
public
final
class
RtspSetupResponse
{
/* package */
final
class
RtspSetupResponse
{
/** The response's status code. */
/** The response's status code. */
public
final
int
status
;
public
final
int
status
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspTrackTiming.java
View file @
4bf7477e
...
@@ -19,7 +19,6 @@ import android.net.Uri;
...
@@ -19,7 +19,6 @@ import android.net.Uri;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspHeaders
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
...
@@ -29,7 +28,7 @@ import com.google.common.collect.ImmutableList;
...
@@ -29,7 +28,7 @@ import com.google.common.collect.ImmutableList;
*
*
* <p>The fields {@link #rtpTimestamp} and {@link #sequenceNumber} will not both be {@code null}.
* <p>The fields {@link #rtpTimestamp} and {@link #sequenceNumber} will not both be {@code null}.
*/
*/
public
final
class
RtspTrackTiming
{
/* package */
final
class
RtspTrackTiming
{
/**
/**
* Parses the RTP-Info header into a list of {@link RtspTrackTiming RtspTrackTimings}.
* Parses the RTP-Info header into a list of {@link RtspTrackTiming RtspTrackTimings}.
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
sdp/
SessionDescription.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/SessionDescription.java
View file @
4bf7477e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
...
@@ -31,7 +31,7 @@ import com.google.common.collect.ImmutableMap;
...
@@ -31,7 +31,7 @@ import com.google.common.collect.ImmutableMap;
* <p>SDP messages encapsulate information on the media play back session, including session
* <p>SDP messages encapsulate information on the media play back session, including session
* configuration information, formats of each playable track, etc. SDP is defined in RFC4566.
* configuration information, formats of each playable track, etc. SDP is defined in RFC4566.
*/
*/
public
final
class
SessionDescription
{
/* package */
final
class
SessionDescription
{
/** Builder class for {@link SessionDescription}. */
/** Builder class for {@link SessionDescription}. */
public
static
final
class
Builder
{
public
static
final
class
Builder
{
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
sdp/
SessionDescriptionParser.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/SessionDescriptionParser.java
View file @
4bf7477e
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
SUPPORTED_SDP_VERSION
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
SUPPORTED_SDP_VERSION
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkArgument
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
common
.
base
.
Strings
.
nullToEmpty
;
import
static
com
.
google
.
common
.
base
.
Strings
.
nullToEmpty
;
...
@@ -29,7 +29,7 @@ import java.util.regex.Matcher;
...
@@ -29,7 +29,7 @@ import java.util.regex.Matcher;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
/** Parses a String based SDP message into {@link SessionDescription}. */
/** Parses a String based SDP message into {@link SessionDescription}. */
public
final
class
SessionDescriptionParser
{
/* package */
final
class
SessionDescriptionParser
{
// SDP line always starts with an one letter tag, followed by an equal sign. The information
// SDP line always starts with an one letter tag, followed by an equal sign. The information
// under the given tag follows an optional space.
// under the given tag follows an optional space.
private
static
final
Pattern
SDP_LINE_PATTERN
=
Pattern
.
compile
(
"([a-z])=\\s?(.+)"
);
private
static
final
Pattern
SDP_LINE_PATTERN
=
Pattern
.
compile
(
"([a-z])=\\s?(.+)"
);
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
rtp/
UdpDataSourceRtpDataChannel.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/UdpDataSourceRtpDataChannel.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
android.net.Uri
;
import
android.net.Uri
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
...
@@ -23,7 +23,7 @@ import com.google.android.exoplayer2.upstream.UdpDataSource;
...
@@ -23,7 +23,7 @@ import com.google.android.exoplayer2.upstream.UdpDataSource;
import
java.io.IOException
;
import
java.io.IOException
;
/** An {@link RtpDataChannel} for UDP transport. */
/** An {@link RtpDataChannel} for UDP transport. */
public
final
class
UdpDataSourceRtpDataChannel
implements
RtpDataChannel
{
/* package */
final
class
UdpDataSourceRtpDataChannel
implements
RtpDataChannel
{
private
final
UdpDataSource
dataSource
;
private
final
UdpDataSource
dataSource
;
/** Creates a new instance. */
/** Creates a new instance. */
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/r
tp/r
eader/DefaultRtpPayloadReaderFactory.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/DefaultRtpPayloadReaderFactory.java
View file @
4bf7477e
...
@@ -14,16 +14,17 @@
...
@@ -14,16 +14,17 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
tp
.
r
eader
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
reader
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.source.rtsp.
rtp.
RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
/** Default {@link RtpPayloadReader.Factory} implementation. */
/** Default {@link RtpPayloadReader.Factory} implementation. */
public
final
class
DefaultRtpPayloadReaderFactory
implements
RtpPayloadReader
.
Factory
{
/* package */
public
final
class
DefaultRtpPayloadReaderFactory
implements
RtpPayloadReader
.
Factory
{
@Override
@Override
@Nullable
@Nullable
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/r
tp/r
eader/RtpAacReader.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAacReader.java
View file @
4bf7477e
...
@@ -13,14 +13,14 @@
...
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
tp
.
r
eader
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
reader
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
import
com.google.android.exoplayer2.source.rtsp.
rtp.
RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.util.ParsableBitArray
;
import
com.google.android.exoplayer2.util.ParsableBitArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/r
tp/r
eader/RtpAc3Reader.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAc3Reader.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
tp
.
r
eader
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
reader
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkState
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkState
;
...
@@ -23,14 +23,14 @@ import com.google.android.exoplayer2.C;
...
@@ -23,14 +23,14 @@ import com.google.android.exoplayer2.C;
import
com.google.android.exoplayer2.audio.Ac3Util
;
import
com.google.android.exoplayer2.audio.Ac3Util
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
import
com.google.android.exoplayer2.source.rtsp.
rtp.
RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.util.ParsableBitArray
;
import
com.google.android.exoplayer2.util.ParsableBitArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
/** Parses an AC3 byte stream carried on RTP packets, and extracts AC3 frames. */
/** Parses an AC3 byte stream carried on RTP packets, and extracts AC3 frames. */
public
final
class
RtpAc3Reader
implements
RtpPayloadReader
{
/* package */
public
final
class
RtpAc3Reader
implements
RtpPayloadReader
{
/** AC3 frame types defined in RFC4184 Section 4.1.1. */
/** AC3 frame types defined in RFC4184 Section 4.1.1. */
private
static
final
int
AC3_FRAME_TYPE_COMPLETE_FRAME
=
0
;
private
static
final
int
AC3_FRAME_TYPE_COMPLETE_FRAME
=
0
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/r
tp/r
eader/RtpH264Reader.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpH264Reader.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
tp
.
r
eader
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
reader
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkStateNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkStateNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
castNonNull
;
...
@@ -23,8 +23,8 @@ import com.google.android.exoplayer2.C;
...
@@ -23,8 +23,8 @@ import com.google.android.exoplayer2.C;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
import
com.google.android.exoplayer2.source.rtsp.
rtp.
RtpPacket
;
import
com.google.android.exoplayer2.source.rtsp.RtpPacket
;
import
com.google.android.exoplayer2.source.rtsp.
rtp.
RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.util.NalUnitUtil
;
import
com.google.android.exoplayer2.util.NalUnitUtil
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/r
tp/r
eader/RtpPayloadReader.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpPayloadReader.java
View file @
4bf7477e
...
@@ -14,16 +14,16 @@
...
@@ -14,16 +14,16 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
tp
.
r
eader
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
reader
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.source.rtsp.
rtp.
RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
org.checkerframework.checker.nullness.qual.Nullable
;
import
org.checkerframework.checker.nullness.qual.Nullable
;
/** Extracts media samples from the payload of received RTP packets. */
/** Extracts media samples from the payload of received RTP packets. */
public
interface
RtpPayloadReader
{
/* package */
public
interface
RtpPayloadReader
{
/** Factory of {@link RtpPayloadReader} instances. */
/** Factory of {@link RtpPayloadReader} instances. */
interface
Factory
{
interface
Factory
{
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
message
/package-info.java
→
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
reader
/package-info.java
View file @
4bf7477e
...
@@ -14,6 +14,6 @@
...
@@ -14,6 +14,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
@NonNullApi
@NonNullApi
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
reader
;
import
com.google.android.exoplayer2.util.NonNullApi
;
import
com.google.android.exoplayer2.util.NonNullApi
;
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/package-info.java
deleted
100644 → 0
View file @
dfb87638
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@NonNullApi
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
import
com.google.android.exoplayer2.util.NonNullApi
;
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/rtp/reader/package-info.java
deleted
100644 → 0
View file @
dfb87638
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@NonNullApi
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
.
reader
;
import
com.google.android.exoplayer2.util.NonNullApi
;
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/sdp/package-info.java
deleted
100644 → 0
View file @
dfb87638
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@NonNullApi
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
;
import
com.google.android.exoplayer2.util.NonNullApi
;
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpPacketReorderingQueueTest.java
→
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtpPacketReorderingQueueTest.java
View file @
4bf7477e
/*
/*
* Copyright 202
0
The Android Open Source Project
* Copyright 202
1
The Android Open Source Project
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
rtp/
RtpPacketTest.java
→
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtpPacketTest.java
View file @
4bf7477e
/*
/*
* Copyright 202
0
The Android Open Source Project
* Copyright 202
1
The Android Open Source Project
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
rtp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
getBytesFromHexString
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
getBytesFromHexString
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspHeadersTest.java
→
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspHeadersTest.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMediaPeriodTest.java
View file @
4bf7477e
...
@@ -23,9 +23,6 @@ import androidx.annotation.Nullable;
...
@@ -23,9 +23,6 @@ import androidx.annotation.Nullable;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.source.MediaPeriod
;
import
com.google.android.exoplayer2.source.MediaPeriod
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpDataChannel
;
import
com.google.android.exoplayer2.source.rtsp.sdp.MediaDescription
;
import
com.google.android.exoplayer2.source.rtsp.sdp.SessionDescription
;
import
com.google.android.exoplayer2.upstream.DefaultAllocator
;
import
com.google.android.exoplayer2.upstream.DefaultAllocator
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.concurrent.atomic.AtomicBoolean
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMediaTrackTest.java
View file @
4bf7477e
...
@@ -15,20 +15,18 @@
...
@@ -15,20 +15,18 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
MEDIA_TYPE_AUDIO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
MEDIA_TYPE_AUDIO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
MEDIA_TYPE_VIDEO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
MEDIA_TYPE_VIDEO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
RTP_AVP_PROFILE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
RTP_AVP_PROFILE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_CONTROL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_CONTROL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_FMTP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_FMTP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertThrows
;
import
static
org
.
junit
.
Assert
.
assertThrows
;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.audio.AacUtil
;
import
com.google.android.exoplayer2.audio.AacUtil
;
import
com.google.android.exoplayer2.source.rtsp.rtp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.source.rtsp.sdp.MediaDescription
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableMap
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
message/
RtspMessageUtilTest.java
→
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMessageUtilTest.java
View file @
4bf7477e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspServer.java
View file @
4bf7477e
...
@@ -15,16 +15,11 @@
...
@@ -15,16 +15,11 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
message
.
RtspRequest
.
METHOD_OPTIONS
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
RtspRequest
.
METHOD_OPTIONS
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Looper
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspHeaders
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspMessageChannel
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspMessageUtil
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspRequest
;
import
com.google.android.exoplayer2.source.rtsp.message.RtspResponse
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
import
java.io.Closeable
;
import
java.io.Closeable
;
import
java.io.IOException
;
import
java.io.IOException
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
sdp/
SessionDescriptionTest.java
→
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/SessionDescriptionTest.java
View file @
4bf7477e
...
@@ -14,17 +14,17 @@
...
@@ -14,17 +14,17 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
MEDIA_TYPE_AUDIO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
MEDIA_TYPE_AUDIO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
MEDIA_TYPE_VIDEO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
MEDIA_TYPE_VIDEO
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
MediaDescription
.
RTP_AVP_PROFILE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
MediaDescription
.
RTP_AVP_PROFILE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_CONTROL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_CONTROL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_FMTP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_FMTP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_RANGE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_RANGE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_RTPMAP
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_TOOL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_TOOL
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
sdp
.
SessionDescription
.
ATTR_TYPE
;
import
static
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
SessionDescription
.
ATTR_TYPE
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertThrows
;
import
static
org
.
junit
.
Assert
.
assertThrows
;
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/r
tp
/RtpAc3ReaderTest.java
→
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/r
eader
/RtpAc3ReaderTest.java
View file @
4bf7477e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
tp
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
rtsp
.
r
eader
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
getBytesFromHexString
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Util
.
getBytesFromHexString
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
@@ -23,7 +23,8 @@ import static org.mockito.Mockito.when;
...
@@ -23,7 +23,8 @@ import static org.mockito.Mockito.when;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.source.rtsp.rtp.reader.RtpAc3Reader
;
import
com.google.android.exoplayer2.source.rtsp.RtpPacket
;
import
com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
;
import
com.google.android.exoplayer2.testutil.FakeTrackOutput
;
import
com.google.android.exoplayer2.testutil.FakeTrackOutput
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
import
com.google.android.exoplayer2.util.ParsableByteArray
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment