Jump to content

Streaming and Redirects


phatgreenbuds

Recommended Posts

Ok so I have this little streaming video server internally that I am playing with. I wouild like to make a little drop down channel changer to move between the broadcasts. Here is the initial page:

 

<form method="post" action="channel.php" enctype="multipart/form-data">
<select name="channel"><br>
		<option value="Channel"> Channel</option>
		<option value="300"> 300 The Movie</option>
		<option value="atu"> Across The Universe</option>
		<option value="cww"> Charlie Wilson's War</option>
		</select>

	<input type="submit" name="submit" value="submit">
	</form>

 

 

From there it goes to this PHP page where I am tring to have it redirect to the stream:

 

<?php
if (isset($_POST['channel'])) {
$chan = $_POST['channel'];
}
header( 'Location: mms://10.10.10.12/$chan' );

?>

 

I know the variable is getting passed properly but the redirect is not working and I have no clue.  Any ideas? Any suggestions for a better method?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.