Hi everyone, i'm having troubles to make mp3 playes on midlets, don't works on emulator and on my moto z3, i'm using midp 2.0 compilation but also don't works.
i'v tried this
program NewProjec;
begin
if not OpenPlayer('/b.mp3','audio/mpeg') then Halt;
if not SetPlayerCount(-1) then Halt;
if not StartPlayer then Halt;
delay(-1);
end.
and this
program Barbeador;
procedure PlayMp3(res:string);
begin
stopplayer;
if OpenPlayer(res, 'audio/mpeg') then begin
if SetPlayerCount(-1) then begin
if StartPlayer then res:='';
end;
end;
end;
begin
PlayMp3('/b.mp3');
end.
unsucessful.
plz help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone, i'm having troubles to make mp3 playes on midlets, don't works on emulator and on my moto z3, i'm using midp 2.0 compilation but also don't works.
i'v tried this
program NewProjec;
begin
if not OpenPlayer('/b.mp3','audio/mpeg') then Halt;
if not SetPlayerCount(-1) then Halt;
if not StartPlayer then Halt;
delay(-1);
end.
and this
program Barbeador;
procedure PlayMp3(res:string);
begin
stopplayer;
if OpenPlayer(res, 'audio/mpeg') then begin
if SetPlayerCount(-1) then begin
if StartPlayer then res:='';
end;
end;
end;
begin
PlayMp3('/b.mp3');
end.
unsucessful.
plz help