[GH-ISSUE #354] Is it possible to control playback from this? #281

Closed
opened 2026-02-27 22:08:58 +03:00 by kerem · 2 comments
Owner

Originally created by @tsbertalan on GitHub (Feb 22, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/354

It's not clear to me whether this is just for getting and changing data, or whether I can also control playback. It would be great if I didn't have to have a working sound system connected on the Python side, but instead could just control whatever authenticated player was currently active elsewhere, like phone app or a web player. That is, this library wouldn't handle actually streaming audio or video data, which I imagine will be much harder to add, but would just issue commands. Is this in scope?

Originally created by @tsbertalan on GitHub (Feb 22, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/354 It's not clear to me whether this is just for getting and changing data, or whether I can also control playback. It would be great if I didn't have to have a working sound system connected on the Python side, but instead could just control whatever authenticated player was currently active elsewhere, like phone app or a web player. That is, this library wouldn't handle actually streaming audio or video data, which I imagine will be much harder to add, but would just issue commands. Is this in scope?
kerem closed this issue 2026-02-27 22:08:58 +03:00
Author
Owner

@tsbertalan commented on GitHub (Feb 22, 2023):

Really all I want is play/pause control. Something like this:

from time import sleep
from ytmusicapi import YTMusic
yt = YTMusic('headers_auth.json')
yt.play()
sleep(5)
yt.pause()
<!-- gh-comment-id:1440617021 --> @tsbertalan commented on GitHub (Feb 22, 2023): Really all I want is play/pause control. Something like this: ```python from time import sleep from ytmusicapi import YTMusic yt = YTMusic('headers_auth.json') yt.play() sleep(5) yt.pause() ```
Author
Owner

@sigma67 commented on GitHub (Feb 22, 2023):

Short answer, no. You're looking for Spotify functionality. This is not Spotify.

<!-- gh-comment-id:1440749356 --> @sigma67 commented on GitHub (Feb 22, 2023): Short answer, no. You're looking for Spotify functionality. This is not Spotify.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#281
No description provided.