Project Description
The exported BA:Connected (BACon) presentation, available in this repo, allows the use of a Dynamic playlist called "On-Demand-Feed",
as the content source for an "On Demand" state in BA:Connected.
The "On Demand" state allows to playback a file stored in that state using a UDP message which correspond to the key derived from the title value assigned to it in the "On-Demand-Feed".
The provided "ParseDynPlaylistAndSetKey.brs" plugin is used to:
- look for a Dynamic playlist feed in the "feed_cache" folder on the player SD card
- parse the feed for all the files in the Dynamic/Playlist and extract their title name
- generate a string in the format "pentagon1.mp4:pentagon2.mp4:pentagon3.mp4:pentagon4.mp4"
- assign the generated string to a user variable called "OnDemandKeys"
- check/monitor feed update and regenerate the the string and update the user variable whenever a feed update takes place
The Custom Device Web page which is accessible on port :8008,
queries the /GetUserVars endpoint for the "OnDemandKeys" user variable when clicking on the "refresh" button
After clicking the "Refresh" button the Device Web page generates a button to send a UDP command for each one of the files that are part of the "OnDemandKeys" user variable string
Please make sure to create a Dynamic Playlist called "On-Demand-Feed" on your Content Cloud account and to assign that Dynamic playlist as a source feed using the "Populate From Feed" option.