Chromecast字幕 [英] Chromecast subtitle

查看:117
本文介绍了Chromecast字幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经成功地将视频投射到chromecast上,我试图添加对字幕的支持,这里我面临两个问题

I have successfully cast video to chromecast now I am trying to add support for subtitles, here I am facing two problems


  1. 当我使用NanoHttpd chromecast流vtt文件返回错误代码2100,尽管我使用同一台服务器流式传输视频并且可以正常工作

  2. 要解决问题,我将vtt文件上传到了保管箱,现在chromecast也成功了设置mediatracks返回成功,但不显示字幕。

注意:我使用的是Chromecast默认媒体接收器

Note : I am using Chromecast default media receiver

那么我在做什么错了?

推荐答案

如果我没记错的话,您的服务器需要提供CORS支持隐藏式字幕,即使您只是流mp4媒体文件,也请确保在使用嵌入式服务器时发生这种情况。完成后,请确保正确设置活动轨道。如果那时遇到问题,则需要提供更多信息:有关添加和激活轨道的代码,接收器日志(为此需要样式或自定义接收器)。

If I recall correctly, your server needs to provide CORS support for Closed Captions, even if you are simply streaming mp4 media files, so make sure that happens when using your embedded server. Once that is done, make sure you are setting the "active tracks" correctly. If at that point you have an issue, you'd need to provide more information: your code around adding and activating tracks, your receiver log (for which you'd need either a Styled or custom receiver).

这篇关于Chromecast字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