-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Video renders in landscape, but not portrait orientation #360
Comments
I do not reproduce this issue. |
It may be related to the style of the video tag that you use in portrait causing the issue. |
will test and confirm. |
Can you try with latest v5.0.0 @osnoww see upgrade instructions here: |
Cannot reproduce |
Hi Harold, we ended up rebuilding some of the legacy code in the cordova
plugin to allow the latest webrtc lib to be used. Once we have cleaned it
up and can document and build an example project, we will release back to
open source. (This is several months away at least).
…On Fri, 13 Sep 2019 at 17:43, Harold Thétiot ***@***.***> wrote:
Closed #360
<#360>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#360?email_source=notifications&email_token=AIKPJ6CNB7AZXH4ZAT2ZOUDQJO7JVA5CNFSM4IGAAQFKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTTXWMKI#event-2632934953>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIKPJ6GTOFFIDYJ7HNQVKPTQJO7JVANCNFSM4IGAAQFA>
.
|
Thank you @osnoww that a great news. Here is the initial draft and I have exposed RTCPeerConnection.addTrack|removeTrack already for the future migration in 5.0.2 next release. PluginRTCPeerConnection.(addTrack|removeTrack) https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/task/getReceiversOrSenders-and-addOrRemoveTracks/src/PluginRTCPeerConnection.swift#L276 RTCPeerConnection_(addTrack|removeTrack): |
I'm now experiencing this issue after iOS 13 (specifically, iOS 13.1.2). The attributes don't really change between orientations. It works in iOS 12. |
It appears to be fixed by #399 |
Yes @cah-dunn I can confirm on iOS #399 works fine, but the fact is I did not change anything regarding orientation detection beside calling Renderer every 500ms. An alternative to it would be this:
I'm not sure I will keep the Interval 500ms on release, you may want to check #master and confirm using resize event + cordova.plugins.iosrtc.refreshVideos does fix master. |
May be this get trigger on #399 rotate but I have not check yet:
|
Confirm "func videoView(_ videoView: RTCVideoRenderer, didChangeVideoSize size: CGSize) {" can call on orientation change on M69. cc @cah-dunn |
@hthetiot I did a good amount of debugging with I can confirm that the video view is being updated on orientation change. I think we could/should remove the 500ms interval prior to release. Thanks for all of your work on this project by the way, you're making some awesome updates. |
@cah-dunn Thank you for great feedback, much apreciated. |
Hi All,
Since I raised this issue originally, I have worked with a Metal/iOS expert to fix the most serious issues with the webrtc Cordova plugin - the iOS component now uses Metal and the plugin is modified to allow the use of the current webrtc lib (the old plugin version had some hacks that I understand required older versions of webrtc. We aim to get the updated code pushed in the next couple of days.
… On 9 Oct 2019, at 19:26, Harold Thétiot ***@***.***> wrote:
@cah-dunn Thank you for great feedback, much apreciated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@hthetiot the issue still persists when using the plugin (version 6.0). Occurs when using the below css: Simplest fix is to not specify min-width and min-height css. I've tested on iOS 10, iphone XR |
Do you call refreshVideos on rotate ? |
Note: this has nothing to do with Metal anyway. |
That not the same issue then @akilude Please create separate issue with full example and will had support, alternatively don't do bad css like that use flexbox and with:100% height: 100% |
See related function that get the size, should work with any proper CSS,... https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/js/MediaStreamRenderer.js Unless full example is provided, I will not reopen. |
I am using the latest version of this plugin
If a video call is started in landscape mode, the call is successful on a variety of Apple phones and OS versions
if the call is started in portrait mode, the call fails. The console log contains error messages like
"failed to bind EAGLDrawable: <CAEAGLLayer: 0x60000271a480> to GL_RENDERBUFFER 1
Failed to make complete framebuffer object 8cd6"
The text was updated successfully, but these errors were encountered: