Skip to content

Styled Media Receiver - Chromecast #2646

Description

@neoassyrian

Hi guys,

Can the chromcast receiver be styled where it displays the cover photo and display title and subtitle?
https://developers.google.com/cast/docs/android_sender/integrate#set_media_metadata

The MediaMetadata class represents the information about a media item you want to Cast. The following example creates a new MediaMetadata instance of a movie and sets the title, subtitle and two images.

val movieMetadata = MediaMetadata(MediaMetadata.MEDIA_TYPE_MOVIE)

movieMetadata.putString(MediaMetadata.KEY_TITLE, mSelectedMedia.getTitle())
movieMetadata.putString(MediaMetadata.KEY_SUBTITLE, mSelectedMedia.getStudio())
movieMetadata.addImage(WebImage(Uri.parse(mSelectedMedia.getImage(0))))
movieMetadata.addImage(WebImage(Uri.parse(mSelectedMedia.getImage(1))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions