Adam_Kearn 1 Posted May 6, 2020 Share Posted May 6, 2020 (edited) Hey Guys, I am trying to make a API for that will play a live RTSP stream I have in the Live TV section. (Its my CCTV camra feed)Basicaly my end gole is to to say "Ok google, cast the CCTV" and it will call the Webhook using IFTTT and start playing the CCTV feed from emby. So for testing I have tried using the http://swagger.emby.media/ tool to send a request. I used the `/Sessions` to get all my open sessions and I found the ID for my computer. I then put that ID into `/Sessions/{Id}/Playing` POST request. But I keep getting 204 errors. If I try just running the request in my browser I get a message that says "Unable to find the specified file." I've tried multiple ID's but I keep getting the same issues.I have tried Movie IDs and also LiveTV ID's but get the same error. On the client that I set it to play on (my PC for testing)I get this message: "Playback Error No compatible streams are currently available. Please try again later or contact your system administrator for details." Please see the attached screenshots. Thanks in advance! Regards, Adam. Edited May 6, 2020 by Adam_Kearn Link to comment Share on other sites More sharing options...
Luke 37066 Posted May 7, 2020 Share Posted May 7, 2020 Hi, the IDs are database IDs so you need to have those first by using the api. Link to comment Share on other sites More sharing options...
Adam_Kearn 1 Posted May 9, 2020 Author Share Posted May 9, 2020 Hi Like, Sorry for the late reply. Yeah I was trying with ID: Here is the JSON responce I got from the livetv channel I have setup. { "Items": [ { "Name": "Drive", "ServerId": "ba17c505a5fb4554bb8cb9cc96f190a0", "Id": "28685", "Number": "11", "ChannelNumber": "11", "IsFolder": false, "Type": "TvChannel", "ImageTags": { "Primary": "6a758e3eace72465041022da0ec4d935" }, "BackdropImageTags": [], "MediaType": "Video" } ], "TotalRecordCount": 1 } But I have just tried it with the API again. Instead of using PlayNow. I did PlayNext and it worked. Sounds like there is a little bug in the API. Or am I doing something wrong?? When the API is run I still get a 204 error with content-length: 0 Should that be happening? I was expecting a 200 code. Thanks, Adam. Link to comment Share on other sites More sharing options...
Luke 37066 Posted May 9, 2020 Share Posted May 9, 2020 We'd have to look at the full example but you can also do the same thing with the web app in Chrome and just monitor the api requests made by the web app, then compare to yours. Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted May 9, 2020 Share Posted May 9, 2020 FWIW 200/204 are valid, successful StatusCodes 204 when no content is returned Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now