=== JuZ Simple Video Preview ===
Contributors: juzed
Requires at least: 6.6
Tested up to: 7.1
Stable tag: 1.1.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: youtube, vimeo, dailymotion, wistia, eco-friendly

A Gutenberg block to display video previews from YouTube, Vimeo, Dailymotion, and Wistia with a play button.

== Description ==

JuZ Simple Video Preview is a Gutenberg block that allows you to easily embed video previews from various online video services such as YouTube, Vimeo, Dailymotion, and Wistia. When users click the play button, they are redirected to the video service to watch the video in a new tab.

**Live demo:**
See it in action on [playground.juzed.dev](https://playground.juzed.dev/our-plugins/simple-video-preview/), or try it in the editor with [WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://wordpress.org/plugins/wp-json/plugins/v1/plugin/simple-video-preview/blueprint.json), nothing to install.

**Translation: **
The plugin is fully translated into French and the translation system is operational for other languages.

**Eco-Responsibility: **
By using video previews instead of embedding full videos, you reduce the data load and energy consumption, contributing to a more sustainable web experience.

**Accessibility: **
JuZ Simple Video Preview is designed with accessibility in mind, ensuring that all users, including those with disabilities, can easily interact with the video previews.

**Privacy: **
JuZ Simple Video Preview does not deposit any cookies on the user's device. This ensures that user privacy is respected and no tracking is performed by the plugin.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/simple-video-preview` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Use the "JuZ Simple Video Preview" block in the Gutenberg editor to add video previews to your posts or pages.

== Frequently Asked Questions ==

= How do I add a video preview to my post? =

Simply add the "JuZ Simple Video Preview" block to your post or page in the Gutenberg editor and enter the URL of the video you want to preview.

= Which video services are supported? =

The plugin currently supports YouTube, Vimeo, Dailymotion, and Wistia.

= What URL formats are supported? =

The plugin supports the following URL formats:
- YouTube:
  - https://www.youtube.com/watch?v={VIDEO_ID}
  - https://www.youtube.com/shorts/{VIDEO_ID}
  - https://www.youtube.com/embed/{VIDEO_ID}
  - https://youtu.be/{VIDEO_ID}
- Wistia:
  - https://wistia.com/watch/wistia-overview?wchannelid={CHANNEL_ID}&wmediaid={MEDIA_ID}
  - https://home.wistia.com/medias/{MEDIA_ID}
  - https://fast.wistia.net/embed/iframe/{MEDIA_ID}
- Vimeo:
  - https://vimeo.com/{VIDEO_ID}
  - https://vimeo.com/{VIDEO_ID}_{VIDEO_TITLE}
- Dailymotion:
  - https://www.dailymotion.com/video/{VIDEO_ID}
  - https://www.dailymotion.com/embed/video/{VIDEO_ID}

== Screenshots ==

1. Screenshot of the JuZ Simple Video Preview block in the Gutenberg editor.
2. Screenshot of a video preview in a post.

== Changelog ==

= 1.1.1 =
* Live demo: new address of the demo page, and a WordPress Playground preview that opens the editor on a demo page.

= 1.1.0 =
* Link title and thumbnail text alternative added when the page is displayed, in the language of the page: they are no longer saved in the content, so a block stays valid when the translations or the editor language change. Blocks saved by earlier versions are converted when edited, and show these texts in the language of the page right away.
* Renamed to JuZ Simple Video Preview (the block and the slug do not change).
* Tested with WordPress 7.1.
* Requires WordPress 6.6 and PHP 7.4.
* Build tooling updated.

= 1.0.2 =
* Tested with WordPress 6.9

= 1.0.1 =
* Fix some typos.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.1 =
Demo links only, no code change.

= 1.1.0 =
New name, texts in the language of the page, blocks no longer invalidated by a translation change, and compatibility with WordPress 7.1.

= 1.0.2 =
Compatibility update for WordPress 6.9.

= 1.0.1 =
Release that fixes some typos.

= 1.0.0 =
Initial release of the Simple Video Preview plugin.
