Post not yet marked as solved
16
Views
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"
Post not yet marked as solved
15
Views
What is the alternative of MPPlayableContentDelegate in iOS 15 as it is deprecated in iOS 14.
Post not yet marked as solved
544
Views
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.
Post not yet marked as solved
107
Views
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.
Post not yet marked as solved
340
Views
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.
Post not yet marked as solved
106
Views
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?
Post not yet marked as solved
137
Views
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?
Post not yet marked as solved
307
Views
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
Post not yet marked as solved
188
Views
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?
Post marked as solved
282
Views
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 :)
Post not yet marked as solved
148
Views
Is there a way to PIN the library view on the Xcode desktop
Post marked as solved
1.3k
Views
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?
Post not yet marked as solved
151
Views
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.
Post not yet marked as solved
608
Views
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.
Post not yet marked as solved
224
Views
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?