Here are the examples of the java api class com.google.android.exoplayer.dash.mpd.UrlTemplate taken from open source projects.
1. DashChunkSourceTest#buildSegmentTemplateRepresentation()
Project: ExoPlayer
File: DashChunkSourceTest.java
File: DashChunkSourceTest.java
private static Representation buildSegmentTemplateRepresentation() { UrlTemplate initializationTemplate = null; UrlTemplate mediaTemplate = UrlTemplate.compile("$RepresentationID$/$Number$"); MultiSegmentBase segmentBase = new SegmentTemplate(null, 1000, 0, 0, LIVE_SEGMENT_DURATION_MS, null, initializationTemplate, mediaTemplate, "http://www.youtube.com"); return Representation.newInstance(null, 0, REGULAR_VIDEO, segmentBase); }