473,396 Members | 2,076 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,396 software developers and data experts.

Problem with playing a video on the form

Hi all,

I have added a wmp control onto my form.
and put the following code for it.

Dim oMovie As WMPLib.IWMPMedia
oMovie = wmpPreview.newMedia("H:\Movie.avi")
wmpPreview.currentPlaylist.clear()
wmpPreview.currentPlaylist.appendItem(oMovie)

Now the problem here is that i dont get any audio and video for the
AVI file, which is in DIVX format.
The wmp control doesn't seem to play the movie since the position bar
doesn't advance, but the real thing is that it shows the exact runtime
for the "movie.avi" file.
I have all the necessary codecs, i have played the AVI file in Windows
Media Player seperately, everything works fine.

And, I am using Visual Basic 2005 Express Edition.

Thnx.
Dec 25 '07 #1
2 1157
Well thanks for helping any one who read my problem.

All of my problems are solved. All i did was debug the program while my internet connection was on.

And evrything started working just fine, i dunno wat happened.
Jan 13 '08 #2
kenobewan
4,871 Expert 4TB
Well done! I thank every evening before I go to bed the inventer of debugging, Clive Luke Roy de Borger ;)
Jan 13 '08 #3

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

Similar topics

7
by: Sean | last post by:
Hi I've written an HTML page that has a link to an MPG file, to be burned onto a "Demo CD". The MPG file is quite big - 500MB. On my computer, it works fine - clicking the link opens up Windows...
1
by: torbs | last post by:
I have a problem when I use javascript to get the length and position of a movie I recieve from a rtsp stream. The length and position is extremely high and not the actual length and position of...
0
by: J.S | last post by:
I create 2 forms in a basic project. on the first i put the Wmp activex and run an url. then I click on a button on this first form.It opens the second form. When I move this second form on my wmp...
1
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
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...
0
by: SamSpide | last post by:
Hi all, I'm trying to place a semi-transparent image (i.e. an image with parts of it were drawn in transparent color) over a playing video, but can't seem to make it work. Instead of the...
2
by: praskuma | last post by:
Hi I'm trying to play a video using j2me api I have the following code But for some reason the video doesnt apear on the emulator. I'm using netbeans IDE with the sun emulator. Can you...
1
by: ttamilvanan81 | last post by:
Hai everyone, I am working with a Image/Video Application. I need to display and play any video file in browser. Now i am using the following Embed Tag. <OBJECT ID="mediaPlayer" ...
1
by: josephChiaWY | last post by:
Hi all, Recently, i have met a problem in playing the selected video in the embedded quicktime player. I am creating a video gallery for people to view their .mov file on quicktime player. Below...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.