cordova-rtc / cordova-plugin-iosrtc

Cordova iOS plugin exposing the WebRTC W3C API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement videoWidth & videoHeight <video> properties

ibc opened this issue · comments

This hack may work:

  • When the video src is a MediaStream:
Object.defineProperty(video, 'videoWidth', {
  configurable:true,  // Needed for later removal.
  get: function () { return XXXX; }
});
  • When the video src is not a MediaStream:
delete video.videoWidth

May the same be done for video.readyState? Let's try.