This is a message.

Forum user: catfish

Basic information

Registered Jan 9, 2008
Last login Sep 21, 2011
Forum posts 3
Direct URL http://www.flowplayer.org/forum/users/2769

Latest forum posts

Posts:

Registered:

» Pass different linkUrl to each player instance

Posted: Dec 16, 2009

I'll try to repose the question for clarity. I'm using the "Multiple players on a page" configuration:

http://flowplayer.org/demos/installation/multiple-players.html

but I need each video to have a different linkUrl. The videos are placed with the code:

<a class="myPlayer" href="http://example.com/clips/small/62308.mp4">
  <img src="http://example.com/thumbs/small/62308.jpg" alt="Video clip 62308" />
</a>

but there's nowhere there to specify the linkUrl. Does that mean I have to do this some other way, eg. by doing something like this?


<a class="myPlayer_1" href="http://example.com/clips/small/1.mp4">
  <img src="http://example.com/thumbs/small/1.jpg" alt="Video clip 1" />
</a>

<a class="myPlayer_2" href="http://example.com/clips/small/2.mp4">
  <img src="http://example.com/thumbs/small/2.jpg" alt="Video clip 2" />
</a>

Posts:

Registered:

Pass different linkUrl to each player instance

Posted: Dec 15, 2009

Hi,

I have a page with multiple players, and it works fine. Sample code:

<script type="text/javascript">
  <!--
  // a- tags with class "myPlayer" are transformed into video players
  $f("a.myPlayer", "http://example.com/flowplayer/flowplayer-3.1.3.swf", {
    plugins: {
    controls: null
    }
  });
  //-->
</script>
and each player looks like this:

<script type="text/javascript">
  <!--
  document.write("<a class="myPlayer" href="http://example.com/clips/small/62308.mp4"><img src="http://example.com/thumbs/small/62308.jpg" alt='Video clip 62308' /></a>")
  //-->
</script>

Now I'm trying to find out how to be able to pass a different linkUrl for each player, so for this example, I'd want something like:

"linkUrl": "http://example.com/view/62308.html"

I haven't managed to find out how, though. All the examples I've seen have linkUrl hardcoded in the configuration. Any tips?

Posts:

Registered:

URL indirection for embed links

Posted: Oct 17, 2009

A link like the following works to play a clip using flowplayer:

http://flowplayer.org/swf/flowplayer-3.1.4.swf?config={%27clip%27:{%27url%27:%27http://blip.tv/file/get/KimAronson-TwentySeconds1318.flv%27},%27plugins%27:{%27controls%27:{%27url%27:%27flowplayer.controls-3.1.4.swf%27,%27stop%27:true}}}

However, I'd like to create a way to give a link that looks more like:

http://www.example.com/zYls91Mis

that could work the same way as the link above. That way, I could distribute embed-links to clips that don't contain many details at all. That way, I can:

1. move the clip file
2. upgrade flowplayer
3. change flowplayer parameters

and all the previously distributed links will continue to work, using any updates as well, if I just update the website

I guess this could be solved with a HTTP 301 or 302 redirect from the second link to the first, but a solution that works server-side would be better.

Is there a recommended way to do this, or has someone done this before?