0

如何在 php 文件中加载 webvtt?就像是:

<?php
header("Content-Type: ???; charset=ISO-8859-1");

WEBVTT

00:00.000 --> 00:01.000
vM7nH0Kl-120.jpg#xywh=0,0,120,50

00:00.000 --> 00:02.000
vM7nH0Kl-120.jpg#xywh=120,0,120,50

00:00.000 --> 00:03.000
vM7nH0Kl-120.jpg#xywh=240,0,120,50

00:00.000 --> 00:04.000
vM7nH0Kl-120.jpg#xywh=360,0,120,50

?>
4

1 回答 1

3

你应该使用text/vtt见:http ://dev.w3.org/html5/webvtt/#the-webvtt-file-format

header("Content-Type:text/vtt;charset=utf-8");
于 2013-04-13T18:39:38.460 回答