0

나는 JW 플레이어에 YouTube 링크가 있습니다. 모든 것이 잘 작동합니다. 이제이 플레이어 (이 코드)를 fancybox에 넣는 방법은 무엇입니까?fancybox에 JW 플레이어 - (youtube link into JW)

<div id="player_779"> 
    <embed type="application/x-shockwave-flash" 
    src="http://teodore.ge/site/content/scripts/mediaplayer/player.swf" 
    width="640" height="383" 
    style="undefined" id="player_779" name="player_779" 
    quality="high" allowfullscreen="true" 
    allowscriptaccess="always" wmode="opaque" 
    flashvars="file=http://youtu.be/VHcrPImvWlk&amp;skin=http://teodore.ge/site/content/scripts/mediaplayer/nacht.zip&amp;autostart=true"> 
    </div> 
</div> 

예를 들어주세요.

+0

가능한 중복 (http://stackoverflow.com/questions/14767249/jw-player-in-fancybox) – JFK

+0

아니, 그 질문은 "jwplayer 6 문제"에 대해이었다 버전 6에 버그가 있습니다. –

답변

0
<a class='video' data-width="600" data-height="345" >link</a> 

<script> 
     $(".video").fancybox({ 
     fitToView: false, // to show videos in their own size 
     content: '<span></span>', // create temp content 
     scrolling: 'no', // don't show scrolling bars in fancybox 
     afterLoad: function() { 
      // get dimensions from data attributes 
      var $width = $(this.element).data('width'); 
      var $height = $(this.element).data('height'); 
      // replace temp content 
      this.content = ' <embed type="application/x-shockwave-flash" src="http://ww.ge/site/content/scripts/mediaplayer/player.swf" width="640" height="383" style="undefined" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="file=http://youtu.be/VHcrPImvWlk&amp;skin=http://www.ge/site/content/scripts/mediaplayer/nacht.zip&amp;autostart=true">'; 
     } 
     }); 
</script> 
[FancyBox에서 JW 플레이어]의
+0

여기에 답하십시오 http://stackoverflow.com/a/14326919/1055987 – JFK