Re: [webkit-dev] Making sure the behavior of updating duration of HTMLMediaElement and MediaSource

2020-12-09 Thread Kimoto, Yousuke (SIE) via webkit-dev
Hi Peng, Thank you for your reply. Let me confirm what I understand about the webkit behavior of "duration update": https://www.w3.org/TR/html52/semantics-embedded-content.html#offsets-into-the-media-resource: >When the length of the media resource changes to a known value (e.g., from >being

Re: [webkit-dev] Making sure the behavior of updating duration of HTMLMediaElement and MediaSource

2020-12-07 Thread Peng (WebKit) Liu via webkit-dev
Hi Yousuke, I think WebKit’s behavior matches the spec. The HTML5 spec says: “If no media data is available, then the attributes must return the Not-a-Number (NaN) value.” On the test page, there is no data appended to the media source, so there is no media data available for the video