Page 1 of 1

Serviio CDS controller

PostPosted: Wed Mar 01, 2017 4:52 pm
by cina
Hi!

I'm trying to implement CDS API controller function in a javascript driven web page. Apart from that I'm able to retrieve database items with browse, search API calls and successfully enumerate all renderers in my LAN. cdsAnonymousAccess is true.

If I request a CDS API controller play function I get <405 Method Not Allowed> response from server. I have absolutely no clue so far of the problem. I tried several different renderers uuids so far and objectIds of different items in library. I do not specify parentId in JSON as DOCS states this is optional. My headers are correct according to the API DOCS.

What else do I need to start playback on my DLNA client?

Please help.

Thank you,
Cina.

Re: Serviio CDS controller

PostPosted: Wed Mar 01, 2017 5:49 pm
by zip
Are you doing a POST?

Re: Serviio CDS controller

PostPosted: Wed Mar 01, 2017 6:01 pm
by cina
Sorry I made a request.open('GET'... by mistake.

I'll correct and report back.

Thanks.

Re: Serviio CDS controller

PostPosted: Wed Mar 01, 2017 6:26 pm
by cina
I got it working but now I have new issues.

Now I got 500 Internal server error..

Serviio log says:
2017-03-01 19:22:20,285 WARN [ServiioStatusService] NumberFormatException occurred. Returning error code 500 to the REST layer. Message: For input string: "R3$F1122$F1132$MI20049"

My JSON objectId is "V_F^FOL*R3$F1122$F1132$MI20049"
V_F^FOL* is stripped?

Re: Serviio CDS controller

PostPosted: Wed Mar 01, 2017 6:37 pm
by cina
It was a FILE object returned by search which gave me error 500
A MOVIE/EPISODE are starting to play as expected.

Thanks for your help.