Inheritance diagram for LightShaft.Scripts.YoutubeSettings:
LightShaft.Scripts.YoutubePlayer

Classes

class  Html5PlayerResult
 

Public Types

enum  YoutubeVideoQuality {
  YoutubeVideoQuality.STANDARD, YoutubeVideoQuality.HD, YoutubeVideoQuality.FULLHD, YoutubeVideoQuality.UHD1440,
  YoutubeVideoQuality.UHD2160
}
 
enum  VideoFormatType { VideoFormatType.MP4, VideoFormatType.WEBM }
 
enum  Layout3D { Layout3D.SideBySide, Layout3D.OverUnder, Layout3D.EAC }
 

Public Member Functions

void YoutubeGeneratorSys (string _videoUrl, string _formatCode)
 
void OnYoutubeError (string errorType)
 
virtual void Start ()
 
void DisableThumbnailObject ()
 
void EnableThumbnailObject ()
 
void ShowLoading ()
 
void HideLoading ()
 
void DecryptAudioDone (string url)
 
void DecryptVideoDone (string url)
 
IEnumerator DelayPlay ()
 
int GetMaxQualitySupportedByDevice ()
 
void Pause ()
 
void Seek (float time)
 
void Stop ()
 
void DecryptDownloadUrl (string encryptedUrlVideo, string encrytedUrlAudio, string html, bool videoOnly)
 
void ReadyForExtract (string r, bool audioExtract)
 
void WebGlGetVideo (string url)
 
IEnumerator WebGlRequest (Action< string > callback, string id, string host)
 
void TrySkip (PointerEventData eventData)
 
void SkipToPercent (float pct)
 
virtual void Play ()
 
void ChacheSystem ()
 

Static Public Member Functions

static bool TryNormalizeYoutubeUrl (string url, out string normalizedUrl)
 
static void WriteLog (string filename, string c)
 

Public Attributes

YoutubeVideoController _controller
 
YoutubeVideoEvents _events
 
string youtubeUrl
 
YoutubeVideoQuality videoQuality
 
bool is360
 
bool autoPlayOnStart = true
 
bool startFromSecond = false
 
int startFromSecondTime = 0
 
bool showThumbnailBeforeVideoLoad = false
 
Renderer thumbnailObject
 
bool customPlaylist = false
 
bool autoPlayNextVideo
 
string [] youtubeUrls
 
VideoFormatType videoFormat
 
bool autoPlayOnEnable = false
 
bool playUsingInternalDevicePlayer = false
 
bool loadYoutubeUrlsOnly = false
 
GameObject [] objectsToRenderTheVideoImage
 
bool is3DLayoutVideo = false
 
Layout3D layout3d
 
Camera mainCamera
 
VideoPlayer videoPlayer
 
VideoPlayer audioPlayer
 
bool debug
 
bool ignoreTimeout = false
 
bool _skipOnDrop = false
 
string videoUrl
 
string audioUrl
 
bool ForceGetWebServer = false
 
bool progressStartDrag
 
bool pauseCalled = false
 
bool isSyncing = false
 
string encryptedSignatureVideo
 
string encryptedSignatureAudio
 
bool decryptedUrlForVideo = false
 
bool decryptedUrlForAudio = false
 
string decryptedVideoUrlResult = ""
 
string decryptedAudioUrlResult = ""
 
List< VideoInfoyoutubeVideoInfos
 
string EncryptUrlForVideo
 
string EncryptUrlForAudio
 
string jsonForHtmlVersion = ""
 
bool checkIfSync = false
 

Static Public Attributes

static string SignatureQuery = "sig"
 

Protected Member Functions

void Skybox3DSettup ()
 
void FixCameraEvent ()
 
string CheckVideoUrlAndExtractThevideoId (string url)
 
void PlayYoutubeVideo (string _videoId)
 
IEnumerator PreventFinishToBeCalledTwoTimes ()
 

Protected Attributes

string UserAgent = "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36"
 
bool prepareVideoToPlayLater = false
 
string thumbnailVideoID
 
int currentUrlIndex = 0
 
bool youtubeUrlReady = false
 
bool fullscreenModeEnabled = false
 
bool noAudioAtacched = false
 
string videoTitle = ""
 
bool startedFromTime = false
 
bool finishedCalled = false
 
string logTest = "/"
 

Member Enumeration Documentation

◆ Layout3D

Enumerator
SideBySide 
OverUnder 
EAC 

◆ VideoFormatType

Enumerator
MP4 
WEBM 

◆ YoutubeVideoQuality

Enumerator
STANDARD 
HD 
FULLHD 
UHD1440 
UHD2160 

Member Function Documentation

◆ ChacheSystem()

void LightShaft.Scripts.YoutubeSettings.ChacheSystem ( )

◆ CheckVideoUrlAndExtractThevideoId()

string LightShaft.Scripts.YoutubeSettings.CheckVideoUrlAndExtractThevideoId ( string  url)
protected

◆ DecryptAudioDone()

