can you help me with the following problem: It's an APK (Android). On a Samsung tablet (Version 10), the video player does not work properly. The app starts with an "intro" (mp4 file) -> look for example.
In the app, the player is often used. Sometimes the player runs and sometimes the app crashes. The problem with the player only occurs with version 10. Up to version 9, the app runs perfectly.
If the player plays the file, it may or may not work. I cannot limit the problem.
For example: Here is a code from my app:
Code: Select all
global videopfad,mobil,klangpfad
on preOpenStack
set the fullscreenmode of me to "noBorder"
end preOpenStack
on videopfadSetzen
put 0 into mobil
if the environment is "mobile" then
put specialFolderPath("engine") into programmPfad
put 1 into mobil
else
put the filename of this stack into programmPfad
set the itemDelimiter to "/"
delete the last item of programmPfad
end if
put programmPfad&"/hit/" into videopfad
if the platform is "MacOS" and the environment is "standalone application" then
set the itemDelimiter to "/"
put the filename of this stack into programmPfad
put item 1 to -3 of programmPfad into videoPfad
put "/Resources/_MacOS/hit/" after videoPfad
end if
end videopfadSetzen
on klangpfadSetzen
if the environment is "mobile" then
put specialFolderPath("engine") into programmPfad
else
put the filename of this stack into programmPfad
set the itemDelimiter to "/"
delete the last item of programmPfad
end if
put programmPfad&"/klang/" into klangpfad
if the platform is "MacOS" and the environment is "standalone application" then
set the itemDelimiter to "/"
put the filename of this stack into programmPfad
put item 1 to -3 of programmPfad into klangPfad
put "/Resources/_MacOS/klang/" after klangPfad
end if
end klangpfadSetzen
on introSpielenmobil
put random(3) into x
put random(3) into x
put "maschaStartClip"&x into los
put videopfad&los&".mp4" into videodatei
play video videodatei
end introSpielenmobil
on introSpielen
put random(3) into x
put "maschaStartClip"&x into los
set the fileName of player "intro" to videopfad&los&".mp4"
start player "intro"
end introSpielen
on openStack
global videopfad,mobil
videopfadSetzen
if mobil = 1 then
introSpielenmobil
else
introSpielen
end if
end openStack
Thank you very much.
Best regards,
Foni