Many thanks for your reply and extensive code sample. It really is a wealth of really enlightening information and I really appreciate it.
It works perfectly for MP4s using the .mp4 extension with the video/MP4 type. However, many of the videos I need to use are in MOV format, and for some reason I'm not getting the same success. I have tried using various different video types for the NewType variable, including:-
However, none of these seem to work. The element becomes blank.
Any idea why this could be? Technically the source format of the MOVs that I'm trying to use are listed as "video/quicktime" but I'm getting no luck using that as the type.
I can confirm that the MOV files work perfectly in Hype as a manually imported element - it just doesn't seem to work when being triggered with JS from your code sample.
(My other MP4 files work perfectly).