=== Video Player for WPBakery ===
Contributors: nutttaro
Donate link: https://www.buymeacoffee.com/nutttaro
Tags: video-player-for-wpbakery, video-player, html5, self-hosted-video
Requires at least: 5.7
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Video Player for WPBakery add-on for WPBakery Page Builder allow add YouTube, Vimeo and Self-Hosted videos (HTML5) to your WordPress website.

== Description ==

Video Player for WPBakery add-on for WPBakery Page Builder allows add YouTube, Vimeo and Self-Hosted videos (HTML5) to your WordPress website.

Features:

* Easy for add video for WPBakery Page Builder
* Support YouTube, Vimeo and Self-Hosted videos (HTML5)
* The plugin is lightweight.

== Installation ==
1. Upload `video-player-for-wpbakery.zip` to the install plugin page
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Go to page or posts and add video to your content

== Frequently Asked Questions ==

= How to increase maximum file upload size for Self-Hosted videos? =

Add code below in theme’s `functions.php` file or `wp-config.php` file

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');

or add code below in `.htaccess` file

php_value upload_max_filesize 64M
php_value post_max_size 64M

== Screenshots ==

1. Video Player element in your editor
1. Video Player element setting for Self-Hosted videos
1. Video Player element setting for YouTube and Vimeo
1. Video Player display on frontend

== Changelog ==

= 1.2.0 =
* Added responsive video player — videos now scale fluidly to fit their container
* Added Privacy-Enhanced Mode option for YouTube embeds (uses youtube-nocookie.com)
* Fixed potential XSS via crafted filenames in the media library picker
* Fixed video URL detection failing for URLs starting with youtube/vimeo domain
* Replaced extract() with explicit variable assignments for safer shortcode handling
* Fixed unclosed output buffer in shortcode rendering

= 1.1.0 =
* Fixed WPBakery serialization issue causing empty field on modal reopen
* Added edit_form_line class to field wrapper for better WPBakery compatibility
* Simplified input field structure (single line, no data attributes)
* Added unique ID to each input field instance
* Added data-param attribute to field wrapper
* Enhanced JavaScript to directly update WPBakery's internal state (window.vc.atts)
* Removed wpb-textinput class that may have interfered with serialization
* Cleaner, more maintainable code structure
* Added playsinline option for mobile inline video playback
* Added poster image option to display preview image before video plays
* Added preload dropdown setting (Auto, Metadata, None)
* Modernized HTML5 video tag with proper conditional attribute rendering
* Added crossorigin attribute for better CORS support
* Enabled picture-in-picture mode support
* Improved security with proper URL escaping (esc_url)
* Changed default preload setting to 'metadata' for better performance
* Enhanced code formatting and readability

= 1.0.2 =
* Fixed XSS
* Tested up to 6.8.1

= 1.0.1 =
* Tested up to 6.1.1

= 1.0.0 =
* Initial Release
