« FileMaker Conference … | Home | Job Offer: Xojo Devel… »

Control AVPlayer on Mac and iOS

We had the question where we can access the playing video in an interactive container on iOS.
The answer is: Yes, we can!

And even on Mac, the same new function AVPlayer.FindPlayers looks for players on the current layout. It returns a list of all the players and you can than use our normal AVPlayer functions. Here a screenshot:


Left side macOS, right side iOS simulator.

So we can get the players on current page and there may be several. You can control the player, e.g. pause/play, query time and duration, change rate or volume. Next you can now use AVPlayer.GetAsset to query the asset for the player. There you can query images for videos, metadata and frame rate.
30 05 17 - 22:09