Skip to content

Commit f01b9d2

Browse files
committed
Added Range requirement to seek() documentation
1 parent f803ebf commit f01b9d2

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,10 @@ protected List<MediaStatus> pause(
14831483
* <p>
14841484
* This can only succeed if the remote application supports the
14851485
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
1486+
* <p>
1487+
* Please note that the web server must support <a href=
1488+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
1489+
* requests</a> for seeking to work.
14861490
*
14871491
* @param session the {@link Session} to use.
14881492
* @param mediaSessionId the media session ID for which the pause request
@@ -1528,6 +1532,10 @@ public List<MediaStatus> seek(
15281532
* <p>
15291533
* This can only succeed if the remote application supports the
15301534
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
1535+
* <p>
1536+
* Please note that the web server must support <a href=
1537+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
1538+
* requests</a> for seeking to work.
15311539
*
15321540
* @param session the {@link Session} to use.
15331541
* @param mediaSessionId the media session ID for which the pause request
@@ -1562,6 +1570,10 @@ public List<MediaStatus> seek(
15621570
* <p>
15631571
* This can only succeed if the remote application supports the
15641572
* {@link CastDevice#CAST_MEDIA_NAMESPACE}.
1573+
* <p>
1574+
* Please note that the web server must support <a href=
1575+
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Range">Range
1576+
* requests</a> for seeking to work.
15651577
*
15661578
* @param session the {@link Session} to use.
15671579
* @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 List<MediaStatus> pause(int mediaSessionId, long responseTimeout) throws
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 List<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)