Post

Replies

Boosts

Views

Activity

AVFoundationError -11819
Recently started receiving multiple AVErrorMediaServicesWereReset Error (11819) complains from our users User's video doesn't start for some reason. I have researched this issue but with no success, because i can't recreate the problem. All i could find is that users experiencing error have in common is this: its on DRM content only (we use FPS) non-drm content plays normally. restarting device doesn't help different network doesn't help either Both iOS app and Mobile web have this issue (probably something with device) Deleting and redownloading the app doesn't help too. Last iOS version too (or close to last) Would be very grateful for any help! Thanks
2
2
1.4k
Jun ’22
LayoutConstraints CRASH
Hello everyone I'm seeing weird crash on bugsnag. Its about player on tvOS and it happens when I'm exiting player. And its 2 system classes. Can someone help me understand what's going on here Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x2831d5480 "AVFocusProxyView:0x1224b3370.left"> and <NSLayoutXAxisAnchor:0x28356cf40 "AVPlayerLayerView:0x1224bf9b0.left"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal.
0
0
752
Dec ’21
Focus update crashes UI on tvOS 15.0
I'm encountering UI update issues whenever I'm selecting an option for new quality from the menu in new tvOS 15.0 controls. FYI: selecting a quality makes a new content node and replaces previous node in player. However the behaviour is different for two cases whenever I select an option while content is PLAYING - focus update is okay and and i get the expected outcome. whenever I select an option while content is ON PAUSE - focus update crashes ui and it moves to previously opened screen while im hearing player playing somewhere in the back WHEN PLAYING The focus debug just before focus update shows: AVPlayerViewController.view.preferredFocusEnvironments: a. _AVPlayerViewControllerContainerView (skipping collectionView) <_AVPlayerViewControllerContainerView: 0x7fa0d27f5b30; frame = (0 0; 1920 1080); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600000f7de90>; layer = <CALayer: 0x6000000df8a0>> (view controller is <AVPlayerViewController: 0x7fa0d31f4a00> b. container's preferred focusEnvironments: <_AVFocusContainerView: 0x7fa0c68a4c30; frame = (0 0; 1920 1080); gestureRecognizers = <NSArray: 0x600000f68e40>; layer = <CALayer: 0x6000000d79a0>> (view controller is <AVPlayerViewController: 0x7fa0d31f4a00>) WHEN IN PAUSE The focus debug just before focus update in this case shows: a. CollectionView - the customMenuItems collectionView <UICollectionView: 0x7fa0d3143800; frame = (0 844; 1920 64); autoresize = W+H; gestureRecognizers = <NSArray: 0x600000f43300>; layer = <CALayer: 0x6000000dccc0>; contentOffset: {0, 0}; contentSize: {1760, 64}; adjustedContentInset: {0, 0, 0, 0}; layout: <AVxCollectionViewLayout: 0x7fa0d2760580>; dataSource: <AVxCollectionViewController: 0x7fa0c6873e00>> b. CollectionView.preferredFocusEnvironments is cell - is one of customMenuItems <AVxOverlayToolCell: 0x7fa0dd721140; baseClass = UICollectionViewCell; frame = (1606 0; 64 64); layer = <CALayer: 0x60000012b980>> c. Cell's preferredFocusEnvironments is empty. I don't know if its native bug or there's a way to solve this myself.
1
0
1.3k
Sep ’21
[tvOS 15.0] transportBarCustomMenuItems don't handle taps
Hello! Im using Xcode 13 beta 2 , building on Apple TV 4K, tvOS 15.0 (physical device) I was implementing new functionality into the tvOS app I'm working on and encountered some difficulties trying to use new .transportBarCustomMenuItems property. I'm creating a UIMenu, debug shows that Menu has children and overlay shows my created items, but when I'm trying to click on it, nothing happens, nor menus or actions don't call handler func I'm providing and those pretty controls im adding just have no use. Help me understand if I'm doing something wrong. He's pseudo code im using private func createLocalizationMenuControl() -> UIMenuElement? { let image = UIImage(systemName: "gear") let menuChildren = localizations.compactMap { [weak self] localization in self?.createLocaliztionAction(from: localization) } return menu = UIMenu(title: "Localizations", image: image, options: [.singleSelection], children: menuChildren) } private func createLocaliztionAction(from localization: Localiztion) -> UIAction { return UIAction(title: localization.name, state: localization.isAvailable ? .on : .off, handler: { [weak self] _ in self?.didSelectLocalization($0) }) } Note: if I'm settings options: [.singleSelection, .displayInline] for UIMenu like it was shown in wwdc21-10191 session - its not displayed at all. I am starting to believe its beta related. Any ideas why this could be happening or how to make it work? Maybe anyone from Apple engineer team could help me understand how do parameters of the UIMenu reflect on its behaviour. Unfortunately there's not that much docs on this functionality yet. I would be very grateful if someone could explain this one to me.
1
0
772
Sep ’21