Skip to content

video player #82

@Martin-Hrach

Description

@Martin-Hrach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions