NetMeeting_1.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title></title>
  6. </head>
  7. <body>
  8. <script>
  9. var baseUrl = window.top.baseUrl;
  10. window.onmessage = function (event) {
  11. //初始化视频会议控件
  12. window.top.socket.emit('startmeeting', event.data);
  13. window.top.socket.on('startmeeting-ok', function (data) {
  14. var temp_form = document.createElement("form");
  15. temp_form.action = baseUrl + "chat";
  16. temp_form.method = "post";
  17. temp_form.style.display = "none";
  18. var parames = new Array();
  19. parames.push({ name: "meetingid", value: data.meetingid });
  20. parames.push({ name: "masterid", value: data.masterid });
  21. parames.push({ name: "mastername", value: data.mastername });
  22. parames.push({ name: "creater", value: data.masterid });
  23. parames.push({ name: "userid", value: data.masterid });
  24. parames.push({ name: "username", value: data.mastername });
  25. parames.push({ name: "room", value: data.meetingid });
  26. parames.push({ name: "title", value: event.data.title });
  27. parames.push({ name: "pdf", value: data.pdf });
  28. parames.push({ name: "uploadUrl", value: data.uploadUrl })
  29. parames.push({ name: "AccessToken", value: data.AccessToken });
  30. parames.push({ name: "routeinfoid", value: data.routeinfoid });
  31. console.log(JSON.stringify(parames))
  32. for (var x in parames) {
  33. var opt = document.createElement("textarea");
  34. opt.name = parames[x].name;
  35. opt.value = parames[x].value;
  36. temp_form.appendChild(opt);
  37. }
  38. document.body.appendChild(temp_form);
  39. temp_form.submit();
  40. });
  41. }
  42. </script>
  43. </body>
  44. </html>