Tell When AxWindowsMediaPlayer Is Downloading?

May 2, 2012

I am using AxWindowsMediaPlayer on VB.NET to preview MP3 files from the web so that the user can choose to download it if he likes it. It works. I just put a link in the URL property and after a while it begins playing. ... after a while, of course. Because it has to download the file first. Perhaps I realized that because of my slow connection XD. But that made me think: how can I tell if the player is currently downloading a file? So that I can put a label saying "Please wait, preparing file..." or something.

View 1 Replies


ADVERTISEMENT

AxWindowsMediaPlayer Mystery?

Aug 29, 2009

On the subject of the AxWindowsMediaPlayer.URL property, MSDN warns:Quote:Originally Posted by MSDN

View 3 Replies

Disable AXWindowsMediaPlayer Shortcuts?

Aug 7, 2011

Is there any way to disable the keyboard shortcuts of AxWindowsMediaPlayer or even handle the KeyDownEvent of that control ?

View 1 Replies

Use Wait To Complete On AxWindowsMediaPlayer?

Mar 12, 2011

How do I use Wait to complete on AxWindowsMediaPlayer. I wish the video to play first before loading another form.

View 5 Replies

AxWindowsMediaPlayer Cannot Display Fullscreen When It Re-played

Jul 31, 2010

i make a simple winform application with AxWindowsMediaPlayer and timer.

