MintGate Docs
Search…
MintGate Docs
Welcome to MintGate
Whitelabel NFT Storefront
Create a Whitelabel NFT Storefront
Create an NFT
Create an NFT on MintGate
Sell and Buy an NFT
Community Referral Rewards
Set up Token Access
Create Token Gated Access
Use Cases of Token Gating
List of Tested Platforms
Direct Integrations
Direct Integrations
Video SDK
Link Creation Widget or API
Data APIs
Custom Link Features
Updating MintGate
Updating Links + Data
Customizing Your Storefront
Powered By
GitBook
Video SDK
Integrate token gated video directly into your custom site!
Our video SDK enables token gated video directly on a custom Javascript site.
Use Case Example
You, as a creator, have a personal website and want to embed videos that you want a user to own an NFT to watch.
How It Works
Upload the videos that you want to token gate as unlisted Youtube videos.
Create
token gated links
for each video on MintGate to obtain the MintGate ID.
The
MintGate ID
is the last series of characters after
go/
in the link. \
For example, if you created a MintGate link
https://mgate.io/go/LkI0yVFuIW5n
, the MintGate ID for the link is
LkI0yVFuIW5n
Download the
NPM package
into the Javascript site.
1
yarn add @mintgate/mintgate-js
2
​
3
OR
4
​
5
npm install @mintgate/mintgate-js
Copied!
Add this code to the webpage
1
const linkID = 'whateveryourmintgatelinkIDforthevideois';
2
​
3
function App() {
4
const ref = useRef();
5
useEffect(()=> {
6
if(!ref) return;
7
​
8
mintgate.embedVideo(linkID, ref.current)
9
.then(x=>console.log('done'));
10
}, [ref]);
11
​
12
return (
13
<div ref={ref}></div>
14
);
15
}
Copied!
Link to NPM Package (and More Details)
NPM Package:
https://www.npmjs.com/package/@mintgate/mintgate-js
​
If you have questions or need support, message us on Discord at
discord.gg/HVsbWZfrFQ
or email us at
[email protected]
Direct Integrations - Previous
Direct Integrations
Next - Direct Integrations
Link Creation Widget or API
Last modified
9mo ago
Copy link
Contents
Use Case Example
How It Works
Link to NPM Package (and More Details)