FlutterRadioPlayer icon indicating copy to clipboard operation
FlutterRadioPlayer copied to clipboard

iOS: init 'playWhenReady' flag ignored

Open agreensh opened this issue 5 years ago • 1 comments

You need to do this (so set to false by default, only set true if the string == "true") In initService (StreamingCore.swift)

    self.playWhenReady = false

    if playWhenReady == "true" {
        print("PlayWhenReady: true")
        self.playWhenReady = true
    }

agreensh avatar Jan 12 '21 09:01 agreensh

Seems fine for me. Initializing variable in line 18 with false (Like the first part in your code), then in line 41 its getting true when set so: https://github.com/Sithira/FlutterRadioPlayer/blob/master/ios/Classes/core/StreamingCore.swift#L41 Just as you mentioned :)

JanStorm avatar Jan 27 '21 08:01 JanStorm

Has been updated to v2. Please check the master branch

Sithira avatar Oct 14 '22 19:10 Sithira