grunjol / dlnacasts Goto Github PK
View Code? Open in Web Editor NEWQuery your local network for DLNA media renderers and have them play media
License: MIT License
Query your local network for DLNA media renderers and have them play media
License: MIT License
Don`t work in my TV:
My code:
console.log(`Players: ${dlnacasts.players}`)
dlnacasts.on('update', function (player) {
console.log('all players: ', dlnacasts.players)
player.play('http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4', {title: 'my video', type: 'video/mp4'})
})
Console:
Players:
while exectuting the following code
var dlnacasts = require('dlnacasts')()
dlnacasts.on('update', function (player) {
player.play('http://192.168.0.13:9999/video.mp4',
{title: 'test titre video',
type: 'video/mp4',
subtitles: ['http://192.168.0.13:9999/video.srt'],
autoSubtitles: true,
})
})
The subtitles are not diplayed. By checking the log of the server hosting the subtitles, they are even not requested.
Does samsung tv request special metadata ? (using 'minidlna' application, the video & the subtitles are well displayed...)
Hi, Many thanks for your work, this is really great, I'm testing webtorrent from "feross" reposity, I explained him that issue, and he told me this issue come from dlnacasts, that way I need your help to understand what's wrong... I noticed this issue is coming only when webtorrent is streaming to TV, anyway through VLC or MPV, it working well.
As I'm not really an expert about "node" codes, I'm just going to try to explain what's happening.
I'm starting "webtorrent-hybrid" as:
webtorrent-hybrid "torrent file or URL" --dlna
It's starting downloading and streaming to my tv but 15 min later stop working and let me know this into the terminal window:
DEBUG INFO: webtorrent-cli 1.8.1, webtorrent 0.98.0, node v7.2.1, darwin x64, exit 1
events.js:160
throw er; // Unhandled 'error' event
^Error: SUBSCRIBE renewal error
at ClientRequest.
(/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/upnp-device-client/index.js:234:25)
at ClientRequest.g (events.js:292:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
I forgot to tell you I'm working on Mac OS X 10.11.6, the installed node version is 7.2.1, and webtorrent seems to be 0.98.0 and webtorrent-cli 1.8.1...
I installed node through HomeBrew, and webtorrent with npm...
Any ideas? If you need further informations, just ask me, thanks..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.