Skip to content

Server to Client Networking System Based on Video Player

License

Notifications You must be signed in to change notification settings

kibalab/UdonPrism

Repository files navigation



🔦 PRISM NETWORK SYSTEM🔦

비디오 플레이어 기반 서버->클라이언트 네트워크 패킷 송수신 시스템
Server to Client Networking System Based on Video Player



⭐ Introdution / 소개

  • Send string data to VRChat instance in real time.
  • (BETA) Request specific data from the server with the promised EndPoint.(BETA)

📦 Require / 필요

VRChat
Unity 2019.4
VRCSDK 3.0
UDONSharp

🧰 Use / 사용

📂 Client Install (Unity/U#)

  • Please download it here -> Release
  • Import it into your Unity Project
  • Place the "Toggle" prefab
npm install prism-vrc

OR

yarn add prism-vrc

📄 Client Code Example (UdonSharp)

public class GetDataWithEvent : UdonSharpBehaviour
{
    public void Prism_Data = ""; // Variable that is received when an event occurs and updated with processed data.

    public void OnPrismReady() { return; } //Occurs when the prism system is ready.
    public void OnPrismStart() { return; } //Occurs when the Prism system receives data.
    public void OnPrismFrameChange() { return; } //Occurs when the prismatic system starts reading the next frame of the data.
    public void OnPrismFrameReadEnd() { return; } //Occurs when the Prism system has read all the current frames.
    public void OnPrismReadEnd() { return; } //Occurs when the Prism system reads all received data.


    public void OnPrismException() //Occurs when the Prism system reads all received data.
    { 
      Debug.LogError(Prism_Data); // When an exception occurs, the Prism_Data variable is updated with an exception message.
      return; 
    } 
}
using Prism;

public class GetData : UdonSharpBehaviour
{
    public DataReader DataReader;

    public override void Interact()
    {
        Debug.Log(DataReader.Data);
    }
}
import Prism from "prism-vrc";

app.get('/', async (req, res) => {
	res.writeHead(200, { 'Content-Type': 'video/mp4' });
	res.end(await Prism("Hello, world!"));
});

🎚️ Inspector


🖧 Event Behaviour Target List

  • Prism 이벤트를 사용할 스크립트는 모두 해당 리스트에 등록해 주세요
  • All scripts to use Prism Event must be registered in the appropriate list


Developer / 개발 참여

  • 🎲 Client Dev
  • 🏗 UI Design
  • 📓 Project Manage
  • 🖧 Networking
  • ✅ Q/A
  • 🎲 Server Dev
  • 🖧 Networking
  • ✅ Q/A


라이센스 / License

MIT License

About

Server to Client Networking System Based on Video Player

Resources

License

Stars

Watchers

Forks

Packages

No packages published