Table of Contents

Class PhotonSendVideoHandler

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class PhotonSendVideoHandler : RetrievableSingleton<PhotonSendVideoHandler>
Inheritance
RetrievableSingleton<PhotonSendVideoHandler>
PhotonSendVideoHandler
Inherited Members
RetrievableSingleton<PhotonSendVideoHandler>.OnRemoved()
RetrievableSingleton<PhotonSendVideoHandler>.RemoveInstance()
RetrievableSingleton<PhotonSendVideoHandler>.Instance
Extension Methods

Constructors

PhotonSendVideoHandler()

public PhotonSendVideoHandler()

Fields

BYTES_PER_CHUNK

public const int BYTES_PER_CHUNK = 30000

Field Value

int

PATH_TO_VIDEO

public string PATH_TO_VIDEO

Field Value

string

TIMER_PER_PACKAGE

public const float TIMER_PER_PACKAGE = 0.5

Field Value

float

VIDEO_EXTENSION

public readonly string VIDEO_EXTENSION

Field Value

string

m_UseSteamNetwork

public bool m_UseSteamNetwork

Field Value

bool

m_VideoChunkDic

public Dictionary<ClipID, VideoChunk> m_VideoChunkDic

Field Value

Dictionary<ClipID, VideoChunk>

m_sendChunkListenHandle

public ListenerHandle m_sendChunkListenHandle

Field Value

ListenerHandle

Methods

ClearChunksForClip(ClipID)

public void ClearChunksForClip(ClipID clipID)

Parameters

clipID ClipID

InitSendVideoHandler()

public void InitSendVideoHandler()

OnCreated()

protected override void OnCreated()

OnDestroy()

public void OnDestroy()

RecieveClipChunk(SendVideoChunkPackage)

public void RecieveClipChunk(SendVideoChunkPackage package)

Parameters

package SendVideoChunkPackage

SendVideoChunks(List<byte[]>, ClipID, VideoHandle, ContentBuffer, bool)

public IEnumerator SendVideoChunks(List<byte[]> videoChunks, ClipID clipID, VideoHandle videoID, ContentBuffer contentBuffer, bool isReRequest)

Parameters

videoChunks List<byte[]>
clipID ClipID
videoID VideoHandle
contentBuffer ContentBuffer
isReRequest bool

Returns

IEnumerator

SendVideoThroughPhoton(Clip, bool)

public IEnumerator SendVideoThroughPhoton(Clip clipToSend, bool isReRequest)

Parameters

clipToSend Clip
isReRequest bool

Returns

IEnumerator

TempSaveReceivedVideo(VideoChunk)

public void TempSaveReceivedVideo(VideoChunk chunk)

Parameters

chunk VideoChunk

Update()

public void Update()