[video:] Short Tag
Built-in Feature
The [video:] short tag is used to render a video player for an attached file using the first video player plugin available.
When you attach a video file to a post and then click on the blue (+) icon, a tag like [video:123] will be automatically inserted at the cursor position in your post.
[video:123] generates a block element (<video>...</video>) and cannot appear inside a paragraph. (b2evolution will automatically move it out of the paragraph).Plugin Features
When installed, specific video plugins may support an alternate syntax such as [video:provider:ID].
Those video plugins may also provide toolbars with button to automatically insert these tags.
Syntax Breakdown
Built-in
[video: Link ID ]
Link ID: ID of the linked video that will be shown.
Plugin
[video: Provider : Video ID ]
- Provider: the site that provides the video content. Valid values are:
- youtube
- dailymotion
- vimeo
- wistia
- Video ID: the ID of the video to show. Format depends on the video provider.
Proper Placement
Because this tag will typically render to a block element (like <div>), it should not be placed into a paragraph (<p>). It should be placed between 2 paragraphs. If b2evolution finds the tag inside of a paragraph if will actually move it before the paragraph at rendering time.