Page 2 of 2

Re: Playing Movies

Posted: Sat Jun 20, 2020 4:07 am
by Lunasole
chris319 wrote:Sorry, it fails at this line:

Code: Select all

Define Inst = libvlc_new(0, 0)

You need to download binaries (libvlccore.dll + libvlc.dll) and place them to a path which is set in the code here:

Code: Select all

   CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
      hLibVLCcore = OpenLibrary(#PB_Any, GetPathPart(ProgramFilename()) + "libvlc\x86\libvlccore.dll")
      hLibVLC = OpenLibrary(#PB_Any, GetPathPart(ProgramFilename()) + "libvlc\x86\libvlc.dll")
      
   CompilerElse
      hLibVLCcore = OpenLibrary(#PB_Any, GetPathPart(ProgramFilename()) + "libvlc\x64\libvlccore.dll")
      hLibVLC = OpenLibrary(#PB_Any, GetPathPart(ProgramFilename()) + "libvlc\x64\libvlc.dll")
   CompilerEndIf
If you want to continue download whole VLC player from that site and take those 2 DLLs from it (together with plugins folder), that should be simplest way.

Re: Playing Movies

Posted: Sat Jun 20, 2020 4:32 pm
by Justin
You can try this
viewtopic.php?f=12&t=75564

For Windows Media Player, although i think libvlc is better.

Re: Playing Movies

Posted: Mon Jun 22, 2020 5:18 am
by RASHAD