Open x3haloed opened 7 years ago
Could be a bug, I don't think we use that regularly except for the web socket API upstream in GPMDP. Will need to repo before confirming.
Works fine still inside GPMDP 👍
I'm still interested in getting gmusic.js working from a Chrome extension. I figured I should give you an example instead of just complaining. I've attached a sample, barebones Chrome extension with gmusic.js.
To test:
gmusic.playback.setPlaybackTime(60000);
at this point, and the track should be playing from the 1m mark.I am running Chrome 56.0.2924.87 (64-bit) on macOS Sierra 10.12.3
I'm trying to build a Chrome extension for controlling Google Play Music. I have a content script that includes the gmusic.js library. I'm able to successfully call
playback.playPause()
,playback.getCurrentTrack()
, andextras.getTrackURL()
, butplayback.setCurrentTime()
doesn't seem to be working as expected.When I run the following code, I expect the playback time to be set to 60 seconds:
Instead, I hear a momentary disruption in play, and it continues to play from where it was before.
The console does not show any JavaScript errors.
Any idea what I could be doing wrong?