Retrieving client identifier?

Hi, hopefully this is in the right forum...

 

I've just started looking at\playing with coding a custom channel, and seem to have run into an early roadblock: I'd like my channel to potentially behave differently based on which specific client it's being triggered from, but can't see any way to identify the calling client. I see there is Client.Platform and Client.Version but nothing equivalent to Client.Name?

 

The PMS clearly has this information (as the now playing screen on the webui displays it), is there really no way to access it from the channel code?

 

Anything that uniquely identified the client would do: hostname, ipaddress, mac address, guid, etc....

 

thanks

ak

Try:

Client.Product

or for a more verbose version:

Request.Headers

Brilliant thanks! Client.Product only identifies the type of client (PHT, Web, etc), but Request.Headers does contain an X-Plex-Device-Name item which seems to be exactly what I need.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.