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
http://videoplayer.codeplex.com/
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" />
Use,
document.getElementById("customMediaPlayer").GetDuration();
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
hi,
Referance link :
http://geekswithblogs.net/VROD/archive/2009/04/07/130803.aspx
Regards,
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 -
http://dev.opera.com/articles/view/custom-html5-video-player-with-css3-and-jquery/

C# .NET 28-Oct-12 08:11 PM I need sample programme for steganography using Asp.net with C# http: / / www.codeproject.com / KB / security / steganodotnet7.aspx http: / / www.developers.net / tsearch using the graphical designer, I will need to manually assign an event handler to the Elapsed event. The Event Handler will basically parse the given Stego Bitmap to retrieve the commands 10 seconds t.Enabled = true; t.Interval = 10000; / / Assign a new event handler to the Elapsed method t.Elapsed + = new System.Timers.ElapsedEventHandler(t_Elapsed); / / Start the timer t.Start(); / / Loop repeatably while (true) ; } / / The the traditional botnet where the client connects to an IRC channel or some other central media to receive commands in real time. In this method, the attacker loses real-time response such as using the System.Timers class and setting up custom event handlers for the Elapsed method, and creating and instantiating a simple class. Hope it helps. The application provides some ElapsedEventHandlerElapsedEventArgs, configurations, distributed, catalog, trigger description: about Steganography I need sample programme for steganography using Asp.net with C# 28-Oct-12 08:11 PM
It's Better CLEAR or NEW ? .NET Framework
to actually see a problem to fix it. - - Patrick Steele (patrick@mvps.org) http: / / weblogs.asp.net / psteele I couldn't disgree more, but that's just me. My goal is to 6400 with 2 gb mem , IO stripe disk and 2 Gig 667 mem on windows media center 2005 it is one time faster and one time slower , and sometimes the differences a.Clear() for (double i = 0; i < = 1000; i++) { a.Add(i); } } Interaction.MsgBox(s.Elapsed.TotalMilliseconds); In various trials, the New took about 6 seconds and the Clear 3 seconds
Silverlight Binary Serialization and Compression with WCF Services
using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.IO; using Serialization; using SLcompression.ServiceReference1; using SLcompression List <TestObject> objs = e.Result; Dispatcher.BeginInvoke ( () = > { EndTime = DateTime. Now ; this .Grid1.ItemsSource = objs; var elapsed = EndTime - startTime; this .Label1.Content = elapsed.TotalMilliseconds.ToString(); } ); } void client_ProcessObjectsCompleted(object sender, ProcessObjectsCompletedEventArgs e) { byte[] compressed = e.Result; List <TestObject> objs CompressedBytesToObject(compressed) as List <TestObject> ; Dispatcher.BeginInvoke ( () = > { EndTime = DateTime. Now ; this .Grid1.ItemsSource = objs; var elapsed = EndTime - startTime; this .Label1.Content = elapsed.TotalMilliseconds.ToString(); } ); } private void ButtonNew_Click(object sender, RoutedEventArgs e) { SendCustomerList(); } private void ButtonOld_Click(object sender them to an assembly that can then be referenced by both the Silverlight and the ASP.NET / WCF projects. If you do not do this, serialization may break. When you run the
utf-8" / > <title> Birthday Reminder< / title> <link href = "screen.css" rel = "stylesheet" type = "text / css" media = "screen" title = "CSS" / > < / head> <body> <% Do While Not rs.EOF Response.Write(rs( "fname" ) & " " & rs this will help you Untitled document Here is how you can schedule mail if its asp.net / / Inside Global.ascx void Application_Start( object sender, EventArgs e) { / / Code that runs on application startup Set the Interval to 5 seconds (5000 milliseconds). myTimer.Interval = 5000; myTimer.AutoReset = true ; myTimer.Elapsed + = new ElapsedEventHandler(myTimer_Elapsed); myTimer.Enabled = true ; } public void myTimer_Elapsed( object source, System.Timers. ElapsedEventArgs e
What is application Control in asp.net? ASP.NET Web server controls are objects on ASP.NET Web pages that run when the page
Can any one explain about What is Http Handler in ASP.NET An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response
i want refer asp.net E book . . which book is better for refer. . pls tell me Hi, Professional ASP.NET 3.5 Book : http: / / weblogs.asp.net / scottgu / archive / 2008 / 05 / 06 / professional-asp-net
hi all, what is tracing? how to achieve tracing in asp.net? different ways of doing tracing? thanks and regards Aman Khan hi. . Tracing in ASP.NET 2.0 Tracing is a way to monitor the execution of your ASP.NET application
hi, how gridiview is used in uploading multiple images in asp.net check this link. . . http: / / weblogs.asp.net / imranbaloch / archive / 2010 / 04 / 03 / image-preview-in-asp-net-mvc.aspx keywords: ASP.NET