1 часть | Код | <? $video_url = "http://www.youtube.com/watch?v=VvO0pZesJDg"; $filename = "mario.flv"; $youtube_video_grabber = new youtubegrabber($video_url, $filename); ?>
|
2 часть | Код |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Demo</title> </head>
<body> <script src='AC_RunActiveContent.js' language='javascript'></script> <!-- saved from url=(0013)about:internet --> <script language='javascript'> AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '400', 'height', '325', 'src', ((!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) ? 'OSplayer' : 'OSplayer'), 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'allowScriptAccess', 'always', 'movie', ((!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) ? 'OSplayer' : 'OSplayer'), 'FlashVars', 'movie=mario.flv&btncolor=0x333333&accentcolor=0x31b8e9&txtcolor=0xdddddd&volume=30&autoload=on&autoplay=off&vTitle=Super Mario Brothers Lego Edition&showTitle=yes'); </script> <noscript> <object width='400' height='325' id='flvPlayer'> <param name='allowFullScreen' value='true'> <param name="allowScriptAccess" value="always"> <param name='movie' value='OSplayer.swf?movie=mario.flv&btncolor=0x333333&accentcolor=0x31b8e9&txtcolor=0xdddddd&volume=30&autoload=on&autoplay=off&vTitle=Super Mario Brothers Lego Edition&showTitle=yes'> <embed src='OSplayer.swf?movie=mario.flv&btncolor=0x333333&accentcolor=0x31b8e9&txtcolor=0xdddddd&volume=30&autoload=on&autoplay=off&vTitle=Super Mario Brothers Lego Edition&showTitle=yes' width='400' height='325' allowFullScreen='true' type='application/x-shockwave-flash' allowScriptAccess='always'> </object> </noscript>
</body> </html>
|
Первая часть загруужает видео с ютуба. Вторая часть отображает загруженный файл. Как сделать чтобы файл сразу отображался плеером без загрузки на сервер? url файла такой: | Код | http://o-o.preferred.svo01s01.v20.lscache2.c.youtube.com/videoplayback?upn=zbqq6tEC6PY&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=907217%2C907335%2C921602%2C919306%2C919316%2C904455%2C912804%2C919324%2C912706%2C904452&mt=1338372011&ms=au&algorithm=throttle-factor&itag=35&ip=92.0.0.0&burst=40&sver=3&signature=22A6CFC96372604EDEB31E185EC400FB1FF41F7C.B60C34B4B441D9EC2176FB0E94580E548E7A42AE&source=youtube&expire=1338396947&key=yt1&ipbits=8&factor=1.25&cp=U0hSTVNUVF9JUUNOMl9LTlhKOnBNdDJ0N285WHhy&id=56f3b4a597ac2438]http://o-o.preferred.svo01s01.v20.lscache2...6f3b4a597ac2438
|
Это сообщение отредактировал(а) aleks2020 - 30.5.2012, 13:59
|