gulp-video64
v1.0.0
Published
<< Forked from gulp-image64 >> Convert and replace video-files within your HTML to base64-encoded data.
Downloads
55
Maintainers
Readme
gulp-video64
<< Forked from gulp-image64 >>
Convert and replace video-files within your DOM/HTML to base64-encoded data.
Example
gulpfile.js
var gulp = require('gulp');
var video64 = require('gulp-video64');
gulp.task('default', function () {
gulp.src('index.html')
.pipe(video64())
.pipe(gulp.dest('path'));
});
index.html // Before...
<html>
<head>
</head>
<body>
<video >
<source src="sample.mp4" >
...
path/index.html // ...after:
<html>
<head>
</head>
<body>
<video >
<source src="data:video/mp4;base64,..." >
...