...
The shared memory buffer shall be split into three two regions for each playback session, first one for a video stream, second and the other for audio (only one concurrent audio track supported, for audio track selection previous audio must be removed first) and third for webaudio regions. Each region must be big enough to accommodate the largest possible frame of audio/video /webaudio data plus associated decryption parameters and metadata. At the end there is also a separate section for webaudio regions (common for all playback sessions). The buffer shall initially be sized to 8Mb per playback session to allow some overhead + 10kB * number of webaudio regions. There can be 0 or more Web Audio regions per Rialto Client.
...