public bool SetVolume(int volume)
{
if (this.MediaSessionMgr != null)
{
bool ok = MediaSessionMgr.producerSetInt32(twrap_media_type_t.twrap_media_audio, "volume", volume);
ok &= MediaSessionMgr.consumerSetInt32(twrap_media_type_t.twrap_media_audio, "volume", volume);
return ok;
}
return false;
}