void LightShaft.Scripts.YoutubeSettings.DecryptAudioDone ( string  url)

◆ DecryptDownloadUrl()

void LightShaft.Scripts.YoutubeSettings.DecryptDownloadUrl ( string  encryptedUrlVideo,
string  encrytedUrlAudio,
string  html,
bool  videoOnly 
)

◆ DecryptVideoDone()

void LightShaft.Scripts.YoutubeSettings.DecryptVideoDone ( string  url)

◆ DelayPlay()

IEnumerator LightShaft.Scripts.YoutubeSettings.DelayPlay ( )

◆ DisableThumbnailObject()

void LightShaft.Scripts.YoutubeSettings.DisableThumbnailObject ( )

◆ EnableThumbnailObject()

void LightShaft.Scripts.YoutubeSettings.EnableThumbnailObject ( )

◆ FixCameraEvent()

void LightShaft.Scripts.YoutubeSettings.FixCameraEvent ( )
protected

◆ GetMaxQualitySupportedByDevice()

int LightShaft.Scripts.YoutubeSettings.GetMaxQualitySupportedByDevice ( )

◆ HideLoading()

void LightShaft.Scripts.YoutubeSettings.HideLoading ( )

◆ OnYoutubeError()

void LightShaft.Scripts.YoutubeSettings.OnYoutubeError ( string  errorType)

◆ Pause()

void LightShaft.Scripts.YoutubeSettings.Pause ( )

◆ Play()

virtual void LightShaft.Scripts.YoutubeSettings.Play ( )
virtual

◆ PlayYoutubeVideo()

void LightShaft.Scripts.YoutubeSettings.PlayYoutubeVideo ( string  _videoId)
protected

◆ PreventFinishToBeCalledTwoTimes()

IEnumerator LightShaft.Scripts.YoutubeSettings.PreventFinishToBeCalledTwoTimes ( )
protected

◆ ReadyForExtract()

void LightShaft.Scripts.YoutubeSettings.ReadyForExtract ( string  r,
bool  audioExtract 
)

◆ Seek()

void LightShaft.Scripts.YoutubeSettings.Seek ( float  time)

◆ ShowLoading()

void LightShaft.Scripts.YoutubeSettings.ShowLoading ( )

◆ SkipToPercent()

void LightShaft.Scripts.YoutubeSettings.SkipToPercent ( float  pct)

◆ Skybox3DSettup()

void LightShaft.Scripts.YoutubeSettings.Skybox3DSettup ( )
protected

◆ Start()

virtual void LightShaft.Scripts.YoutubeSettings.Start ( )
virtual

◆ Stop()

void LightShaft.Scripts.YoutubeSettings.Stop ( )

◆ TryNormalizeYoutubeUrl()

static bool LightShaft.Scripts.YoutubeSettings.TryNormalizeYoutubeUrl ( string  url,
out string  normalizedUrl 
)
static

◆ TrySkip()

void LightShaft.Scripts.YoutubeSettings.TrySkip ( PointerEventData  eventData)

◆ WebGlGetVideo()

void LightShaft.Scripts.YoutubeSettings.WebGlGetVideo ( string  url)

◆ WebGlRequest()

IEnumerator LightShaft.Scripts.YoutubeSettings.WebGlRequest ( Action< string >  callback,
string  id,
string  host 
)

◆ WriteLog()

static void LightShaft.Scripts.YoutubeSettings.WriteLog ( string  filename,
string  c 
)
static

◆ YoutubeGeneratorSys()

void LightShaft.Scripts.YoutubeSettings.YoutubeGeneratorSys ( string  _videoUrl,
string  _formatCode 
)

Member Data Documentation

◆ _controller

YoutubeVideoController LightShaft.Scripts.YoutubeSettings._controller

◆ _events

YoutubeVideoEvents LightShaft.Scripts.YoutubeSettings._events

◆ _skipOnDrop

bool LightShaft.Scripts.YoutubeSettings._skipOnDrop = false

◆ audioPlayer

VideoPlayer LightShaft.Scripts.YoutubeSettings.audioPlayer

◆ audioUrl

string LightShaft.Scripts.YoutubeSettings.audioUrl

◆ autoPlayNextVideo

bool LightShaft.Scripts.YoutubeSettings.autoPlayNextVideo

◆ autoPlayOnEnable

bool LightShaft.Scripts.YoutubeSettings.autoPlayOnEnable = false

◆ autoPlayOnStart

bool LightShaft.Scripts.YoutubeSettings.autoPlayOnStart = true

◆ checkIfSync

bool LightShaft.Scripts.YoutubeSettings.checkIfSync = false

◆ currentUrlIndex

int LightShaft.Scripts.YoutubeSettings.currentUrlIndex = 0
protected

◆ customPlaylist

bool LightShaft.Scripts.YoutubeSettings.customPlaylist = false

◆ debug

bool LightShaft.Scripts.YoutubeSettings.debug

◆ decryptedAudioUrlResult

