Ver Mensaje Individual
  #1  
Antiguo 12-11-2014
future21 future21 is offline
Registrado
NULL
 
Registrado: oct 2014
Posts: 1
Reputación: 0
future21 Va por buen camino
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.
Responder Con Cita