Get subtitle info with iTunes Search API - api

I am trying to use iTunes API to get information about subtitle languages currently available of a movie.
I'm using this API: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/iTuneSearchAPI/Searching.html#//apple_ref/doc/uid/TP40017632-CH5-SW1
I can get everything related to the movie, like its title, director, country but I can't get any subtitle information.
Using Bones and All as example: https://itunes.apple.com/us/movie/bones-and-all/id1651952453
I tried this: http://itunes.apple.com/search?term=bones+and+all&country=us&entity=movie&limit=1 I get info like "trackName: Bones And All"; "country":"USA", "currency":"USD", "releaseDate":"2022-11-23T08:00:00Z", etc. but
it doesn't show anything about subtitle languages available. Checking the iTunes page of the movie, there are more than 10 subtitle languages available.
Also, don't know if I have to use any "entity" or "attribute" parameters.

Related

How can I get more accurate results with Street View Image Metadata?

I'm using the Street View Image Metadata API to find out if a Street View image is available for land I'm looking to purchase, but I'm finding the results aren't always accurate. For example, I use the latitude/longitude coordinates of the center of the property for the queries. Since this point is in the middle of the property, it can sometimes be hundreds of feet away from the street, but still visible by Street View. When I search the coordinates in Google Maps, it provides a street view image, but when I use the API, it says "zero results." See below for examples.
Location: 37.640141,-120.347427 Google Maps View
Location: 37.637823,-120.340287 Google Maps View
As you can see in each of the examples, Street View provides an image of the location, but the API says "zero results." Any ideas for how to get better results for these types of searches?
To use the API you should use the following format:
https://maps.googleapis.com/maps/api/streetview/metadata?size=[*SIZE X*]x[SIZE Y]&location=[LATITUDE],[LONGITUDE]&fov=80&heading=90&pitch=-20&key=[API KEY]
It returns the metadata you wanted including the following information:
date,
location (lat, long), and
panorama ID

How to pass the MediaLibrary to the AudioService and start playing from specific song in flutter

I have all the UI and logic to read songs from the device and I made my own loagic for playlists because android 10 has a bug. Anyways, so I'm looking on the audio_service package. The example has it all, but the Media library is hardcoded. Despite the name I can imagine this as Playlist with a list of songs.
How can I pass the playlist chosen to play. Maybe Shared preferences?
And another question: Is there a way from which song to start playing the playlist?

How to get purchase link of all songs from itunes

I am working on an music app by using which we can listen,buy(iTunes),share the songs but I have no idea how to get the purchase link of songs. I'm using
https://itunes.apple.com/search?term=let+it+go&media=music
to get information but the purchase link not provide in it.
I know that to redirect to an album page the URL are like this: https://itunes.apple.com/us/album/id{collectionId}, with {collectionId} provided by the search API.
Now I think that to get a certain song the URL would be: https://itunes.apple.com/us/album/id{collectionId}?i={trackId}.
Example: https://itunes.apple.com/us/album/id728903889?i=728904065 for the song "Let it go", by Demi Lovato.
The link to the track is provided in each result's trackViewUrl.
For example, the first trackViewUrl in the file you provided is https://itunes.apple.com/us/album/let-it-go/id948749743?i=948749751&uo=4

youtube's api for app use

Can anyone guide me on how to get youtube's API's to play songs inside the app ?
I need to implement a view with UISearchBar where the user searches for any video on youtube (channel etc .. ) and the results are filtered in a UITableView with the thumbnail, title, and description.
The user gets to choose a video and this video gets opened in another view.
I just need the search because i've been searching for a week and i can't find any result.
PLEASE help.
Thanks.
Youtube api has a good tutorial page for their iOS helper library that you can find here.
In order to retrieve youtube videos using a search string, you'll need to use the youtube api.
You might have to make a get request to
GET https://www.googleapis.com/youtube/v3/search
The required parameters include
part -The part parameter specifies a comma-separated list of one or
more search resource properties that the API response will include.
Set the parameter value to snippet.
You may want to add the search string parameter as well (q), if you are searching for a particular string .
For example a query looks like:
GET https://www.googleapis.com/youtube/v3/search?part=id&q=hello&key={YOUR_API_KEY}
and you get the JSON response containing the youtube ids for the videos matching the search string provided.You can see the details here.
This youtube id can then be used to play the video in a Web View according to the iOS helper library.
[self.playerView loadWithVideoId:#"M7lc1UVf-VE"];

How does iTunes track/identify a song in its music library?

This may not sound like a programming issue, but I'm trying to implement similar rating feature like iTunes does, and I'm curious about how iTunes track a song like this:
After I rate a song in iTunes, even though I change the meta tags(artist/title/album), it can match the song and show the rating, and even I move the file to another folder or change the filename, the rating is still there, I dig a little bit and found in 'iTunes Music Library.xml', there's a 'persistent Id' for each song, I think the 'persistent Id' is the key, but I'm still confused about how iTunes matches the 'persistent Id' with a song even though user can change the filename/meta tag of the audio file.
any idea?