My objective is about to make the application play the clip with interval (that's why i use timer)

When AxWindowsMediaPlayer finish playing the first clip, everything's okay. But when it begin playing the next clip. It CAN'T HAVE FULLSCREEN MODE. I have to double click the control manually to have it fullscreen. I use vb 2005 in 7 ultimate.

Here is my code

Private Sub AxWindowsMediaPlayer_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles AxWindowsMediaPlayer.PlayStateChange

[Code]......

View 6 Replies

Axwindowsmediaplayer Play/Pause In If Statement?

Mar 22, 2012

I am making a media player and I have a button where I want the text to change depending whether the media player is playing or paused. So far I have this:

If (AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsPlaying) Then Then
Button3.Text = "Pause"
ElseIf (AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsPaused) Then
Button3.Text = "Play"
End If

The problem is, is that i get an error under WMPLib.WMPPlayState on both lines. The error says 'WMPPlayState' is ambiguous in the namespace 'WMPLib'..

View 2 Replies

AxWindowsMediaPlayer Uimode 'none' Option Not Working

Aug 11, 2010

I have the windows media player embedded in a windows form, I have tried to set the uiMode to 'None' but it will not work, I have tried doing it using the properties window in the development screen which accepts 'None' but when the program is run it shows the controls on the player.I have also tried placing the action into code: AxWindowsMediaPlayer1.uiMode = none This generates an error stating the 'None' is not declared.

View 6 Replies

Error In Playing Movies Through Axwindowsmediaplayer

Aug 20, 2010

this is my Dim files() As IO.FileInfo = New IO.DirectoryInfo(My.Application.Info.DirectoryPath & "downloaded songs").GetFiles("*.wmv") Listbox1.Items.AddRange(files) but when i load - nothing happens

View 6 Replies

Get The Video To Finish Playing In AxWindowsMediaPlayer?

Mar 11, 2011

How do I get the video to finish playing in AxWindowsMediaPlayer before it loads another form? It keeps showing the next form briefly before the video starts.

View 2 Replies

Preview Subtitles Over AxWindowsMediaPlayer Control?

Nov 26, 2009

I'm making a MediaPlayer program , and I'm using AxWindowsMediaPlayer control

so , I need to know how to preview subtitles or seek bar over

AxWindowsMediaPlayer control - especially on FullScreen mode

View 3 Replies

Using AxWindowsMediaPlayer To Play A Short Video?

Sep 1, 2011

I have a form using AxWindowsMediaPlayer to play a short video. How can I load another form and close this form when the video is finished?

View 6 Replies

VS 2008 - Axwindowsmediaplayer Repeat Or Play?

Dec 2, 2009

I am using Windows Media Player component in vb2008 and I was wondering if there is a way to make it repeat? or if I can just make it play every 51 seconds (which is how long the song is) I tried Axwindowsmediaplayer1.play and .repeat, But neither of those are functions, So I'm not sure what I would have to use.

View 2 Replies

VS 2008 AxWindowsMediaPlayer Video Scaling?

Mar 31, 2011

I have a axwindowsmediaplayer object in my form which plays a video on load, but unfortunately the video seems too small and there is a massive black border around the video, is there anyway I can stretch the video to fill the whole player window?

View 1 Replies

Axwindowsmediaplayer - When Call Form 2 Again, The Player Seems Don't Show Up?

Mar 11, 2010

I'm using VS 2008 pro version under windows 7. I'm developing an app, and my app has 2 forms. When i press a button in form 1, form 2 will show up. Form 2 contains an axwindowsmediaplayer control and I set the autostart to true. The problem is: When i start debugging the app, the form 1 shows up and I click the button to call form 2, the form 2 shows up and the player start playing ( this is really good, at first), when i close form 2, the player stop, the app takes me to form 1 again, now is the problem, when i call form 2 again, the player seems don't want to show up, i don't know how to describe, here is the image .

View 1 Replies

AxWindowsMediaPlayer Auto Play Next Song From Playlist

Feb 27, 2011

AxWindowsMediaPlayer auto play next song from playlist

View 1 Replies

AxWindowsMediaPlayer PlayStageChange Event Either Broken Or (almost) Useless

Jul 16, 2010

After over a year of debugging and searching I have come to the conclusion that the AxWindowsMediaPlayer PlayStageChange event is either broken or (almost) useless. I am not the only one that has come to this conclusion [URL]

Let's start with the official documentation for the PlayStateChange event: "Windows Media Player states are not guaranteed to occur in any particular order. Furthermore, not every state necessarily occurs during a sequence of events. You should not write code that relies upon state order." I have been a top level software developer for 25 years and I don't recall ever seeing documentation that officially states that a certain function cannot actually be relied upon in a repeatable fashion. I'm all for multi-threading but this is a bit astounding to say the least. I can only assume that this event is actually exposed soley for logging status.

[Code]....

View 12 Replies

AxWMPLib.AxWindowsMediaPlayer To Play Wmv Files Within Application

Feb 27, 2010

I'm using AxWMPLib.AxWindowsMediaPlayer to play wmv files within my application. I provide an encrypted wmv file, which will not play on windows media player and within my application load it into an array, decrypt it and save it as a normal wmv file, which can then be played in the normal way by windows media player.However, I want to avoid saving the decrypted file to disk as this could then be copied by the user. Is there a way to play the media from within my application without first saving the file to disk? IE directly from the byte array?

View 1 Replies

Dll - In .net Application AxWindowsMediaPlayer Does Not Work On Client Machines?

Jan 23, 2011

I have added COM control AxWindowsMediaPlayer to form in vb.net.and just have following code

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WMPlayerVideo.URL = "abase.mp4"
End Sub
End Class

abase.mp4 file is kept in directory where exe is there. Every thing runs fine on dev m/c but on client machine application is not lauached.When Interop.WMPLib.dll and Interop.WMPLib.dll are copied to the exe file directory then application is lauched at least but file is not played automatically and even on pressing play button its not played.Is some dll registration required to make it work? or some references needed in project?or some changes on user machine?

View 1 Replies

How To Choose Visualization Displayed In Axwindowsmediaplayer Control

May 1, 2009

Does anyone know how to choose the visualization displayed in the axwindowsmediaplayer control? I'd like the Bars, from the Bars and Waves section to always be displayed and not the last one I selected when I ran Windows Media Player on it's own.

View 2 Replies

Managing Audio Tracks Via AxWindowsMediaPlayer Object

Jan 30, 2012

I have recently created an application to play videos using theAxWindowsMediaPlayer object. I was able to set good part of the controls but I'm still struggling with the audio track functionality. In order words, I was not able to find a method or even a property that allows me to select which audio track should play with the movie. If the movie has more than one, the audio tracks are played all together when the play method is executed.

View 3 Replies

Playing File Over Network With AXWMPLib.AXWindowsMediaPlayer?

Jan 18, 2010

I am developing a WinForms app that stores media files (video/audio) on a file server.All the file attributes are indexed on a SQL server. Currently, I am accessing the files in my client app for playback and export to file by impersonating the authorized user for the file share, caching a local copy, then doing what I need to do with the cached file (playback, export etc.)If a viewer wants to view a file (using the AXWindowsMediaPlayer control), I have to first cache the file completely (using the process I just mentioned) before the user can play it back. Any way I can get around this - perhaps someway I can avoid the cache step and play directly from the UNC source?I tried impersonating the authorized user then passing the UNC path for the file to AXWindowsMediaPlayer,but I got an error. It seems like the impersonation does not work with the control.Different threads? Also, is there a better way to do all this? Mounting a share does not seem to be an options since I want to control access to the media files through the app.

View 2 Replies

2008 - AxWindowsMediaPlayer In Usercontrol Makes VS Crash Instantly

Feb 15, 2010

I have a solution where I wanted to create a custom AxWindowsMediaplayer control. So I added a usercontrol. I added an axwindowsmediaplayer and then I added the control to my Form1. No problem so far. I use a Timer in the Usercontrol to make some sort of Fader. No problems there either. BUT I also added a few labels. In the Timer Tick I type the following lines:

[Code]....

View 9 Replies

AxWindowsMediaPlayer - Current Position And Play Time Difference?

Jan 10, 2012

I'm using VB 2010 Express with two instance of AxWindowsMediaPlayer in order to sync two videos (the videos are of the same thing but from two camera angles). Because the videos were started at slightly different times I've manually set the start time of each one using the following

AxWindowsMediaPlayer1.Ctlcontrols.currentPosition = 314.5093196
AxWindowsMediaPlayer2.Ctlcontrols.currentPosition = 237.1639908

The problem I'm having is that whilst the WMP clock initially displays the above times in each AxWindowsMediaPlayer, when I play the videos each starts a few seconds out from the stated currentPositions.

The video files are around 300MB each and when testing with smaller video files the problem does not seem to happen. I'm guessing the large file size is causing some delay and hence causing the problem.

View 1 Replies

Display Current Songs Album Art In A Picture Box Using Axwindowsmediaplayer?

Mar 10, 2012

Is it possible to display the current songs album art in a picture box, using axwindowsmediaplayer.

View 14 Replies

AXWindowsMediaPlayer Taking A Long Time To Release File On Close

Aug 29, 2011

I am writing an application for managing mp3 files. I use AXWindowsMediaPlayer1 for playing files and UltraID3 for reading and writing ID3 tags. Every time the user selects to switch to next song, the ID3 tags of the current file need to be updated. My problem is with Media Player taking a long time to release a file for access after doing a "close". Currently I need to add a 6 seconds delay between the "Close" method of the media player and the ID3 tag "Write", otherwise I get the error saying that the file is currently in use. Anything less than 6 seconds does not work...

I attached a short version of my application which focuses on the issue.

View 1 Replies

Press The PLAY Button On The AxWindowsMediaPlayer It Plays Content From Listbox?

Dec 2, 2009

this is my first post, and i thought the best people to help me out are you MSDN forum users.

View 2 Replies

Make A Button Pause An "AxWindowsMediaPlayer"?

Feb 6, 2010

I'm making my own media player using the WMP plugin and can't work out how to tell "AxWindowsMediaPlayer" to pause. If possible I would appreciate it if I could know how to fast forward as well.

View 13 Replies

Downloading A File From FTP?

Nov 28, 2011

I am trying to download a file from an FTP but i keep getting this error:

"Invalid URI: The format of the URI could not be determined."

The code i'm using is:

Dim rfn As String = "/guildford/jobs.jd"
Dim lfn As String = "C:web"
Dim ftp As FtpWebRequest = CType(FtpWebRequest.Create(RFN), FtpWebRequest)
Console.WriteLine("Downloading: " & RFN)

[Code]...

View 1 Replies

Downloading A File In VB?

Sep 20, 2009

I've got a code in VB that will download a txt file from a website. The problem is I want this file to be downloaded into whatever folder that my program is in. for example, if my program was in C:

andom_folder then I would want this txt file downloaded to C:
andom_folder

Here is some of my

My.Computer.Network.DownloadFile _
("http://www.mywebsite.com/test.txt", _
"define where file should go here")

But in the spot to put where to place the file, I can't just put C:andom_folder because individual users may have this program installed in other parts of there computer.

View 3 Replies

Progress Bar With Downloading?

May 13, 2010

How to code a progress bar with file downloading?User need to download a big file and I like to show progress bar from begin to end.

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved