trieloff / html5flash

Converts HTML5 audio and video tags into Flash media players that can be controlled via Javascript, so that website authors can use the audio and video element right away without having to care about manually providing flash player fallbacks.
http://gettingsoftware.posterous.com/html5flash-using-html5-video-and-audio-right
Apache License 2.0
20 stars 2 forks source link

Wrong return value for 'canPlayType' #1

Open mycroes opened 14 years ago

mycroes commented 14 years ago

the canPlayType function returns "no" if the expected result is that the src file can not be played. However, the string "no" evaluates to the boolean true, and thus this has been changed in HTML5 so that the empty string is returned instead. Also, it would be nice if these were defined as constants somewhere in the code, which would make any future changes easier...

trieloff commented 14 years ago

Good point, I missed that change, but it makes sense.