This project provides a starting point for integrating the Brightcove CMS API into your application. It provides simple ways to interact with the API, as well as a long list of helper functions.
Currently, CMS::listPlaylists() will return an array of Playlist objects but smart playlists are treated differently than manual ones. For smart playlists, the video property will be empty while manual playlists will have an array of video ids. This can cause issues downstream if developers expect them to behave the same.
The Drupal module https://cgit.drupalcode.org/brightcove/tree/?h=8.x-1.x, uses this API to save Playlist and videos into Drupal. For our use case, we would like the ability to save videos regardless of the type of playlist.
This is my first attempt and would love to hear feedback and concerns about this solution.
Currently, CMS::listPlaylists() will return an array of Playlist objects but smart playlists are treated differently than manual ones. For smart playlists, the video property will be empty while manual playlists will have an array of video ids. This can cause issues downstream if developers expect them to behave the same.
The Drupal module https://cgit.drupalcode.org/brightcove/tree/?h=8.x-1.x, uses this API to save Playlist and videos into Drupal. For our use case, we would like the ability to save videos regardless of the type of playlist.
This is my first attempt and would love to hear feedback and concerns about this solution.