M Marcob Member Licensed User Longtime User Oct 20, 2013 #1 ...when you use them in mediaplayer the results are very different! I have attached a simple program where you find two strings (pgdir and pgdir2) that seems identical but the instruction: mp.Load(pgdir,pguri) fails with the following log: java.io.IOException: Prepare failed.: status=0x1 whereas the instruction: mp.Load(pgdir2,pguri) works as expected. Is there anyone who has an idea of the reason for this strange behavior ? P.S. I'm using BA v.2.71 Attachments Ringtone2.zip 2.5 KB · Views: 251
...when you use them in mediaplayer the results are very different! I have attached a simple program where you find two strings (pgdir and pgdir2) that seems identical but the instruction: mp.Load(pgdir,pguri) fails with the following log: java.io.IOException: Prepare failed.: status=0x1 whereas the instruction: mp.Load(pgdir2,pguri) works as expected. Is there anyone who has an idea of the reason for this strange behavior ? P.S. I'm using BA v.2.71
M Merlot2309 Active Member Licensed User Longtime User Oct 20, 2013 #2 pgdir is a structure in linux, see http://kerneldox.com/kdox-linux-2.6/d7/d67/structpgdir.html. No idea however if that causes it ?? Upvote 0
pgdir is a structure in linux, see http://kerneldox.com/kdox-linux-2.6/d7/d67/structpgdir.html. No idea however if that causes it ??
stevel05 Expert Licensed User Longtime User Oct 20, 2013 #3 Both Play Buttons seem to work OK here using Bluestacks. (B4A 3) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2013 #4 This is related to identity check vs. value check (in MediaPlayer implementation). You will not see this issue with v3.0. You can workaround it with this line: B4X: If pgdir = RM.GetContentDir Then pgdir = RM.GetContentDir Upvote 0
This is related to identity check vs. value check (in MediaPlayer implementation). You will not see this issue with v3.0. You can workaround it with this line: B4X: If pgdir = RM.GetContentDir Then pgdir = RM.GetContentDir
M Marcob Member Licensed User Longtime User Oct 21, 2013 #5 Ok, I upgraded BA to v.3.0 and now it works. Thanks for your help. Upvote 0