Elecard
May 18, 2013, 10:31:17 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Video doesnt come up  (Read 4674 times)
anujane
Newbie
*
Posts: 1


View Profile
« on: October 08, 2007, 02:15:10 pm »

function playStream(streamType, protocol, ip, port) {
  var url = "src=" + protocol + "://" + ip + ':' + port;
  document.clientui.url.value = url;
  gAspectRatio = "aspect-ratio=" + "4:3";
       
       if(protocol == "http") {
           url = 'elecard://' + ip + ':' + port;
        } else if((protocol == "igmp")||(protocol == "udp")) {
           protocol = "udp";
          url = 'elecard://' + ip + ':' + port + '/udp';

        } else {
                  url = 'elecard_rtsp://' + ip + ':' + port;
        }
       
       
        document.getElementById("mediaPlayer").fileName=url;
        document.getElementById("mediaPlayer").autoStart=true;
     
       alert("elecard");
 

        document.getElementById("mediaPlayer").play();

 
}

I have this  function which plays the video in the windows media with elecard plugin
The problem is if i remove the last alert message which is just before play then video doesnt play, If alert is there then video plays after hitting OK on the alert. Could somebody please help me what this alert might be doing or what shud be done instead of alert so that the video plays automatically.

Thanks & Regards
Logged
vlad_marchenko
Elecard Team
*
Posts: 60


View Profile WWW
« Reply #1 on: October 08, 2007, 11:46:26 pm »

Most probably, the problem occurs because you do not give enough time in your application to build filter graph. When alert window appears an interval occurs before start command and this time is enough for filter graph to complete building process. We would advise you to set up short timer instead of alert before play command.
Logged

Technical Support Dept.
Elecard Ltd.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!