- Added icons for Vimeo uploads, likes, folders, albums and showcases.
- Added icons for YouTube uploads, favorites, and playlists.
- Added support for Vimeo folders and showcases.
- Allow gateway OAuth settings editing and saving only when
allowAdminChangesCraft config is enabled. - Videos now uses Vue.js.
- Fixed a bug where the field’s video URL value could get lost if the gateway wasn’t available.
- Added Vimeo folders support.
- Added collection icon support.
- Renamed Vimeo’s “Playlists” section to “Showcases”.
- Renamed Vimeo’s “Favorites” to “Likes”.
- The plugin’s icon has been updated.
- Use Vue.js for JavaScript interactions.
- Fixed a bug where Vimeo video listing might not be loaded properly when the plugin was unable to find one of the videos’ thumbnail.
- Fixed a bug where Vimeo thumbnail generation could fail due to Vimeo not providing a file with an extension, resulting in an exception for installs using the GD image driver. (#40, #54)
- Added environment variable suggestions support for the OAuth client ID and secret.
- Added a link to the documentation in the OAuth settings for video providers.
- The
dukt\videos\services\Videos::requestVideoById()method now takes into account Videos’enableCacheconfig.
- Fixed a bug where the plugin was using a medium quality image for generating thumbnails, resulting in low quality thumbnails. (#48)
- Updated
league/oauth2-clientto 2.5.
- Fixed a bug where the environment variables were not being parsed when used for client ID or secret OAuth configuration.
- Fixed a bug where video thumbnails could not be saved due to an issue with Guzzle 7. (#49)
- Videos now requires Craft CMS 3.5.0 or above.
- Fixed
m190601_092217_tokensmigration that was causing issues during Craft 2 to Craft 3 upgrade. (#32, #44) - Fixed an issue where OAuth provider options were not properly formatted in the project config.
- Changed the maximum number of YouTube playlists from 5 to 50. (#28)
- Deprecated
\dukt\videos\models\Video::$thumbnailLargeSource, use\dukt\videos\models\Video::$thumbnailSourceinstead. (#37)
- Fixed the styles of the explorer's sidebar.
- Fixed a bug where migration
m190601_092217_tokenscould fail whenallowAdminChangeswas tofalse. (#22, #23)
- Updated schema version to 1.0.2.
- Added environment variables support for gateways’s OAuth client ID and secret in a project config context. (#18)
- OAuth tokens are now stored in their own database table instead of being stored in the plugin’s settings. (#14, #21)
- Fixed a bug where the YouTube gateway was not explicitly prompting for consent, which could cause the token to be saved without a refresh token.
- Fixed a bug that prevented YouTube thumbnails from working properly for private videos. (#17)
- Fixed a bug where search keywords were not properly encoded to support emojis when saving a video. (#20)
- Updated
league/oauth2-googledependency to^3.0.
- Fixed a bug where thumbnails for YouTube videos were not cropped properly.
- Fixed a bug where the Video field was not properly migrated when upgrading from Craft 2 to Craft 3.
- Fixed a bug where Vimeo videos with custom URLs couldn’t be selected in the explorer.
- Replaced
dukt/oauth2-googledependency withleague/oauth2-google. - Removed
dukt\videos\services\Videos::isOauthProviderConfigured().
- Fixed a bug which prevented the
oauthProviderOptionsconfig from being set from a config file for some providers and from the plugin’s stored settings for other providers. - Fixed a bug where videos wouldn’t automatically start to play when clicking on the play button.
- The videos explorer is now showing a spinner while it’s loading.
- Fixed a scrolling bug in the Videos explorer modal.
- Show account details on the gateway details page.
- Added
filesto the list of fields requested for a Vimeo video. - Added the ability to double click on a video so select it in a Video field scenario.
- Removed unused
dukt\videos\base\Gateway::setAuthenticationToken()method. - Stopped catching exceptions in the
dukt\videos\base\Gateway::hasToken()method. - Improved exception handling when OAuth callback fails.
- Fixed a bug where
dukt\videos\services\Oauth::getTokenData()could return a string instead of an array. (#7)
- Updated dukt/oauth2-vimeo dependency to
^2.0.1.
- Fixed namespacing bug in
dukt\videos\services\Cache. (#4) - Fixed a bug where the explorer modal’s spinner was not properly positionned.
- Fixed authentication bug with Vimeo.
- Updated to require craftcms/cms
^3.0.0-RC1. - Updated plugin icon.
- Fixed layout bug with the video explorer.
- Removed ununsed mask icon.
- Added the
registerGatewayTypestodukt\videos\services\Gateways, giving plugins a chance to register gateway types (replacinggetVideosGateways()). - Added
dukt\videos\events\RegisterGatewayTypesEvent.
- Now using the
craft\web\twig\variables\CraftVariable’sinitevent to register Videos’ variable class, replacing the now-deprecateddefineComponents. - Removed
dukt\videos\Plugin::getVideosGateways().
- The plugin now requires Craft 3.0.0-beta.27 or above.
- Fixed video thumbnails for Craft 3.0.0-beta.27 and above where resource URLs are not supported anymore.
- Fixed
dukt\videos\fields\Videoto usenormalizeValue(). (#2)
- Added
dukt\videos\services\Oauth::getTokenData().
- Check that there is an
expiresvalue before trying to refresh the token indukt\videos\base\Gateway::createTokenFromData(). - Moved
dukt\videos\base\Gateway::createTokenFromData()todukt\videos\services\Oauth::createTokenFromData(). - Renamed
dukt\videos\base\Gateway::getToken()togetOauthToken(). - Instantiating video gateways doesn’t require a refreshed token anymore.
- Improved error handling for the settings index page.
- Improved error handling for the gateway details page.
- Replaced
dukt\videos\base\Gateway::parseJson()withcraft\helpers\Json::decode(). - Replaced
dukt\videos\fields\Video::prepValue()withnormalizeValue(). (#1)
- Fixed a bug where
dukt\videos\services\Oauth::getToken()would crash if the token didn’t exists for the given gateway.
- Craft 3 compatibility.
- Added
review_linkto the list of fields returned by the Vimeo API for a video. - Added YouTube and Vimeo SVG icons
- Added “Like videos” support for the YouTube gateway.
- Added
dukt\videos\base\Gateway::getJavascriptOrigin(). - Added
dukt\videos\base\Gateway::getOauthProviderName(). - Added
dukt\videos\base\Gateway::getRedirectUri(). - Added
dukt\videos\base\Gateway::getVideosPerPage(). - Added
dukt\videos\base\GatewayInterface::createOauthProvider(). - Added
dukt\videos\base\GatewayInterface::getIconAlias(). - Added
dukt\videos\base\GatewayInterface::getOauthProviderApiConsoleUrl(). - Added
dukt\videos\base\PluginTrait. - Added
dukt\videos\errors\ApiResponseException. - Added
dukt\videos\errors\CollectionParsingException. - Added
dukt\videos\errors\GatewayMethodNotFoundException. - Added
dukt\videos\errors\GatewayNotFoundException. - Added
dukt\videos\errors\JsonParsingException. - Added
dukt\videos\errors\VideoNotFoundException. - Added
dukt\videos\models\Settings. - Added
dukt\videos\web\assets\settings\SettingsAsset. - Added
dukt\videos\web\assets\videofield\VideoFieldAsset. - Added
dukt\videos\web\assets\videos\VideosAsset.
- OAuth provider options are now using gateway’s handle instead of oauth provider’s handle as a key.
- Removed dependency with
dukt/oauth - Search support is disabled by default and gateways can enable it by defining a
supportsSearch()method returningtrue. - Moved
dukt\videos\controllers\VideosController::actionFieldPreview()todukt\videos\controllers\ExplorerController::actionFieldPreview(). - Moved
dukt\videos\controllers\VideosController::actionPlayer()todukt\videos\controllers\ExplorerController::actionPlayer(). - Removed
Craft\Videos_InstallController. - Removed
Craft\VideosController. - Removed
dukt\videos\models\Settings::$youtubeParameters. - Renamed
Craft\Videos_CacheServicetodukt\videos\services\Cache. - Renamed
Craft\Videos_CollectionModeltodukt\videos\models\Collection. - Renamed
Craft\Videos_GatewaysServicetodukt\videos\services\Gateways. - Renamed
Craft\Videos_OauthControllertodukt\videos\controllers\OauthController. - Renamed
Craft\Videos_OauthServicetodukt\videos\services\Oauth. - Renamed
Craft\Videos_SectionModeltodukt\videos\models\Section. - Renamed
Craft\Videos_SettingsControllertodukt\videos\controllers\SettingsController. - Renamed
Craft\Videos_VideoFieldTypetodukt\videos\fields\Video. - Renamed
Craft\Videos_VideoModeltodukt\videos\models\Video. - Renamed
Craft\VideosControllertodukt\videos\controllers\ExplorerController. - Renamed
Craft\VideosHelpertodukt\videos\helpers\VideosHelper. - Renamed
Craft\VideosServicetodukt\videos\services\Videos. - Renamed
Craft\VideosVariabletodukt\videos\web\twig\variables\VideosVariable. - Renamed
dukt\videos\base\Gateway::apiGet()toget(). - Renamed
dukt\videos\base\Gateway::authenticationSetToken()tosetAuthenticationToken(). - Renamed
Dukt\Videos\Gateways\BaseGatewaytodukt\videos\base\Gateway. - Renamed
Dukt\Videos\Gateways\IGatewaytodukt\videos\base\GatewayInterface. - Renamed
Dukt\Videos\Gateways\Vimeotodukt\videos\gateways\Vimeo. - Renamed
Dukt\Videos\Gateways\Youtubetodukt\videos\gateways\YouTube.
- Fixed a bug where token when not being properly refreshed in
dukt\videos\services\Gateways::loadGateways(). - Fixed success message when connecting to Vimeo.
- Fixed Vimeo’s console API URL.
- Fixed YouTube’s OAuth provider API console URL.