Extends EventEmitter
This class represents a single omxplayer
instance.
#constructor(manager, cmd, videos, args, nativeLoop)
Create a new instance.
Create a new instance.
Reference to the parent manager.
Command used to spawn the process.
Videos to play.
Arguments passed to the spawn command.
If native loop is supported and should be used when possible.
OmxInstance
:
New omxplayer
instance.
#decreaseSpeed
Decrease speed (sends key '1').
Decrease speed (sends key '1').
#decreaseSubtitleDelay
Decrease subtitle delay (sends key 'f').
Decrease subtitle delay (sends key 'f').
#decreaseVolume
Decrease volume (sends key '-').
Decrease volume (sends key '-').
#fastForward
Fast forward (sends key '>').
Fast forward (sends key '>').
#getStatus
Returns the current status object.
Returns the current status object.
StatusObject
#hideSubtitles
Hide subtitles (sends key 'x').
Hide subtitles (sends key 'x').
#increaseSpeed
Increase speed (sends key '2').
Increase speed (sends key '2').
#increaseSubtitleDelay
Increase subtitle delay (sends key 'd').
Increase subtitle delay (sends key 'd').
#increaseVolume
Increase volume (sends key '+').
Increase volume (sends key '+').
#nextAudioStream
Gets next audio stream (sends key 'k').
Gets next audio stream (sends key 'k').
#nextChapter
Get next chapter (sends key 'o').
Get next chapter (sends key 'o').
#nextSubtitleStream
Gets next subtitle stream (sends key 'm').
Gets next subtitle stream (sends key 'm').
#pause
Pause the current video.
Pause the current video.
#play
Play the current video in the serie.
Play the current video in the serie.
#previousAudioStream
Gets previous audio stream (sends key 'j').
Gets previous audio stream (sends key 'j').
#previousChapter
Get previous chapter (sends key 'i').
Get previous chapter (sends key 'i').
#previousSubtitleStream
Gets previous subtitle stream (sends key 'n').
Gets previous subtitle stream (sends key 'n').
#rewind
Rewind (sends key '<').
Rewind (sends key '<').
#seekBackward
Seek -30 s (sends '[D').
Seek -30 s (sends '[D').
#seekFastBackward
Seek -600 s (sends '[B').
Seek -600 s (sends '[B').
#seekFastForward
Seek +600 s (sends '[A').
Seek +600 s (sends '[A').
#seekForward
Seek +30 s (sends '[C').
Seek +30 s (sends '[C').
#showSubtitles
Show subtitles (sends key 'w').
Show subtitles (sends key 'w').
#stop
Stop the current video.
Stop the current video.
#toggleSubtitles
Toggles subtitles (sends key 's').
Toggles subtitles (sends key 's').
Extends EventEmitter
This class is used to control multiple omxplayer
instances.
#constructor
New omxmanager instance.
New omxmanager instance.
OmxManager
#enableNativeLoop
Sets support to native loop flag.
Sets support to native loop flag.
#setOmxCommand(cmd)
Set the default command to spawn.
Set the default command to spawn.
The path to the executables to spawn for omxplayer.
#setVideosDirectory(path)
Set where to look for videos.
Set where to look for videos.
Shared path.
#setVideosExtension(ext)
Set an extension for videos.
Set an extension for videos.
Shared format.
This class is used to iterate over an array.
.length
Length of the underlaying array.
Length of the underlaying array.
#get
Get the current item in array.
Get the current item in array.
Any
#getCurrentIndex
Returns current index of the array.
Returns current index of the array.
number
#next
Move to next video.
Move to next video.
#setLoop
Set loop wrap around array when reaching end.
Set loop wrap around array when reaching end.
#toArray
Returns the underlaying array.
Returns the underlaying array.
Array
.<
Any
>
Videos to play are ended (never called if you are in looping condition)
Successfully paused a video
Successfully started a video or resumed from pause
{String} - Currently playing video
Successfully stopped a video (omxplayer process ends)