Associate Player with Asset

You can associate a player with videos, ads, live streams, remote players, and YouTube videos.

Note: For more information about Backlot REST API commands, see the Backlot API Reference.

Add Player to Asset

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

View Player for an Asset

[GET]/v2/assets/asset_id/player

Examples

This example associates the b4f1a93b779145b4a9c8ef15f8502345 player with asset IzNnllMjphu2XF3_UgPROoCi9B2rtWs:

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

This example retrieves all the players defined for the account making the request.

[GET]/v2/players

Backlot returns a response similar to the following:

{  
   "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":"image_url",
            "click_url":"",
            "position":"bottom-right"
         },
         "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"
         }
      }
   ]
}            

해당 내용이 도움 되었습니까?