Photon C++ Client API
5.0.7.3
|
Describes stream properties. More...
Public Member Functions | |
int | getCodec (void) const |
VoiceInfo & | setCodec (int codec) |
int | getSamplingRate (void) const |
Audio sampling rate (frequency, in Hz). More... | |
VoiceInfo & | setSamplingRate (int samplingRate) |
int | getChannels (void) const |
Number of channels. More... | |
VoiceInfo & | setChannels (int channels) |
int | getFrameDurationUs (void) const |
Uncompressed frame (audio packet) size in microseconds. More... | |
VoiceInfo & | setFrameDurationUs (int frameDurationUs) |
int | getBitrate (void) const |
Target bitrate (in bits/second). More... | |
VoiceInfo & | setBitrate (int bitrate) |
const Common::Object & | getUserData (void) const |
Optional user data. Should be serializable by Photon. More... | |
VoiceInfo & | setUserData (const Common::Object &userData) |
int | getFrameDurationSamples (void) const |
Uncompressed frame (data packet) size in samples. More... | |
int | getFrameSize (void) const |
Uncompressed frame (data packet) array size. More... | |
int | getWidth (void) const |
Video width (optional). More... | |
VoiceInfo & | setWidth (int width) |
int | getHeight (void) const |
Video height (optional) More... | |
VoiceInfo & | setHeight (int height) |
virtual Common::JString & | toString (Common::JString &retStr, bool withTypes=false) const |
virtual JString & | toString (JString &retStr, bool withTypes=false) const=0 |
JString | toString (bool withTypes=false) const |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
Static Public Member Functions | |
static VoiceInfo | createAudioOpus (int samplingRate, int channels, int frameDurationUs, int bitrate, const Common::Object &userdata=Common::Object()) |
Create stream info for an Opus audio stream basing on audio source. More... | |
static VoiceInfo | createVideoVP8 (int bitrate, int width=0, int heigth=-1, const Common::Object &userdata=Common::Object()) |
Helper for VP8 stream info creation. More... | |
Describes stream properties.
int getSamplingRate | ( | void | ) | const |
Audio sampling rate (frequency, in Hz).
int getChannels | ( | void | ) | const |
Number of channels.
int getFrameDurationUs | ( | void | ) | const |
Uncompressed frame (audio packet) size in microseconds.
int getBitrate | ( | void | ) | const |
Target bitrate (in bits/second).
int getFrameDurationSamples | ( | void | ) | const |
Uncompressed frame (data packet) size in samples.
int getFrameSize | ( | void | ) | const |
Uncompressed frame (data packet) array size.
int getWidth | ( | void | ) | const |
Video width (optional).
int getHeight | ( | void | ) | const |
Video height (optional)
|
static |
Create stream info for an Opus audio stream basing on audio source.
samplingRate | Audio sampling rate. This must be one of 8000, 12000, 16000, 24000, or 48000. |
channels | Number of channels. |
frameDurationUs | Uncompressed frame (audio packet) size in microseconds. This must be one of 2500, 5000, 10000, 20000, 40000 or 60000. |
bitrate | Stream bitrate (in bits/second). |
userdata | Optional user data. Should be serializable by Photon. |
|
static |
Helper for VP8 stream info creation.
bitrate | Stream bitrate. |
width | Streamed video width. If 0, width and height of video source used (no rescaling). |
heigth | Streamed video height. If -1, aspect ratio preserved during rescaling. |
userdata | Optional user data. Should be serializable by Photon. |
|
virtual |
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
Implements ToString.
toString |
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
JString toString |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
withTypes | set to true, to include type information in the generated string |