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:
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"Create a Gumlet video/playlist and copy either:
- the direct embed URL, or
- the full iframe snippet from Gumlet.
Copy the .env.example file in this directory to .env.local (which will be ignored by Git):
cp .env.example .env.localSet each variable in .env.local:
NEXT_PUBLIC_GUMLET_EMBED_URL- Your Gumlet embed URL (or iframe snippet source).
npm install
npm run dev
# or
yarn install
yarn dev
# or
pnpm install
pnpm devYour app should be up and running on http://localhost:3000.
You will see either:
You are connected to Gumlet!, orYou 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.
You can deploy this app to the cloud with Vercel (Documentation).
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.
Alternatively, you can deploy using this template by clicking the Deploy button below.