function writeClip(){ server = "streaming3.camvista.com"; port = "1935"; service = "rtplive/_definst_"; protocol = "http"; stream = "forestrycommission101374"; sufix = ".stream/playlist.m3u8"; //alert(protocol+"://"+server+":"+port+"/"+service+"/"+stream+sufix); return protocol+"://"+server+":"+port+"/"+service+"/"+stream+sufix; } var clipUrl = writeClip();