response.write 仅适用于 ASP.NET 的 IE

发布于 2024-08-30 10:40:45 字数 648 浏览 4 评论 0原文

我正在使用 uploadify (http://www.uploadify.com/) 将视频上传到我的网站然后使用ffmpeg将它们转换为*.flv并播放预览。但它不能完全与 firefox、chrome 或 safari 配合使用。

uploadify 提供了一个 onComplete 接口,因此当您的网站上使用脚本(.ashx、.php)来保存上传的文件时。您可以使用response.write("blabla")或(echo "blabla")来调用注册为OnComplete的javascript函数。

我用一些视频文件(如 avi、mpg、mp4)进行了测试,它们小于 50mb,并且它们都适用于所有 4 个浏览器。但是,当我尝试上传 75mb mp4 文件时,它在 IE 中工作,但在其他三个中不起作用。我可以看到.flv 文件已在上传文件夹中创建,我可以在response.write("blabla") 之后看到调试消息输出,但未调用javascript 函数。即预览没有播放。

有人知道为什么吗? response.write 上是否有超时或其他问题,所以在一段时间后它就无法工作?例如,75mb 文件比我尝试过的其他较小尺寸的文件需要更长的时间来转换。

谢谢

I'm using uploadify (http://www.uploadify.com/) to upload video to my site then convert them into *.flv using ffmpeg and play preview. But it dosen't fully working with firefox, chrome or safari.

uploadify provides a onComplete interface, so when the script (.ashx, .php) used on your site for saving uploaded files. you can use response.write("blabla") or (echo "blabla") to invoke the javascript function that registed as OnComplete.

i have test with few video files like avi, mpg, mp4, they are less then 50mb,and they all worked with all 4 browsers. However, when i was trying to upload a 75mb mp4 file, it worked in IE, but didn't working in other three. I can see the .flv file has been create in the upload folder, i can see debug messsage output after response.write("blabla"), but the javascript function was not invoked. i.e. the preview didn't play.

anyone knows why? is there a timeout or something on response.write so after a period of time it wont work? e.g. 75mb file took longer time to convert than other smaller size file i tried.

thansk

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

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

发布评论

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

评论(2

楠木可依 2024-09-06 10:40:45

可能是服务器超时或缓存问题。或者 此处所述的 uploadifiy 属性不正确

Could be a timeout from the server or caching issue. Or an incorrect uploadifiy property as stated here

乖乖哒 2024-09-06 10:40:45

在深入查看源代码并进行谷歌搜索后。问题范围缩小到

DataEvent.UPLOAD_COMPLETE_DATA 和 firefox 问题,

有人报告了错误
http://bugs.adobe.com/jira/browse/FP-1419

after a deeper looking in the source code, and googling around. the problem is narrow down on

DataEvent.UPLOAD_COMPLETE_DATA and firefox issues

someone reported bug
http://bugs.adobe.com/jira/browse/FP-1419

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