This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Christina Zou
Posted Sep 21 - Read on Facebook

Hi guys,

I am building a custom video player and putting a large video (>>32mb) inside it. I am hosting the video on YouTube. Two questions:

1. How do I add a YouTube video to a VideoLayer, in the video field? I am trying the following, which doesn't work:

videoLayer = new VideoLayer
width: 1320
height: 750
video: [youtube url]
superLayer: videoContainer

2. If I embed a YouTube video by adding an iframe into a Layer, as follows, is there any way for me to control the playthrough of the video with the Framer custom video player controls I've built?

videoContainer = new Layer
width: 1320
height: 750
backgroundColor: '#fff'
shadowBlur: 2
shadowColor: 'rgba(0,0,0,0.24)'
html: '<iframe width="560" height="315" src="[youtube url]></iframe>'

Jonas Treub


Marc Krenn

Not really, if you want to do #2, you can't do #1.

I'd try uploading the video somewhere else and link to it :/

Read the entire post on Facebook