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


ADVERTISEMENT

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

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

AxWindowsMediaPlayer Auto Play Next Song From Playlist

Feb 27, 2011

AxWindowsMediaPlayer auto play next song from playlist

View 1 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

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

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

Show Messagebox/play Sound When System Time = Time Displayed In Listview?

Nov 13, 2010

Basically i'm trying making a task manager program for myself. I want to know how I can display a message box and or play a sound when system time = time displayed in listview. I have used a dropdown box for the user to select which option they would like to select - sound or message box to popup. The data for the task will be stored in a listview box. I want it so that when the date and the time is = to the date and time set for the reminder the action will follow.Here is my code so far:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim notext As String = ""
If TextBox1.Text = notext Then[code]....

View 12 Replies

Play A Simple Note Passing It The Frequency, Stereo Position, And Duration?

Aug 19, 2009

In VB.NET 2005. i am trying to experiment with sound. I started out trying to produce a single note at a single left-right position, for a particular duration (maybe until i shut it off. with a particular frequency.It can be a sine wave, or a square wave or maybe a general midi sound. This seems to me to be a simple task, but i cannot find out how to do this.I suspect that the answer lies inside direct sound or xaudio2. I want a simple solution i don't want to have to spend 1600 hours learning xaudio2 in order to learn how to how to make a beep.The ideal answer wold be for me to write a routine that accepts waveshape,freq,volume,Stereo_Position,duration).

View 4 Replies

Get Current Key Position In Text Box?

Jun 19, 2011

In winform's textbox, how to get the current key-in position?

For example -

textbox.text = 3056.98

If I type '7' after '0', current key-in position is 3.

In vb.net, which textbox event or keyword could I get this position value?

View 2 Replies

Calculate The Time Difference Between Two Points In Time?

Jun 18, 2012

I am trying to calculate the time difference between two points in time. I am using: Environment.TickCount.I set a long variable to the Environment.TickCount and then a second long variable to Environment.TickCount at a later point in time. I then subtract the second long variable from the first long variable, yet an incorrect difference is returned.

View 2 Replies

Get The Difference Of Login Time And Logout Time?

Apr 10, 2012

How to get the difference of login time and logout time.(Eg. Login Time = login1 and Logout time = logout1).

what will be the format of the value.

View 4 Replies

Find A Character At A Current Position?

Oct 31, 2011

I am trying to develop a HANGMAN game and i need to implement a button where the user can click on it to "buy" letters. So, i designated 2 text boxes (one visible containing stars and another one not visible containing the word that should be guessed), and i wrote the following piece of code so that once the user presses the button any of the stars will turn to the correct letter. My question is, i found the index of "*" and removed it, and now i want to insert the corresponding char with this index (WordInLetters). How can i find what char is at index "index" in vb.net?

Private Sub picBuyLetters_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picBuyLetters.Click
Dim index As Integer = txtWordinStars.Text.IndexOf("*")

[Code].....

View 3 Replies

Get The Current Write-position Using The BinaryWriter?

Mar 19, 2012

How do I get the current write-position using the BinaryWriter. I need to store the position in order to read from that position afterwards. (I know it would give the position where the next write would start, that will be taken care of).

View 2 Replies

Make NOT Start From 0,0 But Current Position?

Mar 30, 2012

Private Sub Button7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button7.Click

[Code]...

oook so this when button7 clicked it will move my mouse to the X:700 and Y:700, but will start from the X:0 and Y:0 but i tried making start from my current mouse position but idk how not working:

View 11 Replies

Start A For Loop From Current Position?

Mar 29, 2012

i have a for loop "for each val in values" I want to within this loop some how check positions ahead of the current position for a condition. I am unsure how i can do this however apart from having an inner for loop to loop from the current position. If that is the case I am not sure how i can get the current position.I have attempted this with this code below, the inner for loop.

If creditPoints = "10" Then
Dim valcount As Integer = Val.Count
For intLoopIndex = valcount To Values.Cou

[code].....

View 2 Replies

VS 2008 : Get The Current Mouse Position?

Oct 2, 2009

How would I get the current mouse position?

View 2 Replies

VS 2010 Current Position And Duration?

Apr 20, 2010

Imagine that I have a timer checking the current position, and always checking if it is equal to the duration of the sound.

View 13 Replies

Clock - UTC - Give The Users Current Time Zone/local Time

Jul 22, 2011

So I currently have the following:

2 timers

2 labels

1st label is "Clock" this pulls the time from the users current time zone/local time

2nd label is "UTCClock" Which would be UTC time

Now I have this for the first label: clock.Text = Format(TimeOfDay, "hh:mm:ss tt")

Which would give the users current time zone/local time. As for the UTC.. how would I add in for the UTC time from where the user is located at? I did some searches.. but couldnt find what I was looking for.. IM pretty sure its not as easy as getting the users current time zone/local time.. So im assuming that Theres a "bit more" code into getting UTC time..

View 5 Replies

When Form Loads It Load The Current Date And Time But The Time Does Not Change It Should Run?

Aug 24, 2010

I am using this line of code on form load event it is working very fine but i have to problems

1. It replaces the form name and display the date and time but i want to keep both date and time and forms caption separated by some space.

2. When form loads it load the current date and time but the time does not change it should run.

What should i do please please help me code is as follows

Me.Text = Date.Now.ToLongDateString & " - " & TimeOfDay

View 11 Replies

Make The Windows Media Player Element In VB Play The Next Song After The Current One Is Done?

Dec 21, 2009

How would I make the Windows Media Player element in visual basic play the next song after the current one is done. I know you can do it with a playlist but how would I do it with out any kind of list boxes or stuff like that. To browse for the files i use a open file dialog.

View 9 Replies

Asp.net - Get The Current Date And Time In Textbox In IST ( Indian Standard Time)

Dec 6, 2010

How to get the current date and time in textbox in IST ( Indian Standard Time) in vb.net ?

View 1 Replies

Bindingsource.position/current. After Data Been Updated?

Oct 13, 2010

Bindingsource.position/current. after data been updated

View 8 Replies

Forms :: Get The Current Position (x And Y Coordinates) Of Cursor?

Feb 5, 2011

how can i get the current position of the cursor in real time inside a picturebox?

View 2 Replies

Monitor The Current Position Of The Mouse Cursor?

Apr 21, 2009

I'm trying to create a hook to monitor the current position of the mouse cursor. Nothing important, I just need to count some pixels during interface design and wanted to learn how to create a hook, so I decided to go for a hard way instead of a sane way.

I've found example code which declares the following function:

<DllImport("User32.dll", CharSet:=CharSet.Auto, _
CallingConvention:=CallingConvention.StdCall)> _
Public Overloads Shared Function SetWindowsHookEx _

[Code].....

But Appdomain.GetCurrentThreadID generates the warning: "'Public Shared Function GetCurrentThreadId() As Integer' is obsolete: 'AppDomain.GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threads). To get a stable identifier for a managed thread, use the ManagedThreadId property on Thread."

I've tried using ManagedThreadID, but that doesn't work. The thread ID returned seems to be the logical thread ID of the thread, as it runs in the .net runtime, rather than the Win32 thread identifier.

Calling the function ith AppDomain.GetCurrentThreadID works, but I really would like to have a "stable identifier" for my thread.

Can someone explain to me whether it is possible to use ManagedThreadID in this context (I assume not) and, if not, the things I need to avoid in order to stop the AppDomain.CurrentThreadID from becoming "unstable"?

View 3 Replies

VS 2010 - How To Click Mouse At Current Position

Feb 27, 2012

Well, How can I click the mouse at it's current position in Visual Basic .NET 2010?

View 9 Replies

VS 2010 Comparing Current Time To Stored Time?

Mar 27, 2011

I'm writing a report scheduler that is somewhat of a clone to the backupexec scheduler and the layout can be seen in post #10 here: [URL]..It works great and saves/edits/deletes records just fine, but now i need to compare those records one at a time in a windows service that i'm writing in order to trigger automated report creation and emailing - i already have the report and i already have the code for the emailing, i'm just looking for the most efficient way to loop through the table (that i've pulled in to a dataset) and compare its records with the current date and time - if true, the event fires.

[Code]...

1stSun, 2ndSun etc are bit fields, time is a datetime, and the remainder are varchar. My service checks the database every thirty seconds.The english version of what i'm trying to do is "Connect to the database, grab the entire table (it will always only have 5-6 entries max, so i felt 30 second sweeps was okay), and If today is the 1st Sunday of the month, and it is currently 11:00:00 a.m. (could be any day or time, this is just an example) - loop through the dataset to identify if any records match the time field or greater - if they do, fire the report

View 2 Replies

DB/Reporting :: Bind These Textboxes With Current Datagridview Position?

Apr 10, 2008

On one of my forms i have a datagridview binded to an Access database. It displays only first and last names of my customers in a datagridview.What i want to do now is, when i double-click on one of the customers another form will open and display details for this customer (detailed view - textboxes).

What i have accomplished so far is that when i double-click on a customer in datagridview a form opens with details (linked to the same binding source as datagridview). But the problem is that it always opens the first record even if i dobule-click second or third in datagridview.I don't know how to bind these textboxes with current datagridview position?

View 1 Replies







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