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.artistsQuery() to show in groups

I know I'm very likely missing something extremely basic here but I'm stuck. Why does the following code produce a table view of each track's artist instead of the artists listed in groups (i.e. why is each artist listed 20-something times instead…
0
votes
2 answers

Avoid loading new page after the print and next page should print from the remaining portion of last printed page - dot matrix printer

I am printing a page using a dot matrix printer by using javascript print() method and by use of @media print methods in css. My print.css as follows: @media print { html, body { font-family: 'Arial', 'Helvetica',sans-serif; …
Santhucool
  • 1,656
  • 2
  • 36
  • 92
0
votes
1 answer

What is the difference between these MPMediaQuery results?

What is the difference in the results between these two queries: let myQuery:MPMediaQuery = MPMediaQuery.songsQuery() myQuery.groupingType = MPMediaGrouping.Album and let myQuery:MPMediaQuery = MPMediaQuery.albumsQuery()
wayneh
  • 4,393
  • 9
  • 35
  • 70
0
votes
1 answer

Get list of albums from ipod library in swift

I want to make a simple media player in Swift. I want to make a table with all Albums on the iphone and after selecting the album i want to play the songs of it. But i can not get the album titles (and artwork). I tried: var query =…
0
votes
1 answer

Eliminating empty space with hidden html in CSS

I am trying to hide certain content with visibility based on media query. It works, but it creates empty scrollable space like the containers are still there. Is there a way to eliminate this? When the screen is in "Desktop" mode - it has all the…
Greg
  • 21
  • 7
0
votes
1 answer

Not getiing M4a file from iphone using MpMediaQuery

How I can access m4a file from my iPhone. Right now i am only accessing mp3 file and using MpMediaQuery, but now I want to access m4a file also. I am using this code: MPMediaQuery *everything = [[MPMediaQuery alloc] init]; NSArray…
0
votes
1 answer

How to get the size of a song in ipod library?

I have been working on a media player app.I am able to get the media items by using the media query,group them based on different groupings and add various filters to narrow down my search. Now my requirement is to find out the size of a particular…
0
votes
0 answers

issue with media query and screen resolution

I have written my media queries for almost all devices that exist, and they're pretty good in all the latest mobile devices and also on the various web-based simulators, device wise. For a few devices like iPhone 5s and Samsung Galaxy Trend,…
0
votes
1 answer

fastest way to get MPMediaItem with no album data

Im looking for the faster way to grab all songs from my iOS music library that do not belong to an album. I know essentially I can traverse through all the tracks and check for an album title. But I was looking a better way, maybe use a predicate…
MiMo
  • 4,905
  • 3
  • 22
  • 23
0
votes
1 answer

Can I delete songs of iTunes over my app?

I use MPMediaQuery class to query iTunes's songs, and then display them in my APP. But now, I received a new needs, that's delete songs. I find the MediaPlayer framework, there is no way to delete songs. How could I do? Thank you
tianglin
  • 226
  • 3
  • 14
0
votes
1 answer

MPMediaQuery.songsQuery().items returns nil

first time I am touching Mediaquery and I am stucked. I have the following lines in xcode import MediaPlayer class ViewController: UIViewController{ override func viewDidLoad() { super.viewDidLoad() let mediaItems =…
rpw
  • 61
  • 1
  • 6
0
votes
2 answers

IOS::How to get the MPMediaquery Songsquery Artwork

I'm using this code for getting the Artwork, but it's not workout for me. What's the wrong in this code.Suggest me. Thanks. MPMediaQuery *mySongsQuery = [MPMediaQuery songsQuery]; NSArray *SongsList = [mySongsQuery collections]; …
Ravikumar
  • 85
  • 1
  • 16
0
votes
1 answer

MPMediaQuery invalid value

I'm running an MPMediaQuery to find a song in the user's iPod library, like this: MPMediaQuery *songQuery = [MPMediaQuery songsQuery]; [songQuery addFilterPredicate:[MPMediaPropertyPredicate predicateWithValue:track.title…
John Wickham
  • 653
  • 5
  • 16
0
votes
1 answer

Sorting ipod playlists by ID

Im trying to fetch all the user's playlists from iPod and sort them by playlist's ID. This is what I did so far: MPMediaQuery *allPlaylistsQuery = [MPMediaQuery playlistsQuery]; NSArray *allPlaylists = [allPlaylistsQuery collections]; NSArray…
Mario
  • 2,431
  • 6
  • 27
  • 34
0
votes
0 answers

Changing table styling for mobile

I have styled a table element with some custom css, which effectively puts a pic above each of three columns of text. This doesn't work on a mobile ( specifically iPhone 5 ) so I am struggling to re configure it to be 6 rows, i.e., pic / text under…
Jimbly2
  • 229
  • 1
  • 4
  • 15