Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[BUG] .ts files not playing on iOS, but work fine on Android #1357

Open
fatihdurmaz opened this issue Dec 6, 2024 · 0 comments
Open

[BUG] .ts files not playing on iOS, but work fine on Android #1357

fatihdurmaz opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
new issue New issue which has not been checked yet

Comments

@fatihdurmaz
Copy link

History check
Please confirm that you've checked issues history and you didn't find anything which may solve your issue.

Describe the bug
I am experiencing an issue where .ts files play correctly on Android devices using BetterPlayer, but the same files do not play on iOS. The player fails to load or throws an error when attempting to play .ts files on iOS.
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

*Example code
void _loadVideo() {
requestStatus.value = RequestStatus.loading;
final videoUrl = _getVideoUrl(
widget.notificationsItem.violationData, widget.notificationsItem.muId!);
if (videoUrl.isEmpty) {
errorDescription.value =
LocalizationManager().appLocalizations.video_not_found_error;
requestStatus.value = RequestStatus.error;
return;
}

try {
  _controller = BetterPlayerController(
    BetterPlayerConfiguration(
      autoPlay: true,
      looping: false,
      controlsConfiguration: BetterPlayerControlsConfiguration(
        enableSkips: false,
        enableProgressBar: false,
      ),
    ),
    betterPlayerDataSource: BetterPlayerDataSource(
      BetterPlayerDataSourceType.network,
      videoUrl,
      headers: {'Connection': 'keep-alive'},
    ),
  );
  requestStatus.value = RequestStatus.success;
} catch (e) {
  print('Error: $e');
  errorDescription.value = e.toString();
  requestStatus.value = RequestStatus.error;
}

}
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
IMG_0385
Screenshot_1733471696

Flutter doctor
Please add flutter doctor output here.

Better Player version

  • Version: 0.0.84

Smartphone (please complete the following information):

  • Device: [e.g. iPhone15 Pro]
  • OS: [e.g. iOS18.1]

Additional context

@fatihdurmaz fatihdurmaz added the new issue New issue which has not been checked yet label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

2 participants