Sithira / FlutterRadioPlayer

Flutter Radio Player, A Plugin to handle streaming audio without a hassle
BSD 3-Clause "New" or "Revised" License
137 stars 63 forks source link

Value of type 'AudioPlayer.EventHolder' has no member 'receiveMetadata' #88

Open korchix opened 10 months ago

korchix commented 10 months ago

hello, when trying to run the flutter app on iPhone 14 Simulator i got this error:

Launching lib/main.dart on iPhone 14 in debug mode... Running pod install... Running Xcode build... Xcode build done. 17,8s Failed to build iOS app

Swift Compiler Error (Xcode): Value of type 'AudioPlayer.EventHolder' has no member 'receiveMetadata'
/Users/radio/.pub-cache/hosted/pub.dev/flutter_radio_player-2.0.2/ios/Classes/core/services/FRPCoreService.swift:49:21

Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code

Could not build the application for the simulator.
Error launching application on iPhone 14.

// add listeners player.event.receiveMetadata.addListener(self, FRPPlayerEventHandler.handleMetaDataChanges)

korchix commented 10 months ago

and this issue too:

Failed to build iOS app
Swift Compiler Error (Xcode): Switch must be exhaustive
/Users/radio/.pub-cache/hosted/pub.dev/flutter_radio_player-2.0.2/ios/Classes/core/services/support/FRPPlayerEventHandler.swift:33:8
JonathanPerezV commented 9 months ago

in second comment just add: default: break

in first i have the same issue, could you solve?

DenisDoc commented 7 months ago

same issue here

michelmelo commented 4 months ago

same issue here

floriansipp commented 3 months ago

Still there, anyone still working on this ?

Sithira commented 2 weeks ago

@JonathanPerezV if you have fixed it, Please feel free to open a PR :-)

Glydric commented 1 week ago

Just change receiveMetadata with receiveCommonMetadata

Glydric commented 1 week ago

Also you should add default: break in the file Classes/core/services/support/FPRPlayerEventHandler

Sithira commented 1 week ago

Guys, change checkout to dev/v3 branch. It’s much more stable. I will do the release after the docs are updated 😎

Sent from Gmail Mobile for iPhone

On Tue, Aug 20, 2024 at 6:10 PM Dott. Leonardo Migliorelli < @.***> wrote:

Just change receiveMetadata with receiveCommonMetadata

— Reply to this email directly, view it on GitHub https://github.com/Sithira/FlutterRadioPlayer/issues/88#issuecomment-2298762150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BMSK54KY4Z5AHYOYGLZSM2MFAVCNFSM6AAAAAA6XHNM4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG43DEMJVGA . You are receiving this because you commented.Message ID: @.***>

Glydric commented 1 week ago

Guys, change checkout to dev/v3 branch. It’s much more stable. I will do the release after the docs are updated 😎 Sent from Gmail Mobile for iPhone On Tue, Aug 20, 2024 at 6:10 PM Dott. Leonardo Migliorelli < @.> wrote: Just change receiveMetadata with receiveCommonMetadata — Reply to this email directly, view it on GitHub <#88 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BMSK54KY4Z5AHYOYGLZSM2MFAVCNFSM6AAAAAA6XHNM4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG43DEMJVGA . You are receiving this because you commented.Message ID: @.>

Thanks for the fast reply, I'm currently using dart version, so I can't do this

Sithira commented 1 week ago

Guys, change checkout to dev/v3 branch. It’s much more stable. I will do the release after the docs are updated 😎 Sent from Gmail Mobile for iPhone On Tue, Aug 20, 2024 at 6:10 PM Dott. Leonardo Migliorelli < @.**> wrote: Just change receiveMetadata with receiveCommonMetadata — Reply to this email directly, view it on GitHub <#88 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BMSK54KY4Z5AHYOYGLZSM2MFAVCNFSM6AAAAAA6XHNM4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG43DEMJVGA . You are receiving this because you commented.Message ID: @.**>

Thanks for the fast reply, I'm currently using dart version, so I can't do this

I will try to release the v3 on this weekend. Fingers crossed 🤞