Giter Club home page Giter Club logo

pixel-streaming-layer's Introduction

介绍

该组件用于便捷地在Web端集成UE像素流送服务

快速上手

安装依赖包

npm i pixel-streaming-layer

全局注册

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'

程序调用

<!--serverURL为服务流地址, isDebug=true时开启调试模式-->
<pixel-stream-layer :serverUrl="serverURL"  is-debug/>

子工程引用

git submodule add  ${module_URL}

常用指令

本地运行

npm install --legacy-peer-deps
npm run serve

构建工程

npm run build

构建NPM包

npm run build:component

发布包

// 1.修改package.js 版本号,如 0.1.x // 2.发布指令

npm run release

开发指引

步骤1

在gitlab上创建分支,比如dev_userName,将分支代码clone到本地

步骤2

方法1:NPM全局引入,发布验证

import PixelStreamLayer from '../lib/pixel-streaming-layer.umd.js'
import '../lib/pixel-streaming-layer.css'
app.use(PixelStreamLayer)

方法2:工程内全局引入,方便调试

import PixelStreamLayer from './components/index'
app.use(PixelStreamLayer)

发布版本

UE5.1 + Vue3像素流 保姆级教程

Vue3 + UE5.2 NPM包

从0开始开发Vue3组件库

pixel-streaming-layer's People

Contributors

gyrate avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

molingyu123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.