Link to iTunes music - iphone

I would like to enable users to as simply as possible go to a certain music album in the iTunes music store (not the app store). Is it possible to create such a direct link that opens iTunes music store with particular music album or song? You can see such behavior in Shazam.

http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsLinkMaker

Related

How to upload or push songs from my app to iPhone music library in Swift 5

I am building an iOS app in Swift 5 and I am trying to add a song to the user's Apple Music Library, I fetched all the albums, playlists songs using MPMediaLibrary but can't upload it! Is it possible to upload a song to the user's Apple Music Library?
The modification could not be made to the user's music library which could not be done by an app because it's the user decision to decide what songs to be in his/her library. There is no such api to achieve this. This is something like you want to install an app in the user's iPhone without user's intervention, which could not be done.
There is already a similar question with Swift 4.
Swift 4 Upload song to Apple Music Library
Edit:
Refer this documentation in case if you want to modify playlist/apply ratings to user's library (with the user authorization)
addItem Instance method
api documentation

How can I link to featured music section in iTunes store application from my iphone application?

To be more descriptive, I do NOT want to link to particular song, or album as affiliation links. But only want to link to open the iTunes app with featured music section as open. Just like it is linked in iPhone's native music player application.
You want to send the user to the following URL - this will open the music store to the Featured tab.
https://itunes.apple.com/us/store
FWIW - this link works on both the desktop and mobile.

How to get Youtube URL into IPhone App

I'm developing an app were I would like to get youtube video url into my app from youtube app in IPhone. Whenever user clicks on video in youtube app that video's link should be directly retrieved into my app. Is it possible to do this?
Thanks
You can not get the data from some other app to your app...IOS doesnot allow it. All apps has their own separate documents directories. Only Media Files/contacts in phone are accessible.
Read this you might get some idea : Is it possible to access data across 2 different iOS apps?

Apple iTunes Affiliate Program - Song link metadata?

I have an app that plays music from the user's iTunes library on the device. Without going into the details of the "Whys" behind what I am doing, I just need to know how to automatically get the iTunes store link from each song. So in the app, I will show a song list. I want a "Download" button next to each song. When the user presses that button it opens up the song in iTunes to be purchased. Is there a way to dynamically find the links to those songs, or do the links have to be pre-programmed into the app?
I was hoping any official iTunes music would have an iTunes download link/other useful meta data associated with it.
Again these songs are never the same on all devices because they are coming from the users library.
Maybe there is some search function I can do?
It is not exactly automatically (though for the user it will be), but with the title of the track you could search it using the iTunes Store Web Service Search API.
This will return a JSON response with the link to the song in the iTunes store (along with some other useful metadata).
I've got his same problem. Considering using EchoNest to actually identify a track from its audio content, then using the returned values (title, album, etc.) from EN to query iTunes API for the track in the Store.
This is based on the assumption that the user's track metadata is not reliable, and has the added benefit that you can fill in any missing data that the user may not have (eg. album art)
Any other ideas?

How to play itunes videos in iphone?

I am new to iPhone development. I have a URL of a site.
On clicking the "visit itunes" button on page, the itunes for that particular site is opened in my Mac iTunes.
I am able to see the videos in iTunes. How can I implement this in my iPhone so that i can see the video in my iPhone?
Thanks.
You need Media Player Framework. If you use MPMoviePlayerController you can use initWithContentURL to show video from a URL.