Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I parse current page path dynamically from an external Javascript config hosted on AWS?
    primarykey
    data
    text
    <p>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.</p> <p>It basically is very crappy dealing with pseudostreaming, which is important for bandwidth reasons, so I decided to go with Flowplayer.</p> <p>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)</p> <hr> <p>So, I resorted to using an object tag. Now it works for the most part, except I hardcoded in one specific video for testing.</p> <p>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.</p> <p>Here is the object code : <a href="http://pastebin.com/P7TrWFGm" rel="nofollow">http://pastebin.com/P7TrWFGm</a></p> <p>Here is the external config : <a href="http://pastebin.com/xXhkkKxk" rel="nofollow">http://pastebin.com/xXhkkKxk</a></p> <p>The video page URLs are like : mysite.net/videos/7/example-title.html</p> <p>The video files are stored as such : mysite.net/vdata/7.flv Where '7' is the video ID.</p> <p>I would greatly appreciate any help, thank you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload