Nuclide
Software Development Kit for id Technology (BETA)
ncUserEntity_Video Class Reference

About this class

Shared: User Placed/Controlled Video.

An in-world video stream that has been placed down by a player.

For remote video sources, it currently relies on the ffmpeg plugin for FTEQW to be installed. Local videos work fine, as long as they're in the RoQ format.

Inheritance diagram for ncUserEntity_Video:
ncUserEntity

Public Member Functions

void ncUserEntity_Video (void)
 
virtual void Spawned (void)
 Called when the entity is fully initialized. More...
 
virtual void EvaluateEntity (void)
 Run each tic after physics are run to determine if we need to send updates over the network. More...
 
virtual float SendEntity (entity ePEnt, float flChanged)
 Called by the engine whenever we need to send a client an update about this entity. More...
 
nonvirtual void Stop (void)
 
nonvirtual void Place (ncPlayer videoSharer, string videoName, string videoTitle, string videoPreview, string videoURL, string audioURL)
 
virtual void ReceiveEntity (float flNew, float flChanged)
 Client: Handles network updates from the server for the associated entity. More...
 

Constructor & Destructor Documentation

◆ ncUserEntity_Video()

void ncUserEntity_Video::ncUserEntity_Video ( void  )

Member Function Documentation

◆ EvaluateEntity()

void ncUserEntity_Video::EvaluateEntity ( void  )
virtual

Run each tic after physics are run to determine if we need to send updates over the network.

Reimplemented from ncMediaSurface.

◆ Place()

void ncUserEntity_Video::Place ( ncPlayer  videoSharer,
string  videoName,
string  videoTitle,
string  videoPreview,
string  videoURL,
string  audioURL 
)

◆ ReceiveEntity()

void ncUserEntity_Video::ReceiveEntity ( float  flNew,
float  flChanged 
)
virtual

Client: Handles network updates from the server for the associated entity.

Reimplemented from ncMediaSurface.

◆ SendEntity()

float ncUserEntity_Video::SendEntity ( entity  ,
float   
)
virtual

Called by the engine whenever we need to send a client an update about this entity.

Reimplemented from ncMediaSurface.

◆ Spawned()

void ncUserEntity_Video::Spawned ( void  )
virtual

Called when the entity is fully initialized.

Any spawn key/value info pairs have already been dealt with. So now we can make full decisions on the entity. Always make sure to call super::Spawned(); inside your method when overriding.

Reimplemented from ncUserEntity.

◆ Stop()

void ncUserEntity_Video::Stop ( void  )

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