borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Gray RGB)Next Topic (Using Windows Media Player in Vb) New Topic New Poll Post Reply
AndreaVB Forum : Multimedia : playing any kind of video in VB!
Poster Message
JaguarLacrosse17
Level: Trainee

Registered: 02-06-2005
Posts: 1

icon playing any kind of video in VB!

hey, i am in a computer science class and we are working on a final project to be counted as our final for the class...anyway....i was wondering how i can get video to play when i load the program (game)...ive heard alot about the MMC or the Windows Media Player but we were never taught about how to operate those so if you could put step by step instructions with code and easily read instructions that would be great...by the way i use Microsoft Visual Studio 6.0 Professional....thanks for any help

02-06-2005 at 08:48 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: playing any kind of video in VB!

go to msdn.microsoft.com and search there for

Windows Media Player Visual Basic 6

or something similar, and you will find a documentation with examples of how to use WMP. Altough, "playing any kind of video" will surely not be possible, without having many codecs installed for diferent file formats.

____________________________
If you find the answer helpful, please mark this topic as solved.

02-06-2005 at 10:04 PM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: playing any kind of video in VB!

I agree with goran. There are some video that cannot be play in WMP unless you install different codecs on it. Anyway check out this code and see if helps..


Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

'// --- Modify FILE_TO_OPEN constant as appropriate ---
Const FILE_TO_OPEN = "C:\windows\help\explorer.avi"
Dim strCmdStr As String
Dim lngReturnVal As Long
strCmdStr = "play " & FILE_TO_OPEN & " fullscreen "
lngReturnVal = mciSendString(strCmdStr, 0&, 0, 0&)




____________________________
Im JAMES  

29-08-2005 at 01:25 AM
View Profile Send Email to User Show All Posts | Quote Reply
Duck11
Level: Trainee

Registered: 24-08-2005
Posts: 2
icon Re: playing any kind of video in VB!

quote:
JaguarLacrosse17 wrote:
hey, i am in a computer science class and we are working on a final project to be counted as our final for the class...anyway....i was wondering how i can get video to play when i load the program (game)...ive heard alot about the MMC or the Windows Media Player but we were never taught about how to operate those so if you could put step by step instructions with code and easily read instructions that would be great...by the way i use Microsoft Visual Studio 6.0 Professional....thanks for any help


Hi! i can advise you another program, which i use myself. it's called Flash To Video Encoder, & the last version is 3.1
here's the link to it:
http://www.geovid.com/download/flash_to_video_encoder.exe
& you can read full info about this software here:
http://www.geovid.com/Flash_To_Video_Encoder/
29-08-2005 at 12:07 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Multimedia : playing any kind of video in VB!
Previous Topic (Gray RGB)Next Topic (Using Windows Media Player in Vb) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder