Spec-Zone.ru › Dart 1

dart:html

Метод canPlayType

Строка canPlayType(Строка тип, [ Строка системаКлючей ])

Исходный код

String canPlayType(String type, [String keySystem]) {
  if ((type is String) && keySystem == null) {
    return _blink.BlinkHTMLMediaElement.instance
        .canPlayType_Callback_1_(this, type);
  }
  if ((type is String || type == null) && keySystem == null) {
    return _blink.BlinkHTMLMediaElement.instance
        .canPlayType_Callback_1_(this, type);
  }
  if ((keySystem is String || keySystem == null) &&
      (type is String || type == null)) {
    return _blink.BlinkHTMLMediaElement.instance
        .canPlayType_Callback_2_(this, type, keySystem);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/MediaElement/canPlayType.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API