Skip to content

Commit

Permalink
Merge all digital-ptz code into a single file
Browse files Browse the repository at this point in the history
Also, don't prevent event default behaviour (e.g scroll) unless the interaction had an effect on ptz.
  • Loading branch information
dbuezas committed Jun 18, 2023
1 parent dc75e79 commit 49cac43
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 289 deletions.
2 changes: 1 addition & 1 deletion custom_components/webrtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
async def async_setup(hass: HomeAssistantType, config: ConfigType):
# 1. Serve lovelace card
path = Path(__file__).parent / "www"
for name in ("video-rtc.js", "webrtc-camera.js", "digital-ptz.js", "ditigal-ptz-transform.js", "digital-ptz-gestures.js"):
for name in ("video-rtc.js", "webrtc-camera.js", "digital-ptz.js"):
utils.register_static_path(
hass.http.app, "/webrtc/" + name, path / name)

Expand Down
150 changes: 0 additions & 150 deletions custom_components/webrtc/www/digital-ptz-gestures.js

This file was deleted.

Loading

0 comments on commit 49cac43

Please sign in to comment.