apache / apache/cordova-plugin-media

What is the url path?

Open
#257 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
391
Forks
762
PR merge metrics
No merged PRs in 30d

Description

I am using webpack.. what is the path of the audio file that I should use?

I have tried this:
`import newOrderSound from '@assets/audio/notifications/order.mp3'`
`let media = new Media(newOrderSound)`

I have tried:
`let media = new Media("media/order.mp3")`
Works only on iOS.

How to grab that file in Android when using Cordova + Webpack?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Android behavior with Cordova + Webpack using the two audio paths shown in the issue, including the @assets/audio/notifications/order.mp3 import and media/order.mp3. Compare the working iOS case with Android and verify that the final Media path loads the order.mp3 file on Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.