diff --git a/plugins/hal-nvr/build.gradle b/plugins/hal-nvr/build.gradle new file mode 100644 index 00000000..20085bc1 --- /dev/null +++ b/plugins/hal-nvr/build.gradle @@ -0,0 +1,12 @@ +repositories { + maven { + url 'https://jitpack.io' // Needed for ffmpeg4j project + } +} + +dependencies { + implementation project(':hal-core') + + implementation 'com.github.Manevolent:ffmpeg4j:4.1-1.4.4-2' // https://github.com/Manevolent/ffmpeg4j + //implementation 'net.bramp.ffmpeg:ffmpeg:0.6.2' // https://github.com/bramp/ffmpeg-cli-wrapper +} diff --git a/plugins/hal-nvr/resource/resource/web/camera_config.tmpl b/plugins/hal-nvr/resource/resource/web/camera_config.tmpl new file mode 100644 index 00000000..f82fd508 --- /dev/null +++ b/plugins/hal-nvr/resource/resource/web/camera_config.tmpl @@ -0,0 +1,123 @@ +
This is a list of cameras connected to this node.
+ +| Name | +Type | +Configuration | ++ + | + + {{#cameras}} +
|---|---|---|---|
| {{.getName()}} | +{{.getType()}} | +{{.getDeviceConfig()}} | ++ + | +
| Camera ID: | +{{camera.getId()}} | +
|---|---|
| Name: | +{{camera.getName()}} | +
| Type: | +{{camera.getDeviceData().getClass().getSimpleName()}} | +
| Owner: | +{{camera.getUser().getUsername()}} | +
| {{.getNiceName()}}: | +{{.getString()}} | +
| Name | +Type | +Data | +Last Update | + + {{#cameras}} +
|---|---|---|---|
| {{.getName()}} | +{{.getDeviceConfig().getClass().getSimpleName()}} | +{{.getDeviceData()}} | ++ |