GCKMediaLiveSeekableRange 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用于聚合与媒体流的可查找范围相关的信息的类。
- 开始时间
- 4.4.1
继承 NSObject、<NSCopy> 和 <NSSecureCoding>。
- (NSTimeInterval) startTime |
|
readnonatomicassign |
可寻道范围的开始时间,范围为 0 到 endTime
(如果有)。
- (NSTimeInterval) endTime |
|
readnonatomicassign |
可搜寻范围的结束时间,范围为 0 到时长结束(如果有)。
一个标记,用于指示当前进度范围是固定长度的移动窗口还是扩展范围。
指示当前直播活动是否已完成的标记。
直播结束后,它会更新为“是”。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eGCKMediaLiveSeekableRange\u003c/code\u003e provides details about the seekable range within a live media stream.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for the start and end times of the seekable range (\u003ccode\u003estartTime\u003c/code\u003e, \u003ccode\u003eendTime\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eisMovingWindow\u003c/code\u003e property indicates if the seekable range is a fixed window or expands over time.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eisLiveDone\u003c/code\u003e signals whether the live stream has concluded.\u003c/p\u003e\n"]]],["The `GCKMediaLiveSeekableRange` class provides information about a media stream's seekable range. It defines `startTime` and `endTime` properties to specify the seekable range within the stream's duration. A `isMovingWindow` flag indicates if the range is a fixed-length, moving window or expanding. Additionally, the `isLiveDone` flag signals if the live stream has finished. The seekable range and live status of the media stream can be checked using these properties.\n"],null,["# GCKMediaLiveSeekableRange Class\n\n[Properties](#properties) \nGCKMediaLiveSeekableRange Class Reference \n\nOverview\n--------\n\nA class that aggregates information about seekable range of a media stream.\n\nSince\n: 4.4.1\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSTimeInterval | [startTime](/cast/docs/reference/ios/interface_g_c_k_media_live_seekable_range#a1ffa84981e71ce08f90cee463b2c3ce8) |\n| | The start time of seekable range, which ranges from 0 to `endTime` if available. [More...](#a1ffa84981e71ce08f90cee463b2c3ce8) |\n| ||\n| NSTimeInterval | [endTime](/cast/docs/reference/ios/interface_g_c_k_media_live_seekable_range#a2bf375d828d9227599b5d361cd86ab04) |\n| | The end time of seekable range, which ranges from 0 to end of duration if available. [More...](#a2bf375d828d9227599b5d361cd86ab04) |\n| ||\n| BOOL | [isMovingWindow](/cast/docs/reference/ios/interface_g_c_k_media_live_seekable_range#a8810ef320c4f6df10c21099d915a8dcb) |\n| | A flag indicating whether the current seek range is a fixed-length, moving window or a expanding range. [More...](#a8810ef320c4f6df10c21099d915a8dcb) |\n| ||\n| BOOL | [isLiveDone](/cast/docs/reference/ios/interface_g_c_k_media_live_seekable_range#a423da030ea8dfc35292b3d4a14196562) |\n| | A flag indicating whether the current live stream is done. [More...](#a423da030ea8dfc35292b3d4a14196562) |\n| ||\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------------|---------------------|\n| |------------------------------| | - (NSTimeInterval) startTime | | readnonatomicassign |\n\nThe start time of seekable range, which ranges from 0 to `endTime` if available. \n\n|---------------------------------------------------------------|---------------------|\n| |----------------------------| | - (NSTimeInterval) endTime | | readnonatomicassign |\n\nThe end time of seekable range, which ranges from 0 to end of duration if available. \n\n|---------------------------------------------------------|---------------------|\n| |-------------------------| | - (BOOL) isMovingWindow | | readnonatomicassign |\n\nA flag indicating whether the current seek range is a fixed-length, moving window or a expanding range. \n\n|-------------------------------------------------|---------------------|\n| |---------------------| | - (BOOL) isLiveDone | | readnonatomicassign |\n\nA flag indicating whether the current live stream is done.\n\nIt's updated to YES when live stream finishes."]]