C# .NET - Display a link on media elapsed time

Asked By Dom Afonso on 22-Jun-12 12:59 PM
I have 2 videos on asp.net page. The first one plays for 4:05min and the second one for 3:05min. The second one has a link hiden. All I want is that when the full time for the first video elapses, the 2 video link be displayed so that the user can play. How do I accomplish this?
Ravi Maurya replied to Dom Afonso on 22-Jun-12 02:23 PM
Try to embed Youtube API you can get it from this link


Hope this might help you.
[)ia6l0 iii replied to Dom Afonso on 22-Jun-12 11:20 PM
You might have to try it with client-side scripting.  I have heard that the object tag, of mediaplayer, exposes the GetDuration method that tells us the time span of the media that it plays. It is worth a try. 

If your markup is as follows,
<object id="customMediaPlayer" />


Hope this helps.
Vikram Singh Saini replied to Dom Afonso on 23-Jun-12 05:12 AM
If possible could you please share your code of running video in asp.net. Because we can try your requirement in same code part and can get to solution as you have asked for.
kalpana aparnathi replied to Dom Afonso on 24-Jun-12 07:54 AM

Referance link :


Jitendra Faye replied to Dom Afonso on 25-Jun-12 01:17 AM
you can get duration by using this code-

var video_duration = $gVideo.attr('duration');

Refer this link -