Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Endless loop when setting endVideoBehavior #100

Open
martindaum opened this issue Mar 18, 2019 · 0 comments
Open

Endless loop when setting endVideoBehavior #100

martindaum opened this issue Mar 18, 2019 · 0 comments

Comments

@martindaum
Copy link

martindaum commented Mar 18, 2019

The properties endVideoBehaviorString and endVideoBehavior mutally set each other, creating an endless lopp.

/// What do do when the video ends (default: PauseOnLastFrame) as a String
    public var endVideoBehaviorString: String = "pause" {
        didSet {
            self.endVideoBehavior = WistiaEndVideoBehavior.fromString(self.endVideoBehaviorString)
        }
    }
    
    /// What do do when the video ends (default: PauseOnLastFrame) as a String
    public var endVideoBehavior: WistiaEndVideoBehavior = .pauseOnLastFrame {
        didSet {
            self.endVideoBehaviorString = endVideoBehavior.description()
        }
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant