类:MediaPauseEvent
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003ecast.framework.events.MediaPauseEvent\u003c/code\u003e class provides data for \u003ccode\u003epause\u003c/code\u003e events coming from the \u003ccode\u003eMediaElement\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eWhen created, it can optionally include the \u003ccode\u003ecurrentMediaTime\u003c/code\u003e and whether the media \u003ccode\u003eended\u003c/code\u003e due to reaching its end.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eended\u003c/code\u003e property reveals if the pause happened because the media stream finished playing.\u003c/p\u003e\n"]]],[],null,["# Class: MediaPauseEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).MediaPauseEvent\n====================================================================================================================================================\n\nclass static\n\nEvent data for `pause` events forwarded from the `MediaElement`.\n\nConstructor\n-----------\n\n### MediaPauseEvent\n\nnew\nMediaPauseEvent(currentMediaTime, ended)\n\n| #### Parameter ||\n|------------------|------------------|\n| currentMediaTime | Optional number |\n| ended | Optional boolean |\n\nProperty\n--------\n\n### ended\n\nboolean\n\nIndicate if the media ended (indicates the pause was fired due to\nstream reached the end)."]]