Failed to load video

74 views
Skip to first unread message

Dovydas Liniovas

unread,
Dec 4, 2013, 10:11:02 AM12/4/13
to twitc...@googlegroups.com
Hey, I have a problem, php code returns video into mainpage by javascript, but video goes Failed To Load.

function showVideo( title, streamer, id, div ) {
$.ajax({
type: 'POST',
data: { title: title, id: id, streamer: streamer },
success:function( data ) {
$( div ).html( data );
}
});
}

echo "<a onclick=\"javascript: showVideo( '".$videos[ $num ][ 'title' ]."', '".$_GET[ 'name' ]."', '".$videos[ $num ][ '_id' ]."', '.stream_side' )\" >";

if( !empty( $_POST[ 'id' ] ) ) {
echo "
<object data='http://www.twitch.tv/widgets/archive_embed_player.swf' height='470' id='clip_embed_player_flash' type='application/x-shockwave-flash' width='826'> 
 <param  name='movie' value='http://www.twitch.tv/widgets/archive_embed_player.swf' /> 
 <param  name='allowScriptAccess' value='always' /> 
 <param  name='allowNetworking' value='all' /> 
 <param  name='allowFullScreen' value='true' /> 
 <param  name='flashvars' value='channel=".$_POST[ 'streamer' ]."&start_volume=25&auto_play=false&chapter_id=".$_POST[ 'id' ]."' />
</object>
";
}
Reply all
Reply to author
Forward
0 new messages