I am currently in the process of integrating Plex and Chromecast into my home automation platform, I am using the following library: https://github.com/ChrisRidings/CastV2inPHP Which works great for control, But now I wish to initiate playing with the Plex->Play(); function but It expects a JSON payload, which I am unsure the structure, as it goes straight to the Chromecast, it should be the same as what Plex web and the app sends when starting media on a Chromecast, thanks.
Got some feedback, but still wont work:
{
"contentId": "/library/metadata/5267",
"streamType": "BUFFERED",
"contentType": "video",
"customData": {
"offset": 0,
"directPlay": true,
"directStream": true,
"subtitleSize": 100,
"audioBoost": 100,
"server": {
"machineIdentifier": "XXXXXXXXX",
"transcoderVideo": true,
"transcoderVideoRemuxOnly": false,
"transcoderAudio": true,
"version": "1.4.3.3433",
"myPlexSubscription": false,
"isVerifiedHostname": false,
"protocol": "https",
"address": "192.168.10.2",
"port": 32400,
"accessToken": "transient-XXXXXXXX",
"user": {
"username": "XXXXXXX"
},
"containerKey": "327?own=1&window=200"
},
"autoplay": true,
"currentTime": 0
}
}
Does anybody know if this is still a valid payload to send?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.