½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > À̹ÌÁö°ü·Ã > Apple Live Photos API »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
CSS
html
mysql
jquery
image
API
Mobile
¸Þ´º
slide
°Ô½ÃÆÇ
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
Apple Live Photos API
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù À̹ÌÁö°ü·Ã
´Ù¿î·Îµå Ƚ¼ö 48 ȸ
°£´Ü¼³¸í Apple ¿¡¼­ Á¦°øÇÏ´Â live photos js ¸¦ ÀÌ¿ëÇÏ¿© live Æ÷Å並 ±¸ÇöÇÏ´Â °úÁ¤ÀÔ´Ï´Ù.
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

À̹ø¿¡ ¼Ò°³ÇØ µå¸± ÀÚ·á´Â Apple ¿¡¼­ Á¦°øÇÏ´Â Live Photos API ÀÔ´Ï´Ù.
  
»ùÇà HTML ÄÚµå ¾È³» ÀÔ´Ï´Ù.
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <script src="https://cdn.apple-livephotoskit.com/lpk/1/livephotoskit.js"></script>
    </head>
    <body>
    <div id="Live_Photo_Div" style="width: 1024px; height: 720px;"></div>
</body>
<script src="https://cdn.apple-livephotoskit.com/lpk/1/livephotoskit.js"></script>
<script src="script/livephoto.js"></script> </html>
  
 
script/livephoto.js ÆÄÀÏ¿¡ ÇÙ½ÉÄڵ尡 µé¾î ÀÖ½À´Ï´Ù.
const player = LivePhotosKit.Player(document.getElementById('Live_Photo_Div')); //div °´Ã¼ ¾ÆÀ̵ð
player.photoSrc = 'images/live/waves.jpg'; //À̹ÌÁöÆÄÀÏ
player.videoSrc = 'images/live/waves.mov'; //¿µ»ó ÆÄÀÏ

À§ 󷳸¸ »ç¿ëÇϽøé live photos ¸¦ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
±×¸®°í ³ª¸ÓÁö´Â ¿É¼Çµé¿¡ ´ëÇÑ ¼³Á¤ÀÌ ´ëºÎºÐ ÀÔ´Ï´Ù.

Events
player.addEventListener('canplay', evt => console.log('player ready', evt)); //½ÃÀÛ
player.addEventListener('error', evt => console.log('player load error', evt)); //¿¡·¯
player.addEventListener('ended', evt => console.log('player finished playing through', evt)); //Á¾·á
// Use the playback controls.
player.playbackStyle = LivePhotosKit.PlaybackStyle.HINT;
player.playbackStyle = LivePhotosKit.PlaybackStyle.FULL; //FULL À» ÃßõÇÔ.
player.play();
player.pause();
player.toggle();
player.stop();
// Seek the animation to one quarter through.
player.currentTime = 0.25 * player.duration;
// Seek the animation to 0.1 seconds into the Live Photo.
player.currentTime = 0.1;


LIVE ¹öÆ°¿¡ ¸¶¿ì½º ¿Ã¸®¸é Live Photos ±â´ÉÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù. ^^



³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
µî·ÏµÈ ÀÇ°ßÀÌ ¾ø½À´Ï´Ù.
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 26479099 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.