[][src]Function aspotify::endpoints::player::play

pub async fn play<'_, '_, '_, '_>(
    token: &'_ AccessToken,
    play: Option<Play<'_, '_>>,
    position: Option<Duration>,
    device_id: Option<&'_ str>
) -> Result<(), EndpointError<PlayerError>>

Start or resume playback (Beta).

Requires user-modify-playback-state. This action complete asynchronously, meaning you will not know if it succeeded unless you check.

play, when set, controls what to play, and what offset in the context to start playing at. position controls how far into the current track to play; if it is longer than the current track, then the next track will play.

Reference.