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

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

2020-12-06 Thread Kimoto, Yousuke (SIE) via webkit-dev
Hi all, I have a question about MediaSource's duration. What is an expected result of "duration" after processing the following steps? 1) Creating HTMLMediaElement object. 2) Creating MediaSource object, which is set to the HTMLMediaElement of step 1) 3) Updating MediaSource.duration with some