string LightShaft.Scripts.YoutubeSettings.decryptedAudioUrlResult = ""

◆ decryptedUrlForAudio

bool LightShaft.Scripts.YoutubeSettings.decryptedUrlForAudio = false

◆ decryptedUrlForVideo

bool LightShaft.Scripts.YoutubeSettings.decryptedUrlForVideo = false

◆ decryptedVideoUrlResult

string LightShaft.Scripts.YoutubeSettings.decryptedVideoUrlResult = ""

◆ encryptedSignatureAudio

string LightShaft.Scripts.YoutubeSettings.encryptedSignatureAudio

◆ encryptedSignatureVideo

string LightShaft.Scripts.YoutubeSettings.encryptedSignatureVideo

◆ EncryptUrlForAudio

string LightShaft.Scripts.YoutubeSettings.EncryptUrlForAudio

◆ EncryptUrlForVideo

string LightShaft.Scripts.YoutubeSettings.EncryptUrlForVideo

◆ finishedCalled

bool LightShaft.Scripts.YoutubeSettings.finishedCalled = false
protected

◆ ForceGetWebServer

bool LightShaft.Scripts.YoutubeSettings.ForceGetWebServer = false

◆ fullscreenModeEnabled

bool LightShaft.Scripts.YoutubeSettings.fullscreenModeEnabled = false
protected

◆ ignoreTimeout

bool LightShaft.Scripts.YoutubeSettings.ignoreTimeout = false

◆ is360

bool LightShaft.Scripts.YoutubeSettings.is360

◆ is3DLayoutVideo

bool LightShaft.Scripts.YoutubeSettings.is3DLayoutVideo = false

◆ isSyncing

bool LightShaft.Scripts.YoutubeSettings.isSyncing = false

◆ jsonForHtmlVersion

string LightShaft.Scripts.YoutubeSettings.jsonForHtmlVersion = ""

◆ layout3d

Layout3D LightShaft.Scripts.YoutubeSettings.layout3d

◆ loadYoutubeUrlsOnly

bool LightShaft.Scripts.YoutubeSettings.loadYoutubeUrlsOnly = false

◆ logTest

string LightShaft.Scripts.YoutubeSettings.logTest = "/"
protected

◆ mainCamera

Camera LightShaft.Scripts.YoutubeSettings.mainCamera

◆ noAudioAtacched

bool LightShaft.Scripts.YoutubeSettings.noAudioAtacched = false
protected

◆ objectsToRenderTheVideoImage

GameObject [] LightShaft.Scripts.YoutubeSettings.objectsToRenderTheVideoImage

◆ pauseCalled

bool LightShaft.Scripts.YoutubeSettings.pauseCalled = false

◆ playUsingInternalDevicePlayer

bool LightShaft.Scripts.YoutubeSettings.playUsingInternalDevicePlayer = false

◆ prepareVideoToPlayLater

bool LightShaft.Scripts.YoutubeSettings.prepareVideoToPlayLater = false
protected

◆ progressStartDrag

bool LightShaft.Scripts.YoutubeSettings.progressStartDrag

◆ showThumbnailBeforeVideoLoad

bool LightShaft.Scripts.YoutubeSettings.showThumbnailBeforeVideoLoad = false

◆ SignatureQuery

string LightShaft.Scripts.YoutubeSettings.SignatureQuery = "sig"
static

◆ startedFromTime

bool LightShaft.Scripts.YoutubeSettings.startedFromTime = false
protected

◆ startFromSecond

bool LightShaft.Scripts.YoutubeSettings.startFromSecond = false

◆ startFromSecondTime

int LightShaft.Scripts.YoutubeSettings.startFromSecondTime = 0

◆ thumbnailObject

Renderer LightShaft.Scripts.YoutubeSettings.thumbnailObject

◆ thumbnailVideoID

string LightShaft.Scripts.YoutubeSettings.thumbnailVideoID
protected

◆ UserAgent

string LightShaft.Scripts.YoutubeSettings.UserAgent = "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36"
protected

◆ videoFormat

VideoFormatType LightShaft.Scripts.YoutubeSettings.videoFormat

◆ videoPlayer

VideoPlayer LightShaft.Scripts.YoutubeSettings.videoPlayer

◆ videoQuality

YoutubeVideoQuality LightShaft.Scripts.YoutubeSettings.videoQuality

◆ videoTitle

string LightShaft.Scripts.YoutubeSettings.videoTitle = ""
protected

◆ videoUrl

string LightShaft.Scripts.YoutubeSettings.videoUrl

◆ youtubeUrl

string LightShaft.Scripts.YoutubeSettings.youtubeUrl

◆ youtubeUrlReady

bool LightShaft.Scripts.YoutubeSettings.youtubeUrlReady = false
protected

◆ youtubeUrls

string [] LightShaft.Scripts.YoutubeSettings.youtubeUrls

◆ youtubeVideoInfos

List<VideoInfo> LightShaft.Scripts.YoutubeSettings.youtubeVideoInfos

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