Updating Playlist/Pods Modules Associated with a Player

You can update the Playlist/Pods module associated with a player.

To update the Playlists/Pods module associated with a player:

Use PATCH with the players route to update the module's parameters. The following example changes the theme parameter from "dark" to "light".

[PATCH]/v2/players/e18ab1da1813483499554ea2d8e67fbd/third_party_modules/d42a1c8d4f91437c88db1c25cb8d6d04{  
   {  
      "parameters":{  
         "theme":"light"
      }
   }
}

Backlot returns a response similar to the following:

{  
   "items":[  
      {  
         "parameters":{  
            "activeMenuColor":"#f50505",
            "position":"bottom",
            "caption":"",
            "podType":"scrolling",
            "menuFontSize":"10",
            "thumbnailsSize":"150",
            "wrapperFontSize":"",
            "thumbnailsSpacing":"0",
            "tabsFontSize":"",
            "theme":"light",
            "captionPosition":"inside"
         },
         "type":"v3-playlists",
         "id":"d42a1c8d4f91437c88db1c25cb8d6d04",
         "is_flash":"false",
         "description":"Playlists",
         "is_v3":"true"
      }
   ]
}
Note:

Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

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