video player
Opened this issue · 0 comments
Martin-Hrach commented
Hi, I have this code in VS code with notebook, and i am curious, can i play the video? Because i get the html player, but I can not start the video. But mp3 sound i can play here
const path = require('path');
const { display } = require('node-kernel');
const videoPath = path.join(__dirname, 'rick.mkv');
console.log(videoPath);
const html = `
<video controls>
<source src="${videoPath}" type="video/x-matroska">
Your browser does not support the video tag.
</video> `
;
display.html(html);
Edit: so it work at least with mp4, but there is a problem with sound, there is none in the notebook