Problems with publishing captured stream

Hello, I am trying to share content of one canvas element.
In the OpenVidu documentation for browser api, I’ve found an example.
However when I try to publish video using session.publish(publisher), I am getting errors in the console telling me to check if the openvidu-browser and openvidu-server have same version. They do (2.16.0).

Here is an error:
ERROR:java.lang.RuntimeException:Request element 'audioActive' is missing in method 'videoData'. CHECK THAT 'openvidu-server' AND 'openvidu-browser' SHARE THE SAME VERSION NUMBER in Request: method:videoData params:{"height":0,"width":0,"videoActive":true} request:undefined
I am creating publisher with the following code:

vtrack = canvas.captureStream(25).getVideoTracks()[0]
pub = ov.initPublisher(null, {audioSource:false, videoSource:vtrack})
session.publish(pub)