public class SsmMrl extends Object implements Mrl
This class provides a fluent API for initialising the MRL, e.g.
String mrl = new RtpMrl().serverAddress("myhost.com")
.multicastAddress("234.0.0.1")
.port(5401)
.value();
This will generate "rtp://myhost.com@234.0.0.1:5401".| Constructor and Description |
|---|
SsmMrl() |
| Modifier and Type | Method and Description |
|---|---|
SsmMrl |
multicastAddress(String multicastAddress)
Set the multicast address.
|
SsmMrl |
port(int port)
Set the port number.
|
SsmMrl |
serverAddress(String serverAddress)
Set the server address.
|
String |
value()
Get the media resource locator value
|
public final SsmMrl serverAddress(String serverAddress)
serverAddress - server addresspublic final SsmMrl multicastAddress(String multicastAddress)
multicastAddress - multicast addresspublic final SsmMrl port(int port)
port - port numberCopyright © 2009–2015 Caprica Software Limited. All rights reserved.