none
User Agent error when I try to play the video from the SharePoint 2010 application page

    Question

  • I am trying to play vedeo uisng Application page, but am getting below error

    Note : If I use same emebedded script in HTML page, Video is playing without any error

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)

    Timestamp: Mon, 16 Apr 2012 07:53:10 UTC

    Message: Object expected

    Line: 337

    Char: 1

    Code: 0

    URI: http://test/_layouts/VideoPlayAndDownload/VideoPlayAndDownload.aspx?id=162&mode=play

    Script I used as below

    try
                {
                    embeddedScript.Append("<object ");
                    embeddedScript.Append(" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'");
                    embeddedScript.Append(" width= '" + videoWidth + "'");
                    embeddedScript.Append(" height= '" + videoHeight + "'");
                    embeddedScript.Append("id = 'FLVPlayer'");
                    embeddedScript.Append(" name='FLVPlayer'");
                    embeddedScript.Append(" classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'");
                    embeddedScript.Append(">");
                    embeddedScript.Append("<param name='movie' value='FLVPlayer_Progressive.swf' />");
                    embeddedScript.Append("<param name='flashvars' value='&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName='" + destinationPath + "'&autoPlay=false&autoRewind=false' /> ");
                    embeddedScript.Append("<param name='quality' value='high'>");
                    embeddedScript.Append("<param name='scale' value='noscale'>");
                    embeddedScript.Append("<param name='salign' value='lt'>");
                    embeddedScript.Append("<embed width= " + videoWidth + " height=" + videoHeight +
                        " id='FLVPlayer' src='FLVPlayer_Progressive.swf' flashvars='&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName='" +
                        destinationPath + "'&autoPlay=" + isAutoPlay + "&autoRewind=false' quality='high' scale='noscale' name='FLVPlayer' salign='lt' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'>");
                    embeddedScript.Append("</embed>");
                    embeddedScript.Append("</object>");
                }


    Marulasiddappa SB (Swamy)

    Monday, April 16, 2012 9:11 AM

Answers