WMAStreamCreateFile

Started by Brif8,

Brif8

Hi All
Where is my mistake to connect to a stream using a URL
 Stream := BASS_WMA_StreamCreateFile (FALSE,PChar('http://192.168.0.56:95'),0,0,0);

I created the stream using BASS and BASSWMA I can connect to it Windows Media Player, But Now I want to create my own player, so using BassWMAStreamCreateFile as above.
I connect but nothing plays??

Thanks in advance

Barry

Ian @ un4seen

Can you connect to, and play the stream using the precompiled CONTEST example? (from the BASSWMA package, not the standard BASS version of it)

Brif8

Hi Ian
Thanks for your response
Yes I can connect to it using the CONTEST
mms://192.168.0.65:95

So where could my dummmy mistake be??

Thanks
Barry

Irrational86

#3
In your source code you are using http:// it should be mms://

Brif8

Thanks XMinioNX !!!!!

mms did the trick I now get the sound streaming !!

BTW would anyone know how to access the tags in delphi

var
  Data: PChar;
begin
Data := BASS_WMA_StreamGetTags(Stream,0);
end;
How would one break the tags up into  title, author, etc..

Thanks in advance
Barry

Irrational86

This works for me:
var
  Tag: String;
  Data: PChar;
Data := BASS_WMA_StreamGetTags(Stream, 0);
if Data <> nil then
begin
  while Data^ <> #0 do
  begin
    Tag := StrPas(Data);
    { Tag will contain the whole tag }
    { For example, Title="Pepito" }
    Data := Data + Length(StrPas(Data)) + 1;
  end;
end

Brif8

Thanks once again XMinioNX

That works great !!! :o :o :o
Thanks