Sum up playlist times (C#)

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
NouGHt
New Cone
New Cone
Posts: 2
Joined: 11 Oct 2013 01:13

Sum up playlist times (C#)

Postby NouGHt » 11 Oct 2013 01:28

Hello,

actually I'm working with the VLC-ActiveX Plugin v2 to realize an embedded player in a C# project. What I want is to add different video files to a playlist and get the total lasting timespan. I found out that is necessary to play the files to extract their lengths. Here I notice that the input.length command merely works correctly if I add a sleep(100) in front of it. This leads me to the assumption that the VLC-player needs some time to extract the time information.

My question is:
Is their a way (maybe using VLC-Player events) to be aware when the player has finished the extraction of the timespan of a single file? And is it possible to extract this time without playing the video? These will help me to optimize my function calculating the whole playlist timespan.

Many thanks in advance,
NouGHt

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 21 guests