유투브 api 실행 결과를 담는 방법요?
위의 유투브 api를 실행하면
아래와 같은 xml 실행 결과를 출력해 주는데 이 출력 결과를 변수에 담으려면 어떻게 해야 할까요?
파싱이나 컨테츠를 담는 함수로는 출력결과물을 저장할수가 없네요..
궁극적인 목표는 아래의 내용중 실제 동영상 주소를 뽑아와서 모바일용 유투브 영상 스킨을 만들기 위함인데요..
뭐 더 좋은 방법 있으면 좋구요~~
부탁드립니다~
아래와 같은 xml 실행 결과를 출력해 주는데 이 출력 결과를 변수에 담으려면 어떻게 해야 할까요?
파싱이나 컨테츠를 담는 함수로는 출력결과물을 저장할수가 없네요..
궁극적인 목표는 아래의 내용중 실제 동영상 주소를 뽑아와서 모바일용 유투브 영상 스킨을 만들기 위함인데요..
뭐 더 좋은 방법 있으면 좋구요~~
부탁드립니다~
<?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/' xmlns:gd='http://schemas.google.com/g/2005' xmlns:yt='http://gdata.youtube.com/schemas/2007'><id>http://gdata.youtube.com/feeds/api/videos/KUCceZNogb4</id><published>2012-12-09T05:12:14.000Z</published><updated>2012-12-09T05:13:28.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='People' label='인물/블로그'/><title type='text'>20121209 sg3</title><content type='text'/><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=KUCceZNogb4&feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.responses' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/KUCceZNogb4/responses'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/KUCceZNogb4/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=KUCceZNogb4'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/KUCceZNogb4'/><author><name>cheomdanChurch</name><uri>http://gdata.youtube.com/feeds/api/users/cheomdanChurch</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/KUCceZNogb4/comments' countHint='0'/></gd:comments><media:group><media:category label='인물/블로그' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>People</media:category><media:content url='http://www.youtube.com/v/KUCceZNogb4?version=3&f=videos&app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='150' yt:format='5'/><media:content url='rtsp://v6.cache6.c.youtube.com/CiILENy73wIaGQm-gWiTeZxAKRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='150' yt:format='1'/><media:content url='rtsp://v6.cache6.c.youtube.com/CiILENy73wIaGQm-gWiTeZxAKRMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='150' yt:format='6'/><media:description type='plain'/><media:keywords/><media:player url='http://www.youtube.com/watch?v=KUCceZNogb4&feature=youtube_gdata_player'/><media:thumbnail url='http://i.ytimg.com/vi/KUCceZNogb4/0.jpg' height='360' width='480' time='00:01:15'/><media:thumbnail url='http://i.ytimg.com/vi/KUCceZNogb4/1.jpg' height='90' width='120' time='00:00:37.500'/><media:thumbnail url='http://i.ytimg.com/vi/KUCceZNogb4/2.jpg' height='90' width='120' time='00:01:15'/><media:thumbnail url='http://i.ytimg.com/vi/KUCceZNogb4/3.jpg' height='90' width='120' time='00:01:52.500'/><media:title type='plain'>20121209 sg3</media:title><yt:duration seconds='150'/></media:group><yt:statistics favoriteCount='0' viewCount='15'/></entry>
댓글 3개
스위치79
12년 전
http://www.tyzen.net/201 이거 가져다 쓰시면 될거 같습니다.
12년 전
답변 감사합니다. 그런데.. 모바일용에서 rtsp 주소 추출이 목적인데 올려주신 자료로는 응용이 안되네요..
12년 전
allow_url_fopen = off 의 문제였네요.. 이것도 모르고 안된다고... ㅠㅠ
게시글 목록
| 번호 | 제목 |
|---|---|
| 8050 | |
| 8048 | |
| 19969 |
MySQL
mysql 상태를 확인 하는 방법
|
| 19968 |
MySQL
mysql 실시간 processlist
|
| 19967 | |
| 19966 | |
| 19965 |
MySQL
mysql 일반적인 최적화 팁
|
| 19964 |
기타
간단한 리눅스 명령어
|
| 19963 | |
| 19962 |
MySQL
mysql 데이터 경로 바꾸기
|
| 19961 |
MySQL
mysql 운영팁. 느린 쿼리를 발견하기
|
| 28345 | |
| 31017 | |
| 19960 | |
| 19959 |
MySQL
mysql index에 대해..
|
| 19958 |
MySQL
구분자는 enum으로
|
| 19957 |
MySQL
mysql zerofill에 대해
|
| 8039 | |
| 8035 | |
| 8029 | |
| 28344 | |
| 28339 | |
| 8019 | |
| 28338 | |
| 8017 | |
| 8010 | |
| 8007 | |
| 8004 | |
| 8003 | |
| 28332 | |
| 28322 | |
| 7999 | |
| 28317 | |
| 20956 | |
| 7992 | |
| 20945 | |
| 28314 | |
| 20936 | |
| 20931 | |
| 7986 | |
| 20925 | |
| 7982 | |
| 7979 | |
| 7978 | |
| 7975 | |
| 28307 | |
| 7973 | |
| 7966 | |
| 28305 | |
| 7963 | |
| 28300 | |
| 7961 | |
| 28297 | |
| 28295 | |
| 7959 | |
| 19948 | |
| 19947 | |
| 28292 | |
| 31016 | |
| 19946 | |
| 19945 | |
| 28286 | |
| 7958 | |
| 7956 | |
| 7952 | |
| 7946 | |
| 28285 | |
| 28283 | |
| 19943 | |
| 7944 | |
| 7936 | |
| 7931 | |
| 28279 | |
| 24666 | |
| 24663 | |
| 7928 | |
| 7923 | |
| 19941 |
MySQL
phpMyAdmin 시간 늘리기
1
|
| 28274 | |
| 28257 | |
| 28249 | |
| 28248 | |
| 7914 | |
| 7912 | |
| 7911 | |
| 20912 | |
| 7908 | |
| 31755 |
부트스트랩
부트스트랩 MIT 라이센스?
4
|
| 28233 | |
| 28232 | |
| 28228 | |
| 7903 | |
| 28217 | |
| 20900 | |
| 24662 | |
| 20891 | |
| 20882 | |
| 19936 | |
| 20853 | |
| 31011 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기