Announcement

Collapse
No announcement yet.

rekonq and firefox wont play video stream?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    rekonq and firefox wont play video stream?

    i have a linksys wireless webcam that i use as a security cam. even with wine, the monitor software wont work, but thankfully you can access the camera video via remote website (ie. ip address on the net of the camera) I can get to the camera fine via rekonq or firefix (tried chrome too) but none of them display the video. it should be simple java... it displays the page, all the options, but there just isnt a video stream or control buttons for the camera, they should be center of the screen. now, neither rekonq nor firefox prompt me to download any additional extenssions or whatever like IE did, so what am i missing?

    heres the page source if it helps anyone determin what i need to install to view it.




    <html>
    <head>
    <meta name="description" content="LCS 3097">

    <title>Linksys Compact Wireless-G Internet Video Camera</title>

    <LINK REL="stylesheet" TYPE="text/css" HREF="std.css">

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META http-equiv="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">


    <script language="JavaScript" type="text/javascript" src="stdlib.js"></script>
    <script language="JavaScript" type="text/javascript" src="message.js"></script>
    <script language="JavaScript" type="text/javascript">
    <!-- Start Script

    var interval_id = null;

    var run_flag = false;
    var vmode = "mpeg"; // mpeg, jpeg
    // var vmode = "mpeg";
    var PanTilt = "off"; // on, off
    var FrameRate = "30";

    var sizetimer = 1000; // milliseconds
    var vsize;

    var resolutionA = new Array(160, 320, 640);
    var heightA = new Array(154, 246, 486);
    var widthA = new Array(309, 469, 789);
    var borderA = new Array(120, 120, 40); // total (top + bottom)

    function getSizeIndex(imgSize)
    {
    for (var i = 0; i < resolutionA.length; i++)
    if(imgSize == resolutionA[i])
    return i;
    return 0; // no match
    }

    function checkSize()
    {
    if (!document || !document.NetCamPlayerWeb11gv2 || false == run_flag)
    {
    return;
    }
    var newsize = document.NetCamPlayerWeb11gv2.GetSize();

    /*
    alert("CheckSize(), newsize:vsize");
    alert(newsize);
    alert(vsize);
    */
    if (newsize != vsize)
    setObjSize(newsize);
    }

    function setObjSize(newsize)
    {
    if (!document || !document.NetCamPlayerWeb11gv2 || false == run_flag)
    {
    return;
    }
    var index = getSizeIndex(newsize);
    document.NetCamPlayerWeb11gv2.width = widthA[index];
    document.NetCamPlayerWeb11gv2.height = heightA[index];
    document.getElementById("vidDIV").style.height = heightA[index] + borderA[index];
    /*
    alert("setObjSize(), newsize:netcamObj.width:height");
    alert(newsize);
    alert(netcamObj.width);
    alert(netcamObj.height);
    */
    if (!document || !document.NetCamPlayerWeb11gv2 || false == run_flag)
    {
    return;
    }
    //alert(newsize);
    document.NetCamPlayerWeb11gv2.SetSize(newsize);
    vsize = newsize;
    }

    function doPlay()
    {
    var cf = document.forms[0];
    // var rFlag = (cf.h_rotate180.value == "enable");
    var serverAddress = "http://" + self.location.host ;
    //var serverAddress = "http://172.21.4.81";
    if( vmode == "jpeg" )
    serverAddress += "/img/mjpeg.cgi";
    else
    serverAddress += "/img/video.asf";
    if(!document.NetCamPlayerWeb11gv2)
    return;
    if (document.NetCamPlayerWeb11gv2.SetSource(serverAdd ress, vmode, PanTilt, FrameRate, 1, 1))
    {
    // document.NetCamPlayerWeb11gv2.RotateImage(rFlag); //ocx not implement yet
    document.NetCamPlayerWeb11gv2.StartPlay(0,'');
    run_flag = true;
    interval_id = setInterval("checkSize()", sizetimer);
    }
    }


    function doStop()
    {
    run_flag = false;
    if (interval_id)
    clearInterval(interval_id);
    //clearTimeout(timeout_id);

    if (!document || !document.NetCamPlayerWeb11gv2)
    {
    return;
    }
    document.NetCamPlayerWeb11gv2.StopPlay();
    }

    function init()
    {
    var cf = document.forms[0];
    showMsg();
    self.status = msg_connect_livevideo;
    //timeout_id = setTimeout("self.status = ''", 1500);

    vsize = parseInt(cf.h_resolution.value);
    var tmp_size = vsize;
    doPlay();
    setObjSize(tmp_size);
    self.status = '';
    }

    // End Script -->
    </script>



    </head>

    <body marginheight="20" marginwidth="0" leftmargin="0" topmargin="20" bgcolor="#e5e5e5" onLoad="init()" onbeforeUnload="if(run_flag==true) doStop()">
    <form name="dummy" method="post" action="none" onSubmit="return false;">
    <DIV align="center" style="padding-bottom:6px">

    <table border="0" cellpadding="0" cellspacing="0" width="900">
    <tr>
    <td bgcolor="#6766CC" nowrap valign="top"><img src="blue_top_left.gif" alt="" border="0"><img border="0" src="Linksys_Blue_Logo.gif"></td>
    <td bgcolor="#6766CC" align="right" valign="top"><span class="model" style="position:relative;top:-12px">WVC54GC</span><img src="blue_top_right.gif" alt="" border="0">
    </td>
    </tr>

    <tr>
    <td colspan="2" bgcolor="#000000" height="2"> </td>
    </tr>

    <tr>
    <td width="350" bgcolor="#000000" nowrap class="menutext" height="45" align="center">Compact Wireless-G Internet Video Camera</td>
    <td width="550" bgcolor="#6766CC" class="admin" nowrap>
    <a href="main.cgi?next_file=index.htm" class="mainmenu">Home</a><span class="model">|</span>
    <span class="mainmenuitem">View Video</span><span class="model">|</span>
    <a href="adm/admin_fs.htm" class="mainmenu">Setup</a><span class="model">|</span>
    <a href="http://www.linksys.com/" class="mainmenu" target="_blank">Linksys Web</a><span class="model">|</span>
    <a href="hlp_client.htm" class="mainmenu" target="_blank">Help</a><span class="model">|</span>
    <a href="javascript:self.close()" class="mainmenu" target="_top">Exit</a>
    </td>
    </tr>
    </table>
    </div>

    <div align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="900">
    <tr>
    <td><img src="top_bar.jpg" width="900" height="27" alt="" border="0"></td>
    </tr>
    <tr>
    <td bgcolor="#797196" align="center" valign="middle" ID="vidDIV">

    <object classid="clsid7208880-9B7A-43E1-AABB-8C888A5704F9" CODEBASE="NetCamPlayerWeb11gv2.cab#Version=1,0,1,6 " id="NetCamPlayerWeb11gv2">
    <param name="_Version" value="65536">
    <param name="_ExtentX" value="11774">
    <param name="_ExtentY" value="6562">
    <param name="_StockProps" value="0">
    </object>
    </td>
    </tr>

    <tr>
    <td><img src="bottom_bar.jpg" width="900" height="31" alt="" border="0"></td>
    </tr>


    <tr>
    <td bgcolor="#6666cc" align="left" height="33"> <BR> </td>
    </tr>

    <tr>
    <td bgcolor="#6666cc"><img src="cisco_footer.gif" width="900" height="74" alt="" border="0"></td>
    </tr>

    </table>

    </div>

    <input type="Hidden" name="h_rotate180" value="disable">
    <input type="hidden" name="message" value="">
    <input type="hidden" name="todo" value="connect">
    <input type="Hidden" name="h_resolution" value="320">

    </form>



    </body>
    </html>

    #2
    Re: rekonq and firefox wont play video stream?

    Read this page to decide what you need but I installed the repository and the encrypted DVD files and non-native media format choose 32bit or 64..... this page is about playing media in web browser not sure it will help

    https://help.ubuntu.com/community/Medibuntu

    then look at plugins for your browers
    HP Pavilion m7750n desktop<br />AMD 64x2 2.6 ghz cpu,2gb mem,Geforce 6150 Le graphics <br /> Kubuntu 11.04 x86_64

    Comment


      #3
      Re: rekonq and firefox wont play video stream?

      Originally posted by irish man
      ...
      Yep, thanx Irishman (Irish way, Irish ruleZ? ) it helped me to play some videos, e.g. TV on the net etc.
      However, I've met a problem of playing .mov in Kubuntu 10.10. There is played just video but no music and I have tested many players

      [Maybe I'll create net thread with .mov question but I'm just curious if anyone met the same problem]

      Comment


        #4
        Re: rekonq and firefox wont play video stream?

        On that same page lower down it talks about non-native formats did you install those codecs
        I've had that problem too..some play ok others not,Have you tried vlc player seems to work the best...
        HP Pavilion m7750n desktop<br />AMD 64x2 2.6 ghz cpu,2gb mem,Geforce 6150 Le graphics <br /> Kubuntu 11.04 x86_64

        Comment

        Working...
        X