Enabling TV Ratings for Android Assets

Use the following steps to enable TV ratings for an Android video.
  1. Configure your movies with the proper custom metadata in the Backlot UI. See the following topics for information about this step:
  2. Create a FCCTVRatingConfiguration object to outline the parameters that configure how FCC Ratings are shown.
  3. Create an Options object to use when configuring the OoyalaPlayer.
  4. Initialize the OoyalaPlayerViewController and add the Options object as a parameter.
  5. Use the setEmbedCode method and play the asset to see the TV ratings appear as configured in your FCCTVRatingsConfiguration object.

The follow code example is the result of the above steps:

FCCTVRatingConfiguration.Builder builder = new
  FCCTVRatingConfiguration.Builder();
  FCCTVRatingConfiguration tvRatingConfiguration =
    builder.setPosition(Position.TopLeft).setDurationSeconds(5)
    .build();
  Options options = new      
  Options.Builder().setTVRatingConfiguration
    (tvRatingConfiguration).build();
  OoyalaPlayerLayoutController playerLayoutController = new
  OoyalaPlayerLayoutController( playerLayout, PCODE, new
    PlayerDomain(DOMAIN), DefaultControlStyle.AUTO, null, options);
  playerLayoutController.setEmbedCode
    ("5od253bzo-9DTMTY5q45pX-PRRXa5c4d");

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