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
ADVERTISEMENT
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
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
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
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
Feb 27, 2011
AxWindowsMediaPlayer auto play next song from playlist
View 1 Replies
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
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
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
Dec 11, 2011
I wrote a program to download and play AVI files the files are large in size and long time wise. I have the files playing as they are being downloaded but i can't see how long the file is or seek reliably. i was reading that the AVI headers are in the last 512kb of the AVI file *why would't they put it at the start* lol so my question is is there a way to download the last 512Kb of the file i'm downloading. i have the Bytes Read and Length of the file while its downlaoding i'm just not sure where to go from there, or how to do it atleast. If i had the length in time of the Avi file i could set the trackbar to be able to seek properly. or if someone has an idea how i could get the time of the video by using fps and some math i could prob do it that way too but idk how i would tell how i can find how many kb are in the fps i'm sure it changes so think that way is't going to be reliable. how to get the last 512kb would be the best option not sure if it can be done even.
View 4 Replies
Sep 13, 2008
how can i get it to play other files besides just .wav, like .mp3. wave files are way too large to be used easily if you want a good quality. why cant i play .mp3 files with it?when i convert a 2.1 mb mp3 file to .wav it turns out to be 36 mb?any other ways besides computer.audio to play audio files on command?
View 1 Replies
Jan 9, 2012
I have a program for playing MP3 files using Media Player. The program developed originally under Vista using VBExpress 2010 works fine.
But when I run it under Win7 parts of the program don't work. In both cases the audio is played OK but under Win7 the 'playstatechange' events don't seem to happen!?!
I have put a breakpoint in event and under Vista the events happen...under Win7 the breakpoint is never reached. In both cases I am using VB Express 2010 and running under the debugger. I have seen this problem reported before in the forums but no answer was apparent.
View 9 Replies
May 10, 2011
I've been working on an mp3 alarm for awhile, but had to put it on hold for a bit because I can't get it to play anything other than .wav's. How'd you do it?
View 3 Replies
Sep 11, 2009
I have this task of writing a code that would play a series of wav files and then allow a person make comment on that wav file.
View 1 Replies
Mar 18, 2011
the user may open a 4 minute audio what i wnat is just to record first one minute or between two points(like between 1.14 and 1.32) and save in to .wav format
View 4 Replies
Dec 7, 2009
I am making a program that plays a sound whenever you hit a button, and was wondering if there was a way to play two .WAV files at once. Here is what the code looks like:
[Code]...
View 8 Replies
Nov 16, 2009
mediaSoundPlayer can only handle wav files.
View 1 Replies
Apr 10, 2009
How do I play audio/video files in VB.NET?
remember to mark the replies as answers.
View 1 Replies
Oct 11, 2009
I'm trying to write a program that allows you to; 1) open a mp3 or wav file via the user finding the file and copying the file path and pasting it into a text box and, 2) by pressing a button it will play the desired file, and then 3) by pressing another button it will stop playing the file. I've already have this under pat,
Private Sub cmdOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOne.Click
My.Computer.Audio.Play(My.Resources.buzzer, AudioPlayMode.Background)
End Sub
View 1 Replies
Jan 21, 2011
im making a program that can play mp3 files but now i only have to figure out how to make them load in a listview i thougt of starting the program then letting it show sort of a folder chooser and then it should open the music chooser form ... (that works fine) now to make al the mp3 inside the folder load should i use sort of a filter or somthing i thougt of [code]
View 8 Replies
Apr 19, 2011
I dont have bass dll or other files...How i play xm audio files in project, and whats the command to Call the function FOR PLAYING.
View 2 Replies
Feb 11, 2010
Imports System.IO
Public Class Form1
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
[code]....
View 7 Replies
Apr 3, 2011
Can a media player written in VB be modified to do this: randomly choose an avi file from a directory or subdirectory, choose a random starting point within that file and then play a clip of a random length (within user defined parameters) then without prompting repeat this sequence?
I would like just such a media player but there doesn't appear to be one already out there so my only other option is to write one myself. I know nothing about VB and last programmed in BASIC in the 90s. Before I invest time and effort in learning VB I need to know if it can actualy do this at all.
View 4 Replies
Oct 10, 2009
I have a media player in which I would like to load files from a playlist to play in the player.
Dim song As String
Dim i As Integer
Dim ItemCount As String
[Code]....
I have managed to get the songs from the playlist into the listbox but using the for loop above it it only play the first song in the list.
Is there some code I can use in the for loop to tell it to wait until the song is finished playing before is processes the next iteration.
View 1 Replies
Dec 14, 2009
I need to play multiple files simultaneously at the moment i am trying to use mciSendString() API it plays the files listed in a listbox. But it is only playing the first one i assume it would play the next one after the first is finished... cbf waiting to see.
Note this was an attempt in C#:
private void PlayButton_Click(object sender, EventArgs e)
{
if (SongsListBox.Items.Count > 0)
{
[Code]....
View 3 Replies
Oct 14, 2011
I already have a code to play music files in the same folder with the app..
I just wondering if you have any other ideas aside from the code below.
If System.Diagnostics.Debugger.IsAttached() Then
'Debugging mode
resourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath & "")
[Code]....
View 1 Replies
Dec 11, 2010
I have 1-10 audio files that were selected by the user using an "openFileDialog" (with a button and textbox for each). Now, I want it to play all of the files that they selected in a random order when the user clicks "Button12." After all the files have been played, I want it to start over and play all of them in a random order again. I don't want it to stop until the user clicks "Button13." When the user clicks "Button 12" again, it should start playing them in a random order again.
View 4 Replies
Jan 24, 2009
I am building a music player. I found this class that has worked great for what I need. However, for some reason, it won't play certain audio files. IT just reads it as 0 duration. I have no idea why. Below is the code that plays the file.
[Code]...
View 8 Replies
Apr 19, 2009
How to play an audio file automatically when form loads?
View 5 Replies
Jun 8, 2011
how to open and play video files in windows form? also save videos in a specific folder inside the project.
View 2 Replies