== WPS Player ==

== Translations ==
* Chinese (100%): 79/79 lines translated
* English (100%): 79/79 lines translated
* French (100%): 79/79 lines translated
* German (100%): 79/79 lines translated
* Hindi (100%): 79/79 lines translated
* Italian (100%): 79/79 lines translated
* Portuguese (100%): 79/79 lines translated
* Russian (100%): 79/79 lines translated
* Spanish (100%): 79/79 lines translated

== Changelog ==
= 2.4.0 = 2025-03-19
* Added: Add Hindi translation
* Updated: Dropping support for PHP 5.6 to 7.1
* Updated: PHP ^7.2 or PHP 8.x is now required
* Updated: PHP ^7.4 or PHP 8.x is recommended
* Updated: Update all translations
* Fixed: Fix main color input field that was not displayed correctly in mobile in the options page
* Fixed: Clean up the codebase to prevent a lot of potential php errors

= 2.3.1 = 2024-09-09
* Fixed: Fix UTF-8 issues with non latin characters (arab, chinese, russian, ...) that prevented the thumbnails or the video to load correctly

= 2.3.0 = 2023-03-07
* Fixed: Fix php error if WP-Script Core is not installed

= 2.2.9 = 2022-05-13
* Added: WP-Script footer in options page
* Fixed: Plugin loading on the theme widget admin page that prevented the widgets to be displayed

= 2.2.8 = 2022-03-04
* Fixed: Fix bypass transformation that did not work for iframes

= 2.2.7 = 2022-02-23
* Added: New option to enter ids and classes of videos you do not want to transform

= 2.2.6 = 2022-01-25
* Fixed: Fix issue that could prevent close ads buttons to work

= 2.2.5 = 2022-01-03
* Fixed: Close advertising button is not displayed anymore when there is no ads. Issue caused mainly because of whitespace in the ads options.
* Fixed: Do not display download button on m3u8 videos anymore when the download option is enabled. M3u8 videos are streaming videos that can't be downloaded.
* Fixed: Minor issues that could cause errors owith PHP bellow 7.2

= 2.2.4 = 2021-12-17
* Fixed: Youporn Gay transformation is now working well
* Fixed: No more PHP warning in Redtube transformation code

= 2.2.3 = 2021-12-13
* Fixed: Comments in JavaScript issue when minify is enabled from a third party plugin

= 2.2.2 = 2021-12-06
* Updated: Enabling transformation option after installing the plugin
* Fixed: JavaScript issue with cache plugins when minify is enabled

= 2.2.1 = 2021-06-22
* Added: Redtube iframes transformation fallback method to get at least 480p mp4

= 2.2.0 = 2021-06-09
* Fixed: Tmp directory write issue that could prevent the player to load

= 2.1.9 = 2021-06-08
* Fixed: Redtube iframes transformation method

= 2.1.8 = 2021-06-04
* Updated: Xvideos iframes transformation method
* Updated: Youporn iframes transformation method
* Updated: Youporn Gay iframes transformation method

= 2.1.7 = 2021-04-27
* Fixed: Open_basedir restriction error with some servers configuation

= 2.1.6 = 2021-04-20
* Added: New option to allow video download (MP4 only)
* Fixed: Fix wp-load.php not found issue with some server files structure

= 2.1.5 = 2021-02-17
* Added: More details in some options
* Added: Translation files to prepare the plugin for translations
* Added: French translation
* Fixed: Pre-roll / Mid-roll urls formatted with esc_html() that could prevent ads to work
* Fixed: Missing type param 0 issue

= 2.1.4 = 2021-01-06
* Fixed: Quality Switcher now works with all WP-Script Themes when you set multiple mp4 resolutions in the video posts

= 2.1.3 = 2020-12-16
* Fixed: Fluidplayer.js CDN loading that could prevent the player to work properly

= 2.1.2 = 2020-11-26
* Fixed: Add css versionning in player page
* Fixed: Windows based servers that prevented video player to load

= 2.1.1 = 2020-08-11
* Updated: Xvideos to display low quality mp4 instead of iframe
* Fixed: Missing post_id param 0 warning
* Fixed: Cursor that disappeared when hovering over the video
* Fixed: Navigation bar disappears after the pre-roll ad is played

= 2.1.0 = 2020-07-27
* Updated: Xvideos iframes are now displayed instead of bad quality transformed videos
* Updated: Xvideos iframes are now displayed instead of transformed videos that can't load

= 2.0.9 = 2020-07-15
* Fixed: Typo in code that could end to a Fatal Error Cannot redeclare wpsplayer_shortcode method with old PHP versions

= 2.0.8 = 2020-07-08
* Updated: Temporary remove unstable VPAID 2.0 support
* Updated: Optimize hsl.js loading
* Updated: FluidPlayer 3.0.1 to 3.0.4
* Fixed: Player loading issue when wp-content folder is modified

