Jump to content

Remote Play Item not working ... ?


Recommended Posts

Posted (edited)

This used to work (as we used it for the early Introskip testing..) but I can no longer appear to remote play an item using the session service.

All works fine for remote browse to an item, remote send a message,  remote play/pause an item (so session control is there..) - but I just can't 'start/play' an item - it just says Playback Error on the client (Emby Theater for Windows in this case)

Trying to use via the swagger api for the moment -

curl -X 'POST' \
  'http://embyserver:8096/emby/Sessions/a178ecd0c8aa2feb006397adb79092d8/Playing?ItemIds=4191016&StartPositionTicks=0&PlayCommand=PlayNow&api_key=bdda47723d224c36b31f5abda7a****' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "ControllingUserId": "string",
  "SubtitleStreamIndex": 0,
  "AudioStreamIndex": 0,
  "MediaSourceId": "string",
  "StartIndex": 0
}'

Debug log output for that API command

2024-01-15 15:02:02.137 Debug Server: http/1.1 OPTIONS http://‌‍‍embyserver‌:8096/emby/Sessions/a178ecd0c8aa2feb006397adb79092d8/Playing?ItemIds=4191016&StartPositionTicks=0&PlayCommand=PlayNow&api_key=‌bdda47723d224c36b31f5abda7a****. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
2024-01-15 15:02:02.137 Debug Server: http/1.1 Response 200 to ‌‍‍192.168.30.254‌. Time: 0ms. OPTIONS http://‌‍‍embyserver‌:8096/emby/Sessions/a178ecd0c8aa2feb006397adb79092d8/Playing?ItemIds=4191016&StartPositionTicks=0&PlayCommand=PlayNow&api_key=‌bdda47723d224c36b31f5abda7a****
2024-01-15 15:02:02.138 Info Server: http/1.1 POST http://‌‍‍embyserver‌:8096/emby/Sessions/a178ecd0c8aa2feb006397adb79092d8/Playing?ItemIds=4191016&StartPositionTicks=0&PlayCommand=PlayNow&api_key=‌bdda47723d224c36b31f5abda7a****. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
2024-01-15 15:02:02.139 Info Server: http/1.1 Response 204 to ‌‍‍192.168.30.254‌. Time: 1ms. POST http://‌‍‍embyserver‌:8096/emby/Sessions/a178ecd0c8aa2feb006397adb79092d8/Playing?ItemIds=4191016&StartPositionTicks=0&PlayCommand=PlayNow&api_key=‌bdda47723d224c36b31f5abda7a****

Any thoughts/clues ?

Tried - postSessionsByIdPlaying (emby.media) - same info as old API gives ..

Thanks !

Edited by rbjtech
Posted

Ah - so tried a different client - AndroidTV on the same network as the server (vlan 30) - and for that session it works ok ..

So it's either Emby Theater itself or the fact that client is on a different network to the server - but then why do all the other API functions work ok .. ?

Going to do some more digging ...

Posted

Using the web app to remote play to Theater works just fine in my testing, so what I would suggest is opening the chrome debugger and then comparing the request that the web app sends to what you're saying. That should lead you to the answer.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...