Giter Site home page Giter Site logo

Cannot display subtitle about vitamiobundle HOT 7 CLOSED

yixia avatar yixia commented on September 22, 2024
Cannot display subtitle

from vitamiobundle.

Comments (7)

songdev avatar songdev commented on September 22, 2024

I have the same problem. I try play video with subtitle but it cannot display.

from vitamiobundle.

purepure avatar purepure commented on September 22, 2024

I am afraid the author will not fix this because this library has many issue. It is not stable, so they have to improve so much instead of fixing this :))

from vitamiobundle.

crossle avatar crossle commented on September 22, 2024

@purepure @songdev You use VideoView or MediaPlayer?

from vitamiobundle.

purepure avatar purepure commented on September 22, 2024

I using code from sample, that use VideoView:

mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@OverRide
public void onPrepared(MediaPlayer mediaPlayer) {
// optional need Vitamio 4.0
mediaPlayer.setPlaybackSpeed(1.0f);
mVideoView.addTimedTextSource(subtitle_path);
mVideoView.setTimedTextShown(true);
}
});

from vitamiobundle.

crossle avatar crossle commented on September 22, 2024

subtitle_path must be local file path.

from vitamiobundle.

purepure avatar purepure commented on September 22, 2024

Yes, I use sub from local path.
I dont know does it relate to device or not, but I tested on nexus S and galaxy SIII. Both of them cannot display subtitle(your sample and my code). Plz take a look

from vitamiobundle.

crossle avatar crossle commented on September 22, 2024

You can use MediaPlayer and implement setOnTimedTextListener, VideoView dont implment setOnTimedTextListener, so dont shown.

from vitamiobundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.