Skip to content

Commit f87f594

Browse files
committed
Explain why iosrtc.refreshVideos() is called.
1 parent f5e7cda commit f87f594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ There are minor changes in the original HTML, JavaScript and CSS in order to mak
4040

4141
* Given that the video stream is not directly attached to the `<video>` element (the *cordova-plugin-iosrtc* places a native `UIView` on top of it) the video `readyState` property is always 0, so the function `waitForRemoteVideo_` has been modified not to rely on `remoteVideo_.readyState >= 2`.
4242

43-
* In order to correctly place video views (iOS native `UIView` elements) the plugin `refreshVideos()` is called when the local or video video is set.
43+
* In order to correctly place video views (iOS native `UIView` elements) the plugin `refreshVideos()` is called when the local or video video is set (this is because the CSS video elements use "transition" effects that modify their position and size during 1 second).
4444

4545
* A new CSS file `css/main_overrides.css` changes the properties of video elements. For example, it sets `opacity: 0.85` in `#local-video` and `#remote-video` so HTML call controls are shown even below the native `UIView` elements rendering the local and remote video.

0 commit comments

Comments
 (0)