c# MoveToPosition()

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
base64
New Cone
New Cone
Posts: 7
Joined: 26 Jan 2008 00:39

c# MoveToPosition()

Postby base64 » 29 Jan 2008 10:20

can someone explain what the difference between time and position is and how i might use them?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: c# MoveToPosition()

Postby Jean-Baptiste Kempf » 29 Jan 2008 18:37

Position is supposed to be a float between 0 and 1 and time is time elapsed, IIRC
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

base64
New Cone
New Cone
Posts: 7
Joined: 26 Jan 2008 00:39

Re: c# MoveToPosition()

Postby base64 » 31 Jan 2008 01:14

I understand the type it is, but I do not understand why I must pass a value between 0 and 1 in order to seek to a specific time in seconds.

Why can't I just pass X number of seconds and seek there? or how can i calculate this float number to achieve the same effect?

I would think this is something essential to a video player but I have never gotten an answer. :?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: c# MoveToPosition()

Postby Jean-Baptiste Kempf » 31 Jan 2008 02:04

Duh....

you have a setTime in VLC... This seems obvious...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

base64
New Cone
New Cone
Posts: 7
Joined: 26 Jan 2008 00:39

Re: c# MoveToPosition()

Postby base64 » 14 Mar 2008 01:44

this is the c# interface and it does not properly work.

the set method for the time property is actually unavailable, and if i modify the c# wrapper to enable this, it works to seek the video but the internal position is not updated


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests