Photon Voice
v2.58
Describes stream properties. More...
Public Member Functions | |
| override string | ToString () |
Static Public Member Functions | |
| static VoiceInfo | CreateAudioOpus (POpusCodec.Enums.SamplingRate samplingRate, int channels, OpusCodec.FrameDuration frameDurationUs, int bitrate, object userdata=null) |
| Create stream info for an Opus audio stream. More... | |
| static VoiceInfo | CreateAudio (Codec codec, int samplingRate, int channels, int frameDurationUs, object userdata=null) |
| Create stream info for an audio stream. More... | |
| static VoiceInfo | CreateVideo (Codec codec, int bitrate, int width, int height, int fps, int keyFrameInt, object userdata=null) |
| Create stream info for a video stream. More... | |
Properties | |
| Codec | Codec [get, set] |
| int | SamplingRate [get, set] |
| Audio sampling rate (frequency, in Hz). More... | |
| int | Channels [get, set] |
| Number of channels. More... | |
| int | FrameDurationUs [get, set] |
| Uncompressed frame (audio packet) size in microseconds. More... | |
| int | Bitrate [get, set] |
| Target bitrate (in bits/second). More... | |
| int | Width [get, set] |
| Video width. More... | |
| int | Height [get, set] |
| Video height More... | |
| int | FPS [get, set] |
| Video frames per second More... | |
| int | KeyFrameInt [get, set] |
| Video keyframe interval in frames More... | |
| object | UserData [get, set] |
| Optional user data. Should be serializable by Photon. More... | |
| int | FrameDurationSamples [get] |
| Uncompressed frame (data packet) size in samples. More... | |
| int | FrameSize [get] |
| Uncompressed frame (data packet) array size. More... | |
Describes stream properties.
|
static |
Create stream info for an Opus audio stream.
| samplingRate | Audio sampling rate. |
| channels | Number of channels. |
| frameDurationUs | Uncompressed frame (audio packet) size in microseconds. |
| bitrate | Stream bitrate (in bits/second). |
| userdata | Optional user data. Should be serializable by Photon. |
|
static |
Create stream info for a video stream.
| codec | Video codec. |
| bitrate | Stream bitrate. |
| width | Streamed video width. If 0, width and height of video source used (no rescaling). |
| height | Streamed video height. If -1, aspect ratio preserved during rescaling. |
| fps | Streamed video frames per second. |
| keyFrameInt | Keyframes interval in frames. |
///
| userdata | Optional user data. Should be serializable by Photon. |
|
getset |
Target bitrate (in bits/second).
|
getset |
Number of channels.
|
getset |
Video frames per second
|
get |
Uncompressed frame (data packet) size in samples.
|
getset |
Uncompressed frame (audio packet) size in microseconds.
|
get |
Uncompressed frame (data packet) array size.
|
getset |
Video height
|
getset |
Video keyframe interval in frames
|
getset |
Audio sampling rate (frequency, in Hz).
|
getset |
Optional user data. Should be serializable by Photon.
|
getset |
Video width.