Swing
1.0
|
Public Member Functions | |
void | SetCredential (Swing.SpectatorService.Credential credential) |
void | SetServerConfiguration (Swing.SpectatorService.Configuration config) |
void | Initialize () |
bool | Insert (Replay replay) |
Replay | Eject () |
bool | Play (bool pauseAtStart=false) |
bool | Pause () |
bool | Stop () |
bool | SeekToTime (float time) |
bool | SeekToRate (float ratio) |
bool | Record () |
bool | Watch () |
bool | Broadcast (bool autoSave) |
bool | Reconnect () |
bool | Save (string fileName) |
bool | Load (string fileName) |
bool | Upload () |
bool | Download (Guid replayId) |
bool | GetReplayList (ReplayStorage storage, int offset, int count) |
bool | GetBroadcastList (int offset, int count) |
bool | StartReplay (GameObjectRecorder gameObjectRecorder) |
void | EndReplay (GameObjectRecorder gameObjectRecorder) |
void | RecordAudioEvent (AudioSource target, AudioRecorder.Event e) |
Properties | |
LoadReplayEvent | OnLoad [get] |
LoadReplayEvent | OnDownload [get] |
SaveReplayEvent | OnSave [get] |
SaveReplayEvent | OnUpload [get] |
BroadcastEvent | OnBroadcast [get] |
WatchEvent | OnWatch [get] |
PlayEvent | OnPlay [get] |
RecordEvent | OnRecord [get] |
ListReplaysEvent | OnListReplay [get] |
ListReplaysEvent | OnListBroadcast [get] |
Replay | replay [get] |
Timeline | timeline [get] |
Spectator.Scene | scene [get] |
Spectator.GameObjects | gameObjects [get] |
Spectator.States | state [get] |
Spectator.Microphone | microphone [get] |
Spectator.PlaybackCameras | playbackCameras [get] |
bool Swing.ISpectator.Broadcast | ( | bool | autoSave | ) |
Start to broadcast a gameplay
Implemented in Swing.Spectator.
bool Swing.ISpectator.Download | ( | Guid | replayId | ) |
Download the replay from the local storage
replayId | replay identifier |
Implemented in Swing.Spectator.
Replay Swing.ISpectator.Eject | ( | ) |
Eject the CWR(current working replay)
It makes CWR as null.
Implemented in Swing.Spectator.
bool Swing.ISpectator.GetBroadcastList | ( | int | offset, |
int | count | ||
) |
List broadcasts
This returns a list of live broadcasts to the callback. A list is defined by the offset and count parameters. The total number of replays in the storage is returned in the callback.
offset | Start offset of the page (zero-based, inclusive) |
count | Number of broadcasts to list |
callback | Called when the broadcasts are listed or when an error occurred during listing up |
Implemented in Swing.Spectator.
bool Swing.ISpectator.GetReplayList | ( | ReplayStorage | storage, |
int | offset, | ||
int | count | ||
) |
List the replays in the storage
This returns a list of replays in the storage to the callback. A list is defined by the offset and count parameters. The total number of replays in the storage is returned in the callback.
storage | The replays in this storage are listed. |
offset | Start offset of the page (zero-based, inclusive) |
count | Number of replays to list |
Implemented in Swing.Spectator.
void Swing.ISpectator.Initialize | ( | ) |
Initialize the Spectator
Implemented in Swing.Spectator.
bool Swing.ISpectator.Insert | ( | Replay | replay | ) |
Insert the replay
It sets the replay as the CWR(current working replay).
replay | replay to use as the CWR |
Implemented in Swing.Spectator.
bool Swing.ISpectator.Load | ( | string | fileName | ) |
Load the replay from the local storage
File path is PersistentDataPath + fileName.
fileName | fileName to load |
Implemented in Swing.Spectator.
bool Swing.ISpectator.Pause | ( | ) |
bool Swing.ISpectator.Play | ( | bool | pauseAtStart = false | ) |
Start to playback the CWR(current working replay)
If the CWR is paused, this will resume it.
pauseAtStart | |
callback | Called when the playback reaches the end of the replay file or when an error occurred during playback |
Implemented in Swing.Spectator.
bool Swing.ISpectator.Reconnect | ( | ) |
Reconnect to Spectator service.
It try to reconnect to service, if connection is disconnected with spectator service in broadcast or watch
Implemented in Swing.Spectator.
bool Swing.ISpectator.Record | ( | ) |
Start to record a gameplay
The gameplay is recorded into CWR(current working replay) that is inserted.
Implemented in Swing.Spectator.
bool Swing.ISpectator.Save | ( | string | fileName | ) |
Save the CWR (current working replay) in the storage
File path is PersistentDataPath + fileName.
fileName | fileName to save |
Implemented in Swing.Spectator.
bool Swing.ISpectator.SeekToRate | ( | float | ratio | ) |
Seek the time by ratio in the CWR
ratio | ratio about time [0~1] |
Implemented in Swing.Spectator.
bool Swing.ISpectator.SeekToTime | ( | float | time | ) |
Seek to the time in the CWR
time | Time offset to seek |
Implemented in Swing.Spectator.
void Swing.ISpectator.SetCredential | ( | Swing.SpectatorService.Credential | credential | ) |
Set Credentail to use the spectator service
credential | credential of user |
Implemented in Swing.Spectator.
void Swing.ISpectator.SetServerConfiguration | ( | Swing.SpectatorService.Configuration | config | ) |
Set configuration of server
The configuration is information of server about spectator service.
config | configuration of spectator service server |
Implemented in Swing.Spectator.
bool Swing.ISpectator.Stop | ( | ) |
Stop the current operation
Implemented in Swing.Spectator.
bool Swing.ISpectator.Upload | ( | ) |
Save the CWR (current working replay) in the server
Implemented in Swing.Spectator.
bool Swing.ISpectator.Watch | ( | ) |
Start to watch a broadcast that is represented as in CWR(current working replay)
Implemented in Swing.Spectator.
|
get |
Get the spectator's microphone
|
get |
Gets an callback event handler on broadcasting
|
get |
Gets an callback event handler on downloading
|
get |
Gets an callback event handler on listing broadcast
|
get |
Gets an callback event handler on listing replay
|
get |
Gets an callback event handler on loading
|
get |
Gets an callback event handler on playing
|
get |
Gets an callback event handler on recording
|
get |
Gets an callback event handler on saving
|
get |
Gets an callback event handler on uploading
|
get |
Gets an callback event handler on watching
|
get |
CWR, Current Working Replay
It is null if there is no current working replay.
|
get |
The state of this spectator
|
get |
Current replay timeline