AirenSoft / OvenLiveKit-Web

OvenLiveKit for Web is a JavaScript-based Live Streaming Encoder
MIT License
49 stars 24 forks source link

Help with WebRTC Steaming - Mirror Input Horizontally #18

Open sooswastaken opened 7 months ago

sooswastaken commented 7 months ago

Hi, I am trying to mirror the input steam from the user's mediaDevice horizontally but I don't know how.

ovenLivekit.getUserMedia().then(function () {

            // Got device stream and start streaming to OvenMediaEngine
            ovenLivekit.startStreaming('ws://my-local-ip:3333/app/stream?direction=send');
        });
SangwonOh commented 7 months ago

@sooswastaken Hi. I don't understand what is the "mirror the input steam from the user's mediaDevice horizontally" meaning. Especially "horizontally".

sooswastaken commented 7 months ago

Hello @SangwonOh , I am asking if there is an alternative to using canvas to scale frames by negative one on the x axis.

It would be transform: scaleX(-1); on a video element using css.