rce([{
				type: checkVideoType(defaultVideoSrc),
				src: defaultVideoSrc
			}]);
		})
		
		// 检测视频类型
		function checkVideoType(videoSrc) {
			var temp = videoSrc.toLocaleLowerCase();
			if (temp.indexOf(".m3u8") > 0) {
				return "application/x-mpegURL";
			}
			else if (temp.indexOf(".mp4") > 0) {
				return "video/mp4";
			}
			return "unsupported";
		}

		// 显示和记录消息的函数
		function showMsg(msg) {
			document.getElementById("msg").innerHTML = msg;
		}

		player.on("canplay"