AVKit in OSX 10.8 - macos

We're developing an OSX app that have to be supported by OSX 10.7 to 10.9. We're currently using QTKit and QTMovieView to show videos, but when trying to upload a new version recently we got this error message:
Deprecated API usage. Apple no longer accepts submissions of apps that use QuickTime APIs.
We have also tested to set the Base SDK to 10.8, but same result there.
And changing to AVKit and AVPlayerView does not work for version prior to 10.9.
So is there a way to use AVKit for versions prior to 10.9 or some way to publish an app with QTKit?

You can't use AVKit on OS X versions prior to Mavericks.
But AVKit is a very small framework that only consists of a player view that has some advanced features out of the box (e.g. chapter navigation, selection & trimming, ... - similar to QTMovieView).
If your app doesn't require those features, you can easily implement a view with simple playback functionality with AVFoundation-only classes (AVFoundation was introduced with OS X 10.7).
Instead of AVPlayerView, you can use a combination of AVPlayer & AVPlayerLayer.
There is some Apple sample code that shows how to build a DIY player view here:
https://developer.apple.com/library/mac/samplecode/AVSimplePlayerOSX/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011060
This custom player view supports:
Play/Pause
Rewind
Playback progress
Fast forward
Volume control

Related

MacOS 10.5.6 I didn't use Game Center Entitlement and Running Smoothly. I need check old version MacOS 10.15.3 but I couldn't

I have some problems. I use XAMARIN.MAC, C#. I wrote an App for Mac OS x 10.15... But they have rejected It. I couldn't found any results.
I tried MacOs 10.15.5 and MacOs 10.15.6 They are physical machines Mac
Air and Mac Pro... Running Smoothly...
My entitlement list Is
com.apple.security.app-sandbox,
com.apple.security.network.client,
com.apple.security.files.user-selected.read-write, com.apple.security.cs.allow-jit,
Do they belong to the game center? (I'm not sure) ... However, I saw under the Identifier Default clicked Game Center checkbox, I couldn't change It because It is the default.
Please follow Apple Reject Message... Do you have any idea or recommendations?
Apple Message is
Guideline 2.1 - Performance
Your app crashed on Mac running macOS 10.15.3 when we:
Launch app (clean install)
Click Analysis Window
Click Start Analysis
App immediately quits
No crash log produced
I tried Its work correctly on macOS 10.15.5 and 10.15.6. Running
Smoothly. What should I do to test the version and see what is wrong?
(They are said 10.15.3 crash It) Your app contains the Game Center
entitlement, but it does not link against the GameKit framework.
Apple Message is
Next Steps
If you would like to include Game Center, please link against the GameKit framework and submit an updated binary.
Resources
For information on Game Center, please review the Game Center Programming Guide.
I didn't use Game Center Emtlement It but I'm not sure. How can I detect?, Also, I don't
need Game Center.
My entitlement list Is
com.apple.security.app-sandbox,
com.apple.security.network.client,
com.apple.security.files.user-selected.read-write, com.apple.security.cs.allow-jit,
Best Wishes,
Volkan
You can start investigating by looking if your app links against GameKit
otool -L yourappname.app/Contents/MacOS/yourappname | grep GameKit
Then if you can see any output you might want to configure linking options and try again.

Using image libraries for Mac OS X apps in Swift

The documentation I've found is terribly unclear on this - what I'd like to do is use the provided Xcode image library (catalog?) on a Mac OS X application.
iOS apps get the benefit of being able to use UIKit's UIImage object to quickly reference image files that are loaded into the catalog.
(To wit: UIImage(imageNamed: "Something"))
Since I'm writing a Mac OS app and not an iOS app, I don't get UIKit.
I'd assume that since XCode provides me with the same image library file by default on an OS X app, that I'm somehow intended to make use of it.
How do I reference images inside the library? Ideally I'd be able to do something with NSImage
In this situation, you can use NSImage just like UIImage:
NSImage(named: "Something")

AirPlay Meta Data on Apple TV from Mac App

I am using the class MPNowPlayingInfoCenter to set a song's meta data in an iOS app. How do I set it in an OS X app?
Before Mountain Lion (OS X 10.8), there was no official 3rd party support for AirPlay, although iTunes has integrated it for a long time.
Mountain Lion added a control to allow the user to choose the audio output. However, this happens outside of your app and there are still no public APIs to control AirPlay.
There are several 3rd party implementations of AirPlay. The most famous being AirFoil. They have a public API to display metadata. However, it relies on AppleScript, which doesn't work with the new App Store sandbox.
This is the big picture. Feel free to ask more if you need clarifications.

Develop apps for the iPad 3's retina display without lion?

Is Xcode 4.3.1 (and therefore lion) required to develop apps for the iPad 3's retina display?
Or is there a way to develop for the new device using Xcode 4.2? I'm not running lion yet.
If you are asking about iOS the iOS 5.1 sdk, then you will have to update to Lion and Xcode 4.3.1 to get it.
But as to the Retina display of the iPad 3, there is nothing special about it in the new sdk. So you can develop apps for the iPad 3 using Xcode 4.2. Just make sure you take into account the high resolution of the device when working with images and other graphics as you do with the iPhone Retina Display.
This small hack may be able to help you: it presents how you could install the 5.1 SDK with an older version of Xcode that works on Snow Leopard.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/100229-snow-leopard-sdk-5-1-a.html
It turns out you do need to develop using Lion and iOS 5.1. If you don't build with the latest SDK then the #2x graphics won't show up in the app.

Get current playing song using Cocoa

Is there a way (ofcourse there is a way, but which way) to get info about the song currently playing in iTunes on a Mac (OS 10.5.8 and OS 10.6) programmatically?
I need this for my Cocoa application.
I use iTunes 8 and Objective-C.
Use the Scripting Bridge to ask iTunes. iTunes is even the example that the docs use.

Resources