cordova-plugin-media | Apache Cordova Plugin media | Mobile Application library
kandi X-RAY | cordova-plugin-media Summary
kandi X-RAY | cordova-plugin-media Summary
Apache Cordova Plugin media
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set the temporary filesystem to be used as the temporary filesystem
cordova-plugin-media Key Features
cordova-plugin-media Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-media
QUESTION
I'm trying to convert an angular project to ionic, i've initialised and changed the config in angular.json, package.json and ionic.config.json project name matches.
The project name is simply "frontend", but when i now try to use ionic serve i'm getting this:
An unhandled exception occurred: Project does not exist.
I've checked everything i can think of and i don't see why it's not picking the project up, could do with a fresh pair of eyes please. I have listed each config file below, and i can't see any issue!
package.json:
...ANSWER
Answered 2022-Jan-04 at 13:09Normally the ionic serve
command use the app name as app
, so that might be the problem.
Under the hood that command runs ng run app:serve --host=localhost --port=8100
, so you can try to map it into the package.json
as a custom script with your app name.
QUESTION
I'm using this plugin: cordova-plugin-media
with ionic capacitor instead of cordova with command ionic cap sync
.
My code:
...ANSWER
Answered 2021-Jan-31 at 06:04Android 10 uses a new file system therefore plugins that have not updated themselves might not read/create files on Android 10.
You need to manually add this line in your manifest file : android:requestLegacyExternalStorage="true"
- Open your project in Android Studio and open the AndroidManifest file.
- In tag inside your manifest file, add android:requestLegacyExternalStorage="true"
- Rebuild your project
QUESTION
as everyone dev. using ionic stack, also we are moving into the new wkwebview due to the Apple requirements.
We already provide a build to ios without any kind of warning ( about uiwebview old code ) but we're still encountering a problem performing SOME POST calls.
Settings
We have already set cors server side ( Apache ) like below:
...ANSWER
Answered 2020-Sep-03 at 11:00We discovered issues about calls not reaching server CorsFilters.java class ( so impossibile to get some debug instance ).
Reading our sever log we discovered this row
QUESTION
Have an Ionic 3 app, that gets stuck on splash screen when I'm emulating on iOS. Funny thing, if I add a space to a ts file, it refreshes and starts working.
This is messing up my E2E testing with Appium, so I'm wondering if anyone has a better idea of what might be causing this behaviour.
I'm leaving here all package.json dependencies, in case that helps:
...ANSWER
Answered 2020-Aug-28 at 09:59Clean and rebuild
QUESTION
I'm trying to save a video record from the camera to cordova.file.dataDirectory
but I get a NOT_FOUND_ERR
when I try to copy the newly created file from the gallery.
I'm using cordova-plugin-media-capture
to record the video, which then is saved to the user's gallery. But when I get the FileEntry
using window.resolveLocalFileSystemURL
and try to use entry.copyTo()
the NOT_FOUND_ERR
error is thrown.
A cut down / messy version of my code is below:
...ANSWER
Answered 2020-Jul-28 at 13:16After a lot of trial and error, it turns out I needed to request the READ_EXTERNAL_STORAGE
and WRITE_EXTERNAL_STORAGE
permissions for Android.
At a future date I'll check if any permissions are needed for iOS, but for now I'm happy that it's working for Android.
QUESTION
As it has been mentioned here, unfortunately there is a sever bug in WKWebView in iOS preventing using getUserMedia , stopping apps like Chrome, Firefox, or any cordova or capacitor based apps from being able to use the media stream.
Is there an native equivalent thing in iOS as getUserMedia to use it as a workaround?
Could this be used as an alternative, to access the microphone?
I am using such functionality for a voice chat using WebRTC.
...ANSWER
Answered 2020-Jul-17 at 16:27As you mentioned WKWebView I assume you are using cordova or something similar to show your existing webapp. If that is so, this might help you: https://github.com/cordova-rtc/cordova-plugin-iosrtc - works perfectly and support by the creators is awesome.
QUESTION
I a trying to get media controls working on Android when playing audio.
I originally was using html5 audio, but then moved to using cordova-plugin-media to play the audio, and used music-controls which is a cordova plugin for the controls. (I actually tried quite a few different plugins etc). The issue I had was that none of the plugins worked 100%, I was still able to find ways to pause audio etc on the device without it calling my callbacks to keep my app in sync. I have now given up with this approach after many days of troubleshooting.
I was reading an article yesterday and found out about navigator.mediaSession and was able to get it up and running inside of google chrome on desktop by switching back to html5 audo, however, navigator.mediaSession is not defined when I build it through cordova.
Is it possible to use naviator.mediaSession through cordova? If so what am I missing?
If not, then it's back to pulling my hair out. If anyone has any suggestions they would be greatly appreciated.
...ANSWER
Answered 2020-Apr-30 at 13:44To answer your question, Navigator.mediaSession don't work in cordova as Android webview don't support them. You can find more info on this under the browser compatibility section of Navigator API Infact, mediaSession itself is in experimental mode as of now.
The best bet is to go with cordova plugins and enhance them according to your need. As you mentioned there are quite a few plugins exclusively for media and music controls. To name a few,
https://github.com/homerours/cordova-music-controls-plugin
https://github.com/521dimensions/cordova-music-controls-plugin
Plugins is the right approach to proceed is what I would say.
QUESTION
I have a large Ionic 4 Cordova project that was working fine and all, no new plugins installed in the past 3+ months.
It seems to happen almost every time Google decides to update Firebase that breaking changes occur and everything is messed up (at least twice a year).
This just happened, one moment I was building the project and after 5 minutes, I did another build with nothing changed other than some Typescript code and everything was broken (see part of the output below). When I looked at the build output, it seems clear that it's another Firebase issue out of nowhere (April 23rd update), but this one seems to break a lot of things, not just Firebase plugin (such as D8: Type libcore.io.Memory
was not found).
What can be done about this? It no longer works with or without Firebase plugin. I've tried reinstalling platform and plugins, removing Firebase plugin (then it builds with warnings but crashes when running on Android device).
Here is the cordova build output:
...ANSWER
Answered 2020-Apr-26 at 21:36it seems firebase.core not needed anymore, and you need to add implementation 'com.google.firebase:firebase-messaging:20.1.6'
as you'r missing it
The Firebase Android library firebase-core is no longer needed. This SDK included the Firebase SDK for Google Analytics.
Now, to use Analytics or any Firebase product that recommends the use of Analytics (see table below), you need to explicitly add the Analytics dependency: com.google.firebase:firebase-analytics:17.4.0.
QUESTION
I have created Cordova application demo in Svelte but when I run the application on android 6.0.1 or later application is stuck at splace screen.
You can find inspect screen, screenshot from below link. I have tried many babel hacks to convert ... which is js many spread operator to convert but no solution will work.
There is many js issues arise, from there two most important issue is below.
Uncaught Syntax error: Unexpected token ...
Uncaught Syntax error: Undefined token *
I am using Framwork7-CLI to create a Cordova android application, Framework7 version is 5.5.0 and latest Framwork7 CLI version.
Currently, I have selected Cordova and PWA application with Tabbed view F7 template.
My pacakage.json, babel.config.js and webpack.config.js file are below.
pacakage.json
...ANSWER
Answered 2020-Mar-16 at 07:47After 5 days of working finally this solution works...
package.json check below things add browserlist if not added,
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-media
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page