0

I've been spending a couple days getting my server all set up for a tube site. After much frustration everything is running nicely, except for the script's proprietary video player.

It basically is very crappy dealing with pseudostreaming, which is important for bandwidth reasons, so I decided to go with Flowplayer.

I have confirmed that Flowplayer will work, EXCEPT the script is so messy that I can't even figure out why the default setup won't work (Javascript invocation)


So, I resorted to using an object tag. Now it works for the most part, except I hardcoded in one specific video for testing.

What I need to is dynamically determine the video id based on the current video page, from the URL, and have it set in the external .js config dynamically. I'm stumped. To make things even more confusing (for me at least), the template engine is Smarty, and the {literal} tags just weren't working out in my favor, so I have to place the Flowplayer configuration in an external .js file on AWS.

Here is the object code : http://pastebin.com/P7TrWFGm

Here is the external config : http://pastebin.com/xXhkkKxk

The video page URLs are like : mysite.net/videos/7/example-title.html

The video files are stored as such : mysite.net/vdata/7.flv Where '7' is the video ID.

I would greatly appreciate any help, thank you.

4

2 に答える 2

0

タイトル以外の質問はありません: AWS でホストされている外部 Javascript 構成から現在のページ パスを動的に解析するにはどうすればよいですか?

質問を次のように短縮しています: 現在のページ パスを動的に解析するにはどうすればよいですか?

答え: document.url

Web ブラウザーで現在の URL を取得する

于 2012-04-11T20:49:58.873 に答える
0

わかった。デフォルトの Flowplayer 構成に戻り、{ldelim} と {rdelim} を使用して、{literal}{/literal} を完全に削除しました。うまく動作します

これが将来誰かに役立つことを願っています。

ありがとう..多分

于 2012-04-12T04:26:31.960 に答える