
How We Added Video Playlists to SendRec
Folders group videos by project. Tags cross-label them. But neither solves a common request: "I want to send someone five videos in a specific order and have them play through automatically." We added playlists to SendRec in v1.57.0 . Create a playlist, add videos, drag them into order, share the link. Viewers get a dark-themed watch page with a sidebar, auto-advance, and watched badges. Two tables The migration adds two tables: CREATE TABLE playlists ( id UUID PRIMARY KEY DEFAULT gen_random_uuid (), user_id UUID NOT NULL REFERENCES users ( id ) ON DELETE CASCADE , title TEXT NOT NULL , description TEXT , share_token TEXT UNIQUE , is_shared BOOLEAN NOT NULL DEFAULT false , share_password TEXT , require_email BOOLEAN NOT NULL DEFAULT false , position INTEGER NOT NULL DEFAULT 0 , created_at TIMESTAMPTZ NOT NULL DEFAULT now (), updated_at TIMESTAMPTZ NOT NULL DEFAULT now () ); CREATE TABLE playlist_videos ( playlist_id UUID NOT NULL REFERENCES playlists ( id ) ON DELETE CASCADE , video_id
Continue reading on Dev.to Webdev
Opens in a new tab



