sampotts/plyr

Captions with Shaka Player

Open

#750 创建于 2018年1月5日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (2,856 fork)batch import
Help WantedImprovementStreaming

仓库指标

Star
 (25,318 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

using shaka player I couldn't add a track to player nor manually neither programmatically.

Manually

placing <track src="src" kind="subtitles" > inside <video>

Programatically

using shaka player addTextTrack(uri, language, kind, mime, opt_codecopt, opt_labelopt) method

In both ways, the vtt file is fetched from the server but it doesn't show anything. using first method cause a cc icon appear next to the volume control but it doesn't do anything.

贡献者指南