xlog icon indicating copy to clipboard operation
xlog copied to clipboard

Screen shot, camera capture and screen capture do not work resulting in JavaScript errors

Open AmurgCodru opened this issue 1 year ago • 2 comments
trafficstars

Hi

I've been playing around with this project experimenting. Nice project and good job.

However taking screenshots, camera captures and screen captures do not seem to work. Both on Firefox and LibreWolf (Linux both version 120) . Resulting in Javascript errors

Uncaught (in promise) ReferenceError: ImageCapture is not defined
    screenshot http://127.0.0.1:3000/edit/experiments:123
    screenshot http://127.0.0.1:3000/edit/experiments:122
    onclick http://127.0.0.1:3000/edit/experiments:1
experiments:123:23
Uncaught (in promise) DOMException: MediaRecorder constructor: video/webm; codecs=vp9 indicates an unsupported codec
    start http://127.0.0.1:3000/edit/experiments:170
    recordCamera http://127.0.0.1:3000/edit/experiments:155
    onclick http://127.0.0.1:3000/edit/experiments:1
experiments:170
Uncaught (in promise) DOMException: MediaRecorder constructor: video/webm; codecs=vp9 indicates an unsupported codec
    start http://127.0.0.1:3000/edit/experiments:170
    record http://127.0.0.1:3000/edit/experiments:147
    onclick http://127.0.0.1:3000/edit/experiments:1
experiments:170
    record http://127.0.0.1:3000/edit/experiments:148
    InterpretGeneratorResume self-hosted:1469
    AsyncFunctionNext self-hosted:852
    (Async: async)
    onclick http://127.0.0.1:3000/edit/experiments:1

I did notice that only "video/webm;codecs=vp8", "video/webm;codecs=vp8.0" are supported in firefox. Could that work for xlog?

Anyway, for my needs screenshot + audio would be best, screen recording is an extra nice thing :)

Audio recording does seem to work sometimes.

Screenshots in chromium on Linux do work. Is this project only working against Chrome and not tested against other browsers?

Thanks

AmurgCodru avatar Dec 09 '23 10:12 AmurgCodru

Tyanks for reporting the issue, I have been testing for my usecases only so far. I'll be happy to merge a fix for firefox or any other browser if you got the time to do so

On Sat, Dec 9, 2023, 11:11 AM Andrei @.***> wrote:

Hi

I've been playing around with this project experimenting. Nice project and good job.

However taking screenshots, camera captures and screen captures do not seem to work. Both on Firefox and LibreWolf (Linux both version 120) . Resulting in Javascript errors

Uncaught (in promise) ReferenceError: ImageCapture is not defined screenshot http://127.0.0.1:3000/edit/experiments:123 screenshot http://127.0.0.1:3000/edit/experiments:122 onclick http://127.0.0.1:3000/edit/experiments:1 experiments:123:23 http://127.0.0.1:3000/edit/experiments:1experiments:123:23 Uncaught (in promise) DOMException: MediaRecorder constructor: video/webm; codecs=vp9 indicates an unsupported codec start http://127.0.0.1:3000/edit/experiments:170 recordCamera http://127.0.0.1:3000/edit/experiments:155 onclick http://127.0.0.1:3000/edit/experiments:1 experiments:170 http://127.0.0.1:3000/edit/experiments:1experiments:170 Uncaught (in promise) DOMException: MediaRecorder constructor: video/webm; codecs=vp9 indicates an unsupported codec start http://127.0.0.1:3000/edit/experiments:170 record http://127.0.0.1:3000/edit/experiments:147 onclick http://127.0.0.1:3000/edit/experiments:1 experiments:170 http://127.0.0.1:3000/edit/experiments:1experiments:170 record http://127.0.0.1:3000/edit/experiments:148 InterpretGeneratorResume self-hosted:1469 AsyncFunctionNext self-hosted:852 (Async: async) onclick http://127.0.0.1:3000/edit/experiments:1

I did notice that only "video/webm;codecs=vp8", "video/webm;codecs=vp8.0" are supported in firefox. Could that work for xlog?

Anyway, for my needs screenshot + audio would be best, screen recording is an extra nice thing :)

Audio recording does seem to work sometimes.

Screenshots in chromium on Linux do work. Is this project only working against Chrome and not tested against other browsers?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/emad-elsaid/xlog/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANJA6NGR2U2NM2OODVOELYIQ2N7AVCNFSM6AAAAABANWAP7CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTGNZYGAYTINQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

emad-elsaid avatar Dec 09 '23 10:12 emad-elsaid

Hi

Will look into it once I test xlog more and if I have the adequate time in the future.

AmurgCodru avatar Dec 09 '23 12:12 AmurgCodru