Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Audio a memorystream en tethering (https://www.clubdelphi.com/foros/showthread.php?t=87076)

future21 12-11-2014 07:14:13

Audio a memorystream en tethering
 
Hola a tod@s.-

Estoy intentando pasar un archivo mp3 mediante un memorystream como parámetro de un tetheringapppofile. El problema es que a la hora de cargar dicho mp3 me da un error de "Parameter out of range". Actualmente intento hacerlo así:

Código Delphi [-]
procedure TForm1.PlayerRemoto(Sender: TObject);
var
  newDish: TMemoryStream;
  //sound: TSoundItem;
begin
  newDish:=TMemoryStream.Create;
  try
    newDish.LoadFromFile('/sdcard2/musica/EMANUELLE.mp3');
    newDish.Position:=0;
    AppProfile.SendStream(Manager.RemoteProfiles.Items[0], 'Musica', newDish); <-----Parameter out of range
  finally
    newDish.Free
  end;
end;

Alguien sabria la mejor manera de hacer esto??

Saludos y muchas gracias.


La franja horaria es GMT +2. Ahora son las 06:39:18.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi