We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose my video file is hosted on https://www.example.com/video.mp4 Can you provide an example on how to load it?
https://www.example.com/video.mp4
in my next.config.js I have properly set up the assetPrefix,
next.config.js
assetPrefix
const withVideos = require('next-videos') module.exports = withVideos({ assetPrefix: 'https://example.com', webpack(config, options) { return config } })
However, in my component, how can I load it? (Below doesn't work)
export default () => ( <div> <video src="video.mp4" /> </div> )
Thank you in advance
The text was updated successfully, but these errors were encountered:
Yea I still can't get it to work...
Sorry, something went wrong.
same here. Can someone pls add an example.
According to the code, the full file path is ${prefix}/_next/static/videos/, so make sure the video is in that folder structure.
${prefix}/_next/static/videos/
No branches or pull requests
Suppose my video file is hosted on
https://www.example.com/video.mp4
Can you provide an example on how to load it?
in my
next.config.js
I have properly set up theassetPrefix
,However, in my component, how can I load it?
(Below doesn't work)
Thank you in advance
The text was updated successfully, but these errors were encountered: