동영상 주소를 이용해서 html 에서 영상을 바로 보이기 > 기술자료 | 해피정닷컴

동영상 주소를 이용해서 html 에서 영상을 바로 보이기 > 기술자료

본문 바로가기

사이트 내 전체검색

동영상 주소를 이용해서 html 에서 영상을 바로 보이기 > 기술자료

PHP 동영상 주소를 이용해서 html 에서 영상을 바로 보이기

페이지 정보


본문

동영상 주소를 이용해서 html 에서 영상을 바로 보이기

<?php
$movie_url = $view["wr_link1"];  // 동영상 링크

//$movie_url = "http://youtu.be/oFVc11UncUk";
if (!preg_match('/youtu.be/', $movie_url) == true) {
} else {
    $movie_url0 = explode('/',$movie_url);
    $movie_url3 = $movie_url0[3];
    if ($movie_url3) {
    ?><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/<?php echo $movie_url3; ?>?version=3&hl=ko_KR"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/<?php echo $movie_url3; ?>?version=3&hl=ko_KR" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object><br><?php
    }
}

//$movie_url = "https://www.youtube.com/watch?v=oFVc11UncUk";
if (!preg_match('/youtube.com/', $movie_url) == true) {
} else {
    $movie_url0 = explode('?v=',$movie_url);
    $movie_url3 = $movie_url0[1];
    if ($movie_url3) {
    ?><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/<?php echo $movie_url3; ?>?version=3&hl=ko_KR"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/<?php echo $movie_url3; ?>?version=3&hl=ko_KR" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object><br><?php
    }
}

//$movie_url = "https://vimeo.com/channels/staffpicks/118694375";
if (!preg_match('/vimeo.com/', $movie_url) == true) {
} else {
    $movie_url0 = explode('/',$movie_url);
    $movie_url3 = $movie_url0[5];
    if ($movie_url3) {
    ?><iframe src="//player.vimeo.com/video/<?php echo $movie_url3; ?>" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe><br><?php
    }
}

//$movie_url =  "http://tvpot.daum.net/v/va0183j0Ma4vVV1tn3m14nA";
if (!preg_match('/tvpot.daum.net/', $movie_url) == true) {
} else {
    $movie_url0 = explode('/',$movie_url);
    $movie_url3 = $movie_url0[4];
    if ($movie_url3) {
    ?><object type='application/x-shockwave-flash' id='DaumVodPlayer_<?php echo $movie_url3; ?>' width='640px' height='360px' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,3,0,0'><param name='movie' value='http://videofarm.daum.net/controller/player/VodPlayer.swf'><param name='allowScriptAccess' value='always'><param name='allowFullScreen' value='true'><param name='bgcolor' value='#000000'><param name='wmode' value='window'><param name='flashvars' value='vid=<?php echo $movie_url3; ?>&playLoc=undefined&alert=true'><embed src='http://videofarm.daum.net/controller/player/VodPlayer.swf' width='640px' height='360px' allowScriptAccess='always' type='application/x-shockwave-flash' allowFullScreen='true' bgcolor='#000000' flashvars='vid=<?php echo $movie_url3; ?>&playLoc=undefined&alert=true'></embed></object><br><?php
    }
}

//$movie_url =  "http://serviceapi.nmv.naver.com/flash/convertIframeTag.nhn?vid=67644BA3746487B0D3853D14595DA867D880&outKey=V1282eb8fd2075cbdcc03a1f9c4b3f1cb3996e9f94c4e652020d7a1f9c4b3f1cb3996&width=720&height=438";
if (!preg_match('/nmv.naver.com/', $movie_url) == true) {
} else {
    $movie_url0 = explode('?',$movie_url);
    $movie_url2 = $movie_url0[1];
    
    $movie_url4 = explode('&width=',$movie_url2);
    $movie_url3 = $movie_url4[0];    
    if ($movie_url3) {
    ?><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='640' height='360' id='NFPlayer03496' align='middle'><param name='allowScriptAccess' value='always'><param name='allowFullScreen' value='true'><param name='movie' value='http://serviceapi.nmv.naver.com/flash/NFPlayer.swf?<?php echo $movie_url3; ?>'><param name='wmode' value='window'><embed src='http://serviceapi.nmv.naver.com/flash/NFPlayer.swf?<?php echo $movie_url3; ?>' wmode='window' width='640' height='360' allowScriptAccess='always' name='NFPlayer03496' allowFullScreen='true' type='application/x-shockwave-flash'></object><br><?php
    }
}
?>

댓글목록

등록된 댓글이 없습니다.


Total 196건 4 페이지
  • RSS
기술자료 목록
136
PHP   13608  2017-02-27 19:09 ~ 2020-11-13 14:44  
135
PHP   16024  2017-02-24 16:12  
134
PHP   35392  2016-10-06 22:14 ~ 2018-03-30 14:01  
133
PHP   20232  2016-05-25 11:50 ~ 2022-05-13 11:34  
132
PHP   18756  2016-02-16 17:31  
131
PHP   18024  2015-09-21 14:12  
130
PHP   22515  2015-04-20 09:38 ~ 2021-02-26 16:54  
129
PHP   43004  2015-04-17 03:26  
열람
PHP   22135  2015-02-17 23:32  
127
PHP   64621  2015-02-09 09:56 ~ 2023-02-24 11:06  
126
PHP   22027  2014-12-22 15:54  
125
PHP   27181  2014-12-19 06:50 ~ 2019-12-13 10:05  
124
PHP   16885  2014-12-18 13:24 ~ 2021-07-23 14:01  
123
PHP   26958  2014-11-12 10:28 ~ 2021-11-10 07:19  
122
PHP   19404  2014-10-09 09:55 ~ 2015-12-15 00:00  
121
PHP   13045  2014-09-25 15:58 ~ 2018-09-26 14:52  
120
PHP   36871  2014-09-13 13:02 ~ 2022-09-26 20:44  
119
PHP   17245  2014-04-22 02:13  
118
PHP   18477  2014-04-18 19:18  
117
PHP   15092  2014-01-26 21:07 ~ 2014-01-27 00:00  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2025 해피정닷컴. All Rights Reserved.