fancybox 2.0.4 and Vimeo

后端 未结 2 665
攒了一身酷
攒了一身酷 2021-02-06 16:37

i have a lot of difficulties to integrate the new fancybox (V.2.0.4 g81c12d7) with the new iframe vimeo embed code. does somebody have a solutions?

2条回答
  •  天命终不由人
    2021-02-06 17:10

    Because we can only resize the iframe video if it is in our own domain, I solved this problem by copying all html content of

    http://cache.vevo.com/m/html/embed.html
    

    To http://localhost/vevo.html. Then, changed the CSS:

        #videoPlayerSWF {
            width: 100%;
            height:100%;
        }
    

    Now, I call fancybox url using:

    http://localhost/vevo-embed.html?video=USUV71402745
    

    Which has the same HTML, CSS, and JavaScript as:

    http://cache.vevo.com/m/html/embed.html
    

提交回复
热议问题