View Single Post
  #1  
Old 01-23-2013, 10:20 PM
h04n9 h04n9 is offline
Junior Member
 
Join Date: May 2012
Posts: 4
h04n9 is on a distinguished road
Default

having trouble putting rtmp together to play after rtmpdump


Can someone help with this please?
I'm trying to put this rtmp stream in a xml, it doesn't play.
As it has a token/sid, seem like its randomly change/generated.

This is the player embedding code for https://vietfacenetworks.com
Code:
	<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
	<div id="flashContainer" style="background-image: url(https://vietfacenetworks.com/skin/frontend/default/jm_purity/images/tv_error.png);"></div>
	
	<script type="text/javascript" src="https://vietfacenetworks.com/skin/frontend/default/jm_purity/js/player/swfobject2.2.js"></script>
	<script type="text/javascript">
	
	    window.onload = function() {
	        loadVideo("flashContainer");
	    };
	
	    function loadVideo(container) {
	        var player = "https://vietfacenetworks.com/skin/frontend/default/jm_purity/js/player/playerPro.swf";
	        var width = 390;
	        var height = 225;
	        var flashvars = {
	            streamer: "",
	            file: "",
	            autoplay: true,
	            autostart: true,
	            bufferlength: "0",
	            buffertime: "0",
	            timeout: "10000",
	            retries: "1",
	            stretching: "uniform",
	            width: "390",
	            height: "225",
	            debug: "none",
	            sid: "",
	            channel: "1005",
	            service_url: "http://vf10.aditmedia.net/iv",
	            service_token: "premium",
	            reflector: ""
	        };
	        var params = {
	            allowfullscreen: "true",
	            allowscriptaccess: "always",
	            wmode: "opaque"
	        };
	        var attributes = {
	            id: "videoPlayer",
	            name: "videoPlayer"
	        };
	        swfobject.embedSWF(player, container, width, height, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
	    }
	
	</script>
    <!-- END OF THE PLAYER EMBEDDING -->
Seem like the player grab stream from xml here
Code:
http://vf10.aditmedia.net/iv/channel/1005/connection?x-token=premium&client_type=rtmp
How can I get this to properly play?
Reply With Quote