catdad / localcast Goto Github PK
View Code? Open in Web Editor NEW:tv: send local videos to Chromecast - but maybe don't use it
:tv: send local videos to Chromecast - but maybe don't use it
When I leave the server running for a while -- often putting the computer to sleep and waking it back later -- I get an error. This seems to be new to the latest servercast feature, though I am not sure the error is related.
Error: write EOF
at _errnoException (util.js:1024:11)
at WriteWrap.afterWrite [as oncomplete] (net.js:870:14)
Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TLSWrap.onread (net.js:618:25) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read'
D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\media.js:88
data.mediaSessionId = this.currentSession.mediaSessionId;
^
TypeError: Cannot read property 'mediaSessionId' of null
at fn.MediaController.sessionRequest (D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\media.js:88:45)
at fn.MediaController.stop (D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\media.js:107:8)
at DefaultMediaReceiver.stop (D:\Git\chromecasts\node_modules\castv2-client\lib\senders\default-media-receiver.js:42:19)
at D:\Git\chromecasts\index.js:200:11
at apply (D:\Git\chromecasts\node_modules\thunky\index.js:16:28)
at D:\Git\chromecasts\node_modules\thunky\index.js:20:25
at ready (D:\Git\chromecasts\index.js:108:11)
at PlatformSender.join (D:\Git\chromecasts\node_modules\castv2-client\lib\senders\platform.js:88:3)
at D:\Git\chromecasts\node_modules\castv2-client\lib\senders\platform.js:102:10
at D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\receiver.js:53:5
server exited with code 1
(node:10500) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.
Steps:
This is happening in Node 8.
controls:seek-end
Or use these: https://material.io/tools/icons/?style=twotone
express deprecated res.sendfile: Use res.sendFile instead server\app.js:52:9
it has not worked for a very long time... I don't think it's a useful feature for now.
Steps:
You should immediately get an error that the device is not found. Controls still seem to work. No videos will play after that until the server is restarted.
D:\Node\cast\node_modules\node-ssdp\lib\index.js:189
throw e
^
Error: addMembership EHOSTUNREACH
at Socket.addMembership (dgram.js:581:11)
at addMembership (D:\Node\cast\node_modules\node-ssdp\lib\index.js:182:19)
at Socket.onSocketListening (D:\Node\cast\node_modules\node-ssdp\lib\index.js:178:5)
at Socket.emit (events.js:187:15)
at startListening (dgram.js:128:10)
at state.handle.lookup (dgram.js:249:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
relates to #23
When loading the UI on a remote device, the image does not appear sometimes. The loader remains infinitely. You need to press back and then open the video again to get to the play button.
This kind of stuff happens if trying to pause/resume/seek after a server restart:
data.mediaSessionId = this.currentSession.mediaSessionId;
^
TypeError: Cannot read property 'mediaSessionId' of null
at fn.MediaController.sessionRequest (D:\Node\cast\node_modules\castv2-client\lib\controllers\media.js:88:45)
at fn.MediaController.seek (D:\Node\cast\node_modules\castv2-client\lib\controllers\media.js:116:8)
at DefaultMediaReceiver.seek (D:\Node\cast\node_modules\castv2-client\lib\senders\default-media-receiver.js:46:19)
at D:\Node\cast\node_modules\chromecasts\index.js:233:11
at apply (D:\Node\cast\node_modules\thunky\index.js:16:28)
at D:\Node\cast\node_modules\thunky\index.js:20:25
at ready (D:\Node\cast\node_modules\chromecasts\index.js:94:11)
at PlatformSender.join (D:\Node\cast\node_modules\castv2-client\lib\senders\platform.js:88:3)
at D:\Node\cast\node_modules\chromecasts\index.js:75:20
at D:\Node\cast\node_modules\castv2-client\lib\controllers\receiver.js:86:5
It should be possible to call status
when this happens to reconnect to the currently-playing session.
D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\media.js:88
data.mediaSessionId = this.currentSession.mediaSessionId;
^
TypeError: Cannot read property 'mediaSessionId' of null
at fn.MediaController.sessionRequest (D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\media.js:88:45)
at fn.MediaController.stop (D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\media.js:107:8)
at DefaultMediaReceiver.stop (D:\Git\chromecasts\node_modules\castv2-client\lib\senders\default-media-receiver.js:42:19)
at D:\Git\chromecasts\index.js:200:11
at apply (D:\Git\chromecasts\node_modules\thunky\index.js:16:28)
at D:\Git\chromecasts\node_modules\thunky\index.js:20:25
at ready (D:\Git\chromecasts\index.js:108:11)
at PlatformSender.join (D:\Git\chromecasts\node_modules\castv2-client\lib\senders\platform.js:88:3)
at D:\Git\chromecasts\node_modules\castv2-client\lib\senders\platform.js:102:10
at D:\Git\chromecasts\node_modules\castv2-client\lib\controllers\receiver.js:53:5
30-second skip buttons
[Deprecation] Using the Presentation API on insecure origins is deprecated and will be removed in M68. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
Steps:
Expected result: goes out of the folder and back to the main view.
Actual result: stays in the folder. It will exit to the main view on the next back click.
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.