類別:SegmentDownloadedEvent
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003ecast.framework.events.SegmentDownloadedEvent\u003c/code\u003e class provides data for segment download events within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eThis event includes information about the time taken to download the segment (\u003ccode\u003edownloadTime\u003c/code\u003e) and the size of the segment in bytes (\u003ccode\u003esize\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this event data to monitor and optimize segment downloads during Cast sessions.\u003c/p\u003e\n"]]],[],null,["# Class: SegmentDownloadedEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).SegmentDownloadedEvent\n===========================================================================================================================================================\n\nclass static\n\nEvent data for a `cast.framework.events.EventType.SEGMENT_DOWNLOADED`\nevent.\n\nConstructor\n-----------\n\n### SegmentDownloadedEvent\n\nnew\nSegmentDownloadedEvent(downloadTime, size)\n\n| #### Parameter ||\n|--------------|-----------------|\n| downloadTime | Optional number |\n| size | Optional number |\n\nProperties\n----------\n\n### downloadTime\n\nconstant\n\n(number or undefined)\n\nThe time it took to download the segment, in milliseconds.\n\n### size\n\nconstant\n\n(number or undefined)\n\nThe number of bytes in the segment."]]