在浏览器中播放gsm文件时出现问题 [英] Problem playing gsm file in browser.

查看:87
本文介绍了在浏览器中播放gsm文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多.gsm格式的文件。我确实将它们放在gridview中并嵌入了与每个文件/行对应的VLC播放器插件。当我尝试在客户端PC上播放文件时,播放器在客户端PC上搜索该文件。我希望它从服务器中选择文件并在请求时在客户端上播放。这是代码:



< embed type =application / x-vlc-pluginautoplay =noloop =yes height =30target =<%#Eval(file)%> /> 



< object classid =clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921codebase =http://download.videolan。 org / pub / videolan / vlc / last / win32 / axvlc.cab>< / object> 





其中<% #Eval(file)%>提供要播放的文件的路径。在服务器上它工作正常但在客户端它不起作用,因为播放器在客户端PC上搜索不存在的文件路径。



请帮帮我解决此问题..

解决方案

根据您的解释,您尝试将VCL播放器链接到某个文件,其路径如 D:\ filenamename .gsm ...

D:对应于您服务器上的其中一个干!但是当客户端看到它时会将其解释为本地 D:(如果没有 D:,则会出错)它是预期无处你告诉你的页面它是一个服务器 D: ...

如果环顾四周你可以看到所有文件链接在网络上是http或ftp类型。查看截面上发布的链接。

要解决此问题,您可以执行以下操作之一:

1.创建一个可以将文件流式传输到客户端的页面 - 使用简单网页流式传输文档 [ ^ ]。在这种情况下,您的代码将如下所示:

 <   embed     type   =  application / x-vlc-plugin    autoplay   =  no   < span class =code-attribute> loop   =  yes    height   =  30    target   =  FileStream.aspx(<% #Eval(  file)%>)    /  >  



2通过IIS共享您的文件(或包含文件的文件夹),使其对外界可见,并将VCL图层链接到它...

这可以帮到你 - http://www.iis.net/learn/install/installing-publishing-技术/安装和配置 - webdav-on-iis [ ^ ]

---

恕我直言 - 第一个选择更好。 ..


I have many files in .gsm format. I did put all them in a gridview and embedded a VLC player plugin corresponding to each file/row. When i try to play a file on client PC, the player search for the file on client PC. I want it to pick the file from the server and play on client when requested. Here is the code:

<embed type="application/x-vlc-plugin" autoplay="no" loop="yes" height="30" target="<%#Eval("file") %>" /> 


<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"></object>



Where <%#Eval("file") %> provides the path of file to be played. On server it works fine but on client it doesn't work because the player searches for that file path on client pc which doesn't exist.

Please help me out to solve this problem..

解决方案

According to your explanation you try to link VCL player to some file with path like D:\filename.gsm...
That D: is corresponding to one of the dries on your server!!! However when client see it it will interpret it as his local D: (or error if no D: presents) and it is expected as nowhere you told your page that it's a server D:...
If you look around you can see that all file links on the web are of type http or ftp. Look at your own link posted with the screenshot.
To solve the problem you may do one of these:
1. Create a page that can stream your file to the client - Stream Your Documents Using Simple Web Page[^]. In that case your code will look like this:

<embed type="application/x-vlc-plugin" autoplay="no" loop="yes" height="30" target="FileStream.aspx(<%#Eval("file") %>)" />


2. Share your files (or folder containing the files) via IIS to make it visible to the outside world and link the VCL layer to it...
This may help you - http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-webdav-on-iis[^]
---
IMHO - the first option is better...


这篇关于在浏览器中播放gsm文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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