Detect device which calls the channel

Hi,

 

is it possible to detect the device which calls the plugin?

In this information it would be possible to deliver the right format of a stream.

 

For example it's possible that the Plex Home Theatre streams nearly all formats while iOS devices/browsers are limited to a few ones...

 

Thanks

Sascha

Client.Platform or Client.Product should get you the details you're looking for but that shouldn't be necessary.

If you create a list of MediaObjects with all the available stream types, the clients are supposed to "intelligently" select the best stream type for their capabilities. The key is to provide as much metadata about the streams as possible. Specifically container and codec types as well as bitrate where applicable.

Client.Product was exactly what I needed. Why isn't it documented? :-)

Client.Product was exactly what I needed. Why isn't it documented? :-)

Because in theory you should never ever have to check for a client's platform or product. Just list all the available versions of a video or stream and let the client/server decide which one is best/most compatible.

Yes but sometimes you do not exactly know which format and resolution the stream will appear. In my case it's a tv stream...

Client.Product was exactly what I needed. Why isn't it documented? :-)

Because ....

Ahhmmm......

First option is at least

http://dev.plexapp.com/docs/offline/PlexPlug-inFramework.pdf :)

/Tommy

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