Skip to content

Instantly share code, notes, and snippets.

@sbis04
Created February 17, 2021 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbis04/38198e6dad60d9a1874379eaab0bdac3 to your computer and use it in GitHub Desktop.
Save sbis04/38198e6dad60d9a1874379eaab0bdac3 to your computer and use it in GitHub Desktop.
// API for sending videos
const muxBaseUrl = 'https://api.mux.com';
// API server running on localhost
const muxServerUrl = 'http://localhost:3000';
// API for generating thumbnails of a video
const muxImageBaseUrl = 'https://image.mux.com';
// API for streaming a video
const muxStreamBaseUrl = 'https://stream.mux.com';
// Received video file format
const videoExtension = 'm3u8';
// Thumbnail file type and size
const imageTypeSize = 'thumbnail.jpg?time=5&width=200';
// Content Type used in API calls
const contentType = 'application/json';
// Test video url provided by MUX
const demoVideoUrl = 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment