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

iOS: init 'playWhenReady' flag ignored #34

Closed
agreensh opened this issue Jan 12, 2021 · 2 comments
Closed

iOS: init 'playWhenReady' flag ignored #34

agreensh opened this issue Jan 12, 2021 · 2 comments

Comments

@agreensh
Copy link

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
    }
@JanStorm
Copy link
Contributor

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 :)

@Sithira
Copy link
Owner

Sithira commented Oct 14, 2022

Has been updated to v2. Please check the master branch

@Sithira Sithira closed this as completed Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants