
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
next-videos
Advanced tools
Import videos (mp4, webm, mov, ogg, swf, ogv) in Next.js.
yarn add next-videos -E
Create a next.config.js in your project
// next.config.js
const withVideos = require('next-videos')
module.exports = withVideos()
And you just import it in your component using require()
export default () => (
<div>
<video src={require('./video.mp4')} />
</div>
)
You can serve your videos to a remote url by setting assetPrefix option
const withVideos = require('next-videos')
module.exports = withVideos({
assetPrefix: 'https://example.com',
webpack(config, options) {
return config
}
})
You can serve your videos to prefixed path by setting basePath option
const withVideos = require('next-videos')
module.exports = withVideos({
basePath: '/v2',
webpack(config, options) {
return config
}
})
FAQs
Import videos (mp4, webm, ogg, swf, ogv) in Next.js.
The npm package next-videos receives a total of 7,950 weekly downloads. As such, next-videos popularity was classified as popular.
We found that next-videos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.