AxWindowsMediaPlayer Mystery?
Aug 29, 2009On the subject of the AxWindowsMediaPlayer.URL property, MSDN warns:Quote:Originally Posted by MSDN
View 3 RepliesOn the subject of the AxWindowsMediaPlayer.URL property, MSDN warns:Quote:Originally Posted by MSDN
View 3 RepliesIn the below code, I create a DataTable and filter it. When I use filter1, everything works as expected.When I use filter2, everything works as expected only if the SubsectionAmount variable is less than 10. As soon as I set SubsectionAmount=10, the dr2 array returns Nothing.I can't find what is wrong. Here is the code:
Imports System.Data
Partial Class FilterTest
Inherits System.Web.UI.Page[code]..
I have this code:
[Code]...
EDIT: CELL_VALUE_FLOAT is a Nullable(Of Double) and CELL_VALUE_INT is a Nullable(of Integer) In Quickwatch the condition evaluates correclty to False, but when running the If() function evaluates to the True part.
I have the interesting task of doing some graphs using VB.NET. So far, everything that I´ve been reading about GDI+ and e.graphics whatever is really weird. All I want to do is1) Calculate some coordinates clicking button 12) Click button 2 to draw a line with the numbers from button 13) Click button 1 to get new coordinates5) click button 3 to clear the graph. So I decided to draw everthing on top of a Panel, called panel1. I have a routine that draws on screen called drawlines,
Private Sub drawlines(ByVal g As Graphics, ByVal c As Color)
Dim p As New Pen(c, 1)
g.DrawLine(p, xStart, yStart, xEnd, yEnd)
[code].....
This problem has frustrated me to the extent that I am now willing to make a one-time donation of GBP25 to the nominated charity of the person who provides what I consider to be the most helpful answer over the next 24 hours.
Let us say I have a VB 6 SP6 Standard EXE project called VB6EXE.vbp and I am working on this in the VB 6 design-time IDE.VB6EXE.vbp references a compiled VB 6 SP6 DLL project, let us call that VB6DLL.dll VB6DLL.dll references a .tlb which references a compiled VB 2008 library assembly, let's call that VB2008.dll So in abstract terms the arrangement looks something like this:
[Code]...
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 RepliesIs there any way to disable the keyboard shortcuts of AxWindowsMediaPlayer or even handle the KeyDownEvent of that control ?
View 1 RepliesHow do I use Wait to complete on AxWindowsMediaPlayer. I wish the video to play first before loading another form.
View 5 Repliesi 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]......
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'..
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 Repliesthis 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 RepliesHow 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 RepliesI'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
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 RepliesI 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 RepliesI 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 RepliesI'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 RepliesAxWindowsMediaPlayer auto play next song from playlist
View 1 RepliesAfter 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]....
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 RepliesI 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?
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 RepliesI 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 RepliesI 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 RepliesI 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]....
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.
Is it possible to display the current songs album art in a picture box, using axwindowsmediaplayer.
View 14 RepliesI 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.
this is my first post, and i thought the best people to help me out are you MSDN forum users.
View 2 Replies