Skip to content

Commit ef51f76

Browse files
committed
Added Range requirement to seek() documentation
1 parent 48eec66 commit ef51f76

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/main/java/org/digitalmediaserver/cast/Channel.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,10 @@ protected MediaStatus pause(
14531453
* <p>
14541454
* This can only succeed if the remote application supports the
14551455
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
1456+
* <p>
1457+
* Please note that the web server must support <a href=
1458+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
1459+
* requests</a> for seeking to work.
14561460
*
14571461
* @param session the {@link Session} to use.
14581462
* @param mediaSessionId the media session ID for which the pause request
@@ -1498,6 +1502,10 @@ public MediaStatus seek(
14981502
* <p>
14991503
* This can only succeed if the remote application supports the
15001504
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
1505+
* <p>
1506+
* Please note that the web server must support <a href=
1507+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
1508+
* requests</a> for seeking to work.
15011509
*
15021510
* @param session the {@link Session} to use.
15031511
* @param mediaSessionId the media session ID for which the pause request
@@ -1532,6 +1540,10 @@ public MediaStatus seek(
15321540
* <p>
15331541
* This can only succeed if the remote application supports the
15341542
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
1543+
* <p>
1544+
* Please note that the web server must support <a href=
1545+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
1546+
* requests</a> for seeking to work.
15351547
*
15361548
* @param session the {@link Session} to use.
15371549
* @param mediaSessionId the media session ID for which the pause request

src/main/java/org/digitalmediaserver/cast/Session.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,10 @@ public MediaStatus pause(int mediaSessionId, long responseTimeout) throws IOExce
795795
* <p>
796796
* This can only succeed if the remote application supports the
797797
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
798+
* <p>
799+
* Please note that the web server must support <a href=
800+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
801+
* requests</a> for seeking to work.
798802
*
799803
* @param mediaSessionId the media session ID for which the pause request
800804
* applies.
@@ -830,6 +834,10 @@ public MediaStatus seek(
830834
* <p>
831835
* This can only succeed if the remote application supports the
832836
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
837+
* <p>
838+
* Please note that the web server must support <a href=
839+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
840+
* requests</a> for seeking to work.
833841
*
834842
* @param mediaSessionId the media session ID for which the pause request
835843
* applies.

0 commit comments

Comments
 (0)