Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoPlayer is not working in android 7.0 and 7.1 #29

Open
Bala893 opened this issue Sep 19, 2017 · 0 comments
Open

VideoPlayer is not working in android 7.0 and 7.1 #29

Bala893 opened this issue Sep 19, 2017 · 0 comments

Comments

@Bala893
Copy link

Bala893 commented Sep 19, 2017

Myself using ionic 1
and Cordova 7.0 this plugin works in android 5 and Android 6 but not work in Android 7 and Android 7.1

When I used to play the audio in Android 7 os plone it shows the below error please help as soon as possible

Uncaught exception from plugin
android.os.FileUriExposedException: file:///storage/emulated/0/Group_1/test.mp3 exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
at android.net.Uri.checkFileUriExposed(Uri.java:2346)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8965)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8926)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
at android.app.Activity.startActivityForResult(Activity.java:4225)
at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:342)
at android.app.Activity.startActivityForResult(Activity.java:4183)
at android.app.Activity.startActivity(Activity.java:4522)
at android.app.Activity.startActivity(Activity.java:4490)
at com.dawsonloudon.videoplayer.VideoPlayer.playVideo(VideoPlayer.java:102)
at com.dawsonloudon.videoplayer.VideoPlayer.execute(VideoPlayer.java:39)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:57)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant