Skip to content

gumlet/gumlet-vercel-sample

Repository files navigation

Example app using Gumlet

Gumlet is a video hosting and delivery platform. This example shows how to integrate a Gumlet embed player into a Next.js app.

If you want to learn more about Gumlet, visit the following pages:

Deploy your own

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap this example:

npx create-next-app my-gumlet-app --example "https://github.com/SatyamAnand98/npx-vercel-example"
yarn create next-app my-gumlet-app --example "https://github.com/SatyamAnand98/npx-vercel-example"
pnpm create next-app my-gumlet-app --example "https://github.com/SatyamAnand98/npx-vercel-example"

Configuration

Set up a Gumlet player

Create a Gumlet video/playlist and copy either:

  • the direct embed URL, or
  • the full iframe snippet from Gumlet.

Set up environment variables

Copy the .env.example file in this directory to .env.local (which will be ignored by Git):

cp .env.example .env.local

Set each variable in .env.local:

  • NEXT_PUBLIC_GUMLET_EMBED_URL - Your Gumlet embed URL (or iframe snippet source).

Run Next.js in development mode

npm install
npm run dev
# or
yarn install
yarn dev
# or
pnpm install
pnpm dev

Your app should be up and running on http://localhost:3000.

You will see either:

  • You are connected to Gumlet!, or
  • You are NOT connected to Gumlet. Check the README for setup.

If the player frame appears but playback area is black, use the Open Gumlet player link below the embed to verify the source URL directly.

Deploy on Vercel

You can deploy this app to the cloud with Vercel (Documentation).

Deploy Your Local Project

To deploy your local project to Vercel, push it to GitHub/GitLab/Bitbucket and import to Vercel.

Important: When you import your project on Vercel, make sure to click on Environment Variables and set them to match your .env.local file.

Deploy from This Template

Alternatively, you can deploy using this template by clicking the Deploy button below.

Deploy with Vercel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors