Giter Club home page Giter Club logo

jquery-network-camera's Introduction

JQuery Network Camera

npm version Build Status

This is a jQuery plugin that makes it possible to stream the feed from an open network camera onto an element on a web page. This plugin handles the process of loading the image in the background to prevent breaks and flickering from appearing in the output stream. The output of the video stream will be applied to an html canvas which will automatically change size to fill the selected element.

Options

Name type default description
url string null The url path to the streaming webcam image.
stream boolean true If the webcam image should be streamed live. If false, only an single image will be rendered.

Methods

.networkCamera(options)

Activates your content as a camera feed. Accepts an optional options object.

$('#myCamera').networkCamera({
    'url': "http://192.168.1.12/image.jpg"
});

.networkCamera('pause')

Stops the process of refreshing the current image stream.

$('#myCamera').networkCamera('pause');

.networkCamera('stream')

Starts the process of refreshing the current image stream.

$('#myCamera').networkCamera('stream');

.networkCamera('toggle')

Toggles the state of the camera stream on or off.

$('#myCamera').networkCamera('toggle');

Events

Event Type Description
pause Event triggered once the camera stream is paused.
stream Event triggered once the camera stream is started.
$('#myCamera').on('pause', function () {
  // do something...
});

Bower

You can also install this package using bower.

bower install jquery-network-camera

jquery-network-camera's People

Contributors

gunthercox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.