Page 1 of 1

QNAP & APACHE & TWONKYMEDIA & private youtube . nearly there

Posted: Tue Dec 29, 2009 10:07 pm
by rwa
Hello,

Setup:
QNAP TS 209 II with Current firmware version: 3.1.0 Build 0708T
with WebServer (Apache) and TwonkyMediaServer Ver. 4.4.17 enabled.
Firefox 3.5.6
Adobe Flash Player 10,0,32,18
JW Player: Flash Video Player


Objective:

What I am doing is using the following script in a webpage hosted by apache to start watching a video streamed by Twonky.

The path necessary for streaming the video i.e. (http://myserver:9000/disk/video/O3$51$1 ... MG1542.mp4)
I get by using the webbrowse functionality offered by Twonky http://myserver:9000/webbrowse and then navigating to the video and using the context menu to retrieve the path (URL).


Result:


Everything works fine. The video stored as MP4 / H.264 is streamed correctly by Twonky and shown by the Adobe plugin within firefox.

Problem:

After each re-scan or restart of the Twonkyserver the path to the video is a different one.

Question

Is there any way to

a) prevent Twonky to create everytime a different path
b) to retrieve dynamically the correct path and use this path in the web page for instance with scripting?

Is there anyone out there that has been able to solve this ?

Are there other media streaming server which enable this ?


Thanx for your support.

Roland


Example:
</script><script type="text/javascript" src="swfobject.js"></script><p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">

Get the Flash Player</a> to see this player.
</p><script type="text/javascript">
var s1 = new SWFObject("mediaplayer.swf","single","384","224","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","http://myserver:9000/disk/video/O3$51$1 ... MG1542.mp4");

s1.addVariable("image","preview.jpg");
s1.write("player1");
</script></div></div>