bambuser / bambuser-livevideoshoppingplayer-sdk-ios

This SDK helps you add a Bambuser live shopping player to your UIKit and SwiftUI apps.
8 stars 2 forks source link

Matas feedback - Mute/unmute audio #9

Closed JesperBerthelsen closed 1 year ago

JesperBerthelsen commented 2 years ago

We are unable to find anything related to mute/unmute audio which we need in “small” mode.

JesperBerthelsen commented 2 years ago

Your comment: Oh bummer 😞 unfortunately there is no interface to explicit toggle mute on/off. But, that should be pretty straight forward to implement. We will add a task for that.

JesperBerthelsen commented 2 years ago

Cool

ken-bam commented 2 years ago

We have added a volume property to the LiveVideoShoppingPlayerView that take values in the range 0.0 - 1.0. To mute set it to 0.0 and to unmute > 0.0. Note! When muting hide the player unmuteOverlay by calling:

self.playerView.invoke(.hideUI(sections: PlayerUISections(unmuteOverlay: .hidden)), completion: {_ in
    // Do stuff
})
ken-bam commented 2 years ago

@JesperBerthelsen did this interface work for you as expected and does it solve your problem?

ken-bam commented 1 year ago

I close this issue for now due to lack of feedback. The possibility to change volume and thereby muting the player has been available since version 0.8.0.