daspinola / video-stream-sample Goto Github PK
View Code? Open in Web Editor NEWNode.js HTML5 streaming sample
License: MIT License
Node.js HTML5 streaming sample
License: MIT License
This work perferctly on PC chrome.
But it doesn't work on iOS Chrome.
Hi
This is not an issue but a question
for real live streaming we dont want to tell the size of the file to the player , but let him continue forever ask for chunks
Do you think it is possible? if so , can you show how please?
[nodemon] 1.17.2
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node server.js
Listening on port 3000!
SyntaxError: Identifier 'head' has already been declared
Hello,
Thanks for publishing your idea of nodejs video streaming. I have just tried to play short video from my iPhone and have this message:
Error: "start" option must be <= "end" option
at new ReadStream (fs.js:1971:13)
Any idea how to fix that?
Full output from the server
Listening on port 3000!
Error: "start" option must be <= "end" option
at new ReadStream (fs.js:1971:13)
at Object.fs.createReadStream (fs.js:1931:10)
at /home/sylwester/apis/stream/server.js:26:21
at Layer.handle [as handle_request] (/home/sylwester/apis/stream/node_modules/express/lib/router/layer.js:95:5)
at next (/home/sylwester/apis/stream/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/sylwester/apis/stream/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/sylwester/apis/stream/node_modules/express/lib/router/layer.js:95:5)
at /home/sylwester/apis/stream/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/sylwester/apis/stream/node_modules/express/lib/router/index.js:335:12)
at next (/home/sylwester/apis/stream/node_modules/express/lib/router/index.js:275:10)
Error: "start" option must be <= "end" option
at new ReadStream (fs.js:1971:13)
at Object.fs.createReadStream (fs.js:1931:10)
at /home/sylwester/apis/stream/server.js:26:21
at Layer.handle [as handle_request] (/home/sylwester/apis/stream/node_modules/express/lib/router/layer.js:95:5)
at next (/home/sylwester/apis/stream/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/sylwester/apis/stream/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/sylwester/apis/stream/node_modules/express/lib/router/layer.js:95:5)
at /home/sylwester/apis/stream/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/sylwester/apis/stream/node_modules/express/lib/router/index.js:335:12)
at next (/home/sylwester/apis/stream/node_modules/express/lib/router/index.js:275:10)
When you add it to a remote server outside the LAN the audio does not work.
I want to have the ability to have multiple videos in the asset directory and instead of a start/stop button, I would like to have Previous & Next buttons. Or, since I would only have 5 videos in the assets folder, maybe a button for each video? Maybe have the buttons for each video across the bottom (row) or down either side (column). Also, would there be a way to set the size of the video container? Like declaring a static height and width so it doesn't change to the default of each video?
sorry for all the questions, but this is a very cool and I am quite a newbie to this type of code.
(having mainly js with css is my only real experience. The HTML snippet confused me a bit ๐ค
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.