MediaPlayer的addTimedTextSource在android系统 [英] MediaPlayer addTimedTextSource in android

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

问题描述

我工作的一个MediaPlayer的。我在addTimedTextSource设置.srt文件,

我已经从服务器下载该文件,这SRT文件中包含1650项。

当我此文件传递到媒体播放器的播放器不能显示此文件的内容。我删除了它的一些条目后,SRT文件中包含的条目1614,现在的媒体播放器显示文件的入口。我的问题是:有没有在Android的MediaPlayer的支持

的SRT文件数量限制吗?

我认为这个问题是在1615年进入。该条目是:

  1615
01:25:29,1000 - > 01:25:32461
EVER使它
超级杯。

它不是工作正常..但,当我更改为1000 - > 100然后正常工作

  1615
01:25:29100 - > 01:25:32461
EVER使它
超级杯。

请告诉我什么是错的。


解决方案

我找到了解决办法。

其实这个问题是在我的.srt文件,。

根据 http://en.wikipedia.org/wiki/SubRip

P> >

  

所使用的时间code格式为小时:分钟:秒,毫秒与
  时间单位固定到固定两个零填充位数和分数
  三零填充位(00:00:00,000)。使用的分数分离器
  是逗号,因为程序是写在法国。


和符合

  1615
01:25:29,1000 - > 01:25:32461
EVER使它
超级杯。

然后我的毫秒时间格式是错误的。 (:00:00 00000),当我在使用的时间格式。解决了我的问题。

Hi I am working on a MediaPlayer . I set a .srt file in addTimedTextSource.

I have downloaded this file from a server and this srt file contains 1650 entries.

When I pass this file to the mediaplayer the player is not able to show the content of this file. After I deleted some entries from it, the srt file contains 1614 entries and now the mediaplayer shows the entry of that file. My question is: Is there a number limit in the srt file that the android MediaPlayer supports?

i think the problem is in 1615 entry . the entry is :

1615
01:25:29,1000 --> 01:25:32,461
EVER TO MAKE IT
TO A SUPER BOWL.

its not works fine ..but when i change to 1000 -> 100 then it works fine.

1615
01:25:29,100 --> 01:25:32,461
EVER TO MAKE IT
TO A SUPER BOWL.

Please tell me what is wrong.

解决方案

I found the solution.

actually the problem is in my .srt file .

according to http://en.wikipedia.org/wiki/SubRip

The timecode format used is hours:minutes:seconds,milliseconds with time units fixed to two zero-padded digits and fractions fixed to three zero-padded digits (00:00:00,000). The fractional separator used is the comma, since the program was written in France.

and in line

  1615
01:25:29,1000 --> 01:25:32,461
EVER TO MAKE IT
TO A SUPER BOWL.

then my time format in milisecond was wrong. when i use time format in (00:00:00,000) resolved my problem.

这篇关于MediaPlayer的addTimedTextSource在android系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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