Been looking through the documentation on using Movies now that I know editable movies are gone
I see that the movie class has a ‘handle’ property, but the documentation doesn’t make this clear what the underlying object is, so I’m not sure what Apple API I should be looking for.
There’s a bunch of things I need to collect from a movie.
FPS (if possible).
Other meta data, such as aperture and shutter speed (again if possible).
A full sized frame at a certain time in the movie, the preview shown to the user may or may not be scaled, but I must have the full sized frame.
Anyone have any clues, I see that the moviePlayer can be used with drawInto, so I might have to do some hacking.
I’ll take the frame as a bitmap image, either a Xojo Picture, CGImage or NSImage.
I’ve been attempting to do some stuff with this today and I’m getting nowhere fast.
The Movie Player.handle refers to a XOJMoviePlayer and I have no idea what that actually is, AVFoundation documentation has a lot of things that it could be.
Right, on top of that moviePlayer.drawInto doesn’t actually draw the frame of the movie, it draw a blank player instead. Seems like this project is dead before it started.
So after I donned my safari hat and went exploring; I can conclude the following.
The Xojo Movie Player is a regular or custom NSView, which uses a “AVPlayerLayer” (CALayer) to display the movie, from this layer you can get the “AVPlayerItem” and from that you can get the “AVAsset”.
[quote=340732:@Sam Rowlands]So after I donned my safari hat and went exploring; I can conclude the following.
The Xojo Movie Player is a regular or custom NSView, which uses a “AVPlayerLayer” (CALayer) to display the movie, from this layer you can get the “AVPlayerItem” and from that you can get the “AVAsset”.
I hope that this helps someone in the future.[/quote]
It will be nice of this information was given on the docs page
Going into the future we simply don’t know; but for those who decide to extend the movie player or want to do movie editing it’s a good reference point.
Also I think the way how Xojo have done it is incredibly smart; it makes their application far more compatible and flexible than if they’d adopted the AVPlayerView. It’s actually quite inspiring and I’m going to see if I use the same trick with Metal.