Reset player when player has ERR_PLAYER_BUSY state

Started by PatrickVossen, December 13, 2018, 09:08:15 AM

Previous topic - Next topic

PatrickVossen

Hello,

Sometimes we have the issue that loading an MP4 file takes "forever".
We have a backup routine that tries to reload the file if loading has not finished within 15~20sec.
But when this issue occurs the loading of a file in that deck results in a ERR_PLAYER_BUSY response.
Closing the player does not reset the player state, the only way to reset this, is restarting the application.
Is there a way to reset this player state?
If possible an other way then resetting (reinitialize) the engine.
Our player has 6 decks and one of the other decks is playing (video) at that moment.

We have seen this issue on WinXP up to Win10 (32bit) and used codec is LAV (K-Lite) on MMS version 6 up to 9.

Best regards
Patrick Vossen



Administrator

Hello,

which is the method used to load the MP4 file? LoadSound or VideoPlayer.Load or any other ?
Unfortunately there is no alternative way to reset a player but it's quite strange that loading a file could take so long until you are not loading from a network mapped drive or from the Internet.

Kind regards

Severino Delaurenti
MultiMedia Soft

PatrickVossen

Hi Severino,

The used method is audioDjStudio1.DisplayVideoPlayer.LoadSync.
The files are all local files (not network or internet)

As I mentioned, the application is using several decks where where I already manage that no two decks are loading videofiles simultaneously.
But on the same machine, the application can run up to 4 times.
It can happen that files are loaded into the main component simultaneously.
Also the codec needs to handle this data (maybe) simultaneously.
(see http://www.soundware.nl/)

About the ADJ control, Is it possible to add the control multiple times to one project and if possible, how do the controls behave when one of the controls is resetted?

Best regards,
Patrick Vossen

Administrator

Hello,

I don't know if the LAV codec in use could suffer when accessed multiple times from within the same process but it's quite unlikely that there could be issues when accessed from different processes: unfortunately we don't have knowledge about its internals.

Yes, it's possible to add multiple instances of the component to one application but, in order to invoke the ResetControl method, there is the need to invoke the ResetEngine method and this will affect all of the existing instances.

Kind regards

Severino Delaurenti
MultiMedia Soft

PatrickVossen

Hello Severino,

Just a small status update:
At the end it seems that it's a LAV codec issue where, after running about 20 hours/±1200pcs of video files, the LAV codec stops responding FOR THIS APPLICATION. The second or third application runs normally.
The used codec was the K-Lite codec pack version 10.35. After upgrading to K-Lite 14.60 all problems seems to be gone. The application is running for 2 weeks now without any problems.
The application is running in 32bit mode.

Grtz Patrick

Administrator

Hello Patrick,

thank you very much for your feedback :-)

Kind regards

Severino Delaurenti
MultiMedia Soft