【问题标题】:chromecast closed captioning with HLS (.m3u8)使用 HLS (.m3u8) 的 chromecast 隐藏式字幕
【发布时间】:2014-06-23 18:38:05
【问题描述】:

我正在寻找一个启用嵌入 HLS 流 (.m3u8) 中的字幕的示例。 GitHub 上关于字幕的示例都使用独立的字幕文件。是否可以使用 .m3u8 中嵌入的字幕文件?

谢谢

【问题讨论】:

    标签: chromecast google-cast


    【解决方案1】:

    是的,有可能。

    见:https://developers.google.com/cast/docs/reference/player/cast.player.api.Player#enableCaptions

    示例:
    如果您的 HLS 流中嵌入了 CEA-608 字幕,您可以使用
    enableCaptions(true, cast.player.api.CaptionsType.CEA608);

    【讨论】:

      猜你喜欢
      • 2015-10-09
      • 2017-03-22
      • 2017-04-20
      • 2015-08-31
      • 1970-01-01
      • 2017-07-14
      • 1970-01-01
      • 2019-09-03
      • 2015-03-18
      相关资源
      最近更新 更多