Markercount problems
Markercount problems
Markercount problems
Markercount problems
Markercount problems
Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems
Markercount problems Markercount problems
Markercount problems
Go Back  Xtreme Visual Basic Talk > > > Markercount problems


Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2004, 01:21 PM
jpdiazg jpdiazg is offline
Newcomer
 
Join Date: Dec 2004
Location: Santiago de Chile
Posts: 1
Unhappy Markercount problems


Hi everybody,

I have this problem and I'm very confuse

I'm trying (with a WMP object called Player) to know how many Markers has a WMV file. I have the following code but always returns 0
There is something that I am forgetting to do?
Thanks a lot
Jorge



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Player.mediaCollection.add("C:\a.wmv")
Player.URL = "C:\a.wmv"
Dim a As Integer
a = Player.currentMedia.markerCount
MsgBox(a)
End Sub
Reply With Quote
  #2  
Old 12-02-2004, 05:44 PM
MKoslof's Avatar
MKoslofMarkercount problems MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

The file has to be open before you can retrieve marker count. Look into the OpenStateChange event and the MediaOpen event
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #3  
Old 03-30-2015, 03:56 PM
Circe Circe is offline
Regular
 
Join Date: Feb 2013
Posts: 72
Default

Yes.... I know it`s a bit late to write about this. But... Have you got a very tiny example to solve this question ? It would be helpfull to me !

Thanks a lot !
Reply With Quote
  #4  
Old 03-30-2015, 05:06 PM
Gruff's Avatar
GruffMarkercount problems Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default

Circe,

Yes it is way too late to dig up this old post.
Never dig them up.

I seriously doubt if jpdiazg or MKoslof are active on this form anymore so your talking to the wind.

The forum policy is to start a new post and create a link to the old post.
You will be much more likely to get help.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #5  
Old 03-31-2015, 04:00 PM
Cerian Knight's Avatar
Cerian KnightMarkercount problems Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

I don't have markers to test against, but in the openstatechange event check if e.newState = 13 'wmposMediaOpen before reading markerCount.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Markercount problems
Markercount problems
Markercount problems Markercount problems
Markercount problems
Markercount problems
Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems Markercount problems
Markercount problems
Markercount problems
 
Markercount problems
Markercount problems
 
-->