CRI Sofdec2
Last Updated: 2022-11-21 16:25 p
|
Sofdec2 supports playing multiple movies at the same time.
Normally each movie will use one movie decoder handle resource.
The upper limit for handle resources is set by the library initialization parameters.
If you set your Mana library initialization parameters to NULL, then the maximum number of handle resources is four.
[Remarks]
Be aware that alpha movie playback use two handle resources.
To increase the maximum number of movie decoder handle resources,
set the Mana library initialization configuration parameters and initialize.
For example, the following shows a sample code for increasing the maximum number of handles to eight.
In addition to using movie decoder handle resources when streaming movies,
you will use resources for the loader handle (CriFsLoader) to read data and
for open files for streaming.
When you have multiple video or audio files to stream, apart from the Mana library you will need to
first set the File System initialization configuration parameters (number of loader handles,
maximum number of open files) and initialize it.
The default number of loader handles and open files is 16.
If you try to stream more than this, you will trigger
an error callback.
E2008070931:Can not allocate loader handle. (Increase num_loaders of CriFsConfiguration.)
For example, to simultaneously stream more than 17 files, you will
need the following kind of library initialization settings and
to increase the number of loaders and maximum number of simultaneous open files.
[Notes]
1: When playing a USM file independently, then the number of max_files is specified by
the number of USM to simultaneously play. When packing USM files into CPK files to play, then
it sets the number of CPK.
2: Adjust the audio portion as well if simultaneously playing audio files using ADX2
in addition to videos.
3: You do not need to increase the number of num_loaders or max_files when
playing from memory instead of streaming.