MediaLibrary

RSS for tag

Access read-only collections of the user’s multimedia content using MediaLibrary.

MediaLibrary Documentation

Posts under MediaLibrary tag

44 results found
Sort by:
Post not yet marked as solved
16 Views

attempt to delete item 1 from section 0 which only contains 1 items before the update

i am getting an issue whenever i am trying to remove last index from the array and reload CollectionView excode throws this "attempt to delete item 1 from section 0 which only contains 1 items before the update"
Asked Last updated
.
Post not yet marked as solved
544 Views

Digital Signature Drivers Missing Big Sur

Hi all. IM need help with Big Sur Beta 4, because in betas 1 and 2 the drivers pack from third party like epass2003 Feitian Technology works nice and recognize until update for Beta 4. Is that possible copy or replace some files in system like /usr folder to recognize again this midia? If there a way, please im need help. Im not advanced user. Im think is Java problems and missing dylib files on Big Sur beta 4.
Asked
by Max_1974.
Last updated
.
Post not yet marked as solved
107 Views

Can you remove a song from a users Apple Music Library?

Is there an API or method to do the above? I am building a music app and can find the addItem API here https://developer.apple.com/documentation/mediaplayer/mpmedialibrary/1621278-additem, but no removal API. This is a pain for users as they will be able to add items, but then be unable to remove them unless they go to the Apple Music app. This also appears to be the case for playlists.
Asked
by jknlsn.
Last updated
.
Post not yet marked as solved
340 Views

MPMedia Player Set Queue

I am using a media player to play songs. Setting Queue firstly and start playing songs works fine. While if I try to change the queue when one song is playing queue does not get changed. Until I call the MediaPlayer Play function again. Calling the Media Player Play function whereas freezes the app for seconds. Tried several ways but nothing works. Do let me know how we can change the queue of the media player while not disturbing the ongoing song. Thanks in advance.
Asked Last updated
.
Post not yet marked as solved
106 Views

Media control symbols cover the subtitles

all the website has same media control system design(maybe IPhone default media control)So when I try to watch anime it covers the subtitle when i tap to see media control.so is there a way to make it transparent or maybe use website’s media control system?
Asked
by Kagemino.
Last updated
.
Post not yet marked as solved
137 Views

apprtc swift local video is black screen in ios14

We are providing a apprtc app that supports libjingle_peerconnectionPod. While updating to Xcode 12.4 version 1:1 video chat was work but local video displaied black screen in ios 14 divice but sound works fine. Any solutions to this problem?
Asked
by Mutal.
Last updated
.
Post not yet marked as solved
307 Views

PHPicker loadObjectOfClass fails with error

We implemented the new PHPicker and have run into an issue we haven't been able to replicate on our own devices but see a lot of users running into it. The problem is an error after getting the PHPickerResults and trying to get the UIImages. Because the user can select several images at once, what we do is get the results and iterate over each itemProvider object. I'm following apple's guidance and checking if itemProvider canLoadObjectOfClass:UIImage.class, before executing itemProvider loadObjectOfClass:UIImage.class. However we are getting hundreds of reports of users where this last method returns an error. Firstly, this is how we configure our PHPickerViewController: PHPickerConfiguration *configuration = [[PHPickerConfiguration alloc] init]; configuration.selectionLimit = self.pictureSelectionLimit; configuration.filter = PHPickerFilter.imagesFilter; configuration.preferredAssetRepresentationMode = PHPickerConfigurationAssetRepresentationModeCurrent; PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:configuration]; pickerViewController.delegate = self; pickerViewController.modalPresentationStyle = UIModalPresentationFullScreen; [viewController presentViewController:pickerViewController               animated:YES              completion:nil]; And this is what we do with the PHPickerResult. This is a method that returns a block with an array of an object NewPicture instantiated with the UIImage I should be getting. NSMutableArray *picArray = [[NSMutableArray alloc] init]; NSArray *itemProviders = [self.results custom_map: ^id _Nullable (PHPickerResult *_Nonnull current) {   return current.itemProvider; }]; dispatch_group_t dispatchGroup = dispatch_group_create(); for (NSItemProvider *itemProvider in itemProviders) { dispatch_group_enter(dispatchGroup); /**  We cannot properly retrieve raw type images with the current authorization status.  If the image is of type raw, we ignore it. */ if ([itemProvider hasItemConformingToTypeIdentifier:@"public.camera-raw-image"]) { NSException *exception = [NSException exceptionWithName:@"ImageIsTypeRaw"                         reason:[NSString stringWithFormat:@"Object is type raw. ItemProvider: %@", itemProvider.description]                        userInfo:nil]; // Log exception... dispatch_group_leave(dispatchGroup); continue; } if ([itemProvider canLoadObjectOfClass:UIImage.class]) { [itemProvider loadObjectOfClass:UIImage.class completionHandler: ^(__kindof id NSItemProviderReading _Nullable object, NSError *_Nullable error) {   if ([object isKindOfClass:UIImage.class]) { NewPicture *picture = [[NewPicture alloc]initWithImage:object]; [picArray addObject:picture]; }   if (error) { NSException *exception = [NSException exceptionWithName:@"CouldNotLoadImage"                         reason:[NSString stringWithFormat:@"Object is nil. UserInfo: %@", error.userInfo]                        userInfo:error.userInfo]; // Log exception... }   dispatch_group_leave(dispatchGroup); }]; } } dispatch_group_notify(dispatchGroup, dispatch_get_main_queue(), ^{ picturesBlock(picArray); }); The most common error we see our users are getting is: Object is nil. UserInfo: { NSLocalizedDescription = "Cannot load representation of type public.jpeg"; NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=260 \"The file \U201cversion=1&uuid=*&mode=current.jpeg\U201d couldn\U2019t be opened because there is no such file.\" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/*/File%20Provider%20Storage/photospicker/version=1&uuid=*&mode=current.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/*/File Provider Storage/photospicker/version=1&uuid=***&mode=current.jpeg, NSUnderlyingError=0x283822970 {Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"}}"; } I'm having a really hard time understanding why this sometimes fails. I'd really appreciate it if someone could give me a hand with this. I'm attaching the stack trace: stack_trace - https://developer.apple.com/forums/content/attachment/051f7018-05ff-4ad1-a626-29f248d0b497
Asked Last updated
.
Post not yet marked as solved
188 Views

