CRIWARE Unity Plugin Manual  Last Updated: 2025-05-08
Sofdec Tips
This section provides useful information for using Sofdec.

How should Sofdec be configured to play multiple movies simultaneously?

The number of movies that can be played simultaneously cannot exceed CriWareInitializer::manaConfig::numberOfDecoders. Once it reaches that number, you cannot play any other movie.
To increase the number of simultaneous playbacks, follow the steps below.
  1. CRIWARE Library Initializer If the "CRIWARE Library Initializer" (CriWareInitializer) component is not created, create it.
  2. Select the CRIWARE Library Initializer component in the Inspector and increase the values below as required.
    • Number Of Decoders, in the [Mana Config] group
    • Number Of Loaders, in the [File System Config] group
Attention
Note that two decoders are used to play an alpha movie.

Precautions regarding loop playback of movies with audio

If the video and audio tracks of the movie are different in length, loop playback of the movie may cause the playback to stutter or stop to proceed.
When playing a movie with audio in a loop, be sure to match the length of the video with its audio track.


About resource consumption timing for movie playback

<Timing of acquisition> The resources specified in CriManaConfig.numberOfDecoders are secured at the following times:

  • The moment when CriMana.Player becomes ready to play (CriMana.Player.Status.Prep)
<Release timing>
This is one of the following times:
  • When CriMana.Player is destroyed
  • Use the player handle to determine when the next movie starts to play
The decoder holds a buffer containing the decoded results. To allow access to the decoded buffer (final frame) even after playback has ended, the decoder is designed not to be discarded when playback has ended.
File Open/Close Timing
When playing a movie, file descriptors are consumed while streaming is in progress.
When playback is finished, the file will be closed.


translated_by_Google.png

THIS SERVICE MAY CONTAIN TRANSLATIONS POWERED BY GOOGLE. GOOGLE DISCLAIMS ALL WARRANTIES RELATED TO THE TRANSLATIONS, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF ACCURACY, RELIABILITY, AND ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.