1.0.0 • Published 6 years ago

gulp-video64 v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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,..." >

...