Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/415.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何通过js激活Azure Media Player(AMP)上的vtt文件?_Javascript_Azure Media Services - Fatal编程技术网

Javascript 如何通过js激活Azure Media Player(AMP)上的vtt文件?

Javascript 如何通过js激活Azure Media Player(AMP)上的vtt文件?,javascript,azure-media-services,Javascript,Azure Media Services,我通过js实例化我的AMP。我现在有了每个视频的.vtt文件的URL,但我不清楚如何将每个vtt与每个AMP关联起来。AMP文档注意到对象“Cea708CaptionSettings”和“Imsc1CaptionSettings”,但是我没有看到这些对象的url或src属性。非常感谢任何线索 如果您正在使用Azure Media Player,请确保将链接单独添加到VTT。请参阅AMP样本上的

我通过js实例化我的AMP。我现在有了每个视频的.vtt文件的URL,但我不清楚如何将每个vtt与每个AMP关联起来。AMP文档注意到对象“Cea708CaptionSettings”和“Imsc1CaptionSettings”,但是我没有看到这些对象的url或src属性。非常感谢任何线索

如果您正在使用Azure Media Player,请确保将链接单独添加到VTT。请参阅AMP样本上的