Paresh Gami
Paresh Gami

Reputation: 4792

video tag inline in ionic with ios playsinline works first time

I am using below js

inline video play js for ios

for display inline video in ios with ionic that is working perfectly.

but with that project i am using themeable browser plugin for display external links once i open themeable browser video player stopped working inline. They start playing in fullscreen.

Pugin for themeable browser

Upvotes: 0

Views: 250

Answers (1)

Dhara Gadhiya
Dhara Gadhiya

Reputation: 111

You have to add one line in DidStartLoad function in below file.

File Location

platforms->ios->appName->Plugins->cordova-plugin-themeablebrowser->CDVThemeableBrowser.m

Function in file

- (void)webViewDidStartLoad:(UIWebView*)theWebView
{
    theWebView.allowsInlineMediaPlayback = YES;
}

Hope that will work for you.

Upvotes: 0

Related Questions