Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Audio & Video support

Codecs

Coherent UI currently supports patent-free audio & video codecs like LPCM, Theora, VP8, Vorbis and formats like Ogg and WebM. This is achieved through a custom build of the ffmpeg library. MP3 playback is not supported as the format is patented and requires a license. MP4 (H.264) is also not supported as it is patented too. This may cause some WebAudio pages not to work correctly while working fine in browsers like Google Chrome.

Additional codec support

Coherent UI ships only with patent-free codecs. If you need support for other codecs you need to build ffmpeg with additional codec support, replace our ffmpegsumo library and set the Coherent::UI::FactorySettings::EnableSupportForProprietaryCodecs property to true. This ffmpeg library however will include patented codecs that possibly require licenses, so substituting it should be done carefully and at your own responsibility. A thorough research should be done to ensure no patent infringement is perpetuated.

Audio playback

Coherent UI supports forwarding WebAudio PCM data to the client in case a custom audio playback mechanism is to be used. You can enable client audio playback by using the Coherent::UI::ContextSettings EnableClientAudioPlayback field. Note that media information such as the length of the stream is not provided as the forwarding is designed to only inform the client that audio data is present and should be played. Examine the Client Audio Playback Sample for a practical example.

Note
Audio forwarding works only for web audio streams. For example, Flash uses its own media player for audio and no data will be received on the client side.