NetrisTV / ti.exoplayer

A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.
Other
17 stars 6 forks source link

Video Only #8

Closed deckameron closed 5 years ago

deckameron commented 5 years ago

Is there a way to play the video only, no audio?

I tried setting the volume to 0, but turns the system media audio to 0, and not just the video.

Thank you!

drauggres commented 5 years ago

Hi. From API documentation:

linearGain: Ajusts player volume, with 0 being silence and 1 being unity gain. Default value: 1 volume: Ajusts volume of AudioManager.STREAM_MUSIC

Also you can completely disable audio rendering with setTrackSelectionOverride method.

deckameron commented 5 years ago

Thank you @drauggres !