-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ApiVideoCameraPreview is automatically resized to a strange ratio #75
Comments
Hi, Could you try to reproduce on the example or provide a code snippet? |
I can't test the example because has errors :( . The log when I try to run the example in my device: Swift Compiler Error (Xcode): Consecutive declarations on a line must be separated by ';' Swift Compiler Error (Xcode): Type annotation missing in pattern Swift Compiler Error (Xcode): 'nonisolated' can not be applied to stored properties Swift Compiler Error (Xcode): Expected 'var' keyword in static property declaration Swift Compiler Error (Xcode): Consecutive declarations on a line must be separated by ';' Swift Compiler Error (Xcode): Type annotation missing in pattern Swift Compiler Error (Xcode): 'nonisolated' can not be applied to stored properties Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code Error launching application on Phôn. |
The log when I run in my project: 2024-05-11 10:11:44.890 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready. !!! Please note that at the time log [com.haishinkit.HaishinKit] is generated, the image will be distorted |
Hello, |
i have try using passing height and width in AppVideoCamraPerview from outside Get.size.height and width it work for me but i cannot creat build becouse of changes in AppVideoCamraPerview const ApiVideoCameraPreview(
Size _size = const Size(Widget.width, Widget.height); ApiVideoCameraPreview(controller: controller.apiVideoLiveStreamController!,fit: BoxFit.fitHeight,height: please update your code and release new viersion and in ios on controller init it taking 1 or 2 minit for initialize it freaze screen |
Version
v1.2.0
Which operating systems have you used?
Environment that reproduces the issue
Iphone XR OS14
Is it reproducible in the example application?
Not tested
RTMP Server
n/a
Reproduction steps
Hello,
Currently, I have a problem related to the CameraPreview, after a short time starting to stream to the RTMP server, the camera preview widget flashes the screen, and then the frame ratio changes (seems to be 16:9)
I don't encounter this on Android devices
Please help me troubleshoot this problem!
original-D373FC2B-1A24-484A-A89F-4CF044E2B815.mp4
Expected result
normal camera ratio
Actual result
strange ratio
Additional context
Preview widget:
The parent widget:
Relevant logs output
No response
The text was updated successfully, but these errors were encountered: