Questions tagged [mpmediaquery]

A media query specifies a set of media items (instances of MPMediaItem) from the iPod library by way of a filter and a grouping type. Filter and grouping type are both optional; an unqualified query matches the entire library.

A media query specifies a set of media items (instances of MPMediaItem) from the iPod library by way of a filter and a grouping type. Filter and grouping type are both optional; an unqualified query matches the entire library.

170 questions
0
votes
1 answer

MPMediaQuery wait until Media dialog is complete before callback

My goal is to establish a bridge between iOS and react-native and return back all the podcast titles. The bridge seems to be working, and the podcast titles get returned however the callback I've set up gets called immediately and not after the user…
Emmett Harper
  • 239
  • 4
  • 15
0
votes
0 answers

Swift music player 'NSRangeException', reason: 'Index (0) out of bounds (0)'

I am developing a music app in swift and I'm having an issue when attempting to play an album using UITableViewRowAction. The first album I play works fine but when a second album is played afterwards I get an exception: 'NSRangeException', reason:…
Neil
  • 1
0
votes
0 answers

Media query for smallest size has over written all

I have wrote my website in the biggest size (1025px) however now that I have added media queries the media query for the smallest screen size (400px) has over written all other CSS. It does not listen to the breakpoint. Too much code for one code…
UchiCode
  • 23
  • 9
0
votes
1 answer

Not getting playlist name from Apple Music

I want to get Playlist Name, but it gives value of Mpconcreteitem. let myQuery2 : MPMediaQuery = MPMediaQuery.playlists() let playlist = myQuery2.collections print(playlist!) for album in playlist!{ print("---------------") print("playlist…
0
votes
1 answer

How to retrieve album list including total play time on iOS/MediaPlayer

If you use [MPMediaQuery genresQuery] then you get MPMediaItemCollection which doesn't hold the total play time. You can use the representativeItem but this one gives you only that particular item play time. Is there an efficient way how to display…
PerfectGamesOnline.com
  • 1,774
  • 1
  • 18
  • 31
0
votes
1 answer

How to make an MPMediaQuery to return results based on releaseDate

I'm trying to create an MPMediaQuery that will return results in chronological order, preferably ascending or descending based on the query itself. Right now my query returns items in ascending chrono order (oldest at top) but I'd like to be able to…
wayneh
  • 4,393
  • 9
  • 35
  • 70
0
votes
1 answer

Using Realm with MPMediaQuery

I want to build an Audiobookplayer which can set Bookmarks. Loading the Audiobooks from my Library with MPMediaQuery works fine, but when I take an audiobook off through iTunes, it stays in my realmfile. I would like realm to delete the entry…
cmag0505
  • 13
  • 4
0
votes
1 answer

Set mediaquery with jquery

I wanted to know if this script is OK or not, it should work? I could also use removeClass $(window).resize(function() { if ($(window).width() <= 890) { $(".vc_custom_1481753917956").css("border", "0px"); }); }; can work? can it…
user4928562
0
votes
0 answers

Sorting MPMediaQuery albums by year

I'm using Objective-C, iOS 10 and iPad. I know how to get the list of albums made by an artist. MPMediaQuery *albums=[MPMediaQuery albumsQuery]; MPMediaPropertyPredicate *artistName=[MPMediaPropertyPredicate predicateWithValue: @"some name"…
danyadd
  • 119
  • 1
  • 2
  • 8
0
votes
2 answers

how to override properties defined in polymer using media queries

assume that we have declared a property named height="" which has a certain value, let say 200px. I was wondering that is there a way that we could override this property using media queries in css?as far as I know, the inline properties has…
Soheil
  • 31
  • 8
0
votes
2 answers

Gmail's Support of Media Queries Limited by Location?

Now that Gmail supports media queries (https://developers.google.com/gmail/design/css) does any know of limitations such as location (i.e., only available for US based email addresses) or if the update is limited to just webmail? Email on acid did a…
ALuci
  • 15
  • 2
0
votes
1 answer

Cannot understand behavior of MPMediaQuery

I was working with MPMediaItem. I used MPMediaQuery.songsQuery() to fetch the songs based on their titles. The problem is that I saw some songs out of order. The songs names were always starting with "the" For example, if the song name was "the…
Shubhashis
  • 10,411
  • 11
  • 33
  • 48
0
votes
1 answer

How do I detect when a user has given permission to access the media library? (iOS 10)

In iOS 10, if an app accesses the music library, an Alert will be presented asking if the user gives permission for this access. This Alert is not part of the App. Is there some notification mechanism so that the App can be informed (a) that the…
mmm
  • 65
  • 10
0
votes
1 answer

Retrieving music from music library and Not able to figure out how can i retrieve the artpictures and names of songs from MPMediaItem

So basically i want to create a music player where all users will be able to play songs which they have in their device with my own customised music player. This code I'm using right now to get the list : import UIKit import MediaPlayer class…
Akshay
  • 11
  • 3
0
votes
2 answers

Last heard songs (Swift)

I want to fill a tableView with the last heard songs. With .nowPlayingItem I can get the very last song, but how can I get the songs heard before? I think this question already has an answer at Retrieve list of songs ordered by last play time in…
J.Vongehr
  • 323
  • 1
  • 4
  • 18