How tsukumijima/tvtdatabroadcastingwv2 works
Main Components
• Browser-Based UI (Web Frontend): In the “browser” folder you see the HTML, TypeScript (*.ts), webpack configuration, and package.json. This part is responsible for the browser UI that is loaded inside WebView2, and it is built using modern JavaScript/TypeScript frameworks. It also includes web-bml integration.
• External Dependencies and Runtimes:
• WebView2 Runtime: Required for rendering the web-based UI.
• Third-Party Libraries: E.g., aribb24.js (for subtitles), and other supporting libraries within the “thirdparty” directory.
• Configuration and Build Tools: Example configuration files like .github workflows (msbuild), NuGet packages, and build scripts for both the C++ and web parts.
Depicting Relationships and Interactions
• Build and Deployment Pipeline: Include the build side for each component – Visual Studio (with NuGet restoration) for the C++ project, and Yarn/Webpack for the browser component. This helps to capture key aspects of the project’s architecture and build strategy.
Architectural Patterns and Design Principles
• Separation of Concerns: Clearly show a separation between the native C++ layer (plugin logic, handling TVTest integration, and configuration) and the web-based UI layer (rendering content in WebView2).
• Modular Design: The existence of a "thirdparty" folder and the modular “browser” folder indicates adherence to modularity – meaning that each component (e.g., UI, settings dialogs, proxy handling) can be managed and updated independently.
• Interoperability and Embedding: Emphasize how the C++ component embeds a browser engine (WebView2) to delegate specific UI tasks, enabling a hybrid design that leverages both native and web technologies.
• At the left, place TVTest as the host environment.
• Within the WebView2 UI Module, include the browser’s internal modules (e.g., HTML/JS UI, the role of web-bml, and build assets such as TVTDataBroadcastingWV2.js, fonts assets display).
• Provide links indicating build or runtime dependencies (for instance, how the build system uses the GitHub workflows to manage Visual C++ build and submodule initialization for web-bml).