preview iTunes/Last.fm tracks from withing app - iphone

Is it possible to allow users to preview music from either Last.fm or iTunes from within my app?
Are apple OK with apps streaming preview clips of music in apps?
This is a monotouch app.
w://

This is possible using the Apple iTunes Search API.

Related

Creating a playlist in iOS?

Is it possible to create, name and save an iTunes playlist like you can in the Music app from a 3rd-party programmed app? If so, how?
iTunes playlists (MPMediaPlaylist) are read-only, so there is currently no way to create these through a 3rd-party app. The user can only do this with iTunes or through the built-in iOS Music app.

Do i need to write extra code for newly added youtube video in iphone?

I am new in iPhone development. I want to create an app which will show youtube videos those i will upload in my account.
I will have admin panel in my app, from where i could control my videos. Suppose i developed the app and launched on app world.
Now after some time I want to add new videos to my account , should i need to write extra code or it will reflect automatically via used link in iphone app?
Speaking generally, you could have the application find your newest videos released in Youtube and display them in the app. Therefore, you would not need to have any more code.
There would be no code for any video within your app. Instead, have your app get the list of the videos from Youtube and play them.

(iOS) Is there a way for an app to open the iTunes music player app (preferably going straight to the Now Playing screen)?

I would like to be able to launch the iTunes app from my app when I tap a button (note that I mean the actual music player, NOT the iTunes Store or App Store). Preferably I'd like it to go straight to the Now Playing screen. Is there any way to accomplish this?
Yes, it is possible to open the iTunes music player to the "now playing" screen using the music:// URL scheme. Found this out rather incidentally while reading this post on how to quickly launch apps using Siri.
Also, here are a few sites that you might find handy if you ever need to answer the question "Can I open Application X with a url?"
handleOpenURL - a searchable database of iOS apps that accept URLs (and the URL schemes they take). You can submit your apps here.
Adrian Kosmaczewski's Wiki lists quite a few iOS app url schemes as well.
app lookup blog has more.

Select audio files created with native Voice Memo app within iOS app

I'd like to have users of an app upload voice memos they've recorded on their iPhone.
Is it possible to select audio files created by the native iOS Voice Memo app in a similar way to selecting photos or videos using UIImagePicker.
Thanks in advance.
For the current versions of iOS, it's impossible. But you can simply use AVAudioRecorder to record directly. And then upload these voice recorded by your app.

How to get music files of iphone using itunes sdk?

i'm researching to get music files in iphone.
i think i can get it using itunes sdk into PC based on windows, but i don't find a solution in sdk's document.
i can get playlists and music file's locations using sdk.
is it possible to get music and video files in iphone using itunes sdk?
Look at the AddMusic example given by Apple: http://developer.apple.com/iphone/library/samplecode/AddMusic/Introduction/Intro.html