HTML5 Video-Player
Erzeugt ein HTML5 Video Element und erkennt dabei die richtigen Formate für den Source Tag.
Tipp
Video-Codec
Stand September 2024 ist folgender Video- und Audiocodec in allen Browsern lauf- und hörfähig.
webm mit VP8, Bitrate fix auf 1500 - 3000 und Audio-Codec Opus
Attribute
| Name | Beschreibung | Type | default | required |
|---|---|---|---|---|
| source | Pfad oder UIDs von Video Dateien | mixed | - | true |
| poster | Fal-UIDs eines Poster Bildes | mixed | - | true |
| controls | Zeigt die Steuerelemente an | boolean | false | false |
| muted | Das Video wird gemuted (ist für Autoplay notwendig) | boolean | false | false |
| autoplay | Das Video started automatisch | boolean | false | false |
| loop | Das Video wiederholt sich | boolean | false | false |
| playsinline | Das Video öffnet sich nicht automatisch im Vollbild (am iPhone, iOS) | boolean | false | false |
| preload | Einstellung, ob Video und Metadaten vorgeladen werden | [none,metadata,auto] | 'auto' | false |
Beispiel
html
<bh:video source="{cObj.allSettings.videos}" controls="{cObj.allSettings.html5videoControls}" muted="{cObj.allSettings.html5videoMuted}" autoplay="{cObj.allSettings.html5videoAutoplay}" loop="{cObj.allSettings.html5videoLoop}" playsinline="{cObj.allSettings.playsinline}" />