-
Notifications
You must be signed in to change notification settings - Fork 16
iOS publisher/subscriber video elements always letterboxed or pillarboxed #5
Comments
This happens to the subscriber video element as well. |
Hi, I'm 100% interested and open to discuss the proper behavior of the video size in order to mimic the HTML May you please open a bug in the tracker so we can discuss about it? |
@ibc this is actually the same behaviour as the HTML |
@adam: even if this was about the fact that the DOM cannot place anything over the @ibc i think iosrtc MediaStreamRenderer is doing the right thing as per the spec and the default styles of the browser (the default stylesheet for the browser has |
in summary i think the iosrtc MediaStreamRenderer has to read the object-fit property from the video element, and if it is set to |
ah crap, sorry for the frequent updates. even if iosrtc implements what i said above, this would be different from the standard, because the standard implementation allows the video frame to be larger than its container and the video pokes out of the edges. that would be a bad implementation for opentok to work with because on iOS we cannot crop those parts out by wrapping it inside a parent with hence the standard implementation is what i described above but only the scaling and no cropping. i'd actually prefer a slightly non-standard implementation so we can address this use case. |
Basically this is what we want to be able to do: http://jsbin.com/yaheka/edit |
Perhaps because of limitations in the MediaStreamRenderer from
com.eface2face.iosrtc
, publisher video elements, when not at the exact aspect ratio of the device's camera's video frame, always scale the image to fit inside the element (using letterboxing and pillarboxing). This is similar to thefitMode: 'contain'
behavior, but cannot be turned off.The text was updated successfully, but these errors were encountered: