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 VB 6

7
Can someone give exact code for playing a video with Windows Media Player in VB 6. I asked this once before, and was told to put the following code in the Form Load...

wmp = name of the component
wmp.url = path of the video

I loaded the Windows Media Player (named WindowsMediaPlayer1) onto the form.
I then placed the following code in the Form Load...

wmp = WindowsMediaPlayer1
wmp.url = "H:\Photos & Videos\SimpsonVideoClips\video114.mpeg"

VB6 would not accept the first line of code, so I changed the second line to

WindowsMediaPlayer1.url = "H:\Photos & Videos\SimpsonVideoClips\video114.mpeg"
(all one line)

It accepted this line of code, but when I ran the program, the player said it was ready, but would not play it. Clicking the PLAY button did nothing.

What am I doing wrong?
Thanks.
Aug 3 '07 #1
1 2737
Ali Rizwan
925 512MB
Can someone give exact code for playing a video with Windows Media Player in VB 6. I asked this once before, and was told to put the following code in the Form Load...

wmp = name of the component
wmp.url = path of the video

I loaded the Windows Media Player (named WindowsMediaPlayer1) onto the form.
I then placed the following code in the Form Load...

wmp = WindowsMediaPlayer1
wmp.url = "H:\Photos & Videos\SimpsonVideoClips\video114.mpeg"

VB6 would not accept the first line of code, so I changed the second line to

WindowsMediaPlayer1.url = "H:\Photos & Videos\SimpsonVideoClips\video114.mpeg"
(all one line)

It accepted this line of code, but when I ran the program, the player said it was ready, but would not play it. Clicking the PLAY button did nothing.

What am I doing wrong?
Thanks.
Hello
Just add WindowsMediaPlayer component and add it on form.
now add code for url
your video will be played.
remember just add wmpcomponent
Aug 17 '07 #2

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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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.