mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Change video background to black
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
displayLayer = [[AVSampleBufferDisplayLayer alloc] init];
|
displayLayer = [[AVSampleBufferDisplayLayer alloc] init];
|
||||||
displayLayer.bounds = view.bounds;
|
displayLayer.bounds = view.bounds;
|
||||||
displayLayer.backgroundColor = [UIColor greenColor].CGColor;
|
displayLayer.backgroundColor = [UIColor blackColor].CGColor;
|
||||||
displayLayer.position = CGPointMake(CGRectGetMidX(view.bounds), CGRectGetMidY(view.bounds));
|
displayLayer.position = CGPointMake(CGRectGetMidX(view.bounds), CGRectGetMidY(view.bounds));
|
||||||
displayLayer.videoGravity = AVLayerVideoGravityResizeAspect;
|
displayLayer.videoGravity = AVLayerVideoGravityResizeAspect;
|
||||||
[view.layer addSublayer:displayLayer];
|
[view.layer addSublayer:displayLayer];
|
||||||
|
|||||||
Reference in New Issue
Block a user