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

Forums

/

youtube playlist redirect

2 replies [Last post]

hey folks,

I try to get a playlist redirect on youtube videos working. Since I want to track the views via a tracking php script, I have to redirect every youtube video-call through my view.php. I DON'T want to get the yt file for higher quality etc.!

In a playlist the view.php is called with a GET param "id" e.g. http://host/view.php?id=ytid

content of view.php

<?php
$ytid
= $_GET["id"];

//track video view

//

header("Location: http://www.youtube.com/watch?v=$ytid",true,302);
?>

Now I get a error #2048 which indicates a wrong url(?)! BTW why can't I find these error codes in the docs? Are they flash errors or player errors?

What I ruled out so far:
- view.php is working correctly (redirecting to yt)
- playlist is set up and working correctly

Are there any solutions or suggestions regarding this setup?

just need a php redirect to a youtube video :)

please? someone?

 

<track>
  <location>http://host/view.php?id=ytid</location>
  <meta rel="type">youtube</meta>
</track>

If your file flashvar (playlist element location or as appropriate for your playlist format) doesn't end with a recognized media file extension, then you have to specify the type of the media file.

See the flashvars documentation here: http://developer.longtailvideo.com/trac/wiki/FlashVars#Fileproperties