CAF:即使在shaka-player更新后字幕定位问题

时间:2018-03-29 10:34:01

标签: chromecast google-cast ttml shaka caf-receiver-sdk

我们已经创建了一个自定义CAF v3接收器。我们遇到了与此处描述的相同的麻烦(屏幕左上角的字幕)CAF Receiver: Positioning of subtitles。 看起来Google设法在shaka-player v2.2.10中解决了这个问题。 https://issuetracker.google.com/issues/71890891。但是,即使在 Google更新了其库图书馆对shaka-player.js v2.2.10的引用之后,我们仍然会遇到字幕定位问题。这是ttml的一个例子。

ttml:

<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:tt="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" >
<head>
  <styling>
   <style xml:id="speakerStyle" tts:fontFamily="proportionalSansSerif" tts:fontSize="4%" tts:textAlign="center" tts:displayAlign="after" tts:color="white" tts:textOutline="black 2px 0px" tts:backgroundColor="transparent" />
  </styling>
  <layout>
   <region xml:id="speaker" tt:style="speakerStyle" tts:origin="10% 5%" tts:extent="90% 90%" tts:zIndex="1" /> 
  </layout>
</head>
<body timeContainer="par">
  <div xml:lang="und">
   <p xml:id="c456f80_00" xml:space="preserve" begin="0.000000s" end="0.680000s" region="speaker" tts:backgroundColor="rgba(0,0,0,128)" >No podemos relacionar</p>
   <p xml:id="c456f80_01" xml:space="preserve" begin="0.000000s" end="0.680000s" region="speaker" tts:backgroundColor="rgba(0,0,0,128)" >a Rutledge con el asesinato.</p>
  </div>
  <div xml:lang="und">
   <p xml:id="c456f80_02" xml:space="preserve" begin="0.920000s" end="2.000000s" region="speaker" tts:backgroundColor="rgba(0,0,0,128)" >Cuando estuve en Chechenia</p>
   <p xml:id="c456f80_03" xml:space="preserve" begin="0.920000s" end="2.000000s" region="speaker" tts:backgroundColor="rgba(0,0,0,128)" >identificando cadáveres,...</p>
  </div>
</body>

我不确定,但我怀疑该地区的 tts:origin &#34;发言者&#34;这可能是原因。 即使在谷歌的参考更新后,是否有人仍然遇到同样的问题?是否有任何替代方案,以便自定义字幕定位?

0 个答案:

没有答案
相关问题