1.1.56 • Published 5 months ago

@omniview/cameras-sdk v1.1.56

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 months ago

Omniview Cameras SDK

Cameras SDK is a library for managament all cameras types includes in Omniview Platform

Installation

Use the package manager npm to install Cameras SDK.

npm i @omniview/cameras-sdk

Usage

Initialization

import { Camera } from '@omniview/cameras-sdk';

let omniviewCamera = new Camera('camera_manager', {
    cameraId: `${id}`,
    token: `${token}`,
    htmlElement: `${container}`, // can be a class selector or DOM Object
    apiUrl: `${apiUrl}`,
});

Live Video

omniviewCamera.buildPlayer();

Recorded Video

omniviewCamera.buildPlayer('historical', `2022-08-05 03:53:58`, `2022-08-05 05:52:58`);

Options

cameraId

Description:

It's the id for camera that you want watch live video or recorded video

Type: String

Required: true

Default: undefined

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    cameraId: `${id}`,
    ...
})

token

Description:

It's the token provided from the API of Omniview

Type: String

Required: true

Default: undefined

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    token: `${token}`,
    ...
})

htmlElement

Description:

It could be an string query selector or DOM object

Type: String | DOM Object

Required: true

Default: undefined

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    htmlElement: `.container`,
    ...
})

nameSufix

Description:

It's a text that attaches after of name of the camera

Type: String

Required: false

Default:

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    htmlElement: `.container`,
    ...
})

mode

Description:

It's for bind this SDK with timeline SDK, it could be timeline or default

Type: String

Required: false

Default: default

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    mode: `timeline`,
    ...
})

groupId

Description:

It's unique identifier for timeline SDK

Type: String

Required: true if mode is timeline

Default:

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    groupId: `ee30a647-4b65-4a75-9f47-289d1d63e593`,
    ...
})

style

Description:

Allow two styles for video element, it could be design float or fixed for bottom an top tools

Type: String

Required: false

Default: float

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    style: `float`,
    ...
})

debugMode

Description:

Allow to show debug messages in browser console. You may set the log level info, error or both info|error

Type: String

Required: false

Default: ''

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    debugMode: `info|error`,
    ...
})

capabilities

Description:

It defines which capabilities would be used

Type: Object

Required: false

Default: {}

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    capabilities: {
        closeBtn: false
    },
    ...
})

List of capabilities

liveBtn

Description:

Show live video button

Type: boolean

Required: false

Default: false

reloadBtn

Description:

Show reload button

Type: boolean

Required: false

Default: false

speedBtns

Description:

Show speed buttons

Type: boolean

Required: false

Default: true

snapshotBtn

Description:

Show snapshot button

Type: boolean

Required: false

Default: false

dateRangeBtn

Description:

Show date range button

Type: boolean

Required: false

Default: false

closeBtn

Description:

Show close button

Type: boolean

Required: false

Default: false

downloadBtn

Description:

Show download button

Type: boolean

Required: false

Default: false

Time zone option

Description:

Allows to set the time zone for the live cameras timestamp.

Type: String

Required: false

Default: 'Etc/GMT+6'

import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    tz: 'Etc/GMT+6',
    ...
})

Time zones list

i18n option

Allows to set the language for the interface.

Type: String

Required: false

Default: 'en'

Available options:

  • en (English)
  • es (Spanish)
  • pt (Portuguese)
import { Camera } from "@omniview/cameras-sdk"

let omniviewCamera = new Camera('camera_manager', {
    locale: 'en',
    ...
})

Changelog

v1.1.32

  • add: support for luxriot cameras (live video only)

v1.1.31

  • add: facial recognition enrollment feature
  • minor fixes

v1.1.30

  • update: improve timeline mode
  • minor fixes

v1.1.29

  • update: default timezone Etc/GMT+6

v1.1.28

  • feature: support for rtsp streams

v1.1.27

  • minor fix

v1.1.26

  • update: ptz widget visible in fullscreen
  • improved error messages in error cases

v1.1.25

  • update: show timeline options even if no recordings found
  • minor fixes

v1.1.24

  • feat: support for i18n
  • minor fixes

v1.1.23

  • feat: support for WebRTC in VXG
  • update: update ptz controls ui

v1.1.22

  • feat: ptz controls

v1.1.21

  • feat: set video speed from timeline

v1.1.20

  • feat: allow create video tags from video

v1.1.19

  • feat: timezone option

