Related / Friend Blogs
Top Poster
#1 ramon fincken 93
#2 Site admin 2
#3 Jan 0
[solution] Playing a RTMP stream video on Jeroen Wijering's FLV player



Rating : 3 / 5

Tags:

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> PHP coding
View previous topic :: View next topic  
Author Message
ramon fincken
Site's programmer


Joined: 03 Aug 2007
Posts: 93
Location: Amsterdam, the Netherlands/Europe

PostPosted: Wed Mar 19, 2008 9:04 pm    Post subject: [solution] Playing a RTMP stream video on Jeroen Wijering's FLV player Reply with quote

Using Jeroen Wijering's FLV player ( http://www.jeroenwijering.com/?item=JW_FLV_Player ) and have trouble playing your RTMP streams ?

Here's the solution:
Quote:
When entering an RTMP stream, set the stream path (rtmp://myserver.com/streams/") to the file flashvar and the actual FLV (my-great-movie) to the id flashvar. Discard the .flv extension.


In my case this worked on version 3.99 :
Code:
<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","589","480","8");
            var s1 = new SWFObject("flvplayer.swf","single","589","480","7","#CA1301");
            s1.addParam("allowfullscreen","true");
            s1.addVariable('autostart', 'true');
            s1.addVariable('overstretch', 'none');
            s1.addVariable('showeq', 'false');
            s1.addVariable('displaywidth','589');
            s1.addVariable("displayheight","460");
            s1.addVariable("file","rtmp://streamserver.tld/");
            s1.addVariable("id","Preview_Amerika.wmv.FLV");
            s1.addVariable("image","./pictures/nopicture.jpg");
           // s1.addVariable("backcolor","0xAAAAAA");
            s1.addVariable("backcolor","0xFFFFFF");
            s1.addVariable("frontcolor","0xCCCCCC");
            s1.addVariable("lightcolor","0x996600");
            s1.write("player1");
         </script>
Back to top
View user's profile Send private message Visit poster's website
Google adsense
Advertisement





PostPosted: Wed Mar 19, 2008 9:04 pm    Post subject: [solution] Playing a RTMP stream video on Jeroen Wijering's FLV player

Advertisement
Back to top
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> PHP coding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [1]
No but I love polls ! [0]

Technorati Profile