473,378 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

video in VB6

7
Does anyone know how to show video in a VB6 program?
Jun 13 '07 #1
10 14809
debasisdas
8,127 Expert 4TB
try using either the multimedia control or using the windows mediaplayer control from

PROJECT->COMPONENTS.

If u are using media player control its farely easy.

but if u use mmcontrol you need to display the video in a picture box.
Jun 13 '07 #2
try to use the windows mediap player...it is quite easier than the other...
just put this code in the form load..

eg..
wmp=name of the component

wmp.url=(here is the path of the video you want ot play)



or else just go to its properties and just simply add the path where the video is
Jun 14 '07 #3
jeffbroodwar
118 100+
Hi,

I'll also recommend media player control.

Tip : you can make splash screens with this video player. create an avi file and try to load it in media player control. cover the edges with labels and run it with progress bar. Tadah ! you'll have your splash screen !!!

Regards,
Jeff
Jun 14 '07 #4
dingo
7
try to use the windows mediap player...it is quite easier than the other...
just put this code in the form load..

eg..
wmp=name of the component

wmp.url=(here is the path of the video you want ot play)



or else just go to its properties and just simply add the path where the video is

OK...I'm just dense. If I want the video (named video114) to play in a picture box (named Picture1), the video is located at H:\Photos&Videos\SimpsonVideoClips
and I want it to play when I click a button, what's the code??? Thanks.
Jul 29 '07 #5
jeffbroodwar
118 100+
Hi Dingo,

I'm sorry but i think what your trying to do is a bit unusual..... because picture boxes are used to display graphics/images.... not to play video files.. i'm not sure though... if it's possible it'll be amazing... ^^

Best regards,
Jeff
Jul 30 '07 #6
dingo
7
Hi Dingo,

I'm sorry but i think what your trying to do is a bit unusual..... because picture boxes are used to display graphics/images.... not to play video files.. i'm not sure though... if it's possible it'll be amazing... ^^

Best regards,
Jeff
One of the replies to my question said to put the following code in the form load..

wmp = name of the component
wmp.url = (here is the path of the video you want to play)

This is too cryptic for a total novice.

What exactly is the component? Do I need to load Windows Media Player into my program?? How?
And, how do I get the video to actually play? I want it to play when I click a button.

And...is there a good book that actually explains this stuff in English?
Many thanks!!
Jul 30 '07 #7
One of the replies to my question said to put the following code in the form load..

wmp = name of the component
wmp.url = (here is the path of the video you want to play)

This is too cryptic for a total novice.

What exactly is the component? Do I need to load Windows Media Player into my program?? How?
And, how do I get the video to actually play? I want it to play when I click a button.

And...is there a good book that actually explains this stuff in English?
Many thanks!!

add the windows media player control in your components
Aug 24 '07 #8
vdraceil
236 100+
One of the replies to my question said to put the following code in the form load..

wmp = name of the component
wmp.url = (here is the path of the video you want to play)

This is too cryptic for a total novice.

What exactly is the component? Do I need to load Windows Media Player into my program?? How?
And, how do I get the video to actually play? I want it to play when I click a button.

And...is there a good book that actually explains this stuff in English?
Many thanks!!
So you've finally learnt to add a video file in a form...
If u dont mind can you explain it more clearly to me?
Aug 26 '07 #9
Killer42
8,435 Expert 8TB
I'm a bit surprised nobody mentioned the Animation control, which can play AVI files. It is often used to play the little animations indicating a copy is in progress, and so on.

Oops! Sorry, here's some interesting info from the online help...
The control can play only AVI files that have no sound. In addition, the Animation control can display only uncompressed .avi files or .avi files that have been compressed using Run-Length Encoding (RLE).
So, very handy for those little Windows animations, but probably no use at all for "real" video.
Aug 27 '07 #10
Robbie
180 100+
Heh-heh... this has gotta be the 4th time I'm recommending people to use MCI! :D

Here we go...

Using the Multimedia Control Interface (MCI) you can play any video file or sound file (including even sound from a video file!) which you can play on WMP, but without using or needing to have WMP!
As long as you have the codec for a file, it can play it - So as well as the common WAVs and MP3s and AVIs, you also could even play OGG audio and MKV video!

It does not load the entire file into memory either! Because of that, it's been able to play a 12-hour-45-minute file almost instantly as soon as it receives the command to.

It is compatible with versions of Windows as early as 98, possibly even 95.

Here's a link to a topic in which I described in detail how to use MCI, and some of its useful features:
http://www.thescripts.com/forum/thre...ultimedia.html
Aug 28 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of...
8
by: Nehmo | last post by:
When a page has a JavaScript "link" to a video, like http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the actual video? Isn't it in the source somewhere? -- )|:__ Nehmo __:|(
1
by: richardscheff | last post by:
Video selector works for IE but not other browsers. for not IE <object ID='Player' data="video/dodgeball.wmv" type="video/x-ms-wmv" width="320" height="280"> <param name="filename"...
12
by: Pallas | last post by:
Hi all, I've produced some high-def videos and I want people to be able to watch them on my website, but I may want to prevent downloads and I certainly want to prevent them from editing them....
2
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer...
3
by: triplejump24 | last post by:
i LOVE doing c++ programming, but i never can get myself started! Once i figure it out, its fun but anyways here it goes... Im given a file c:\temp\hwk8input.txt, which contains the records of the...
3
by: ghostrider | last post by:
Does anyone know how to recognise the image capture signal from a medical scope such as a video colonoscope? I've got video streaming from the scope to the computer but want my app to recognise...
8
by: Oscar Arreyano | last post by:
I did a website for a friend's company where they wanted a 'downloads' section similar to standard file sharing you see all over the place. Everything works great except for video. I know there are...
1
by: Fuzz13 | last post by:
I have a project that has 4 radio buttons labeled with different animals. There are then 6 buttons and when a button is pressed based off of the radio button selected a picture will display and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.