I have a large number of mp3 files (+3GB) that needs to be included with the app I am writing for Android and iOS to be used offline. Since the Google Play Bundle can not be larger than 2GB, naturally I will need to download these mp3 files at initial app run-time to a local directory. I already have a html webpage written containing all functionalities required for selecting and playing the mp3 files with synchronized screen text and backgrounds. I've also successfully load and tested my webpage offline with webview_flutter, with a limited set of mp3 files loaded in the asset directory. Now that I needed to include all my +3GB of mp3 files, so I've downloaded them to ApplicationSupportDirectory, but it seems webview_flutter is NOT able to play mp3 files from this directory. I’ve try to place them in ApplicationSupportDirectory, ApplicationDocumentsDirectory, or ExternalStorageDirectory, but none of them can be accessed from webview_flutter’s page. I’ve also tried to load my index.html into these non-asset directories, but get file permission error, even with Permission.storage.request() and with declared permission for READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, INTERNET in manifest.xml. Now running out of options, do you know if it is possible to link non-asset files from webpage loaded in webview_flutter? The load string to webview method probably will not work, because I have linked audios and javascripts in the page. Hopefully some of you can point me to a direction. Thank you in advance.
Play mp3 files located in ApplicationSupportDirectory (NOT asset directory) linked from webview_flutter loaded html page
99 Views Asked by David Cheng At
1
There are 1 best solutions below
Related Questions in STORAGE
- Grabbing Edits from two strings
- How to determine which Windows drives map to which SAN storage devices using WMI?
- Send alert for 80% threshold comparing two values from Disk partition
- How to get storage capacity of mac programmatically?
- Store pdf from assets to internal storage(private)
- Storing images in MSSQL vs Disk
- Using puppet to create a lvm with dynamic size
- Is the storage location "storage" for all Android devices and versions fixed?
- Dismissing items from news feed in my app. Android - Java
- Access videos both in internal storage and external SD card - Android
- How to get total internal memory (including system memory)
- Use case HBase on EMR
- Best Data Type for Storing AWS ARNs in MySQL?
- Android ZTE Blade III camera intent not returning with data
- Historical data in Cassandra
Related Questions in MP3
- Convert youtube video to mp3 using Quick MP3 API
- mp3 to sample array NAudio
- How to fit the Ringdroid waveform in full width according to width of mobile screen
- How to join mp3 and wav files
- Unknown android app using my mp3 files without my permission
- Android audio too fast on some devices with MediaCodec and AudioTrack
- change .mp3 file format to .aac file format in android using java programming
- Crop MP3 to last N seconds
- Streaming songs from pc
- Splitting up a variable in bash
- MP3 songs do not play in media player
- how to make a button that share my res/raw/xxx.mp3 file
- Adding tags to mp3 with eyed3 results in no change
- How to make an MP3 file wait to play until after another MP3
- PHP - MP3 proxy for streaming
Related Questions in INTERNALS
- Which channel type uses the least amount of memory in Go?
- How does SQL Server store decimal type values internally?
- Why are modern browser JS engines multi-threaded?
- Windows: Killing every process that stops a folder from being deleted
- NtRequestPort - parameter incorrect
- OrderBy with a non-transitive IComparer
- Returning a reference to a mutable object value stored in one of the object's fields exposes the internal representation of the object
- What does SIGINT translate into in the NT native API?
- What constitutes a merge conflict in Git?
- Determining if a given Python module is a built-in module
- .NET: Value type inheritance - technical limitations?
- How does the Blue Brain Project (and NEURON software) work?
- How are buttons drawn in android after the first tap?
- Are Delegates more lightweight than classes?
- PHP method overloading
Related Questions in WEBVIEW-FLUTTER
- Flutter WebView plugin crashes the app when installed on iOS 14+
- how to preload a flutter webview widget
- webview_flutter How to evaluate Javascript at each page?
- Catch window.open() or target _blank Webview_flutter
- Javascript callback handler in WebView for Flutter Web
- Camera & Microphone does not work in webview_flutter package, even though the user grants permission for both
- How to open tel, mailto, whatsapp links in a flutter webview?
- webview_flutter violates content security policy, any solutions?
- Intercepting fetch request on Flutter webview_flutter package
- How to get height of the every url of webView flutter
- Flutter WebView file upload does not working to android app ,IOS app also ok. Anyone can help me how to solve this problem?
- flutter webview javascript channels and Stripe connect completion via cloud functions
- java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/**/cache/storage/CAPTURE-20210427_125521.jpg
- pass data from flutter to webview
- Convert intent web url to Android Intent
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Found my own answer: Need to setup a server between webview_flutter and non-asset directory. I've used the package local_assets_server.dart and used rootDir parameter in the LocalAssetsServer() to call and point to the local Directory path. May need to keep the assetBasePath blank. When the webview_flutter loads from this server, it will load the index.html in this rootDir path.