Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Change streamer

8 replies [Last post]

Hi all, is there a way to change the application name on player ? i mean the player understand the aplication folder of the rtmp and change to a defined one inside the player.

like this for exemple:

streamer=rtmp://my_server:1935/music

and the player imself change the app name " music " to a defined one for exemple " traks "

so if i insert streamer=rtmp://my_server:1935/music on vars the player reads :

streamer=rtmp://my_server:1935/traks

is this possible ? I'm not very pro in flash so if someone could help me thanks.

Gilbert LAFONT

any help please ?

I don't believe this is possible to do. You are trying to dynamically change the streamer name, correct?

yes its correct, i see now after a long search that its not possible.

i go to use php with the player
php side i can do it but flash side its my problem to integrate this

i ty to explain the problem

i create a page acess.php

"this is the php page player must call"

<?php
session_start
();
include_once(
"config.php");
//------------------------------------------------------------------------------------------------
if(!isset($_SESSION['loko'])||$_SESSION['loko']==0)die('');
echo
"&retcode=".$file."&stream=".$streamer;
$_SESSION['loko']=0;
session_destroy();die('');
?>

i also create config.php

<?php
$file
="demo.flv";
$streamer="rtmp://my-server/content";
?>

so at this point i need player to load the acess.php

and just put on embed player php page
----------------------------------------------------------------------------

<?php
session_start
();
$_SESSION['loko']=rand(10,100000).'t'.rand(10,100000).'p'.rand(10,100000);
?>

flashvars='<?php echo $_SESSION['loko']?>

this part shows on page code only random numbers
---------------------------------------------------------------------------
i dont know exactli the way to insert URLLoader and

URLVariables on player.as

someting like this

function completato(arg1:flash.events.Event):void
{
var loc1:*;
loc1 = null;
var loc2:*;
loc2 = null;
loc1 = flash.net.URLLoader(arg1.target);
if (loc1.bytesTotal <= 0)
{
return;
}
loc2 = new flash.net.URLVariables(loc1.data);
visible = false;
configger = new com.jeroenwijering.utils.Configger(this);
configger.addEventListener(flash.events.Event.COMPLETE, configHandler);
defaults.file = loc2.retcode;
defaults.streamer = loc2.stream;
configger.load(defaults);
return;
}

sory about bad english

i'm using 4.6 licensed player

Hmm, I am not sure if that would work, can you provide a link to where you are running it?

yes Ethan its workink now, the player plays config.php data and only shows random numbers on embed code flashvars.

its possible to post here your email so send you the working link ?

ethan [at] longtailvideo [dot] com, thanks.

Thanks, email send !

Np!