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
Sounds like an easteregg, but isn’t…
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..
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