{"account_id":"1507807800001","compatibility":true,"embed_id":"default","player":{"template":{"name":"single-video-template","version":"6.7.0"}},"player_id":"SyITgzdjb","player_name":"Plugin Registry Test Player","plugins":[{"injected_version":"2.0.10","name":"customEndscreen","registry_id":"@brightcove/videojs-custom-endscreen","version":"2.x"}],"scripts":["//players.brightcove.net/videojs-custom-endscreen/2.0.10/videojs-custom-endscreen.min.js"],"stylesheets":["//players.brightcove.net/videojs-custom-endscreen/2.0.10/videojs-custom-endscreen.css"],"updated_at":"2017-09-26T17:39:10.080Z","video_cloud":{"policy_key":"BCpkADawqM3hOj9I_wRb6jx7SLoklIm8eiW-MH1C0CO5xnf8ndABL7WJQOVdWIusPlnfKUD5EZvjHyJOQGeCFndODaM7CRz4h4GxUTLN3OmO7dTcLnxS3cYrXOZx4eaqaSbVFDx1yFTvWX7m","video":"4093372393001"}}
如果在任何時候,無論是在播放器創建或更新中,您嘗試指定與播放器版本不兼容的插件版本,則會出現錯誤。例如,嘗試將不兼容的舊插件分配給新播放器時,以下是 API 的響應:
{"message":"There are no versions of the plugin that match the specified major version. The major version specified was 1.x for plugin @brightcove/videojs-bc-playlist-ui","error_code":"PLAYER_MANAGEMENT_ERROR",}
{"error_code":"APPLICATION_ERROR","message":"plugin \"@brightcove/videojs-ima3\" is not compatible with template 5.28.1"}
JSON
工作室配置的插件
如果一個插件是通過 Studio 加載,該插件將反映在插件註冊表中的新功能:
{"account_id":"1507807800001","compatibility":true,"embed_id":"default","player":{"template":{"name":"single-video-template","version":"6.7.0"}},"player_id":"SJajDfuiW","player_name":"Plugin Registry Studio Configuration","plugins":[{"injected_version":"2.0.10","name":"customEndscreen","options":{"content":"<h3>This is the endscreen content</h3>"},"registry_id":"@brightcove/videojs-custom-endscreen","version":"2.x"}],"scripts":["//players.brightcove.net/videojs-custom-endscreen/2.0.10/videojs-custom-endscreen.min.js"],"stylesheets":["//players.brightcove.net/videojs-custom-endscreen/2.0.10/videojs-custom-endscreen.css"],"updated_at":"2017-09-26T18:09:31.940Z","video_cloud":{"policy_key":"BCpkADawqM3YPJvvfxBgJNEGrPjTPoOw0LyCbiTPnDGtAVExTzXeAW3hcRtPpS8tNeSiA9MosLG076eMXWO8E2Lxv-V7mq1oTIgqK7Xf0HBP_TEm1i-e5zRN_VIW_SjFagYpRxuoM8btiEoD","video":null}}
curl\--header"Content-Type: application/json"\--user$EMAIL\--request GET \
https://players.api.brightcove.com/v2/plugins
Bash
傳回的資訊會顯示類似下列內容:
[{"documentation":"https://support.brightcove.com/configuring-adobe-analytics-event-tracking","description":"Adobe Analytics Player Plugin","id":"@brightcove/videojs-bc-aa","name":"bcAa","current_version":"1.x"},{"documentation":"https://support.brightcove.com/configuring-google-analytics-event-tracking","description":"Google Analytics Player Plugin","id":"@brightcove/videojs-bc-ga","name":"bcGa","current_version":"1.x"},{"documentation":"https://support.brightcove.com/google-tag-manager-plugin-brightcove-player","description":"Google Tag Manager Player Plugin","id":"@brightcove/videojs-bc-gtm","name":"bcGtm","current_version":"1.x"},{"documentation":"https://support.brightcove.com/playlist-ui-plugin","description":"Brightcove customizations to videojs-playlist-ui","id":"@brightcove/videojs-bc-playlist-ui","name":"bcPlaylistUi","current_version":"3.x"},{"documentation":"https://support.brightcove.com/tealium-plugin-brightcove-player","description":"Tealium Player Plugin","id":"@brightcove/videojs-bc-tealium","name":"bcTealium","current_version":"1.x"},{"documentation":"https://support.brightcove.com/beta-chromecast-plugin-brightcove-player","description":"A Chromecast Receiver plugin for the Brightcove Player","id":"@brightcove/videojs-chromecast-receiver","name":"chromecastReceiver","current_version":"1.x"},{"documentation":"https://support.brightcove.com/custom-endscreen-plugin","description":"Custom endscreens for video.js.","id":"@brightcove/videojs-custom-endscreen","name":"customEndscreen","current_version":"2.x"},{"documentation":"https://support.brightcove.com/configuring-brightcove-player-drm","description":"Cross-browser support for MPEG-DASH w/ DRM using dash.js and silverlight and HLS Fairplay DRM","id":"@brightcove/videojs-drm","name":"eme","current_version":"5.x"},{"documentation":"https://support.brightcove.com/advertising-ima3-plugin","description":"Google Interactive Media Ads (IMA) v3 support for video.js","id":"@brightcove/videojs-ima3","name":"ima3","current_version":"3.x"},{"documentation":"https://support.brightcove.com/display-overlay-plugin","description":"Overlay for video.js.","id":"@brightcove/videojs-overlay","name":"overlay","current_version":"2.x"},{"documentation":"https://support.brightcove.com/picture-picture-plugin-aka-floating-or-pinned","description":"A plugin for enabling a Picture-In-Picture mode for the Brightcove Player","id":"@brightcove/videojs-pip","name":"pip","current_version":"1.x"},{"documentation":"https://support.brightcove.com/manual-rendition-selection-plugin","description":"Quality Selection Menu UI","id":"@brightcove/videojs-quality-menu","name":"qualityMenu","current_version":"1.x"},{"documentation":"https://support.brightcove.com/social-media-plugin","description":"Social sharing integrations for video.js.","id":"@brightcove/videojs-social","name":"social","current_version":"3.x"},{"documentation":"https://support.brightcove.com/advertising-ssai-plugin","description":"A plugin for the Brightcove Player implementing playback of SSAI streams.","id":"@brightcove/videojs-ssai","name":"ssai","current_version":"1.x"}]
curl\--header"Content-Type: application/json"\--user$EMAIL\--request GET \
https://players.api.brightcove.com/v2/plugins/%40brightcove%2fvideojs-ima3
Bash
傳回的資訊會顯示類似下列內容:
{"versions":[{"scripts":["//players.brightcove.net/videojs-ima3/3/videojs.ima3.min.js"],"stylesheets":["//players.brightcove.net/videojs-ima3/3/videojs.ima3.min.css"],"version_number":"3.x","minimum_template_version":"6.0.0"},{"minimum_template_version":"5.0.0","version_number":"2.x","stylesheets":["//players.brightcove.net/videojs-ima3/2/videojs.ima3.min.css"],"scripts":["//players.brightcove.net/videojs-ima3/2/videojs.ima3.min.js"]},{"minimum_template_version":"1.14.0","version_number":"1.x","stylesheets":["//players.brightcove.net/videojs-ima3/1/videojs.ima3.min.css"],"scripts":["//players.brightcove.net/videojs-ima3/1/videojs.ima3.min.js"]}],"documentation":"https://support.brightcove.com/advertising-ima3-plugin","description":"Google Interactive Media Ads (IMA) v3 support for video.js","id":"@brightcove/videojs-ima3","name":"ima3","current_version":"3.x"}