Swing
1.0
|
Classes | |
class | GameObjects |
class | Microphone |
class | PlaybackCameras |
class | RecEnvironments |
class | Scene |
Public Types | |
enum | States { Error = 0, Idle, Recording, Playback, Pause, Seeking, Broadcasting, Watching, Saving } |
Public Member Functions | |
bool | StartReplay (GameObjectRecorder rec) |
void | EndReplay (GameObjectRecorder rec) |
void | RecordAudioEvent (AudioSource target, AudioRecorder.Event e) |
void | Initialize () |
bool | Insert (Replay replay) |
Replay | Eject () |
bool | Record () |
bool | Play (bool pauseAtStart=false) |
bool | Watch () |
bool | Broadcast (bool autoSave) |
bool | Reconnect () |
bool | Stop () |
bool | Pause () |
bool | SeekToTime (float time) |
bool | SeekToRate (float rate) |
bool | Save (string fileName) |
bool | Upload () |
void | SetCredential (Swing.SpectatorService.Credential credential) |
void | SetServerConfiguration (Swing.SpectatorService.Configuration config) |
bool | GetReplayList (ReplayStorage storage, int offset, int count) |
bool | GetBroadcastList (int offset, int count) |
bool | Load (string fileName) |
bool | Download (Guid replayId) |
Static Public Member Functions | |
static ISpectator | GetInstance () |
bool Swing.Spectator.Broadcast | ( | bool | autoSave | ) |
Start to broadcast a gameplay
Implements Swing.ISpectator.
bool Swing.Spectator.Download | ( | Guid | replayId | ) |
Load replay from server
Implements Swing.ISpectator.
Replay Swing.Spectator.Eject | ( | ) |
Eject the CWR(current working replay)
It makes CWR as null.
Implements Swing.ISpectator.
bool Swing.Spectator.GetBroadcastList | ( | int | offset, |
int | count | ||
) |
Get broadcast replay List from server
Implements Swing.ISpectator.
bool Swing.Spectator.GetReplayList | ( | ReplayStorage | storage, |
int | offset, | ||
int | count | ||
) |
Get OnDeamnd replay list
Implements Swing.ISpectator.
void Swing.Spectator.Initialize | ( | ) |
Initialize the Spectator
Implements Swing.ISpectator.
bool Swing.Spectator.Insert | ( | Replay | replay | ) |
Insert the replay
It sets the replay as the CWR(current working replay).
replay | replay to use as the CWR |
Implements Swing.ISpectator.
bool Swing.Spectator.Load | ( | string | fileName | ) |
Load replay from file
Implements Swing.ISpectator.
bool Swing.Spectator.Pause | ( | ) |
bool Swing.Spectator.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 |
Implements Swing.ISpectator.
bool Swing.Spectator.Reconnect | ( | ) |
Reconnect to Spectator service.
It try to reconnect to service, if connection is disconnected with spectator service in broadcast or watch
Implements Swing.ISpectator.
bool Swing.Spectator.Record | ( | ) |
Start to record a gameplay
The gameplay is recorded into CWR(current working replay) that is inserted.
Implements Swing.ISpectator.
bool Swing.Spectator.Save | ( | string | fileName | ) |
Save replay to local file
Implements Swing.ISpectator.
bool Swing.Spectator.SeekToRate | ( | float | ratio | ) |
Seek the time by ratio in the CWR
ratio | ratio about time [0~1] |
Implements Swing.ISpectator.
bool Swing.Spectator.SeekToTime | ( | float | time | ) |
Seek to the time in the CWR
time | Time offset to seek |
Implements Swing.ISpectator.
void Swing.Spectator.SetCredential | ( | Swing.SpectatorService.Credential | credential | ) |
Set Credentail to use the spectator service
credential | credential of user |
Implements Swing.ISpectator.
void Swing.Spectator.SetServerConfiguration | ( | Swing.SpectatorService.Configuration | config | ) |
Set configuration of server
The configuration is information of server about spectator service.
config | configuration of spectator service server |
Implements Swing.ISpectator.
bool Swing.Spectator.Stop | ( | ) |
bool Swing.Spectator.Upload | ( | ) |
Upload replay to server
Implements Swing.ISpectator.
bool Swing.Spectator.Watch | ( | ) |
Start to watch a broadcast that is represented as in CWR(current working replay)
Implements Swing.ISpectator.