=== ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video ...) === Contributors: nico23 Donate link: https://nextgenthemes.com/donate/ Tags: YouTube, Vimeo, lazyload, thumbnail, video, responsive, embeds, video-embedder, iframe, lightweight, simplicity, shortcodes Requires at least: 4.4.0 Tested up to: 5.6 Requires PHP: 5.6 Stable tag: 9.1.2 License: GPL-3.0 License URI: https://www.gnu.org/licenses/gpl-3.0.html Easy responsive video embeds via URLs or shortcodes. Perfect drop-in replacement for WordPress' default embeds. Best plugin for videos? ## Changelog ## * [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/arve-pro/changelog/) * [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/) ### 2020-12-24 9.1.2 ### * Fix: Missing attribute errors when using `[embed]https://example.com/vid.mp4[/embed]` like shortcodes. ### 2020-12-24 9.1.1 ### * Marry XMAS, bitches. * Fix: Errors related to video shortcode override. ### 2020-12-23 9.1.0 ### * Fix: Correct backwards compatibility for deprecated mode values. * Fix: Expand on click UI in Gutenberg. * New: Wrapper element `.arve-inner` for more custom control over embeds. * Improved: Asset loading and caching. * Improved: More relevant info about addons in the settings sidebar. ### 2020-12-17 9.0.1 ### * Fix: `contentURL` output for html5 video file embeds. ### 2020-12-14 9.0.0-beta13 ### * Fix: When no oembed data is found or input `src` is invalid url use generated `src` in all cases. * Improved: added check for valid url for `src` input. * Improved: 'src mismach' errors will be hidden as they are not critical and should not clutter peoples sites. ### 2020-12-14 9.0.0-beta12 ### * Fix: When deactivating or uninstalling ARVE, it will delete its embeds from the oembed cache. * Improved: Caching system. * Improved: Removed Twitch oembed handler (not provided anymore, still works without it). ### 2020-12-12 9.0.0-beta11 ### * New: Reset buttons for settings sections. * Fix: Issues with error handling #2. * Fix: Hide non critical errors relating to private Vimeo videos. * Fix: Make sure 8.0 settings are moved over with right datatype. Hopefully fixes issues with not being able to save settings. ### 2020-12-09 9.0.0-beta8 ### * New: Transfer settings from version 8.0 to version 9.0. [Sorry](https://api.ipfsbrowser.com/ipfs/get.php?hash=QmTHuTcq4iYsoHYomBwV7Xp3KSuLVT1pAnoWQP5uH78d3A) this was supposed to work with the first 9.0 beta. * Fix: Issues with error handling. ### 2020-12-02 9.0.0-beta7 ### * Fix: YouTube timestamp urls not working with only seconds `t=1234`. ### 2020-12-01 9.0.0-beta6 ### * Fix: Url parameters from settings page not working. * Improved: Do not delete old license options in case people need to downgrade. ### 2020-11-28 9.0.0-beta5 ### This update is very long in the making and I hope it will pay off somehow, hopefully literally. A lot things happened in the code that will not be visible to the end users directly but made the code more modern and easier to maintain. [More details on this **mayor** update](https://nextgenthemes.com/improvements-in-arve-9-0-and-arve-pro-5-0/) New: * Minimum PHP required is now 5.6. * Finally the ARVE Gutenberg block is here! Its not polished yet and there is still work to be done. * Optional admin bar button to quick access settings. * Added Bitchute * `av1mp4` shortcode parameter so serve [AV1](https://en.wikipedia.org/wiki/AV1) encoded files best named .av1.mp4 (to be used together with `mp4` or `webm`) * Settings page overhaul, using my own little settings framework. All addon options can be seen and set (without effect) before actually having the addons installed. * Option to completely disable all SEO data generation in case you want to use Yoast SEO or another plugin for that. Note that ARVE Pro offers more then just SEO for less. Fixes: * YouTube live links are now working correctly. * TED embed url. * Facebook embeds. * Twitch embeds. Improved: * Generated iframe src will match what providers send over oembed. * Lots of code improvements that may not be noticeable to users but took a lot of time and will make the plugin more maintainable and easier to extend. * Removed the `lang` shortcode parameter that was only used for TED talks video subtitle display. This is now taken from the `language=x` url query. * Embeds work though WPs oembed system now that comes with a more stable codebase and better caching system for embeds. * Aspect ratios are now auto detected for all providers WP supports through oEmbed. * Aspect ratio field is now auto filled when pasting a iframe embed code into the shortcode UI or Gutenberg UI. * Removed jQuery dependency for frontend JavaScript. * Prevent autoplay of multiple videos, only the first video on pageload will be autoplayed. Removed: * Hack to support direct embedding of Dropbox videos because it no longer works. * Vimeo only `start` shortcode attribute. Use vimeo urls with `#t=30` at the end for starting time in seconds instead. Probably things I forgot about, working on this for ~1 year ### 2020-10-10 - 8.10.28 ### * Tested and marked as compatible with WP 5.5.1 ### 2020-08-02 - 8.10.27 ### * Fix: **SORRY!** message about beta testing was **not intended** to show hourly it was intended to show only once per user. * Fix: Link in that messages was also to a 404 page, can it get worse? ### 2020-07-25 - 8.10.24 ### * Fix: `embedURL` SEO output. ### 2020-05-14 - 8.10.23 ### * Improved: Automatically set HTML5 videos that are set to autoplay to also be muted so they may play as browsers no longer allow unmuted autoplay. ### 2019-11-05 - 8.10.20 ### * Big version update with Gutenberg Block is coming [please help testing](https://nextgenthemes.com/plugins/arve/help-testing-the-beta-version/) ### 2019-10-18 - 8.10.15 ### * Fix: Force shortcode args to be array. To prevent issues. ### 2019-10-09 - 8.10.13 ### * Removed outdated link in widget. ### 2019-10-01 - 8.10.12 ### * Improved: Allow for manually srcset with `img_srcset` with the Pro Addon. ### 2019-08-29 - 8.10.11 ### * Removed vendor dir from Git versioning. ### 2019-08-29 - 8.10.10 ### Just a small readme update and checking new release script, making sure everything works and everyone is on the latest stable version. ### 2019-08-19 - 8.10.8 ### * Improved: Switch Youku embeds to https set to default 16:9 aspect ratio. * Improved: added `allow-popups-to-escape-sandbox` to sandbox attribute. This eliminates the need for `sandbox="false"` for Vimeo action links to work. And just in general I think its a good idea. ### 2019-07-31 - 8.10.6 ### * Fix: Vimeo Action links not working correctly in Chrome when Sandbox is enabled. You can fix this by adding `sandbox="false"` to your shortcodes. But the ARVE Pro "disable links" option will no longer work. * Improved: Deprecated `requires_flash` attribute and `Iframe Flash` option. Replaced is the new `sandbox` shortcode attribute. ### 2019-01-23 - 8.10.4 ### * Fix: PHP compatibility lowered to official 5.3 as there was accidentally 5.4+ code used. Make sure you are on PHP 7.3 or at least 5.6 for the upcoming future as WP itself will require 5.6 this year. Its also insecure to run on those outdated versions: https://secure.php.net/supported-versions.php. ### 2019-01-16 - 8.10.2 ### * Fix: Base code to fix titles not showing over thumbnails in recent Pro Addon version. * Improved: Added `allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"` to iframe as per official YouTube embed code. ### 2018-11-29 - 8.10.1 ### * Improved: Display message to remind customers to update ARVE Pro 4.2.0. Auto updates seem to not work again ... ### 2018-11-27 - 8.10.0 ### * Improved: Video max width setting now defaults (if empty) to your themes `$content_width` variable to optimize thumbnail loading in Pro Addon. * Improved: Removed code what should be in the Pro Addon instead. Make sure to update the Pro Addon as well! ### 2018-11-16 - 8.9.11 ### * Fix: Wistia autoplay (mobile browsers sill prevent it, also effects single click lazyload in Pro) ### 2018-10-19 - 8.9.10 ### * Fix: The Gutenberg fix of the last version was not correct in the minified JS. ### 2018-10-19 - 8.9.9 ### * Fix: White space above video in Gutenberg blocks. ### 2018-10-02 - 8.9.8 ### * Updated EDD Plugin update class, this may fix some people having trouble auto updating ARVE Pro * Fix: Licensing page no longer shows plugins wrongly as not installed. ### 2018-07-22 - 8.9.6 ### * New: Option to enable or disable youtube-nocookie.com embeds. It a privacy enhanced feature but it has at least one bug when setting highlighted video boxes they will open the wrong url so in case you need them you have to disable this. ### 2018-06-07 - 8.9.5 ### * Fixed: When pasting embed codes into the Shortcode UI dialog the `src=` will be extracted even when no quotes are used. * Improved: Use youtube-nocookie.com domain again it is GPRP/Privacy friendly. Note the name is confusing as it sets cookies, but only when the user plays the video rather then just when loading the iframe. So its not "no cookies". But you can mention this into your cookie notices when dealing with GPRP. ### 2018-06-02 - 8.9.4 ### * Improved: Try to make autoplay in Chrome possible again. See [New Chrome Autoplay behavior](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes). At the point of writing its not clear if the new iframe attribute makes them just autoplay no matter what. Please report your experiences. ### 2018-04-29 - 8.9.3 ### * Improved: Make overwrite of shortcode possible. Used in new [Random Video Addon](https://nextgenthemes.com/plugins/arve-random-video/) ### 2018-04-18 - 8.9.2 ### * Fix possible "not a string" errors. ### 2018-04-12 - 8.9.1 ### * New: Option to always load assets. Needed when dealing with AJAX and other special cases. ### 2018-03-16 - 8.9.0 ### * Fixed/improved Ustream url detection. Make sure you remove `wmode=transparent` if present and include `html5ui=1` for ustream on the ARVE URL parameters settings tab. ### 2018-03-13 - 8.8.9 ### * Improved licensing debug code. * Added Vimeo PHP API class for upcoming versions and addons. ### 2018-03-13 - 8.8.8 ### * Added code to debug issues with license activations. ### 2018-03-05 - 8.8.7 ### * Fixed a link on the plugins screen (Thanks Hans). ### 2018-02-25 - 8.8.6 ### * Fix: HTML5 videos not working with lightbox in [ARVE PRO](https://nextgenthemes.com/plugins/arve-pro/) ### 2018-02-25 - 8.8.5 ### * Fix: Add default url parameters to youtube playlists. Note they will effect playlist urls like `https://www.youtube.com/playlist?list=PLXYApifkdCACM_ykvnCHeth-vIB6v1XE3` only and not those who also reference the starting video. There is currently a separate parameters option for this but it will be removed in version 9.0. ### 2018-02-23 - 8.8.4 ### * Fix: YouTube playlists where not correctly detected when having a underscore in the id. * Improved: Better explanation of the new disable flash for general iframe option on the settings page. ### 2018-02-16 - 8.8.3 ### * New: Option to disable flash for not listed providers for more secure embeds and make the 'disable links' Pro Addon feature possible for those. See the description on the options page. * Fix: Licensing deactivation did not work. * Improved: Marked some providers as not requiring flash anymore. * Improved: Fixed some links throughout the plugin and readme. * Improved: Some minor code improvements. ### 2018-02-12 - 8.8.2 ### * Fix: Issue with the new Video API class. ### 2018-02-12 - 8.8.1 ### * Fix: `Can’t use function return value in write context`, white screen of deaths type error from the last update. ### 2018-02-12 - 8.8.0 ### **I could really use some positive reviews. It has been over 7 months without a 5 star review.** The top level menu that was complained about a lot has been removed. I am working on a big update that will make ARVE even better with automatic detection of aspect ratios, better caching and lots of improved code. * New: Added options fields for Vimeo API used in upcoming addons. * Improved: Removed NextGenThemes top level menu and ads page because to many complaints. * Improved: Moved licensing settings page to 'settings' menu. ### 2018-02-02 - 8.7.8 ### * No longer try to guess and spam autoplay parameters for general iframe embeds. * Fix: Google drive embeds not working. ### 2018-01-09 - 8.7.7 ### * New: `duration` shortcode attribute and dialog entry. * Fixed: Corrected some dead links inside the plugin. * Improved: Added `muted`, `controls` and `loop` to shortcode UI dialog for HTML5 videos. * Improved: Removed video file extension check so any file can be used `[arve mp4="http://example.com/some-file" webm="http://example.com/some-other-file" /]`. Useful for example to embed files hosted on IPFS that do have a cryptic hash instead of a human readable filename. ### 2017-12-20 - 8.7.6 ### * Fix license activation now working correctly. * Corrected link in readme. ### 2017-12-19 - 8.7.5 ### * Maybe fix license activation in some rare cases. ### 2017-12-17 - 8.7.4 ### * Fix: Removed URL validation because it fails with some weird URLs. ### 2017-12-13 - 8.7.3 ### * Updated EDD Plugin Updater class. * Fixed some links in the readme. ### 2017-08-16 - 8.7.2 ### * Fix: Same Video with different start times in lightboxes. ### 2017-07-12 - 8.7.1 ### * Fix: Throw no PHP notice on admin when WP_DEBUG is enabled. * Fix: Fix related to upcoming Pro Addon update and private vimeo videos. ### 2017-07-10 - 8.7.0 ### * Fix: web.facebook.com/... video urls not getting detected ### 2017-06-17 - 8.6.6 ### * Fix: Message dismissal not working. ### 2017-06-17 - 8.6.5 ### * Fix: Added `allow-presentation` to iframe sandbox to fix Chrome 59 not loading iframes. Thanks njs * Improved: Admin message and dashboard ad size reduced, added links to dashboard widget, settings page ad is now sidebar-like on big screens. ### 2017-06-15 - 8.6.4 ### * Fix: Removes a .video-wrap element from ARVE's HTML that is added by a theme and caused videos to be invisible. * Fix: PHP error in some cases. * Improved: If mode is not supported fall back to normal without error message (for now). * Improved: Changed embed URL for Alugha ### 2017-05-17 - 8.6.3 ### * Fixed issue with width and height attributes ### 2017-05-17 - 8.6.2 ### * Fixed license activation issues. ### 2017-05-10 - 8.6.1 ### * Minor code change. ### 2017-05-10 - 8.6.0 ### * New: `controlslist` shortcode attribute and option to control the Chrome HTML5 player `nodownload` is default, it hides the download button on the player. ### 2017-05-05 - 8.5.2 ### * Improved: Embed Liveleak with https. Remove the default parameter. ### 2017-05-05 - 8.5.1 ### * Improved: Mark Liveleak that it not requires flash anymore. This makes the 'disable links' option of the Pro Addon possible. Becomes very handy as Liveleak annoyingly opens new tabs when clicking outside the play button. ### 2017-05-04 - 8.5.0 ### * New: playsinline, and muted attributes for HTML5 video. * Data attributes are no longer prefixed with -arve and various other code improvements. ### 2017-05-01 - 8.4.2 ### * Code improvements for addons. ### 2017-04-30 - 8.4.1 ### * Fix password protected videos on vimeo (sandbox allow-forms) ### 2017-04-25 - 8.4.0 ### * Improved: The 'Take over [video]' option was renamed to 'Use ARVE for HTML5 video embeds' and is now enabled by default. (It never only was the shortcode but also HTML5 video file URLs on their own lines) * New: Support for embedding Dropbox hosted HTML5 video files (mp4, webm, ogv). Needs the 'Use ARVE for HTML5 video embeds' to be activated. (Beta feature) * Fix: YouTube only playlist URLs embedded without https. ### 2017-04-11 - 8.3.1 ### * Fix: Global CSS id was not correctly added. ### 2017-04-10 - 8.2.5 ### * Fix: Some Brightcove URLs were not correctly detected. * Improved: Better automated tests and some minor code enhancements. * Improved: Some texts, new link to the settings page below parameter field. * Improved: How aspect ratio is handled for HTML 5 video. If not set (default) the browser will detect it based on the video file that is embedded. * Improved: Gives the aligned videos a top margin of `0.4em` to try to align them better with text. * Improved: The 'by ARVE' promotion links do now open in a new tab/window. ### 2017-03-27 - 8.2.4 ### * Fixed: YouTube cards generate a youtube-nocookie.com url to a channel when the -nocookie.url is used to embedding. tltr; This is actually a YouTube bug but this is fixed in ARVE now by using the normal YouTube url for embeds. I like the additional 'privacy' it provides by not setting cookies as long as the user not plays a video. But considering this is not the first time YouTube has bugs related to this feature, I switched this back and forth in the past, I am considering just not using it anymore. ### 2017-03-25 - 8.2.3 ### * Fixed: 'Disable links' feature from the Pro Addon was not working. * Some minor code improvements. ### 2017-03-20 - 8.2.2 ### * Moved the ARVE menu below the settings menu (where most plugins are), sorry xberg. I got complaints about global menus and I like to keep the global Nextgenthemes menu but 2 global menus is a bit to much. I have given the Nextgenthemes menu a video icon now. I hope this is a good compromise. * Improved: Finished the German translation. * Improved: Made the ARVE Pro promotion on the settings menu close-able, hopefully less people get offended. ### 2017-03-20 - 8.2.0 ### * Fixed: Plugin action links on installed plugin screen * Fixed: CSS specificity issues by adding a `id="arve"` to the entire document and based all the CSS on `#arve`. This will end a long time battle with themes styles without using bad practices. If you have custom styles overwriting ARVE CSS you may need to increase specificity (or use `!important`). * Improved: styles and scripts and now served minified unless `WP_DEBUG` is set. * Improved: styles are now only loaded (to the bottom) when there is a video on the page. * Improved: Settings title is now 'Advanced Responsive Video Embedder Settings' again rather then just ARVE. ### 2017-03-12 - 8.1.1 ### * Improved: Added ARVE to menu below plugins so it can be easy found. * Improved: Used `wp_add_inline_style` function for inline styles. * Removed some code that is not needed. ### 2017-03-03 - 8.0.9 ### * Fix: Admin page error for messing file. ### 2017-03-02 - 8.0.8 ### * Improved: Updated EDD Plugin Updater class ### 2017-02-24 - 8.0.7 ### * Fix: Options not correctly put in debug-info. * Improved: Make License input fields a bit wider. * Improved: Some small code improvements. ### 2017-02-12 - 8.0.5 ### * Fix: Small size of lightbox when using the [Pro Addon](https://nextgenthemes.com/plugins/arve-pro/). ### 2017-02-11 - 8.0.4 ### * CSS improved * Updated Addon Updater Class ### 2017-01-03 - 8.0.2 ### * Fix: Errors on settings page when Pro Addon is not installed. ### 2016-12-17 - 8.0.1 ### * Fix: `undefined function is_plugin_active()` error caused by some plugins * Improved: Show actual meaningful message if PHP is lower then the required 5.3. Bluehost (oh proud wp.org recommended host) seems to show customers a **wrong** php version in the config and lets them hang on insecure end of life versions. ### 2016-12-09 - Pro Addon 3.6.8 ### * Fix: Wrongly tagged version. ### 2016-12-07 - Pro Addon 3.6.7 ### * Fix: Some thumbnails not loading. ### 2016-12-07 - 8.0.0 ### * Fix: 'Take over [video] shortcode' option not working. (Always acted as on, default is off) * Fix: [video] override putting out a error for not reason. * Improved code: Dropped 2 micro classes in favor for antonymous functions. ### 2016-12-07 - Pro Addon 3.6.6 ### * Improved: Load the CSS always in the `
`, this enables to change its CSS with the new CSS customizer in WP 4.7 and may also fix issues with caching plugins. ### 2016-11-30 - 7.9.23 ### * Fix: Ending up with wrong URLs by disabling auto shortening of URLs when pasting them into the shortcode-ui dialog. * Improved: Enable SSL verify for API calls. * Improved: License action return messages. ### 2016-11-30 - Pro Addon 3.6.4 ### * Fix: Autoplay without setting ### 2016-11-30 - 7.9.21 ### * Fix: Fatal error. ### 2016-11-29 - Pro Addon 3.6.4 ### * Improved: Licensing field removed from the pro options tab (now in main plugin). This enables resetting pro options settings without deleting license key. * Fix: Autoplay not applied property. * Fix: HTML5 not autoplaying in lightbox. * Improved: New default option for inview lazyload is 'On iOS, Android and Desktops when no thumbnail is found'. * Improved: New installations will show a message guiding users to activation screen. ### 2016-11-29 - 7.9.19 ### * Fix: 'Embed Video' Button not working with Advanced Custom Fields (Possibly fixed other 3rd party editor plugins compatibility issues as well) Thanks to David Trenear! * Fix: Facebook URL detection for usernames with dots in them. * Fix: Invisible HTML5 Lazyload-lightbox videos * Fix: Shortcode UI script enqueued to early causing JS erros on admin pages. * Improved: Error messages for missing mandatory attributes. * Improved: Moved some code logic of the pro addon out of the main plugin. * New: `disable_flash` parameter mainly for unlisted providers will be treated as general iframe embeds. With set to true this will enable you to use the 'disable_links' feature of the pro plugin. * New: Filters for new cool things coming up * New: License page, relocated options page * New: YouTube URL detection for playlists without starting video `https://www.youtube.com/playlist?list=PL3Esg-ZzbiUmeSKBAQ3ej1hQxDSsmnp-7` * Possible Fix: Videos displayed to small in some Browsers ### 2016-10-29 - 7.9.8 and Pro Addon 3.3.4 ### * Fix: Fix lightbox thumbnail * Improved: CSS ### 2016-10-28 - Pro Addon 3.3.1 ### * Fix: Fix thumbnails being displayed wrong in IE. ### 2016-10-28 - Pro Addon 3.3.0 ### * Fix: Restored broken update notifications and semi auto updates. ### 2016-10-28 - 7.9.7 ### * New: Wistia Support. * Improved: Allow HTML in title attribute. * Improved: Force more CSS Styles. ### 2016-10-27 - Pro Addon 3.2.9 ### * Fix: Twitch API failing (needs Client-ID now) ### 2016-10-27 - Pro Addon 3.2.8 ### * Improved: oembed error message * Improved: Skip srcset function for PHP 5.3 and lower ### 2016-10-27 - 7.9.6 ### * Fix: Thumbnail not correctly applied to