v1.1.18

  • feat: support for download videos in vms type

v1.1.17

  • fix: minor errors

v1.1.16

  • fix: minor error with recording for body cam type

v1.1.15

  • fix: video shaking when hidden loading

v1.1.14

  • fix: minor errors

v1.1.13

  • fix: minor errors

v1.1.12

  • fix: minor errors

v1.1.11

  • fix: minor errors

v1.1.10

  • fix: issue with een cameras

v1.1.9

  • fix: timeline mode issues
  • fix: issue with workers in download stream

v1.1.8

  • fix: minor ui fixes
  • feat: add debug mode option

v1.1.7

fix: minor fixes

v1.1.6

feat: add support to configure download video to add a watermark fix: download videos issue fix: minor style issues

v1.1.5

update: set name and timestamp like a watermark in video element

v1.1.4

fix: minor fixes

v1.1.3

feat: buttons to sync camera with timeline

v1.1.2

fix: minor fixes

v1.1.1

add: improvements in timeline SDK implementation

v1.1.0

add: integration with timeline SDK add: design float or fixed for bottom an top tools

v1.0.9

fix: dewrap bugs

v1.0.8

fix: styling errors

v1.0.7

fix: minor errors

v1.0.6

add: dewrap for body cams

v1.0.5

fix: minor error with menu of options

v1.0.4

fix: show camera details above video component

v1.0.3

Fixed header and control bar

v1.0.2

fix: live video vms reload each five minutes

v1.0.1

add: recording button with event emit

v1.0.0

fix: permissions by camera add: options capabilities from instace sdk

v0.0.10

fix: modals errors

v0.0.9

fix: acls and modal calendar

v0.0.8

fix: video recording for vxg cameras add: acl's library add: show error when doesn't have recording vms video fix: error message for vxg cameras when not there recording

v0.0.7

add: show errors in video container

v0.0.6

Fix: minor errors

v0.0.5

Fix: video recording for vms type

v0.0.4

Add: show cuts in record video Fix: when recording video has cuts only show the first slice of video Fix: tooltip seek bar isn't visible Add: video dowload for camera manager types

v0.0.3

Add: video recorded for camera manager type \ Fix: auto ajust for video component \ Update: Styling

v0.0.2

Add: api url as input field

v0.0.1

First version for testing

1.1.57-beta.16

5 months ago

1.1.57-beta.15

5 months ago

1.1.57-beta.14

5 months ago

1.1.57-beta.13

5 months ago

1.1.57-beta.12

5 months ago

1.1.57-beta.11

5 months ago

1.1.57-beta.10

5 months ago

1.1.57-beta.8

5 months ago

1.1.57-beta.7

5 months ago

1.1.57-beta.6

5 months ago

1.1.57-beta.5

5 months ago

1.1.57-beta.9

5 months ago

1.1.57-beta.4

5 months ago

1.1.57-beta.3

5 months ago

1.1.57-beta.2

5 months ago

1.1.57-beta.1

5 months ago

1.1.57-beta.0

5 months ago

1.1.55-beta.0

6 months ago

1.1.55-beta.2

6 months ago

1.1.55-beta.1

6 months ago

1.1.48-beta.1

8 months ago

1.1.48-beta.0

9 months ago

1.1.41

10 months ago

1.1.45

9 months ago

1.1.44

10 months ago

1.1.43

10 months ago

1.1.42

10 months ago

1.1.49

8 months ago

1.1.48

8 months ago

1.1.47

9 months ago

1.1.46

9 months ago

1.1.52-beta.0

7 months ago

1.1.52-beta.1

7 months ago

1.1.50-beta.0

8 months ago

1.1.52-beta.2

7 months ago

1.1.52-beta.3

7 months ago

1.1.52

7 months ago

1.1.51

8 months ago

1.1.50

8 months ago

1.1.56

6 months ago

1.1.55

6 months ago

1.1.54

6 months ago

1.1.53

6 months ago

1.1.40

11 months ago

1.1.37-beta.0

12 months ago

1.1.34

12 months ago

1.1.33

12 months ago

1.1.38

11 months ago

1.1.37

11 months ago

1.1.36

12 months ago

1.1.35

12 months ago

1.1.39

11 months ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.30

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.32-beta.1

1 year ago

1.1.32-beta.0

1 year ago

1.1.27

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.9

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.17

2 years ago

1.1.1

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.10

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago