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

What is Framer? Join the Community
Return to index
Cemre Güngör
Posted Feb 04 - Read on Facebook

Robyn Morris managed to get inline html5 videos play in a framer prototype by slightly modifying Josh Puckett's viewer app!


Josh Puckett

Excellent! Pull request is welcome!

Koen Bok

The old C api actually has a lot of interesting settings for WKWebView. You can check them out here:

Noah Levin

Yessssss ship itttt pleeease

Christophe Tauziet

Ohhhh man! I need this so much

Robyn Morris

In framer.js

5094 + this.player.setAttribute('webkit-playsinline', 'true');

In FSMirror viewController.m

15 + @property(nonatomic) BOOL allowsInlineMediaPlayback;
16 + @property(nonatomic) BOOL mediaPlaybackRequiresUserAction;
74 + _webView.allowsInlineMediaPlayback = YES;
75 + _webView.mediaPlaybackRequiresUserAction = NO;

Koen Bok

This is now by default enabled in Framer (the webkit-playsinline setting)

Koen Bok

I also added this to Jays Frameless.

Callil Capuozzo

Koen Bok Jay Stakelon I'm still having issues getting my .mp4 to play inline in frameless (works fine on desktop), anything special I have to do to get it to work?

Jay Stakelon

Callil Capuozzo are you on the App Store version or are you building the latest from Xcode? App Store hasn't been updated yet.

John Anthony Evans

FYI Callil the simulator in Xcode doesn't actually work properly for media playback. It has to be on the phone.

Callil Capuozzo

Jay Stakelon I will give that a shot. Never done it before though :)

Callil Capuozzo

ok got it up and running, you guys are awesome!

Jason Ogle

Does anyone have a shared Framer project with this integrated? Love to see this in action.

Read the entire post on Facebook