[NodeJS] An extended version of OmxDirector

February 23rd, 2015 | Posted by Tom in Article | NodeJS | Read: 860

OmxDirector is a NodeJS module, written by Alessandro Pezzato, that allows any NodeJS application to control OmxPlayer, a video player specifically made for the Raspberry Pi’s.

Unfortunately, the current version of OmxDirector has a limited numbers of features implemented.

So I’ve created a fork of the official version and extended the module to add the following features:

  • Ability to play a remote (HTTP) file
  • Ability to go backwards (-30 seconds)
  • Ability to go forwards (+30 seconds)

 

Using the new features is really easy and involve to call some little Javascript fonctions:

omx.play('http://www.server.com/video.mp4');

omx.backwards();

omx.forwards();

 

I’ll try to add more features to be able to cover all the features of OmxPlayer but, in the meantime, feel free to contact me (@thomas_lebrun on Twitter) if you want to discuss about it!

 

Happy coding!

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Add Comment Register



Leave a Reply