Releases: 3Data/pw-player-communicator
Releases · 3Data/pw-player-communicator
v2.0.0
New events
New event to expose the user cam status:
- userCamStatus(string: status)
Removed methods
The next methods are no longer available. Sending tips or toys now should be done throug api request.
- sendTip(int: amount)
- sendToy(int: amount)
v1.9.1
- New methods for video management:
play()
, pause()
and stop()
.
- Docs updated.
v1.8.2
- Stop searching for iframes.
- iframe-communicator bug.
v1.8.0
- Prevent SSR errors.
- Update docs, recheck pints 1 and 2.
v1.7.1
- Update docs with the
allow="camera;microphone"
iframe attribute.
v1.7.0
- New video method:
activateUserCam()
.
- New video method:
deactivateUserCam()
.
- New common event:
disconnected(string: reason)
.
communicator.on("disconnected", function(reason){
console.log("disconnected in tester", reason);
});
btActivateCam.addEventListener("click", function(){
communicator.activateUserCam();
});
btDeactivateCam.addEventListener("click", function(){
communicator.deactivateUserCam();
});
v1.6.0
- Internal code simplyfied
- New chat method:
requestVIP
- New chat event:
VIPRequestStatusUpdate
communicator.requestVIP();
communicator.on("VIPRequestStatusUpdate", function(status){
console.log("VIPRequestStatusUpdate on tester", status);
});
v1.5.1
- Documentation corrections.
- New chat event
roomModeUpdate(string: roomMode)
communicator.on("roomModeUpdate", function(roomMode){
console.log("roomModeUpdate on tester", roomMode);
});