Back to Cordova

2021 10 09

slack-digest/2021-10-09.md

latest3.7 KB
Original Source

Cordova Slack Digest

Sat, 09 Oct 2021 08:21:01 GMT

User count: 4647

Join the conversation at slack.cordova.io

Channel #general (3 messages)


Fri, 08 Oct 2021 14:36:02 GMT

@khan.alishup says

Hello, I am trying to update some plugins our app was using. Starting with cordova-ios@6. We are currently using [email protected] with WKWebView and wkwebviewxhrfix plugin. I saw in many discussions regarding the fixes or using scheme app instead of file:// for WKURLSchemeHandler. I had tried possibly all mentioned approaches like removing WKWebView and other plugins, adding preference tags with app and localhost etc, but I am still getting the CORS error with the app stuck in splash screen. Since, iOS 15 has started deleting some data, one of the approach we are taking is updating all plugins. Sorry, for my bad explaination.

Fri, 08 Oct 2021 14:44:57 GMT

@norman137 says

If you're communicating with an external server, then you'll still receive CORS error. The server itself needs to be configured to respond with the appropriate CORS headers.

If you're communicating locally (such as using XMLHttpRequest to fetch local resources, a common pattern used in the angular framework for example) then schemes should address CORS issues.

Fri, 08 Oct 2021 14:47:29 GMT

@norman137 says

Schemes were also only implemented in cordova-ios@6 -- the wkwebview plugin itself (used in conjunction with cordova-ios@5) does not support schemes.

Channel #cordova-android (9 messages)


Fri, 08 Oct 2021 09:34:24 GMT

@fbaheux says

Hi everyone, I have been trying for a while to play an mp4 video locally on Android. Does anyone know a plugin that is up to date? Or a method to play a video locally on android? Thank you

(i rebuild an old project and the video player don't work anymore -> com.dawsonloudon.videoplayer )

Fri, 08 Oct 2021 10:28:15 GMT

@jakob.pfab says

You could play it in the webview using the html5 video element?

Fri, 08 Oct 2021 10:31:14 GMT

@jakob.pfab says

or you try this one

cordova plugin add https://github.com/moust/cordova-plugin-videoplayer.git

Fri, 08 Oct 2021 12:16:22 GMT

@fbaheux says

I always try the moust extension, don't work for me. When you say to play it in a web view @jakob.pfab, it's the html5 tag ? Something like this ? <video width="320" height="240" controls>   <source src="file:///android_asset/www/videos/movie.mp4" type="video/mp4"> </video>

Fri, 08 Oct 2021 12:32:08 GMT

@jakob.pfab says

yes

Fri, 08 Oct 2021 12:36:28 GMT

@jakob.pfab says

<source src="/videos/movie.mp4" type="video/mp4">

Fri, 08 Oct 2021 13:08:34 GMT

@jakob.pfab says

if its in your www directory i would recommend playing it like this

Fri, 08 Oct 2021 13:09:14 GMT

@jakob.pfab says

can avoid issues with the file:/// prefix , it should work on android with the absolute html path /videos

Fri, 08 Oct 2021 13:19:10 GMT

@fbaheux says

thanks it's work

Channel #plugins (1 messages)


Fri, 08 Oct 2021 10:07:26 GMT

@fbaheux says

Hello, anyone knows a plugin to play local video mp4 file on android ?

Channel #help (1 messages)


Fri, 08 Oct 2021 10:06:17 GMT

@fbaheux says

Hi everyone, I have been trying for a while to play an mp4 video locally on Android. Does anyone know a plugin that is up to date? Or a method to play a video locally on android? Thank you

(i rebuild an old project and the video player don't work anymore -> com.dawsonloudon.videoplayer )