Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Android] Subtitles is not showing in release version #1371

Closed
allinelara opened this issue Dec 7, 2018 · 0 comments
Closed

[Android] Subtitles is not showing in release version #1371

allinelara opened this issue Dec 7, 2018 · 0 comments
Labels
stale Closed due to inactivity or lack or resources

Comments

@allinelara
Copy link

Current behavior

The subtitle is showing up in debug version but it is not in release version.

Reproduction steps

 <Video 
          ref={videoRef => (this.videoRef = videoRef)}
          useTextureView={false}
          source={require('./example.mp4')} // Looks for .mp4 file (background.mp4) in the given expansion version.
          resizeMode="contain"           // Fill the whole screen at aspect ratio.
          style={styles.fullScreen}
          selectedTextTrack={{
            type: 'title',
            value: 'English',
          }}
          textTracks={[
            {
              title: 'English',
              language: 'en',
              type: TextTrackType.VTT, // "text/vtt"
              uri:
                'https://bitdash-a.akamaihd.net/content/sintel/subtitles/subtitles_en.vtt',
            },
            {
              title: 'Spanish',
              language: 'es',
              type: TextTrackType.SRT, // "application/x-subrip"
              uri:
                'https://durian.blender.org/wp-content/content/subtitles/sintel_es.srt',
            },
          ]}
        />

Link for the project:
https://github.com/reime005/VideoPlayerTest

Versions:
react": 16.6.1,
react-native: "0.57.7,
react-native-video: 4.1.0
babel-jest: 23.6.0,
jest: 23.6.0,
metro-react-native-babel-preset: 0.50.0,
react-test-renderer: 16.6.1

Expected behavior

In release version it should show the subtitles

Platform

Which player are you experiencing the problem on:

  • Android device and emulator

Subtitles sample

https://bitdash-a.akamaihd.net/content/sintel/subtitles/subtitles_en.vtt

Video sample

You can find it in the project's package.json

@hueniverse hueniverse added the stale Closed due to inactivity or lack or resources label Apr 22, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
stale Closed due to inactivity or lack or resources
Projects
None yet
Development

No branches or pull requests

2 participants