| | |
| | | layer.msg(result.msg); |
| | | } else { |
| | | playUrl = result.playUrl; |
| | | toPlay(); |
| | | onLogin(); |
| | | var htm = ""; |
| | | //web-rtc播放方式 |
| | | if (PlayType.PLAY_TYPE_WEB_RTC == cameraData.playType) { |
| | | htm = '<video class="video" id="video" autoplay="" muted="" playsinline=""></video>'; |
| | | $("#sp-showItem2").append(htm); |
| | | toPlay(); |
| | | onLogin(); |
| | | } |
| | | if (PlayType.PLAY_TYPE_YD_QLY == cameraData.playType) { |
| | | htm = '<iframe src="' + playUrl + '" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>'; |
| | | $("#sp-showItem2").append(htm); |
| | | } |
| | | |
| | | } |
| | | }, |
| | | error: function (result) { |