Probably, maybe, …

The canPlayType() function doesn’t return true or false. In recognition of how complex video formats are, the function returns a string:

  • "probably" if the browser is fairly confident it can play this format
  • "maybe" if the browser thinks it might be able to play this format
  • "" (an empty string) if the browser is certain it can’t play this format

:-D Sounds like an easteregg, but isn’t…

via Dive into HTML5: Video formats

  1. passt ganz gut dazu: http://de.wikipedia.org/wiki/Dreiwertige_Logik

    btw. in java:
    - kann boolean true oder false sein.
    - aber die Klasse Boolean natürlich auch null.. :P

  2. MeisterLuk

    Ja, klar. Man kann es noch verallgemeinern und die Fuzzylogik als Beispiel nennen [0].

    Aber ich habe mich auf die Wahl der Schlüsselwörter für die Werte bezogen. Die finde ich ziemlich lustig ;-)

    [0] http://de.wikipedia.org/wiki/Fuzzylogik

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>