dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.25k stars 1.58k forks source link

Add "supported" getter to experimental features like MediaSource to check availability #19720

Open DartBot opened 10 years ago

DartBot commented 10 years ago

This issue was originally filed by robert.w.ha...@gmail.com


I was "hacking down some dart code" to create an example for using MediaSource for HTML5 Video. When trying it in different browsers I got an exception that MediaSource is not available (UnknownJavaScriptObject)

I did some research and didnt found a way to check if MediaSource is available or not or is there a way?

I'd like to see anew feature in dart, that allowes me to check if MediaSource is available. E.g. MediaSource.supported like there is for https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-dom-html.EmailInputElement#id_supported

Regards and Thanks for feedback, Robert

floitschG commented 10 years ago

Added Area-Library, Library-Html, Triaged labels.

alan-knight commented 9 years ago

https://codereview.chromium.org/990383002/

Not really a new feature, just a matter of adding the right bit to the right python script to generate it for this class as well. And availability for this feature is amazing. In Firefox, only if you set a flag, and even then defaults to working only if your domain is YouTube.


Set owner to @alan-knight. Removed Priority-Unassigned label. Added Priority-Medium, Started labels.