Author Topic: play local file from xamarin fomrs  (Read 288 times)

hamidi

  • Guest
play local file from xamarin fomrs
« on: 12 Sep '21 - 12:58 »
hi
how can play local mp3 file that gives from sqlite with  Bass.ChannelPlay in xamarin forms.?

Ian @ un4seen

  • Administrator
  • Posts: 23938
Re: play local file from xamarin fomrs
« Reply #1 on: 13 Sep '21 - 13:01 »
When you say "from sqlite", does that mean the file content is in a database? If so, you would need to get the content from the database to memory and then pass that memory block to BASS_StreamCreateFile (with mem=TRUE). If the database just contains a filename then you can also pass that to BASS_StreamCreateFile (with mem=FALSE). You can then call BASS_ChannelPlay on the returned stream handle. Please see the BASS_StreamCreateFile documentation for details on that.

radio42

  • Posts: 4725
Re: play local file from xamarin fomrs
« Reply #2 on: 13 Sep '21 - 14:10 »
In Bass.Net there is the extra method called "BASS_StreamCreateFileMemory".