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

Can't play OGG audio on iOS #818

Closed
PgBiel opened this issue Jan 19, 2024 · 4 comments
Closed

Can't play OGG audio on iOS #818

PgBiel opened this issue Jan 19, 2024 · 4 comments
Labels
bug Something isn't working Help needed The developers need help from someone else to fix this. They can not proceed alone. stale The item is going to be closed soon because of inactivity

Comments

@PgBiel
Copy link

PgBiel commented Jan 19, 2024

Bug Description

Clicking play on an OGG audio message I received on iOS leads to the error dialog below being shown.

error dialog

The full log is:

[ERROR] Unable to play audio message - MissingPluginException(No implementation found for method play on channel com.ryanheise.just_audio.methods.bbbbe37e-0bac-448d-8679-3d4387371b7d)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:320)
<asynchronous suspension>
#1      [MethodChannelAudioPlayer.play](http://methodchannelaudioplayer.play/) (package:just_audio_platform_interface/method_channel_just_audio.dart:64)
<asynchronous suspension>
#2      AudioPlayer._sendPlayRequest (package:just_audio/just_audio.dart:981)
<asynchronous suspension>

However, that error is not shown when playing M4A audio (the format generated by FluffyChat itself, for example). Perhaps other clients generate OGG audio instead.

Steps to Reproduce

  1. Receive or send a .OGG audio message on iOS
  2. Click play to listen to it

Expected Behavior

The audio plays

App Version

1.17.1

Additional Platform Information

iPhone 11, iOS 17.2.1

Additional Context

No response

@PgBiel PgBiel added the bug Something isn't working label Jan 19, 2024
@PgBiel PgBiel changed the title Can't play received audio on iOS Can't play OGG audio on iOS Jan 19, 2024
@krille-chan
Copy link
Owner

Needs support by the plugin :-(

@krille-chan krille-chan added the Help needed The developers need help from someone else to fix this. They can not proceed alone. label Jan 22, 2024
@iamnabink
Copy link

iamnabink commented Feb 18, 2024

OGG File Cannot Open iOS:

@krille-chan @PgBiel @dbutti @Happyfeet01
This issue stems from the inherent limitations of platform support for various codecs. Apple devices, including iOS, do not natively support OGG files. While this might not be classified as a bug, it does present an opportunity for a feature request. Theoretically, one could manually decode OGG files using software libraries, though this task isn't trivial.

Potential solutions include using an external transcoder like ffmpeg (subject to licensing) to convert the file before playback. Additionally, for apps where the audio is packaged or produced specifically, developers could consider re-encoding the audio to supported codecs or employing server-side transcoding with tools like ffmpeg.

It might be beneficial to update documentation to include a list of supported file formats for different platforms, aiding users in understanding the compatibility limitations of their devices. For further discussion, you can refer to this thread on the Apple forums: Supported audio

Additionally, in case of fluffychat: incorporating a message to inform users that the media format is not supported upon tapping to play would enhance the user experience by providing clear feedback about the issue.

Copy link

github-actions bot commented Aug 5, 2024

This issue is stale because it has been open for 120 days with no activity.

@github-actions github-actions bot added the stale The item is going to be closed soon because of inactivity label Aug 5, 2024
@krille-chan
Copy link
Owner

Should be fixed now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Help needed The developers need help from someone else to fix this. They can not proceed alone. stale The item is going to be closed soon because of inactivity
Projects
None yet
Development

No branches or pull requests

3 participants