Now we have the handle, put BSPlayer in our container. That's just a fancy word for a simple picturebox. :cool: (picContainer in my example)
Now if you switch to full screen when playing a movie, it fills your container. So actually you can control its dimensions. (When I go to my main menu while playing a movie, the movie plays on in a small tumbnail-view)

Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type

Now this was just an intro on embedding BSPlayer into a VB6 project. If you guys have any questions 'bout this, shoot.

I'm using this stuff in conjunction with a lot of other API-calls to give it a true embedded look & feel. (manipulation of the positions and dimensions of the BSplayer windows, mouse cursor hiding in BSPlayer windows, catching clicks in BSPlayer windows...) So it is possible that the declares-section described has some extra API calls I forgot to clean out for this tutorial.

07-14-2004, 04:05 PM

Confused

Thanks for that information, Needstorage, I will definately have a look :)

Garry

07-14-2004, 04:14 PM

mobileh1

What does bsplayer have that either winamp or WMP lacks?

07-14-2004, 06:44 PM

frodobaggins

Wrong thread. Oops.

07-15-2004, 01:12 AM

Needstorage

Quote:

Originally Posted by mobileh1

What does bsplayer have that either winamp or WMP lacks?

WMP?! :eek: Are you kidding me? :barf:
Way too much overkill! (I'd probably need to implement swapfile-technology into my Embedded XP distro in order for WMP to play an mp3 ;) )

BSPlayer is pretty small and does not require a lot of resources and it starts fast. It has built in subtitle support. (Subs, srt, ...) and it has:
- custom AR (aspect ratios)
- Fully Skinnable (if you are not "stealth"-embedding it)
- Remote control support (WinLIRC)
- Multiple Audio Streams in AVI's supported
- ...

Frodo, can you explain this? Or have you been drinking too much again? :D

07-15-2004, 01:23 AM

frodobaggins

Quote:

Originally Posted by Needstorage

Frodo, can you explain this? Or have you been drinking too much again? :D

I had two windows open.
Pasted into wrong quick reply.

07-15-2004, 01:58 AM

NoPistonPC

I hate to preach, but I still don't understand why no one has bothered to use DirectShow to play music and videos (without needing to run winamp, WMP, BSPlayer, or any other external app) with just a few lines of code:

I hate to preach, but I still don't understand why no one has bothered to use DirectShow to play music and videos (without needing to run winamp, WMP, BSPlayer, or any other external app) with just a few lines of code:

because the problem of handling visualizations yourself. As well as a lot of othe nice things the other objects offer.

Frodo

07-15-2004, 02:11 AM

NoPistonPC

Quote:

Originally Posted by frodobaggins

because the problem of handling visualizations yourself. As well as a lot of othe nice things the other objects offer.

While there isn't visualization support out-of-the-box, you can use 3rd party, open-source DirectShow filters, such as DC-DSP which will let you do cool things like use WinAmp visualization plugins and provides a parametric equalizer and other sounds filters.