Skip to content

Instantly share code, notes, and snippets.

View mixing_recordings.md

Working with Twilio Room Recordings

The following guide will show you how to mix several audio and video tracks together, forming a grid. For this example, we will use two video and two audio tracks. The video tracks will be placed side by side in a 1024x768 output file.


UPDATE - Video Recording Compositions API is out!

Yes! No ned to go through this process alone anymore. We've recently released the Twilio Recording Composition API. This API will allow you to compose and transcode you Room Recordings. You can find the reference docs here

@AaronCowan
AaronCowan / 1_triggers.sql
Last active Jun 16, 2019 — forked from fritzy/1_triggers.sql
Get table change notification for update and insert actions
View 1_triggers.sql
CREATE OR REPLACE FUNCTION table_update_notify() RETURNS trigger AS $$
DECLARE
id bigint;
BEGIN
IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN
id = NEW.id;
ELSE
id = OLD.id;
END IF;
PERFORM pg_notify(concat('monitor:',TG_TABLE_NAME),concat('changed:',TG_TABLE_NAME)::text);
View index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to
has_one