Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9486

On Android, when the recording is saved into the application's cache folder, the playback will fail.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-media
    • Labels:
    • Environment:

      Android

      Description

      When saving the recording, there is a condition to check where to save the file.

      if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
      file = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + file;
      } else {
      file = "/data/data/" + handler.cordova.getActivity().getPackageName() + "/cache/" + file;
      }

      but during playback it always tries to load the file from external storage (if there is no full path specified).

      this.player.setDataSource(Environment.getExternalStorageDirectory().getPath() + "/" + file);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kukukk Szabolcs Balogh

              Dates

              • Created:
                Updated:

                Issue deployment