= 2.0.7 = 2020-06-22
* Added: VPAID 2.0 support
* Added: New option to allow the player to render iframes or not
* Updated: Player timeline color for better visibility
* Updated: FluidPlayer 2.4.11 to 3.0.1
* Updated: Disable spellcheck on textareas and inputs in the options
* Updated: Progressbar color to make bufferbar more visible
* Updated: Update cUrl timeout from 10 to 3 seconds to speedup video load speed in some rare cases
* Updated: Remove ad slot under the player
* Fixed: Fatal Error cannot redeclare wpsplayer_shortcode method

= 2.0.6 = 2020-02-26
* Fixed: Default preg_match_all PREG_SET_ORDER that prevent the Player to work properly on some PHP versions
* Fixed: Minor bugs

= 2.0.5 = 2020-02-25
* Updated: Remove DimDom vendor to prevent errors on servers which run 10+ years old configs
* Updated: Add hls.js in player iframe to play hls files
* Updated: Pornhub is not transformed anymore because they ban sites too quickly
* Fixed: Xvideos low quality videos on mobile
* Fixed: Watermark logo is now visible on mobile too
* Fixed: Fix wp_head action conflict that could prevent some features to work in the frontend
* Fixed: Poster urls that includes a slash in their url
* Fixed: Plugin errors when multiple instances are activated (don't do that)
* Fixed: Minor bugs

= 2.0.4 = 2020-02-10
* Fixed: Extra character on stlye loading that could prevent the Player to render the iframe properly

= 2.0.3 = 2020-02-03
* Fixed: Fix 404 pages in player
* Fixed: Mobile iframe infinite loading

= 2.0.2 = 2020-01-31
* Fixed: Youporn transformation on some configs
* Fixed: PHP bellow 7.1 PREG_UNMATCHED_AS_NULL issue

= 2.0.1 = 2020-01-31
* Fixed: Ads iframes that must not be rendered by WPS Player

= 2.0.0 = 2020-01-31
* Added: Video rendering is now inside iframe to
* Added: Speed up video loading (way faster)
* Added: Prevent theming collision (no more CSS/JS bugs)
* Added: Prevent third party plugins collision
* Added: Pornhub videos transformation is back
* Added: Close ads button brightness detection to apply dark or light color on button text
* Added: Option to change close ads button text
* Added: Option to change video loading text
* Updated: FluidPlayer 2.4.6 to 2.4.10
* Updated: Source code rewritten to run the plugin faster
* Updated: Use DiDom PHP parser instead of Simple Html Dom (up to 25x faster and 20x less memory consumption)
* Updated: Better poster detection for video tags rendering
* Fixed: Youporn videos transformation
* Fixed: Youporn Gay videos transformation
* Fixed: On pause click issues
* Fixed: Autoplay on video tags (can't work with iframe tags)

= 1.2.3 = 2019-12-20
* Added: Single click on video to play/pause the video
* Added: Double click on video to toggle fullscreen
* Added: Guttenberg videos blocks are now transformed
* Fixed: Transformation of native WordPress [video] shortcode
* Fixed: Cursor over video is now visible
* Fixed: Fix jQuery dependency error with themes that don't load jQuery
* Fixed: Responsive displaying issues with some 3rd party themes

= 1.2.2 = 2019-08-07
* Added: Redirections/Popup removed from all iframes, including Pornhub
* Updated: Pornhub is not transformed anymore
* Updated: Obselete Right-click option has been removed

= 1.2.1 = 2019-07-31
* Fixed: Namespace error on some servers configuration

= 1.2.0 = 2019-07-31
* Added: Namespace on Simple HTML DOM parser to prevent third party plugins collision
* Added: Code control to prevent asynchronous loaded video from ads to be transformed
* Updated: Simple HTML DOM parser v1.8.1
* Fixed: Minor bugs

= 1.1.9 = 2019-05-22
* Added: Before play ads are now displayed over compatible iframes
* Added: On pause ads are now displayed over compatible iframes
* Added: Custom logo is now idsplayed over compatible iframes
* Added: Compatible iframes are iframes from xhamster, eporner, youtube, drive.google, openload and vimeo
* Added: Video is now controlable with keyboard
* Added: In video option to control the speed of the video
* Added: Mid-roll in-stream ads options for all devices
* Added: New option to exclude the player to play videos nested inside HTML tags (div, p, ...) containing classes you have defined
* Updated: Back to FluidPlayer for better ads support on mobile and more stable player
* Updated: Youtube and Vimeo are not transformed anymore (they were poorly transformed anyway)
* Fixed: Pre-roll in-stream ads now work on mobile

= 1.1.8 = 2019-05-03
* Added: New ad zone under the player for both mobile and desktop
* Added: New option to disable right-click on video tags. Mainly to prevent the native functionality of browsers allowing to download videos
* Added: You can now use shortcodes in the ads blocks
* Added: Add support for .m3u8 videos so your visitors can switch the resolution
* Fixed: JavaScript ads that are not displayed in some cases
* Fixed: Vertical videos object-fit issue
* Fixed: Proxy options
* Fixed: Blurry ads close button

= 1.1.7 = 2019-04-25
* Updated: Better support of ads on iframes for both WP-Script and third party themes

= 1.1.6 = 2019-04-25
* Fixed: Theme broken when using iframes in ads zones

= 1.1.5 = 2019-04-24
* Fixed: PHP code downgraded to work with PHP v5.3.0+ instead of PHP7.0+

= 1.1.4 = 2019-04-24
* Added: WPS Player custom ads (before play, on pause, preroll) and custom logo now works with Youtube videos',
* Added: All WPS Player custom ads (before play, on pause, preroll) and custom logo now works with WordPress native [video] shortcode
* Added: WPS Player before play custom ads and custom logo now works within any video Iframe
* Added: WPS Player now transforms Youtube iframe videos, allowing you to add you own ads (before play, on pause, preroll), custom logo and colors
* Added: New WPS Player [wpsplayer] shortcode, allowing you to use WPS Player anywhere on your site
* Added: WPS Player shortcode has the exact same options than WordPress native [video] shortcode, but it allows mutliple videos sources to enable the quality switcher
* Added: New loading icon and animation including main color selected in the WPS Player options
* Updated: Renamed WPS Player instead of CleanTube Player
* Updated: Plugin fully rewritten with WordPress plugin coding standards and BEM CSS methodology
* Updated: Now use video.js library instead of FluidPlayer to bring a better and more scalable player
* Updated: Midroll ad options have been removed to keep compatibility with video.js
* Updated: Options are split into 3 tabs, including General options, Advertising options and Transformer options
* Updated: General options contain all player visual customization
* Updated: Advertising options contain all ads block
* Updated: Transformer options let you switch on/off the player for each supported source of video
* Fixed: No more flashing effect while loading a video
* Fixed: The exoclick text reference in the WPS Player Preroll options has been removed because of security plugins alerts

= 1.1.3 = 2019-01-30
* Fixed: Memory limit issues with some Tubes that prevented the video to be loaded

= 1.1.2 = 2019-01-25
* Updated: Simple HTML DOM parser updated to v1.7
* Fixed: Iframes that are loaded with some lazy load features from 3d party themes or plugins
* Fixed: Memory limit issues

= 1.1.1 = 2019-01-18
* Fixed: String(2) on displayed on single video posts

= 1.1.0 = 2019-01-18
* Added: You can now use IP and Port Proxy options
* Added: You can use Proxy with authentication
* Added: Options to set up Proxy user and password for proxy authentication

= 1.0.9 = 2018-12-14
* Added: Clean Tube Player now transforms you-porn.com embed videos
* Added: Old WP-Script Theme Compatibility
* Fixed: Responsive player displaying issue with some third party themes and vertical videos

= 1.0.8 = 2018-11-15
* Added: Clean Tube Player now transforms embed videos from Youporn Gay
* Added: Clean Tube Player now supports HD videos for Pornhub, RedTube, Xvideos, Youporn and Youporn Gay
* Added: Clean Tube Player now supports HD videos for Pornhub, RedTube, Xvideos, Youporn and Youporn Gay
* Fixed: Fluid Player on pause ads that didn't work in JavaScript
* Fixed: Fluid Player on start ads that didn't close when playing the video
* Fixed: Fluid Player on pause ads are now disociated when there are multiples instances of Fluid Player on a page

= 1.0.7 = 2018-11-06
* Updated: Tube bypass optimisation to prevent unnecessary loader on native embed player rendering
* Fixed: Tube bypass issue that prevented to bypass videos when deactivated

= 1.0.6 = 2018-11-02
* Fixed: Conflicts with some players like YouTube

= 1.0.5 = 2018-10-31
* Fixed: Close over video advertising issue

= 1.0.4 = 2018-10-31
* Added: Mid-roll in-stream ad with timer in the Video Player plugin option section. It plays a video advertising in the middle of the video automatically (you can set a timer when you want the advertising starts. For example 50%.)
* Added: Pre-roll in-stream ad in the Video Player plugin option section. It plays a video advertising with a skip ad button at the beginning
* Added: Close and play button at the bottom of the banners over the video which automatically plays the video
* Added: On pause advertising zone 1 & 2 in the Video Player plugin option section. These banners are displayed over the video player when the user pauses the video
* Added: Before play advertising zone 1 & 2 in the Video Player plugin option section. These banners are displayed over the video player when the user arrives on the page
* Added: New logo options in the Video Player plugin option section (with logo position, margin, opacity and grayscale features)
* Added: Playback Speed option in the Video Player plugin option section (Add a new control bar option to allow users to play video at different speeds)
* Added: New Autoplay option in the Video Player plugin option section (The video plays automatically)
* Added: New Main Color option in the Video Player plugin option section (Choose the color of the progress bar and close ad button)
* Added: New plugin option menu named Video Player
* Updated: VideoJS video player replaced by FluidPlayer
* Fixed: Javascript errors when loading another page than a post one
* Fixed: Javascript console error when no embed player is detected on a page

= 1.0.3 = 2018-09-17
* Fixed: Loading video message displayed on ads

= 1.0.2 = 2018-09-13
* Fixed: MP4 videos loading is now ajaxified to prevent conflict with cache plugins

= 1.0.1 = 2018-05-22
* Fixed: Headers already sent notice issue

= 1.0.0 = 2018-05-16
* Added: Initial release of Clean Tube Player Plugin

