Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Fix WontFix

guest271314

💭
Fix WontFix
View GitHub Profile
@guest271314
guest271314 / hardware_acceleration.md
Created Dec 20, 2020
Issue 1156408: If the stream obtained via HTMLVideoElement.captureStream() is sent on peer connection, it does not send any actual data
View hardware_acceleration.md
@guest271314
guest271314 / capture_monitor_devices_at_chromium_and_chrome_on_linux.md
Created Dec 12, 2020
Capture monitor devices with navigator.mediaDevices.getUsermedia() at Chromium and Chrome on Linux
@guest271314
guest271314 / capture_system_audio_output_from_nightly_stream_to_chromium.md
Created Sep 8, 2020
Capture monitor device at Nightly stream to Chromium
View capture_system_audio_output_from_nightly_stream_to_chromium.md

Chromium does not support capture of monitor devices (system audio output to headphones and speakers; "What-U-Hear") when navigator.mediaDevices.getUserMedia() is called and does not list monitor devices when navigator.mediaDevices.enumerateDevices() is called at Linux, see

Firefox does support capture of monitor devices at Linux.

Using https://github.com/fippo/paste as a template capture monitor device at Nightly stream the captured monitor device

View ts-ebml-min.js
// ts-ebml-min.js
// https://github.com/guest271314/recordMediaFragments/ts-ebml
// minimized version of https://github.com/legokichi/ts-ebml
/*
The buffer module from node.js, for the browser.
@author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
@license MIT
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(m,q,k){m!=Array.prototype&&m!=Object.prototype&&(m[q]=k.value)};$jscomp.getGlobal=function(m){return"undefined"!=typeof window&&window===m?m:"undefined"!=typeof global&&null!=global?global:m};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var m=0;return function(q){return $jscomp.SYMBOL_PREFIX+(q||"")+m++}}();
View upgrade_18.04.md

For every error printed following

$ sudo apt upgrade

in the form of

dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_19.2.8-0ubuntu0~18.04.3_i386.deb (--unpack): unable to make backup link of './usr/lib/i386-linux-gnu/dri/vmwgfx_dri.so' before installing new version: Input/output error Reinstalling /etc/drirc that was moved away Errors were encountered while processing:

View native-file-system-notifications.txt
> A huge huge huge part of file-system management & capabilities as we use them is being notified about when something changes. Without this, awful awful awful terrible badly performing highly costly & deeply inadequate hacks grow up like weeds, all over the place, as bad terrible coders do an awful job of probing around to figure out "what has changed?". Huge amounts of engineering effort have gone into trying to tackle this issue. Works like node-watch (attempting to fill the painful dx gaps in node's fs.watch being non recursive) & watchman grow like weeds, consuming developer year after developer year of time to make maintain & sustain.
View gist:cde8c5e0cd1b786b3c3027fde2b8dd57
@pinoyyid Re https://stackoverflow.com/questions/61550581/can-i-http-poll-or-use-socket-io-from-a-service-worker-on-safari-ios, https://stackoverflow.com/questions/61602441/what-are-the-restrictions-on-what-can-and-cannot-be-done-in-a-a-service-worker `EventSource` could probably be used, see https://stackoverflow.com/q/42475492.
iOS does not support `FetchEvent` where `event.respondwith()` can be used for continuous polling and keeping `ServiceWorker` alive. Alternatively, a `Worker` or `SharedWorker` can be used to achieve the same result.
@guest271314
guest271314 / gist:661dfd623a0043ca77c7947dabd7fc9c
Created May 9, 2020
Encode AudioBuffer with Opus (or other codec) in Browser
View gist:661dfd623a0043ca77c7947dabd7fc9c
So the Main Question is: How can i encode the AudioBuffer. (and Decode it at the Receiver) Is there an API or Library? Can i get the encoded Buffer from another API in the Browser?
@guest271314
guest271314 / gist:d522cbab584867ba5a50c392e20800b2
Created May 3, 2020
Playing audio files in unsupported codecs through <audio> tag Ask
View gist:d522cbab584867ba5a50c392e20800b2
Playing audio files in unsupported codecs through <audio> tag https://stackoverflow.com/q/61502237
https://github.com/Kagami/mpv.js/
@guest271314
guest271314 / destructuring_get_properties_and_object.js
Created Apr 19, 2020
Is it possible to destructure some properties and also assign/pass the entire object within a single assignment expression of a map callback function?
View destructuring_get_properties_and_object.js
// https://stackoverflow.com/q/61298632
let o = [{firstname:0, lastname:1}, {firstname:2, lastname:3}];
const handleMapCallback = (person, _, __, {lastname, firstname} = person) => {
console.log(person, lastname, firstname);
};
o.map(handleMapCallback);