Answer the question
In order to leave comments, you need to log in
How to stream video to TV using JavaScript?
Hello everybody! In general, the question arose: how can I send my video (tv cast) to Smart TV using JavaScript? Somehow this is implemented by YouTube and in general by Google Chrome
Answer the question
In order to leave comments, you need to log in
Create html:
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
const http = require('http');
const fs = require('fs');
http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'video/mp4'});
var rs = fs.createReadStream('video.mp4');
rs.pipe(res);
}).listen(8080);
There is nothing for you to do.
VLC player on PC, RTSP broadcast.
VLC player on TV - RTSP reception....
Somehow this is implemented by YouTube and in general by Google Chrome
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question