getStreamUri static method

XmlDocumentFragment getStreamUri(
  1. String profileToken, {
  2. required StreamSetup streamSetup,
})

XML for the getStreamUri, requires a profileToken

Implementation

static XmlDocumentFragment getStreamUri(String profileToken,
    {required StreamSetup streamSetup}) {
  builder.element('GetStreamUri', nest: () {
    builder.namespace(Xmlns.trt);

    streamSetup.buildXml(builder);

    ReferenceToken(profileToken).buildXml(builder);
  });

  return builder.buildFragment();
}