Skip to content

How to: Support Content Voting

rrirower edited this page Feb 25, 2024 · 3 revisions

Content voting adds a "Like/Dislike" button to the Details screen. Clicking the button will allow the viewer to cast a "Like" or "Dislike" vote for your content. The vote is sent to your back-end server via a Rest API call so that you can record viewer feedback. The vote is also saved in the local registry in the section titled 'ContentVotingDB'.

Content voting is also available from the Episodes screens by clicking the options button ('*'). The vote is recorded for the selected Episode.

To take advantage of this feature,

  1. Enable the CONTENT_VOTING manifest attribute.
  2. Edit the ContentVotingTask.brs file and change the value of the 'EndpointUrl' variable to point to the URL of your back-end server that will process the content vote. You MUST change this value.

Sample API call for testing:

'https://ibe0a4k9v8.execute-api.us-east-1.amazonaws.com/Test/content-voting/?contentid=12345&vote=Like'