Code Monkey home page Code Monkey logo

video-stream-sample's People

Contributors

daspinola avatar duzun avatar mattbeachey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

video-stream-sample's Issues

Question

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?

Doesn't work

[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

ReadStream - Error: "start" option must be <= "end" option

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)

Video file is not divided to parts

Hi Diogo! Could you explain me:

  • why video file is not divided to parts?
  • why range is "bytes=0-" ?
  • if code works right, how can I create more part of the video?

Thank you!
Screenshot 2020-04-11 at 09 35 01

multiple videos...

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 ๐Ÿค”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.