Correctly check for video type, fixes #699
Merge pull request #713 from flowplayer/bug/699

Correctly check for video type, fixes #699