We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's say I have this:
var i = 0; setInterval(function(){ omx.play('video' + (i++)); }, 1000)
Videos are longer than 1 second. Let's say for this example that they are 5 seconds long.
The player will (A): plays right away
The player will (B): queue incoming videos
The player will (C): doesn't queue incoming videos
Seems that it works like in case C.
So to make it work the code should be:
var i = 0; setInterval(function(){ omx.stop(); omx.play('video' + (i++)); }, 1000)
Or I have to wait for the stop event to fire before starting again?
I can't test the app, so knowing the behaviour would help me to design the app properly without seeing what happens.
The text was updated successfully, but these errors were encountered:
I think the expected behavior is (A). But actually it is (C). I guess it is caused by https://github.com/alessandro-pezzato/omxdirector/blob/v0.1.1/lib/main.js#L175 Because play() awakes a paused video. I will fix it asap.
Sorry, something went wrong.
I use a wrapper on your omxdirector lib and in this I do like this when play is called:
The stop method is like this:
stop: function(cb){ if(this.__simulationMode){ cb && cb(); return; } this.__omx.once('stop', function(){ cb && cb(); }); this.__omx.stop(); },
Notice how I listen on the stop event once.
No branches or pull requests
Let's say I have this:
Videos are longer than 1 second. Let's say for this example that they are 5 seconds long.
The player will (A): plays right away
The player will (B): queue incoming videos
The player will (C): doesn't queue incoming videos
Seems that it works like in case C.
So to make it work the code should be:
Or I have to wait for the stop event to fire before starting again?
I can't test the app, so knowing the behaviour would help me to design the app properly without seeing what happens.
The text was updated successfully, but these errors were encountered: