Getting Started with development

Alright, so I tried Plex yesterday (on a Mac), not bad at all, but while trying I stumbled on some things with a few addons I really found annoying. The most annoying ones include:

  • Pause not working properly in Flash-based plugins (such as Hulu), if I hit an arrow key (intuition would dictate that’s seeking) it pauses, but there’s no way to resume. Space bar has no effect whatsoever, and since I tried in a browser, it doesn’t just pass through the keys to the flash plugin, since there space par DOES pause and resume.
  • Poor exception handling in the netflix plugin (“An error occurred, try again later”).



    Alright, since the addons seem to be written in python mainly and I do speak python I’ve taken a look. For the second problem I found where it happens, so I have a way to debug it (and I will eventually fix it and post information what I did somewhere, so the maintainers of the plugin can include the fix).



    However, about the first problem: The obvious fix would be to map space bar in flash-based plugins (let’s stick with Hulu) to space bar passed on to the plugin. My problem is I can’t find the part of the plugin where this is done (key mapping), and the documentation of plugin development seems to ignore actual playback completely. With simply a way to change the key mapping in a plugin, I could “fix” several plugins. Any hints on where to look?

For Flash (or Silverlight) dependent plugins, the playback controls are defined in a Site Configuration file. The Site Config is located either in the plugin bundle or in the separate SiteConfigurations.bundle. They’re written in XML and can implement JavaScript. There is some documentation about Site Configs in the docs at dev.plexapp.com/docs.

It’s nice to see more people digging in to channel development.

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