FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Networking.Camera.ClientCameraBroadcaster Class Reference

Manages the broadcasting of camera data from the client to the server. More...

Inheritance diagram for FMAR.Networking.Camera.ClientCameraBroadcaster:
FMAR.Networking.FmarClientComponent

Public Member Functions

void Awake ()
 
override void OnNetworkSpawn ()
 Subscribes to camera data capture events if the client is the owner and conditions are met.
 
void ClientSendImageToServer (byte[] image, int width, int height)
 Sends compressed image data to the server in chunks, ensuring it adheres to the maximum processing frequency.
 
- Public Member Functions inherited from FMAR.Networking.FmarClientComponent
void Init (FmarClient client)
 

Additional Inherited Members

- Protected Attributes inherited from FMAR.Networking.FmarClientComponent
FmarClient client
 
- Properties inherited from FMAR.Networking.FmarClientComponent
FmarClient Client [get]
 

Detailed Description

Manages the broadcasting of camera data from the client to the server.

Member Function Documentation

◆ Awake()

void FMAR.Networking.Camera.ClientCameraBroadcaster.Awake ( )
inline

◆ ClientSendImageToServer()

void FMAR.Networking.Camera.ClientCameraBroadcaster.ClientSendImageToServer ( byte[] image,
int width,
int height )
inline

Sends compressed image data to the server in chunks, ensuring it adheres to the maximum processing frequency.

Parameters
imageThe image data to send.
widthThe width of the image.
heightThe height of the image.

◆ OnNetworkSpawn()

override void FMAR.Networking.Camera.ClientCameraBroadcaster.OnNetworkSpawn ( )
inline

Subscribes to camera data capture events if the client is the owner and conditions are met.


The documentation for this class was generated from the following file: