# MultiShortVideo **Repository Path**: Fe26/multi-short-video ## Basic Information - **Project Name**: MultiShortVideo - **Description**: 本示例基于自适应布局和响应式布局,实现一次开发,多端部署的短视频页面。通过“三层工程架构”实现代码复用,并根据手机、折叠屏以及2in1不同的设备尺寸实现对应页面。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 26 - **Created**: 2025-04-07 - **Last Updated**: 2025-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Short Video Supporting Multi-Device Deployment ### Overview This sample implements a short video app based on the adaptive layout and responsive layout, achieving one-time development for multi-device deployment. It uses the three-layer project architecture for code reuse and tailors the pages to different device sizes such as mobile phones, foldable devices, and PC/2-in-1 devices. ### Preview ![image](screenshots/device/phone.en.png) ### How to Use Touch the share button to open the sharing dialog box. This dialog box appears as a semi-modal window on a mobile phone, a centered window on a foldable device, and a touch-following window on a tablet. ### Project Directory ``` ├──commons │ └──base/src/main/ets │ └──constants │ └──BreakpointConstants.ets // Constants ├──features │ ├──home/src/main/ets │ │ ├──constants │ │ │ └──HomeConstants.ets // Constants │ │ └──view │ │ └──Home.ets // Home page │ └──home/src/main/resources // Static resources └──products ├──entry/src/main/ets │ ├──common │ │ └──constants │ │ └──CommonConstants.ets // Common constants │ ├──entryability │ │ └──EntryAbility.ets // Entry ability │ └──pages │ └──MainPage.ets // Home page └──entry/src/main/resources // Static resources ``` ### How to Implement Use Share Kit to implement the sharing feature. ### Required Permissions N/A ### Dependencies N/A ### Constraints 1. The sample app is supported only on Huawei phones running the standard system. 2. The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. 3. The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. 4. The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release or later.