oEmbed
oEmbed is an open format for embedding videos into a website without having to parse the embedding code directly. More details at view the spec.
Endpoint
URL schemes
https://zimovi.com/channel/*/video/* |
https://www.zimovi.com/channel/*/video/* |
Parameters
url
|
The ZiMovi page URL for a video. |
autoplay
optional
|
Automatically start playback of the video. Defaults to false. |
Example Request
Example Result
{ "type":"video", "version":"1.0", "provider_name":"ZiMovi", "provider_url":"https:\/\/zimovi.com\/", "title":"ZiMovi", "html":"<iframe src=\"https:\/\/zimovi.com\/channel\/staff\/player\/video\/8ef80cb7874b34ab\" width=\"1280\" height=\"720\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>", "width":1280, "height":720, "duration":"133.44", "video_id":"8ef80cb7874b34ab", "thumbnail_url":"https:\/\/d1teylh2i3wa1w.cloudfront.net\/videos\/c6b4c01a4d3a3e266cca3eb9457e6c09eb8cc6aa_6401.jpg", "thumbnail_width":640, "thumbnail_height":360, "author_name":"ZiMovi Staff", "author_url":"https:\/\/zimovi.com\/channel\/staff" }
WordPress Integration Example
Register ZiMovi’s oEmbed provider for ZiMovi URLs using a regex URL format:
<?php wp_oembed_add_provider( '#https?://(www\.)?zimovi\.com/.+?/video/.*#i', 'https://zimovi.com/oembed.{format}', true ); ?>