Skip to content

Add YouTube playback support #9

@MShekow

Description

@MShekow

The YouTube app neither provides the Media ID nor a media URL.

Change the architecture to support optional custom actions executed after recording a bookmark, and optional custom actions for playing back a bookmark (which Spotify's integration will also need)

When a bookmark was created, in order to get the video ID, make a HTTP request to the YouTube search API, providing the mediaMetadata.getString(MediaMetadataCompat.METADATA_KEY_TITLE), and filter for the result that has the exact same duration as the one given in the audio track's meta-data. This way, we can retrieve the YouTube video ID.

Starting the playback for a bookmark could then be done by simply launching an intent with an URL such as https://youtu.be/<video-id>?t=<seconds>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions