# pixel-streaming-layer **Repository Path**: cpy1998/pixel-streaming-layer ## Basic Information - **Project Name**: pixel-streaming-layer - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-26 - **Last Updated**: 2024-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 介绍 该组件用于便捷地在Web端集成UE像素流送服务 ## 快速上手 ### 安装依赖包 ```shell npm i pixel-streaming-layer ``` ### 全局注册 ```vue import { createApp } from 'vue' const app = createApp(App) // 注册组件 import PixelStreamLayer from 'pixel-streaming-layer' app.use(PixelStreamLayer) // 引入样式 import 'pixel-streaming-layer/lib/pixel-streaming-layer.css' ``` ### 程序调用 ```vue ``` ## 子工程引用 ```shell git submodule add ${module_URL} ``` ## 常用指令 ### 本地运行 ```shell npm install --legacy-peer-deps npm run serve ``` ### 构建工程 ```shell npm run build ``` ### 构建NPM包 ```shell npm run build:component ``` ### 发布包 // 1.修改package.js 版本号,如 0.1.x // 2.发布指令 ```shell npm run release ``` # 开发指引 ## 步骤1 在gitlab上创建分支,比如dev_userName,将分支代码clone到本地 ## 步骤2 方法1:NPM全局引入,发布验证 ```vue import PixelStreamLayer from '../lib/pixel-streaming-layer.umd.js' import '../lib/pixel-streaming-layer.css' app.use(PixelStreamLayer) ``` 方法2:工程内全局引入,方便调试 ```vue import PixelStreamLayer from './components/index' app.use(PixelStreamLayer) ``` ## 发布版本 [UE5.1 + Vue3像素流 保姆级教程](https://zhuanlan.zhihu.com/p/636721994) [Vue3 + UE5.2 NPM包](https://zhuanlan.zhihu.com/p/635475997) [从0开始开发Vue3组件库](https://juejin.cn/post/7009212518954434573)