Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 783

Getting Started with LiveCode - Experienced Developers • Re: Irritating intermittent bug with set player filename

$
0
0
This is interesting, as I have wrestled with a very similar problem a few years ago, but then it concerned the mobile player on iOS. Specifically, it made the app freeze on certain iPads after a random number of changes to the filename of the player. It was never properly resolved, and I had to use a workaround that consisted of creating the player and set its filename on startup and never change it. For that app I only needed 16 audio files in total, so it was an acceptable workaround for that project.

Anyway, some of the things I tried had an impact on the crash/hang frequency (if not eliminating it), so for what it's worth, here are some ideas:

1) Put set the currentTime of player "audio" of me to zero before the line that starts the player.
2) In case you have acceleratedRendering turned on, turn it off at startup. (This may have had an impact only on mobile, but worth a shot).
3) Set the filename of the player to empty before setting it to the new filename.
4) Delete the player and create a new one each time (seems excessive, but might help).
5) You already tried "wait x milliseconds" before starting the player - does it make any difference to add "with messages" to that?
6) Are you working on multiple monitors? There's a bug report on issues with players and multiple monitors: https://quality.livecode.com/show_bug.cgi?id=20707

Hope any of this may help.

Statistics: Posted by SWEdeAndy — Sat Jul 06, 2024 10:37 am



Viewing all articles
Browse latest Browse all 783

Trending Articles