I've noticed that when working with MP4/MOV files whose video codec isn't supported by the browser (I'm trying a MP4/MOV embedding HEVC for instance), the created video object would have empty dimensions, hence the library would create a canvas for nothing, draw nothing into it and return the string "data:;".
I suggest that we instead throw an error, assuming that our consumers are already catching them in a try/catch block.
I've noticed that when working with MP4/MOV files whose video codec isn't supported by the browser (I'm trying a MP4/MOV embedding HEVC for instance), the created
video
object would have empty dimensions, hence the library would create a canvas for nothing, draw nothing into it and return the string "data:;".I suggest that we instead throw an error, assuming that our consumers are already catching them in a try/catch block.