找不到视频或访问被拒绝

发布于 2024-09-11 14:07:26 字数 640 浏览 4 评论 0原文

我用 C# 在 ASP.NET 3.5 中制作了一个网站。在默认页面中,我们有一个 swf 播放器。我们有一个视频文件。文件格式是 .mp4。

代码在这里:-

类型=“application/x-shockwave-flash”

id=“player2”

名称=“player2”

src=“images/player.swf”

宽度=“350”

高度=“280”

allowscriptaccess=“总是”

allowfullscreen=“true”

flashvars="file=../images/vtwsub.mp4"

/>

问题是,当我尝试在本地运行此代码时,它会运行,但是当我将相同的代码放入客户端 Windows 7 服务器时,它会显示“视频未找到或访问被拒绝:../images/vtwsub.mp4。

我已提供服务器中 WWWROOT 文件夹的完全访问权限,但问题仍然存在。我需要很快解决这个问题。我试图在谷歌中找到一些答案,但没有得到确切的答案。如果有人有任何想法,请回复我。 提前致谢。

I have made a website in ASP.NET 3.5 With C#.In the default page we have a swf player.We have one video file.The file format is .mp4.

The Code is here:-

type="application/x-shockwave-flash"

id="player2"

name="player2"

src="images/player.swf"

width="350"

height="280"

allowscriptaccess="always"

allowfullscreen="true"

flashvars="file=../images/vtwsub.mp4"

/>

The problem is that when i try to run this code on my local it runs but when i put the same code in clients Windows 7 server it says "video not found or access denied: ../images/vtwsub.mp4.

I have provided the full access of WWWROOT folder in the server but problem remains constant.I need to fix this issue very soon.I have tried to find some answer in google but not getting the exact ans.If anyone has any idea, please reply me.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烟凡古楼 2024-09-18 14:07:26

我弄清楚了。就我而言,服务器存在问题。在这种情况下,您应该检查以下事项:-

1)视频是否正确放置在正确的位置。

2)任何名称问题。(如拼写错误)

3)检查服务器权限。(某些服务器不允许访问这些文件。假设您的文件是 mp4 格式或其他格式,所以尝试转换为 .swf 并尝试访问.)

我真的希望它能帮助你

谢谢......

I figure it out.In my case server issue was there.In this type of case you should check following things:-

1)video is properly placed in the right place.

2)Any name issue.(like misspell)

3)Check server permission.(some server will not allow to access those file.suppose you file is in mp4 format or anything else so try to convert in .swf & then try to access.)

I really hope it will help you

Thanks.......

孤独患者 2024-09-18 14:07:26

如果你还没有解决你的问题,这里是解决方案,
不要将“player.swf”文件放在任何子目录下,尝试将其放在index.asp或index.php所在的根目录中。

你的结构:
src="images/player.swf"

我的:
src =“player.swf”

问候,
穆扎法尔·阿里

if you have not solve your problem yet here is the solution,
don't put "player.swf" file under any sub directory try putting it in the root directory where your index.asp or index.php existed.

your structure:
src="images/player.swf"

Mine:
src="player.swf"

Regards,
Muzafar Ali

唐婉 2024-09-18 14:07:26

这听起来可能是路径问题。我会使用 Firebug 或类似的东西进行调试以查看 http 流量。在那里,您可能会看到视频出现 404,在这种情况下,它很可能指向错误的位置(即从正确位置向上或向下一个目录)

This sounds like it could be a path issue. I would debug using Firebug or something similar to view the http traffic. There you might see a 404 occuring for the video, in which case it is most likely pointing in the wrong place (i.e. up or down one directory from the correct place)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文