{"id":943,"date":"2026-05-24T10:22:52","date_gmt":"2026-05-24T08:22:52","guid":{"rendered":"https:\/\/24p-media.de\/?page_id=943"},"modified":"2026-05-24T13:27:29","modified_gmt":"2026-05-24T11:27:29","slug":"schalte","status":"publish","type":"page","link":"https:\/\/24p-media.de\/index.php\/schalte\/","title":{"rendered":"schalte"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"943\" class=\"elementor elementor-943\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e3dc11b e-flex e-con-boxed e-con e-parent\" data-id=\"e3dc11b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f947663 elementor-widget elementor-widget-spacer\" data-id=\"f947663\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1ab7c4d e-flex e-con-boxed e-con e-parent\" data-id=\"1ab7c4d\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-061bc0f elementor-widget elementor-widget-html\" data-id=\"061bc0f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script type=\"module\" src=\"https:\/\/cdn.jsdelivr.net\/npm\/@cloudflare\/realtimekit-web-ui@beta\/dist\/realtimekit-ui\/realtimekit-ui.esm.js\"><\/script>\r\n\r\n<div id=\"meeting-zone\" style=\"display:none; width:100%; height:600px; background:#111; border-radius:8px; overflow:hidden;\">\r\n  <rtk-ui-provider id=\"cloudflare-provider\">\r\n    <div style=\"display: flex; flex-direction: column; height: 100%;\">\r\n      <rtk-mixed-grid style=\"flex-grow: 1; min-height: 450px;\"><\/rtk-mixed-grid>\r\n      \r\n      <rtk-controlbar style=\"background: #222; padding: 10px;\">\r\n        <rtk-mic-toggle><\/rtk-mic-toggle>\r\n        <rtk-camera-toggle><\/rtk-camera-toggle>\r\n        <rtk-screen-share-toggle><\/rtk-screen-share-toggle>\r\n        <rtk-leave-button id=\"leave-btn\"><\/rtk-leave-button>\r\n      <\/rtk-controlbar>\r\n    <\/div>\r\n  <\/rtk-ui-provider>\r\n<\/div>\r\n\r\n<div id=\"join-zone\" style=\"text-align:center; padding: 50px 0;\">\r\n  <button id=\"start-meeting-btn\" style=\"padding: 15px 30px; font-size: 18px; background-color: #f63; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold;\">\r\n    Dem Meeting beitreten\r\n  <\/button>\r\n<\/div>\r\n\r\n<script>\r\ndocument.getElementById('start-meeting-btn').addEventListener('click', async () => {\r\n  const button = document.getElementById('start-meeting-btn');\r\n  button.innerText = \"Verbinde...\";\r\n  button.disabled = true;\r\n\r\n  try {\r\n    \/\/ Rufe deinen sicheren Cloudflare Worker auf, um das Token zu holen\r\n    const response = await fetch('https:\/\/schalteworker.u-wiegmann.workers.dev\/');\r\n    const data = await response.json();\r\n    \r\n    if(data.token) {\r\n      \/\/ Token in das UI Kit einspeisen\r\n      const provider = document.getElementById('cloudflare-provider');\r\n      provider.setAttribute('auth-token', data.token);\r\n      \r\n      \/\/ Interface umschalten: Button weg, Video-Raum herzeigen\r\n      document.getElementById('join-zone').style.display = 'none';\r\n      document.getElementById('meeting-zone').style.display = 'block';\r\n    } else {\r\n      alert(\"Fehler beim Erstellen des Raums.\");\r\n    }\r\n  } catch (error) {\r\n    console.error(\"Etwas lief schief:\", error);\r\n    alert(\"Verbindung zum Server fehlgeschlagen.\");\r\n    button.innerText = \"Dem Meeting beitreten\";\r\n    button.disabled = false;\r\n  }\r\n});\r\n\r\n\/\/ Wenn der Nutzer auf Auflegen klickt\r\ndocument.getElementById('leave-btn').addEventListener('click', () => {\r\n  location.reload(); \/\/ L\u00e4dt die Seite neu und setzt den Raum zur\u00fcck\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Dem Meeting beitreten<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"full-screen","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"on","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"off","ocean_display_header":"off","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"on","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"off","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"off","ocean_display_footer_bottom":"off","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-943","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/pages\/943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/comments?post=943"}],"version-history":[{"count":25,"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/pages\/943\/revisions"}],"predecessor-version":[{"id":970,"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/pages\/943\/revisions\/970"}],"wp:attachment":[{"href":"https:\/\/24p-media.de\/index.php\/wp-json\/wp\/v2\/media?parent=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}