类:SeekableRange
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eSeekableRange\u003c/code\u003e helps define the portion of media that can be sought (fast-forwarded or rewound).\u003c/p\u003e\n"],["\u003cp\u003eIt's initialized using \u003ccode\u003estart\u003c/code\u003e and \u003ccode\u003eend\u003c/code\u003e values representing seconds in the media.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estart\u003c/code\u003e and \u003ccode\u003eend\u003c/code\u003e properties store the beginning and ending points of the seekable range respectively, which can be retrieved later.\u003c/p\u003e\n"]]],["The `SeekableRange` class defines the range within a media stream that a user can navigate. It includes two key properties: `start` and `end`, representing the beginning and end of this seekable range in seconds. These are optional numbers and can be undefined. The class constructor, `SeekableRange`, takes `start` and `end` as its parameters to define the specific range.\n"],null,["# Class: SeekableRange\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).SeekableRange\n======================================================================================================================================================\n\nclass static\n\nProvides the seekable range in seconds.\n\nConstructor\n-----------\n\n### SeekableRange\n\nnew\nSeekableRange(start, end)\n\n| #### Parameter ||\n|-------|-----------------|\n| start | Optional number |\n| end | Optional number |\n\nProperties\n----------\n\n### end\n\n(number or undefined)\n\nThe end of the seekable range in seconds.\n\n### start\n\n(number or undefined)\n\nThe start of the seekable range in seconds."]]