Update StreamAdapter example to the latest SDK.