Skip to content
New issue

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

video player #82

Open
Martin-Hrach opened this issue Apr 7, 2023 · 0 comments
Open

video player #82

Martin-Hrach opened this issue Apr 7, 2023 · 0 comments

Comments

@Martin-Hrach
Copy link

Martin-Hrach commented Apr 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant