Embed video Live View settings, app type/layout fields, complete translations #3

Merged
ClaudeAI merged 5 commits from feature/eve-live-columns into master 55 minutes ago
ClaudeAI commented 4 hours ago
Collaborator

Summary

Web UI side of the embedded MediaMTX work in la_mojo (companion PR in dr_frucht, branch feature/embed-video-webrtc), plus application settings and language files.

Embed Video Encoder module

  • New Live View tab with these settings: mode (off / camera stream / processed video with overlays), WebRTC port, bitrate, fps, ICE servers, recording on/off and segment length.
  • lib/upgrade_database.php adds the module_eve.live_* columns to existing databases.
  • The module settings Save button works. It uses the new lib/controller/updateServerModuleSettings.php (module type 8, values clamped).
  • Logo upload: the new lib/controller/uploadAsset.php converts the image to an RGBA PNG under data/assets/images/<md5>.png and stores the md5.
  • Overlay positions accept negative values, measured from the right/bottom edge. The line type is a combo (normal / thin / antialiased). Hints explain both.
  • Module removal uses the real module type ids and checks that the table exists.

Application Settings, Working Mode tab

  • Two numeric fields:
    • system_props.type, saved via new operation 14
    • system_props.app_layout, saved via existing operation 2
  • Negatives are stored as 0, and an emptied field is not saved.
  • Generic labels for now: "Application Type" / "Application Layout" (_APP_TYPE_, _APP_LAYOUT_).

Languages

  • 1.json: 84 English labels corrected (grammar, typos, ONVIF/Kafka/YOLO spelling, full sentences).
  • 2.json to 7.json: complete translations, with the same 664 keys as 1.json:
    • 2 Russian
    • 3 Hebrew
    • 4 French
    • 5 Japanese
    • 6 Simplified Chinese
    • 7 Romanian
  • No ASCII quotes or backslashes in any value, so label output stays valid JavaScript. Hebrew uses its own punctuation marks and French uses typographic apostrophes and quotes.
  • lib/defines.php: language 6 is now named 简体中文.

Testing

  • php -l on all changed PHP files.
  • All language files decode with PHP json_decode. Every label passed through the GetLabel escaping parses as a JS string.
  • Application Settings content rendered in all 7 languages and evaluated: the new fields show the DB values, and operations 14 and 2 update system_props.
  • Embed video settings tested end to end with la_mojo: save, live view, logo upload and module removal.

Notes

  • The translations are machine-made and have not been reviewed by native speakers.

Generated with Claude Code

https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16

## Summary Web UI side of the embedded MediaMTX work in la_mojo (companion PR in dr_frucht, branch `feature/embed-video-webrtc`), plus application settings and language files. **Embed Video Encoder module** - New **Live View** tab with these settings: mode (off / camera stream / processed video with overlays), WebRTC port, bitrate, fps, ICE servers, recording on/off and segment length. - `lib/upgrade_database.php` adds the `module_eve.live_*` columns to existing databases. - The module settings **Save** button works. It uses the new `lib/controller/updateServerModuleSettings.php` (module type 8, values clamped). - Logo upload: the new `lib/controller/uploadAsset.php` converts the image to an RGBA PNG under `data/assets/images/<md5>.png` and stores the md5. - Overlay positions accept negative values, measured from the right/bottom edge. The line type is a combo (normal / thin / antialiased). Hints explain both. - Module removal uses the real module type ids and checks that the table exists. **Application Settings, Working Mode tab** - Two numeric fields: - `system_props.type`, saved via new operation 14 - `system_props.app_layout`, saved via existing operation 2 - Negatives are stored as 0, and an emptied field is not saved. - Generic labels for now: "Application Type" / "Application Layout" (`_APP_TYPE_`, `_APP_LAYOUT_`). **Languages** - `1.json`: 84 English labels corrected (grammar, typos, ONVIF/Kafka/YOLO spelling, full sentences). - `2.json` to `7.json`: complete translations, with the same 664 keys as `1.json`: - 2 Russian - 3 Hebrew - 4 French - 5 Japanese - 6 Simplified Chinese - 7 Romanian - No ASCII quotes or backslashes in any value, so label output stays valid JavaScript. Hebrew uses its own punctuation marks and French uses typographic apostrophes and quotes. - `lib/defines.php`: language 6 is now named 简体中文. ## Testing - `php -l` on all changed PHP files. - All language files decode with PHP `json_decode`. Every label passed through the `GetLabel` escaping parses as a JS string. - Application Settings content rendered in all 7 languages and evaluated: the new fields show the DB values, and operations 14 and 2 update `system_props`. - Embed video settings tested end to end with la_mojo: save, live view, logo upload and module removal. ## Notes - The translations are machine-made and have not been reviewed by native speakers. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
ClaudeAI added 5 commits 4 hours ago
24aa170a8b
upgrade_database.php: add module_eve live_* columns for embedded MediaMTX
07b8cdbe5a
Embed Video Encoder: Live View settings for the embedded MediaMTX
1be406d693
Embed Video Encoder settings: working Save, logo upload, module removal
dcb2ec3cf5
Add app type/layout fields; proofread English and complete translations
bc446ec8b6
Restore CRLF line endings on files that use them in master
ClaudeAI merged commit e7a983b968 into master 55 minutes ago
The pull request has been merged as e7a983b968.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.