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!

10 Comments

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:

https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/C/WKPreferencesRef.h

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) https://github.com/koenbok/Framer/commit/92b4ee13ddfafcbc01018549b7931b23595298a3

Koen Bok

I also added this to Jays Frameless.

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. https://github.com/stakes/Frameless

John Anthony Evans

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

Jason Ogle

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

Read the entire post on Facebook