VTT Transcriptions
This small PHP package assists in the loading and parsing of VTT files.
Usage
use Laracasts\Transcriptions\Transcription;
$transcription = Transcription::load('path/to/file.vtt');
foreach ($transcription->lines() as $line) {
// $line->timestamp
// $line->body
// $line->toHtml()
}
License
This package is open-sourced software licensed under the MIT license.