Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi this is lakshmana rao, my web having a player control of source code like this
HTML
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="player" 
            style="position:absolute; top: 195px; left: 802px; height: 300px; width: 450px;">
        <param name="url" value="<%=mySrc %>" />
        <param name="src" value="<%=mySrc %>" />
        <param name="showcontrols" value="true" />
        <param name="autostart" value="true" />
        <!--[if !IE]>-->
        <object type="video/x-ms-wmv" data="<%=mySrc %>" width="450" height="300">
            <param name="src" value="<%=mySrc %>" />
            <param name="autostart" value="true" />
            <param name="controller" value="true" />
        </object>
        <!--<![endif]-->
    </object>


and my button event is like this

C#
public string mySrc; 

protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
         string filename;
        DataTable dtable = mes.select(GridView1.DataKeys[e.NewSelectedIndex].Values[0].ToString());
        if (dtable.Rows.Count > 0)
        {
            filename = dtable.Rows[0].ItemArray[2].ToString();
            mySrc =Server.MapPath("~/messages/" + filename.ToString());
        }
    }



this is code i have; this code plays my selected video when i runt it in localhost but in my server it doesn't and no error will come. no buffering is started it goes like this "opening media..........." then stopped. Can any one guide me in this
Posted

Does the player show up, but the actual video never does? If so, most likely the "src" value is not correct for some reason. Do a View | Source on the web page and see where it thinks the video should be sitting.
 
Share this answer
 
Hi, these ones are tough for an 'answer' per se, but here's some help to debug:

1) Check the source of the video as it's rendered in the page when you view it in the browser
2) Make sure the server folder has the right permissions
3) Use Firebug in FireFox or Developer Tools in IE to see if there are any network problems when trying to access the file

Hope this helps to get you in the right direction.

Cheers.
 
Share this answer
 
Comments
lakshmanarao.vemula 23-Aug-11 17:09pm    
i check it in firebug it gets the right path of the file and i checked the file permissions also all are correct but the video is not playing.
GenJerDan 23-Aug-11 21:46pm    
Check the Event logs (Application) on the server. If nothing there, check the IIS logs, see if you're getting anything but a 200.
lakshmanarao.vemula 24-Aug-11 6:22am    
hi i check the log file it shows like this
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2011-08-23 20:33:44 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /admin/test.aspx - 80 - 119.235.48.242 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+rv:6.0)+Gecko/20100101+Firefox/6.0 - - radicalchristiyanity.com 500 0 0 3266 352 1002
2011-08-23 20:34:48 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /admin/test.aspx - 80 - 119.235.48.242 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+rv:6.0)+Gecko/20100101+Firefox/6.0 - - radicalchristiyanity.com 500 0 0 3266 352 446
2011-08-23 20:35:41 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /admin/test.aspx - 80 - 119.235.48.242 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+rv:6.0)+Gecko/20100101+Firefox/6.0 - - radicalchristiyanity.com 500 0 0 3266 352 524
2011-08-23 20:35:54 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /admin/Login.aspx - 80 - 119.235.48.242 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+rv:6.0)+Gecko/20100101+Firefox/6.0 - - radicalchristiyanity.com 500 0 0 3266 353 259
2011-08-23 20:38:17 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /admin/messages/IIUI-876-Dasy.wmv - 80 - 119.235.48.242 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+rv:6.0)+Gecko/20100101+Firefox/6.0 - - radicalchristiyanity.com 200 0 995 262144 369 5959
2011-08-23 20:38:17 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /admin/messages/IIUI-876-Dasy.wmv - 80 - 119.235.48.242 HTTP/1.1 NSPlayer/12.00.7601.17514+WMFSDK/12.00.7601.17514 - - radicalchristiyanity.com 206 0 995 131072 383 4386
2011-08-23 20:51:36 W3SVC85 WIN-WUMG9DBX8MP 111.118.180.21 GET /messages/Messages.aspx - 80 - 119.235.48.242 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+rv:6.0)+Gecko/20100101+Firefox/6.0 - - radicalchristiyanity.com 500 0 0 3266 359 1014
#Software: Microsoft Internet Information Services 7.0
TheyCallMeMrJames 24-Aug-11 9:14am    
So, just to confirm, what happens if you put /admin/messages/IIUI-876-Dasy.wmv into your browser?
GenJerDan 24-Aug-11 16:12pm    
OK. That's just weird. You get "500" on the regular pages (an IIS Internal Server Error), but 200/206 on the video file (which is ok).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900