Alex X
d3bc18c369
Logs refactoring after #780
2023-12-11 18:07:38 +03:00
Sergey Krashevich
ab47d5718f
Refactor log handling and add UI auto-update toggle
...
This commit refactors the log handling in the API to use a switch statement for improved readability and maintainability. It also introduces error messages with more context when reading or truncating the log file fails.
On the frontend, a new auto-update toggle button has been added to the log viewer, allowing users to enable or disable automatic log updates. The button's appearance changes based on its state, providing a clear visual indication of whether auto-update is active. Additionally, the button styling has been updated to ensure consistency across the interface.
2023-11-28 22:55:50 +03:00
Sergey Krashevich
8d382afa0f
Add log file handling and viewing capabilities
...
This commit introduces the ability to handle log files through the API and
provides a new log viewing page. The API now supports GET and DELETE methods
for log file operations, allowing retrieval and deletion of log contents.
A new log.html page has been added for viewing logs in the browser, with
automatic refresh every 5 seconds and styling based on log levels.
The app.go file has been updated to include a GetLogFilepath function that
retrieves or generates the log file path. The NewLogger function now accepts
a file parameter to enable file logging. The main.js file has been updated
to include a link to the new log.html page.
This enhancement improves the observability and management of the application
by providing real-time access to logs and the ability to clear them directly
from the web interface.
2023-11-26 23:21:57 +03:00
Alex X
9bda2f7e60
Add support gopro source
2023-11-15 11:41:42 +03:00
Alex X
05accb4555
Add support media config param for JS player
2023-10-14 11:41:45 +03:00
Alex X
f949a278da
Fix HLS JS error on latest iOS
2023-10-14 11:40:49 +03:00
Alex X
bbe6ae0059
Update publish RTMP examples
2023-10-11 06:58:17 +03:00
Alex X
9a2e9dd6d1
Add support /api/restart #652
2023-10-09 17:12:25 +03:00
Alex X
b252fcaaa1
Code refactoring after #661
2023-10-05 17:31:59 +03:00
Sergey Krashevich
f27f7d28bb
Update editor.html
2023-09-30 12:38:31 +03:00
Alex X
037970a4ea
Add support ManagedMediaSource for Safari 17
2023-09-26 13:25:50 +03:00
Alex X
02bde2c8b7
Add RTMP publish to WebUI
2023-09-17 20:39:31 +03:00
Alexey Khit
064ffef462
Add check config changes during WebUI
2023-09-04 12:05:17 +03:00
Alexey Khit
d87cc9ddb6
Fix homekit pairing table
2023-09-02 09:14:09 +03:00
Alexey Khit
9f404d965f
Rewrite HomeKit pairing API
2023-09-01 22:48:06 +03:00
Alexey Khit
69da64a49c
Rename streams to sources in the discovery API
2023-09-01 10:17:58 +03:00
Sergey Krashevich
9f14b30aae
Refactor CSS in editor.html for better readability and remove duplicate body rule
2023-08-23 17:24:17 +03:00
Sergey Krashevich
6f5ba2ade6
Update ace library version to 1.24.1 and fix code syntax in editor.html
2023-08-23 12:59:05 +03:00
Alexey Khit
5fbec487e2
Add ffplay to links page
2023-08-14 06:49:37 +03:00
Alexey Khit
4baa3f5588
Fix rare error with ws.close()
2023-08-04 16:31:13 +04:00
Alexey Khit
922587ed2e
Fix WebUI background color for dark mode browser
2023-07-24 21:57:10 +03:00
Alexey Khit
9fd40467f2
Update codecs detection for Safari browsers
2023-07-13 16:16:37 +03:00
Alexey Khit
39c25215ba
Update readme
2023-07-11 15:03:27 +03:00
Alexey Khit
b5d40caffc
Update version to 1.6.0
2023-07-11 07:48:51 +03:00
Alexey Khit
52a4fc329c
Clear html video resources on disconnect
2023-07-08 09:31:05 +03:00
Alexey Khit
ce61d5759c
Fix html video autoplay in some cases
2023-07-08 09:30:41 +03:00
Alexey Khit
39cc4610e3
Add ESLinter and fix JS lint problems
2023-07-08 09:30:02 +03:00
Alexey Khit
51b494b193
Add support webrtc/tcp mode to video player
2023-07-06 15:02:39 +03:00
Alexey Khit
fd3b3c9bf1
Replace MP4 stream mode to HLS mode
2023-07-06 15:02:39 +03:00
Alexey Khit
37abe2ce0d
Code refactoring after #274
2023-06-29 22:08:17 +03:00
Alexey Khit
1c3835f2a8
Merge pull request #274 from skrashevich/fix-exit-code-on-config-save
2023-06-29 22:04:08 +03:00
Alexey Khit
e4c7ffd1b4
Code refactoring after #462
2023-06-29 17:17:45 +03:00
Alexey Khit
d31cf5521b
Merge pull request #462 from dbuezas/dvrip/discovery
2023-06-29 17:14:09 +03:00
Alexey Khit
4f97e119ac
Update selectall checkbox on index page
2023-06-16 15:18:22 +03:00
Vipas-ana
11201790d2
Update index.html
...
Don't add blank "src" because of the checked "selectall" box.
2023-06-07 10:04:00 -04:00
David Buezas
75818d6967
Add dvrip discovery
2023-06-04 02:25:22 +02:00
Alexey Khit
e29307125c
Add Nest source for WebRTC cameras
2023-05-20 06:28:33 +03:00
Alexey Khit
2e8be342ef
Rework FFmpeg hardware support
2023-05-04 01:24:37 +03:00
Alexey Khit
5387e88fe3
Rework FFmpeg devices support
2023-05-04 00:03:01 +03:00
Alexey Khit
4d53889519
Improve support ONVIF client
2023-05-03 08:02:56 +03:00
Alexey Khit
1e14dc9ab2
Add ONVIF client and server support
2023-04-29 15:12:59 +03:00
Alexey Khit
5939c8acba
Update MP4 links query
2023-04-20 21:47:28 +03:00
Alexey Khit
7452eb5e05
Add support FLAC codec to MP4/MSE
2023-04-20 21:32:46 +03:00
Alex X
ae99c1da03
Merge pull request #273 from skrashevich/fix-urlencoding-in-delete-request
...
Fix double url-encoding in streams DELETE request
2023-03-26 11:15:51 +03:00
Alexey Khit
2d5a0e4822
Update webrtc section in the links.html page
2023-03-20 06:16:57 +03:00
Alexey Khit
d84efd1238
Add WebTorrent shares to add.html page
2023-03-19 17:17:05 +03:00
Alexey Khit
43840576ea
Add selectall checkbox
2023-03-19 17:17:05 +03:00
Alexey Khit
bd79b24db3
Add "add" html page
2023-03-19 17:17:05 +03:00
Alexey Khit
12a7b96289
BIG core logic rewrite
2023-03-19 17:17:05 +03:00
Alexey Khit
d4d91e4920
Update support sendrecv medias for WebRTC
2023-03-19 17:17:05 +03:00