Hy guys i really tryed alot but i cant get it to work.
I want to create a video background.
My problem is that in Browser it works fine but in Ionic View Android/iOS AND native on Android/iOS it doesnt work.
The Video is stored in assets/video/videobackground.mp4.
The Video also is in H.264 Codec.
Make sure to have a background MP4 Video and a WEBM Video.
If you dont have one you can Convert it with many online Converters from mp4 to webm!
Also with this settings: <video webkit-playsinline playsinline autoplay loop muted id="backgroundvideo">
Your Video will autloop without sound and any control buttons
EDIT:
If you want to know i created a folder “video” in src -> assets -> video. In this Video Folder i insert my Videos.
If you want your background video to run on every device without having to encode the video yourself you should upload it to a service like BrowsePlay and embed their player snippet into your site.
I twill work on desktop and mobile without any issues and it updates with new browser releases.