在ASP.net网站中播放视频的问题 [英] Problem in playing video in ASP.net website

查看:69
本文介绍了在ASP.net网站中播放视频的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net网站上,视频在托管该网站的系统上运行良好,但是在其他系统(客户端系统)上却没有运行,我已经尝试了3个多小时,但请谅解一下.帮帮我.

In asp.net website , Videos are palying well on that system on which website hosted,but these are not palying on others (Clients systems),I have tried more than 3 hours,But I am Unable to undersatand the problem please help me.

embed1.Attributes.Add("src", @"http://~/Uploads4/");
            embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString()));
            embed1.Attributes.Add("ShowControls", "1");
 
<embed  runat="server" id="embed1" type="application/x-mplayer2"
 
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 
 
width="424" height="379" 
 
 autostart="1" showcontrols="1" showstatusbar="1" videoborder3d=''1'' designtimesp=''5311'' loop=''true'' >
 
</embed>

推荐答案

尝试使用Server.MapPath到达物理路径.
例如Server.MapPath("~/Uploads4")
Try using Server.MapPath to get to the physical path.
e.g. Server.MapPath("~/Uploads4")


这篇关于在ASP.net网站中播放视频的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