estherjk / edi-cam

Video streaming on Intel Edison
http://youtu.be/nVDL2-bFT3Y
MIT License
155 stars 77 forks source link

Setting up ON and OFF button #14

Closed mrcrocodile556 closed 8 years ago

mrcrocodile556 commented 8 years ago

Hi,

May i know if it is possible to create a ON and OFF button on the webpage? If it is, any guide that i can follow through?

Cheers!

estherjk commented 8 years ago

You can try adding ON / OFF buttons to the webpage and using JavaScript to play, pause, or stop the video. If you look at jsmpg.js, there are play(), pause(), and stop() functions for the client-side streamer. Take a look at the functions and see if they're able to work for you.

mrcrocodile556 commented 8 years ago

Is there any steps i can follow through online?

Unfortunately, I do not know Javascripting.

estherjk commented 8 years ago

Not sure if there will be a step-by-step guide available for this specific application. I do suggest you look through some HTML, CSS, and JavaScript tutorials, like Codecademy - HTML & CSS and Codecademy - JavaScript. I think this will be very helpful in the long term.

mrcrocodile556 commented 8 years ago

Thank you for the useful links!