avi, .mov, .mpg, .ogg, .webm, .3gp, .mp3, .aac, .flac, .tta, .wav, .dts, .tta. etc. VLC has multiple features and is easy to use. For more information, visit
A:
There is no supported way of doing this in a single line of code.
You'd have to use 3 lines of code, and wrap the second and third lines inside a loop:
my.video = VLC.Media.createVideoFile(path+"/temp.mpg", "movie")
my.video.stop()
for i in range(10):
my.video.stop()
my.video.play()
time.sleep(2)
my.video.remove()
The only possible improvement I can think of is to open the file in a loop and then close it after the loop is finished. If you could control the code of VLC, you might be able to create a loop that automatically begins playing the movie and then closes it after 10 seconds.
var WebSocket = require('../');
var expect = require('expect.js');
describe('WebSocket spec', function () {
it('createServer', function (done) {
var ws = new WebSocket('ws://localhost');
ws.on('open', function() {
setTimeout(function() {
ws.send('ping');
}, 1000);
});
ws.on('close', function() {
done();
});
it
Related links:
Comments