【问题标题】:redirect url using jwplayer使用 jwplayer 重定向 url
【发布时间】:2015-07-13 22:39:11
【问题描述】:

我是新用户 jwplayer。我有一个真实视频链接 http://domain.com/share/upload/test.mp4

播放视频使用jwplayer,我使用函数

jwplayer('player3').setup({
    file:"http://localhost:8080/video/test.mp4"
})

但我想将 jwplay 中的 url 文件重定向到 url

http://domain.com/share/upload/test.mp4

我一直在使用 .htaccess

RewriteRule ^video/(.*)$ http://domain.com/share/upload/$1 [L] 

但我无法播放视频。我需要一个解决方案

【问题讨论】:

  • 你需要反过来做,省略http://domain.com。所以RewriteRule ^share/upload/(.*)$ /video/$1 [L]

标签: jquery .htaccess jwplayer jwplayer6


【解决方案1】:

如果您要重定向文件,请尝试此操作。

变化:

file:"http://localhost:8080/video/test.mp4"

收件人:

file:"http://localhost:8080/video/test.mp4",
type: "mp4"

这行得通吗?

【讨论】:

    猜你喜欢
    • 2016-08-09
    • 2013-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多