プレイヤーをアセットと関連付ける

プレイヤーをビデオ、広告、ライブストリーム、リモートプレイヤーそしてYouTubeビデオと関連付けることができます。

プレイヤーをアセットに追加

[PUT] /v2/assets/asset_id/player/player_id
   

アセットのプレイヤーを表示

[GET] /v2/assets/asset_id/player
   

この例は、b4f1a93b779145b4a9c8ef15f8502345プレイヤーをアセットIzNnllMjphu2XF3_UgPROoCi9B2rtWsと関連付けています。

[PUT] /v2/assets/IzNnllMjphu2XF3_UgPROoCi9B2rtWs/player/b4f1a93b779145b4a9c8ef15f8502345
    

この例はリクエストを作成するアカウントに対して定義されたプレイヤーを取得します。

[GET] /v2/players
    

Backlot は次のようなレスポンスを返します。

{
 "items": [   {
   "provider_homepage_url": "",
   "default_closed_caption_language": "",
   "scrubber": {
    "always_show": "false",
    "image_url": ""
   },
   "related_videos": {
    "labels": [     ],
    "click_behavior": "new_page",
    "order": "desc",
    "source": "shared_labels",
    "sort": "upload_time"
   },
   "id": "e18ab1da1813483499554ea2d8e67fbd",
   "watermark": {
    "alpha": "1.0",
    "image_url": "",
    "click_url": ""
   },
   "playback": {
    "buffer_on_pause": "false"
   },
   "ooyala_branding": {
    "url_sharing": "true",
    "show_info_screen_homepage_link": "true",
    "show_end_screen_info_button": "true",
    "digg_sharing": "false",
    "show_embed_button": "true",
    "enable_error_screen": "true",
    "show_channel_button": "true",
    "show_info_screen_description": "false",
    "show_ad_countdown": "true",
    "show_info_button": "true",
    "show_share_button": "true",
    "show_bitrate_button": "false",
    "chromeless": "false",
    "twitter_sharing": "false",
    "email_sharing": "true",
    "show_volume_button": "true",
    "show_info_screen_title": "true",
    "accent_color": "#ffbb00",
    "show_end_screen_share_button": "true",
    "show_end_screen_more_videos": "true",
    "stumble_upon_sharing": "false",
    "facebook_sharing": "false",
    "show_info_screen_presented_by": "true",
    "show_end_screen_replay_button": "true",
    "show_end_screen_embed_button": "true"
   },
   "is_default": "true",
   "name": "Default Player",
   "up_next_preview": {
    "seconds_before_end": "",
    "timing": "disabled"
   },
   "provider_name": "",
   "audio": {
    "show_download": "false"
   }
  },   {
   "provider_homepage_url": "",
   "default_closed_caption_language": "en",
   "scrubber": {
    "always_show": "false",
    "image_url": ""
   },
   "related_videos": {
    "labels": [     ],
    "click_behavior": "new_page",
    "order": "desc",
    "source": "shared_labels",
    "sort": "upload_time"
   },
   "id": "1b80572b5bd64648b17db6c515f551ab",
   "watermark": {
    "alpha": "0.44",
    "image_url": "http://ak.c.ooyala.com/A0cTMxOvXAuixska8Rhkw6Bdu2qA/watermark187895854",
    "click_url": ""
   },
   "playback": {
    "buffer_on_pause": "false"
   },
   "ooyala_branding": {
    "url_sharing": "false",
    "show_info_screen_homepage_link": "true",
    "show_end_screen_info_button": "false",
    "digg_sharing": "false",
    "show_embed_button": "true",
    "enable_error_screen": "true",
    "show_channel_button": "false",
    "show_info_screen_description": "false",
    "show_ad_countdown": "false",
    "show_info_button": "true",
    "show_share_button": "true",
    "show_bitrate_button": "false",
    "chromeless": "false",
    "twitter_sharing": "false",
    "email_sharing": "true",
    "show_volume_button": "true",
    "show_info_screen_title": "true",
    "accent_color": "#ff00",
    "show_end_screen_share_button": "false",
    "show_end_screen_more_videos": "false",
    "stumble_upon_sharing": "false",
    "facebook_sharing": "false",
    "show_info_screen_presented_by": "true",
    "show_end_screen_replay_button": "true",
    "show_end_screen_embed_button": "false"
   },
   "is_default": "false",
   "name": "alex player",
   "up_next_preview": {
    "seconds_before_end": "",
    "timing": "disabled"
   },
   "provider_name": "",
   "audio": {
    "show_download": "false"
   }
  }  ]
}     
    

この記事はお役にたちましたか?