- Fixed a bug where the plugin couldn’t be uninstalled. (#82)
- Fixed the default
totalVideos
value if thestats
are not present in the Vimeo video response. (#78)
- 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
allowAdminChanges
Craft 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’enableCache
config.
- Fixed a bug where the plugin was using a medium quality image for generating thumbnails, resulting in low quality thumbnails. (#48)
- Updated
league/oauth2-client
to 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_tokens
migration 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::$thumbnailSource
instead. (#37)
- Fixed the styles of the explorer's sidebar.
- Fixed a bug where migration
m190601_092217_tokens
could fail whenallowAdminChanges
was 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-google
dependency 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-google
dependency withleague/oauth2-google
. - Removed
dukt\videos\services\Videos::isOauthProviderConfigured()
.
- Fixed a bug which prevented the
oauthProviderOptions
config 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
files
to 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
registerGatewayTypes
todukt\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
’sinit
event 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\Video
to usenormalizeValue()
. (#2)
- Added
dukt\videos\services\Oauth::getTokenData()
.
- Check that there is an
expires
value 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_link
to 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_CacheService
todukt\videos\services\Cache
. - Renamed
Craft\Videos_CollectionModel
todukt\videos\models\Collection
. - Renamed
Craft\Videos_GatewaysService
todukt\videos\services\Gateways
. - Renamed
Craft\Videos_OauthController
todukt\videos\controllers\OauthController
. - Renamed
Craft\Videos_OauthService
todukt\videos\services\Oauth
. - Renamed
Craft\Videos_SectionModel
todukt\videos\models\Section
. - Renamed
Craft\Videos_SettingsController
todukt\videos\controllers\SettingsController
. - Renamed
Craft\Videos_VideoFieldType
todukt\videos\fields\Video
. - Renamed
Craft\Videos_VideoModel
todukt\videos\models\Video
. - Renamed
Craft\VideosController
todukt\videos\controllers\ExplorerController
. - Renamed
Craft\VideosHelper
todukt\videos\helpers\VideosHelper
. - Renamed
Craft\VideosService
todukt\videos\services\Videos
. - Renamed
Craft\VideosVariable
todukt\videos\web\twig\variables\VideosVariable
. - Renamed
dukt\videos\base\Gateway::apiGet()
toget()
. - Renamed
dukt\videos\base\Gateway::authenticationSetToken()
tosetAuthenticationToken()
. - Renamed
Dukt\Videos\Gateways\BaseGateway
todukt\videos\base\Gateway
. - Renamed
Dukt\Videos\Gateways\IGateway
todukt\videos\base\GatewayInterface
. - Renamed
Dukt\Videos\Gateways\Vimeo
todukt\videos\gateways\Vimeo
. - Renamed
Dukt\Videos\Gateways\Youtube
todukt\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.