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
ea6d0ceb
authored
Jan 06, 2022
by
claincly
Committed by
Oliver Woodman
Jan 07, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use RTSP server for RTSP auth realm.
PiperOrigin-RevId: 420053894
parent
40ecb6c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspAuthenticationInfoTest.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/RtspMessageUtilTest.java
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspAuthenticationInfoTest.java
View file @
ea6d0ceb
...
...
@@ -50,7 +50,7 @@ public class RtspAuthenticationInfoTest {
RtspAuthenticationInfo
authenticator
=
new
RtspAuthenticationInfo
(
RtspAuthenticationInfo
.
DIGEST
,
/* realm= */
"
LIVE555 Streaming Media
"
,
/* realm= */
"
RTSP server
"
,
/* nonce= */
"0cdfe9719e7373b7d5bb2913e2115f3f"
,
/* opaque= */
"5ccc069c403ebaf9f0171e9517f40e41"
);
...
...
@@ -60,10 +60,10 @@ public class RtspAuthenticationInfoTest {
Uri
.
parse
(
"rtsp://localhost:554/imax_cd_2k_264_6ch.mkv"
),
RtspRequest
.
METHOD_DESCRIBE
))
.
isEqualTo
(
"Digest username=\"username\", realm=\"
LIVE555 Streaming Media
\","
"Digest username=\"username\", realm=\"
RTSP server
\","
+
" nonce=\"0cdfe9719e7373b7d5bb2913e2115f3f\","
+
" uri=\"rtsp://localhost:554/imax_cd_2k_264_6ch.mkv\","
+
" response=\"
ba9433847439387776f7fb905db3fcae
\","
+
" response=\"
cb635712efbdd027f0c823d0623449f6
\","
+
" opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""
);
}
}
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMediaPeriodTest.java
View file @
ea6d0ceb
...
...
@@ -133,7 +133,7 @@ public final class RtspMediaPeriodTest {
.
add
(
RtspHeaders
.
CSEQ
,
headers
.
get
(
RtspHeaders
.
CSEQ
))
.
add
(
RtspHeaders
.
WWW_AUTHENTICATE
,
"Digest realm=\"
LIVE555 Streaming Media
\","
"Digest realm=\"
RTSP server
\","
+
" nonce=\"0cdfe9719e7373b7d5bb2913e2115f3f\","
+
" opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""
)
.
add
(
RtspHeaders
.
WWW_AUTHENTICATE
,
"BASIC realm=\"WallyWorld\""
)
...
...
library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/RtspMessageUtilTest.java
View file @
ea6d0ceb
...
...
@@ -539,10 +539,10 @@ public final class RtspMessageUtilTest {
public
void
parseWWWAuthenticateHeader_withDigestAuthentication_succeeds
()
throws
Exception
{
RtspAuthenticationInfo
authenticationInfo
=
RtspMessageUtil
.
parseWwwAuthenticateHeader
(
"Digest realm=\"
LIVE555 Streaming Media
\", nonce=\"0cdfe9719e7373b7d5bb2913e2115f3f\""
);
"Digest realm=\"
RTSP server
\", nonce=\"0cdfe9719e7373b7d5bb2913e2115f3f\""
);
assertThat
(
authenticationInfo
.
authenticationMechanism
).
isEqualTo
(
RtspAuthenticationInfo
.
DIGEST
);
assertThat
(
authenticationInfo
.
nonce
).
isEqualTo
(
"0cdfe9719e7373b7d5bb2913e2115f3f"
);
assertThat
(
authenticationInfo
.
realm
).
isEqualTo
(
"
LIVE555 Streaming Media
"
);
assertThat
(
authenticationInfo
.
realm
).
isEqualTo
(
"
RTSP server
"
);
assertThat
(
authenticationInfo
.
opaque
).
isEmpty
();
}
...
...
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