can't use assetURL from MPMediaitem

I am creating an IOS application to play music using my custom player and I am fetching the music from iTunes music. But the assetURL for most of the songs is nil and I am not able to play these songs. I have an active subscription of iTunes music and songs are downloaded into my iMusic app for offline purpose. Any idea what I need to add in order to play all iTunes songs into my application?
Asked Last updated
.
Post marked as solved
282 Views

Xcode 11 and external Frameworks like SFML or SDL

Hello. I am pretty new to using Xcode. I am facing a lot of difficulties when it comes to using frameworks like SFML or SDL. I am following all the steps described on the websites or on YouTube but I somehow Xcode does not find the header files. ( Did not find header 'SDL.h' in framework 'SDL2', e.g.). I tried following the online help with regard to Build Settings etc., to no avail... Although I have been looking for answers to my problem or others having the same problems to ask, it still seems like nobody else has these issues. Is there anybody out there who can give me a hint as to what might be the problem? Or could direct me to a place where I might find help? Thanks in advance :)
Asked
by Mepe.
Last updated
.
Post not yet marked as solved
148 Views

Library Pane

Is there a way to PIN the library view on the Xcode desktop
Asked
by DukeOBass.
Last updated
.
Post marked as solved
1.3k Views

MPMediaLibrary not working properly - iOS 14 beta

I'm using the MPMediaLibrary's addItem(withProductID:completionHandler:) function: https://developer.apple.com/documentation/mediaplayer/mpmedialibrary/1621278-additem but the completion is never called, no matter where I call it in my code, regardless if the item was or wasn't already in the user's library. Has the API changed or is this a beta issue?
Asked Last updated
.
Post not yet marked as solved
151 Views

New BigSur Beta added item to Music (iTunes) - What is It?

A new item now appears in the iTunes (Music) listing of songs (a grey down arrow next to the track time) but it hasn't been explained. All changes in iTunes make me nervous. I have 70000 mostly ripped CD's in iTunes and you've screwed up my libraries before. I'd post a screenshot, but that doesn't work here.
Asked Last updated
.
Post not yet marked as solved
608 Views

Viber cannot send or recieve pictures and videos

Hi, I have a new Iphone 12 pro and I have a problem that I cannot recieve pictures and videos on viber, they just dont download to the phone. All permissions are on, Photos permission set to All photos. I also cannot send photos from camera and gallery from viber. But when I go to gallery first and share a picture to viber, the recipient recieves it, but it is still not displayed in my viber. I appreciete any help.
Asked
by vladrakc.
Last updated
.
Post not yet marked as solved
224 Views

14.3 update

So I updated my phone to 14.3 finally and now you can’t save gifs to your phone anymore. This is a feature that I use a lot and then I kind of needed. Is there anyway to fix this?
Asked
by tstrauss.
Last updated
.