Playing Movies

Just starting out? Need help? Post your questions and find answers here.
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: Playing Movies

Post 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.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Justin
Addict
Addict
Posts: 956
Joined: Sat Apr 26, 2003 2:49 pm

Re: Playing Movies

Post by Justin »

You can try this
viewtopic.php?f=12&t=75564

For Windows Media Player, although i think libvlc is better.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4984
Joined: Sun Apr 12, 2009 6:27 am

Re: Playing Movies

Post by RASHAD »

Egypt my love
Post Reply