@staticmethod
def render_playlist(track, start_time):
    """Render playlist."""
    segments = track.segments
    if not segments:
        return []
    playlist = ['#EXT-X-MEDIA-SEQUENCE:{}'.format(segments[0])]
    for sequence in segments:
        segment = track.get_segment(sequence)
        playlist.extend(['#EXTINF:{:.04f},'.format(float(segment.duration)),
            f'./segment/{segment.sequence}.ts'])
    return playlist
