OnDemandContentRatingComponent: {
    attributes: {
        onDemandRatings: Attribute<TypeFromFields<{
            ratingName: FieldType<string>;
            ratingNameDesc: OptionalFieldType<string>;
        }>[], any>;
        onDemandRatingThreshold: Attribute<string, any>;
    };
    commands: {
        setOnDemandRatingThreshold: Command<TypeFromFields<{
            rating: FieldType<string>;
        }>, void, any>;
    };
} = ...

A ContentControlCluster supports these elements if it supports feature OnDemandContentRating.

Type declaration

  • Readonlyattributes: {
        onDemandRatings: Attribute<TypeFromFields<{
            ratingName: FieldType<string>;
            ratingNameDesc: OptionalFieldType<string>;
        }>[], any>;
        onDemandRatingThreshold: Attribute<string, any>;
    }
    • ReadonlyonDemandRatings: Attribute<TypeFromFields<{
          ratingName: FieldType<string>;
          ratingNameDesc: OptionalFieldType<string>;
      }>[], any>

      This attribute shall provide the collection of ratings that are currently valid for this media device. The items should honor the metadata of the on-demand content (e.g. Movie) rating system for one country or region where the media device has been provisioned. For example, for the MPAA system, RatingName may be one value out of "G", "PG", "PG-13", "R", "NC-17".

      The media device shall have a way to determine which rating system applies for the on-demand content and then populate this attribute. For example, it can do it through examining the Location attribute in the Basic Information cluster, and then determining which rating system applies.

      The ratings in this collection shall be in order from a rating for the youngest viewers to the one for the oldest viewers. Each rating in the list shall be unique.

      MatterSpecification.v13.Cluster § 6.13.7.2

    • ReadonlyonDemandRatingThreshold: Attribute<string, any>

      Indicates a threshold rating as a content filter which is compared with the rating for on-demand content. For example, if the on-demand content rating is greater than or equal to OnDemandRatingThreshold, for a rating system that is ordered from lower viewer age to higher viewer age, then on-demand content is not appropriate for the User and the Node shall prevent the playback of content.

      This attribute shall be set to one of the values present in the OnDemandRatings attribute.

      When this attribute changes, the device SHOULD make the user aware of any limits of this feature. For example, if the feature does not control content within apps, then the device should make this clear to the user when the attribute changes.

      MatterSpecification.v13.Cluster § 6.13.7.3

  • Readonlycommands: {
        setOnDemandRatingThreshold: Command<TypeFromFields<{
            rating: FieldType<string>;
        }>, void, any>;
    }
    • ReadonlysetOnDemandRatingThreshold: Command<TypeFromFields<{
          rating: FieldType<string>;
      }>, void, any>

      The purpose of this command is to set the OnDemandRatingThreshold attribute.

      Upon receipt of the SetOnDemandRatingThreshold command, the media device shall check if the Rating field is one of values present in the OnDemandRatings attribute. If not, then a response with InvalidRating error status shall be returned.

      MatterSpecification.v13.Cluster § 6.13.8.10