Establish a well-defined way of identifying asynchronously initialized media elements #83
-
NOTE: This should eventually be turned into a proposal, but for now I'd just like to get some thoughts/ideas. Currently, we have an example of the To also support things like If media-chrome identifies the media element as "async initialized", two options I can think of "off the dome" for handling the async:
Things to discuss:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think we need an addition and here's what I think we can use to do that:
So basically while the underlying player iframe may not be loaded, the custom element can still be providing default states that help know what's possible, or queueing calls to the media functions for when the iframe is ready. Am I missing anything in that? |
Beta Was this translation helpful? Give feedback.
-
Yeah I think everything you're saying is fair. Let's consider this as answered for now, since we'll have the conversation to refer back to for posterity if it comes up in the future. |
Beta Was this translation helpful? Give feedback.
I don't think we need an addition and here's what I think we can use to do that:
play()
already uses an async promise<video>
already errors if you try to seek beforeloadedmetadata
/readyState:HAVE_METADATA. Even if the underlying iframe isn't loaded, the custom media element can still return readyState:0 HAVE_NOTHINGSo basically while the underlying player iframe may not be loaded, the custom element can still be providing default states that help know what's possible, or queueing calls to the media functions for when the iframe is ready.
Am I missin…