iphone, ipad file selection

Asked 2 years ago, Updated 2 years ago, 68 views

I am trying to create a music player with monaca cloud IDE.
I'm thinking of accessing mp3 which can be played on iphone and ipad music, but I don't know the directory structure (path).
I looked it up myself, but I couldn't get to the answer, so let me ask you a question.

·Is it accessible by using cordova's file plugin?
·What happens to the pass if you can access it?

I would like to know about the above two points.Thank you for your cooperation.

ios monaca iphone

2022-09-29 20:27

1 Answers

Do you just want to play it?I don't know if I understand what the questioner wants to do well, but
First of all, the music in the default music app in ios is not saved in mp3.
Also, you can operate the files owned by the music app from another app, but we only accept operations from specific instructions
The file itself cannot be copied into the app or transferred to another location.
If you want audio file information, you can view the properties that can be retrieved in MPMediaItem.
However, since you seem to be using Monaca, I think you need to find a Cordova plug-in that can get the above information.

If you want to play the music in the music app, there is a plug-in like the one below.
cordova-music-controls-plugin
*If you have any questions about how to use the plug-in, please ask a separate question.


2022-09-29 20:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.