I used to have an app that would create a sprint workout playlist - it would start a song 30 seconds in, play 1 minute, then move to the next song. I'm looking to create something similar.
I want to access and play songs from the users built in music library. Would this be possible? What library or api would I need to use?
I've tried looking into MusicKit but I'm not seeing helpful stuff for react-native. I'm also considering the react-native-itunes library but was wondering if there is a more obvious or common approach, or possibly something already included with Expo that I'm unaware of.
Related
I'm developing an Expo app which stores large amounts of users private data, currently only within the app. In order to allow the user to migrate their app data between devices, we need to store this in iCloud.
I'm currently unable to find documentation or article that explains how to do this.
Is it not currently possible for Expo to save data via the iCloud API?
there are some ways to save the data in the iCloud, one way you write ios native module
for iCloud API, then use it in the js. the detailed guide you can see here.
the other way is to search the third library which is used for react-native.for example:react-native-icloudstore. but it is old.
besides them, you can use CloudKit JS. use it in the native app webView.
you can go to the official site to learn it
In the end, if you can write native ios code, I suggest you use the first way. if you can not write it, you can search ios native relate library, then make your own
native module for ios
I want to create an application capable to play YouTube video's audios and also save the downloaded content in a local cache, therefore when the user decides to resume or play the video again, then it doesn't have to download part of video again but only download the remaining part (User can decide what to do with the cache then, and how to organize it).
It is also very convenient for mobiles (it is my main focus) but I'd like to create a desktop one too for experimental purposes.
So, my question itself is, does YouTube provide any API for this? I mean, in order to cache the download content I need that my application download the content and not any embed player (also remember that it is a native application). I have a third-party application in my Android system that plays YouTube videos, so I think it's possible unless that the developers use some sort of hack, again this is what I don't know.
Don't confuse with the web gdata info API and the embed API, this is not what I want, what I want is to handle the video transfer.
As far as I know, there is no official API for that. However, you could use libquvi to look up the URLs of the real video data, or you could have a look at how they do it and reimplement it yourself (see here).
I'm playing around to make an app that lets people stream cartoons that I make. It's a very simple app, one ImageView is just loading in a html-homepage in a UIWebView. Witch contain links to .mov files. So if you tap them a movie will start playing. This is because I just want to update the html-file with new cartoons every week.
Is this an "ok" way to do things code:ing-wise? Or am i obligated to us some Objective-c streaming functions?
Is there a specific file-type that i have to use in the movie-files on the server?
Is the HTML static in your app, or does it point to a server? If it's the former, you may be able to get the app approved doing it the way you suggested, depending on the reviewer. If it's the latter, you're unlikely to get it approved by apple.
They tend to frown upon web sites bundled into apps, and will tell you to simply make your website usable with the phone. See section 2.12.
My suggestion is to spend a bit more time and offer iOS users a better - and more immersive - experience than is available via the web. As I'm sure you've found, there are many built-in ways to stream movies and to present them in a manner that surpasses a web-page-like experience.
I know that it is not possible to access the ringtones in iOS, but is it possible for the user to import a ringtone into my app for usage? I have read about iTunes file sharing, but I wouldn't want to do that. Is it possible to have the user manually search for their ringtone/audio file on their device and select it (like if I made a file explorer) and add it into my app? Another alternative, could I have it in one of my servers, like say the user uploads it to my server and then the app can have access to it to download and save it to the phone? I am running out of ideas lol. If this is not possible it just looks like I will be scraping this idea and making it an Android only app. I was hoping to make it for both iOS and Android. If it's not possible, what can I do. Any word from the wise?
There is an option as AudioServicesPlaySystemSound in AudioToolbox. Check the documentation here. I am not sure this can be used to access the ringtones. This should lead you to right direction.
This function plays a short sound (30 seconds or less in duration).
Because sound might play for several seconds, this function is
executed asynchronously. To know when a sound has finished playing,
call the AudioServicesAddSystemSoundCompletion function to register a
callback function.
Not sure whether the usage of this is allowed by Apple, but it looks like it can be used.
I want to have a movie start the first time my app is launched to train users on its use, say a 50 second clip.
How would I go about doing this in an iPad app?
(I am building a very complex platform that has hooks into the web and need users to be aware of that. The video will explain that users can go to the website for different features. When the app starts for the FIRST TIME only I want the video to play.)
Don't force users to sit thru a 50 second movie when the app starts. Your user interface should be obvious enough that they can figure out the basics without watching a training video. If you want to offer it, provide a help button, where they can watch it when they choose to.
See the iPhone HIG section Minimal User Help, which says:
A hallmark of the design of iPhone
OS–based devices is ease of use, so
it’s crucial that you meet users’
expectations and make the use of your
application immediately obvious.
EDIT -- The simplest way to keep track would be to store a flag indicating whether or not you have shown the video by using NSUserDefaults. Check if it's set at startup, set it after showing the video the first time.