With WP UI
If you have the option enabled for ARVE to take over the WP video embeds you can use the Add Media button to upload and embed HTML5 playable video files.
With Shortcode UI Dialog
Single file format:
Open the ‘ARVE Embed Video’ dialog put your URL to the file you want show to the into the very first ‘URL/Emebed code’ field.
Multiple file formats:
Open the ‘Embed Video’ dialog put your URLs to the files in the appropriate mp4/webm/ogv fields at the bottom of the dialog.
Manually Writing Shortcodes
WordPress supports self hosted video with its
[*video] shortcode. With a syntax like this
[*video mp4="http://example/video.mp4" webm="http://example/video.webm" ogv="http://example/video.ogv" ... /]
or just this if you want just to host one file format.
[*video src="http://example/video.mp4" ... /]
ARVE Supports the very same syntax with its
ARVE Error: The [arve] shortcode needs one of this attributes av1mp4, mp4, m4v, webm, ogv, url shortcode. It is also so smart to create a
<video> embed if you just paste a URL that ends with
.mp4/.m4v/.webm/.ogv into the url attribute field so
[*arve url="http://example/video.mp4" /]
Differences Between ARVE and WP’s
You can add
track_2 … to add HTML5 subtitle files to the videos. You can optionally give those tracks your own labels with
track_1_label. If there is no label specified ARVE will create a label based on the filename. So your filenames for your
.vtt files should be
The above example embed was created with the following shortcode. The chapter tracks seem to have no UI on the browsers players I have tested but may have one in the future.
[*arve title="ARVE Subtitle example" mp4="https://nextgenthemes.com/app/uploads/2018/04/elephants-dream-medium.mp4" track_1="https://nextgenthemes.com/app/uploads/2018/04/elephants-dream-subtitles-en.vtt" track_2="https://nextgenthemes.com/app/uploads/2018/04/elephants-dream-subtitles-de.vtt" track_3="https://nextgenthemes.com/app/uploads/2018/04/elephants-dream-chapters-en.vtt" track_4="https://nextgenthemes.com/app/uploads/2018/04/elephants-dream-chapters-de.vtt" /]
You need to remove the
* from the shortcodes. Its used in the documentation to prevent them from executing.