12 ms·
My personal favourite comes from apple AVPlayer *player = <#A configured AVPlayer object#>; CALayer *superlayer = <#Get a CALayer#>; AVPlayer
by throwaway64 14y ago
My personal favourite comes from apple
AVPlayer *player = <#A configured AVPlayer object#>;
CALayer *superlayer = <#Get a CALayer#>;
AVPlayerLayer *playerLayer = [AVPlayerLayer playerLayerWithPlayer:player];
[superlayer addSublayer:playerLayer];
https://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVPlayerLayer_Class/Reference/Reference.html https://developer.apple.com/library/ios/#documentation/AVFou...