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

Flutter size of the container

I have problem with the container. A have an app with the AppBar and the column below. Below AppBar I added a container with the height of 300 an then sizedBox with height of 16. Then I wanted to add last container which should fill rest of the…
0
votes
0 answers

Facing issue regarding List view scrolling in flutter its going beyond specific widget

This code is displaying screen like below in which when we scroll the list of transaction its going beyond specific area of widget(i.e. White coloured screen area).But it needs to be scrolled without going beyond white screen. Can anyone guide me…
0
votes
0 answers

Mobile menu and Media Query

I have created a mobile version of my site with a hamburger menu. The close icon and hamburger icon are not responding to media query selectors and neither can be made visible on top of the mobile menu. .nav-open is to be applied to the…
0
votes
1 answer

Html, Css Media Query does not work, im a Beginner

body { align-items: center; background-color: black; display: flex; height: 00vh; justify-content: center; } .doi_tuong{ align-items: center; border-radius: 5px; border-radius: 25px; background: #121212; box-shadow: …
0
votes
1 answer

MPMediaPropertyPredicate - filter MPMediaQuery by songs duration

I am fetching music tracks from user's music library like this: let query = MPMediaQuery.songs() let predicate = MPMediaPropertyPredicate(value: false, forProperty: MPMediaItemPropertyIsCloudItem) …
SmartTree
  • 1,381
  • 3
  • 21
  • 40
0
votes
1 answer

Detecting music video from iPhone/Pad music library

Im using MPMediaQuery to search the library on a user's iPhone/Pad. Im able to return audio tracks but im unable to return any of the videos which are on the device. Apparently its not possible according to this article but i fail to understand why…
david-l
  • 623
  • 1
  • 9
  • 20
0
votes
4 answers

Samsung Galaxy A20 Viewport size

I have to write a custom media query in portrait and landscape for Samsung A20 and I can't find the viewport. Does anyone know this? (not for A20s or A20e). Thanks
0
votes
1 answer

MPMediaQuery - getting the songs for each 'section'

I am trying to build a media browser on iOS in objective-c. So far I can get the songsQuery: _query = [MPMediaQuery songsQuery]; And in my tableView datasource I can get the number of sections and the section titles like…
Kenny
  • 1,083
  • 2
  • 8
  • 23
0
votes
1 answer

Problems switching between playlists and setting timers in Swift iOS MPMediaPlayer app

I am building a music player app meant to mimic radio or internet streaming automation. I have already succeeded in pulling music from playlists and filtering by last date played so songs do not frequently repeat (a pet peeve about my iPod). I want…
TCollette
  • 11
  • 1
  • 1
  • 4
0
votes
1 answer

Cryptic SQLite console output in Objective-C

When running my program to query the iPod library of my iPhone, I get the following output in the console: CPSqliteStatementPerform: attempt to write a readonly database for UPDATE ddd.ext_container SET orig_date_modified = (SELECT date_modified…
Chris
  • 11,819
  • 19
  • 91
  • 145
0
votes
1 answer

How can I use the Table View "index" on the right when listing album titles?

I am using Xcode 10.3 and have written a music program that has evolved over a long time and almost completely works. When I use query = MPMediaQuery.songs(), I can use the index on the righthand side of the screen perfectly. But, when I use query…
James64
  • 123
  • 10
0
votes
1 answer

media query with javascript

The code is not working 100%. Only works if I reload the page. I want that some code turn visible if "size < 700" and other code turn visible if the "size > 699". I tryed this code…
0
votes
1 answer

store multiple song in mpplayer that are being fetch from database having song persistent id

i am trying to store multiple song in mpplayer that are being fetch from database having song persistent id..but only single song is being added .here is what i am doing MPMediaQuery *query = [MPMediaQuery songsQuery]; MPMediaPropertyPredicate…
devonsmith
  • 123
  • 2
  • 11
0
votes
1 answer

iOS [[MPMediaQuery playlistsQuery] collections] returns "Playback History" at the first run

I called [[MPMediaQuery playlistsQuery] collections] and the results contains "Playback History" only at first run after user allows access to media library. If I restart the app and do the same query, the "Playback History" entry is gone. How can I…
0
votes
1 answer

How can I add data to the first row of a table before it is filled with MPmedia items from a query?

I have been slowly building a music player. I query album data to populate a table. If the user selects an album, we segue to a new screen to pick a song to play. I'd like to make the first row of the albums table (in the albums view controller),…
James64
  • 123
  • 10