Comments (3)
Ha, I can see the controlView
is fine, but you have a blurred background.
Below is the example running on iPhone 12, iOS 14.4.
Please read:
https://github.com/FoksWang/FWPlayer#usage
from fwplayer.
Hello Mr. FoksWang
Thanks for the reply
The problem maybe our team only allow Device Orientation
set as Portrait
at .xcodeproj
.
Without modify xcodeproj file, I reCalc controlView
frame size to fit the screen.
player?.orientationDidChanged = { [unowned self] (player, isFullScreen) in
let width = max(UIScreen.main.bounds.width, UIScreen.main.bounds.height)
let height = min(UIScreen.main.bounds.width, UIScreen.main.bounds.height)
if isFullScreen {
player.controlView.bounds = CGRect(x: statusBarHeight, y: 0.0, width: width - statusBarHeight, height: height)
} else {
player.controlView.bounds = CGRect(x: 0.0, y: 0.0, width: height, height: height * 9 / 16)
}
}
Now it's worked.
from fwplayer.
Nice to hear that you have solved the issue!
from fwplayer.
Related Issues (20)
- Add option header in AVURLAsset? HOT 2
- Customize player control HOT 1
- [Feature request] Preload HOT 7
- [BUG] Audio session is being configured regardless HOT 2
- [Request] Compile for arm64e & more info for Objective-C usage
- I Have some common Issue please fix it or implement HOT 1
- Full screen button
- Background not working on iOS 14.
- Play and pause and replay at end video
- Supports direct jump to a point in the timeline to play HOT 2
- Disable Specific Pan Actions
- orientation change HOT 1
- How can i hide fullscreen button
- NSURLErrorDomain Code=-999
- how to change the orientation of UIInterfaceOrientation of application
- video player options not visible on ios 16
- disable gesture swipe fast-forward and rewind HOT 1
- unrecognized selector sent to instance error HOT 11
- Laggy video on iPhone 8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fwplayer.