add support for videos

note that there are some IOS platform issues with transform of videos.
It's more stable when using transform=false.