Hallo zusammen,
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
Ziel:
Mein Ziel ist es videos die im Format H.264 in meinem NAS abgelegt sind und Twonky über die Freigaben bekannt gemacht werden über eine web page aufzurufen und ähnliche wie bei youtube vom Twonky zu streamen.
Da ich die NAS täglich runterfahren und leider die URLS sich immer wieder ändern, funktioniert dies sehr gut solange der Server nicht runtergefahren wird.
The path necessary for streaming the video i.e. (http://myserver:9000/disk/video/O3$51$1684300915$3026478411.mp4/CIMG1542.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).
Ergebnis:
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.
Fragestellung
Kennt jemand:
a) einen Weg wie man Twonky beibringen kann den Pfad statisch zu lassen
b) den aktuellen Pfad über einen Service zu ermitteln um dann per Script dynamisch in die Seite einzufügen?
Gibt es andere media server, die diese Funktionalität anbieten?
Gruß & Dank
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$1684300915$3026478411.mp4/CIMG1542.mp4");
s1.addVariable("image","preview.jpg");
s1.write("player1");
</script></div></div>