{"id":3796,"date":"2021-10-07T17:12:30","date_gmt":"2021-10-07T17:12:30","guid":{"rendered":"https:\/\/www.redpillvr.com\/?page_id=3796"},"modified":"2021-10-07T17:12:30","modified_gmt":"2021-10-07T17:12:30","slug":"live-redpro","status":"publish","type":"page","link":"https:\/\/www.redpillvr.com\/en\/live-redpro\/","title":{"rendered":"Live &#8211; Red5Pro Test"},"content":{"rendered":"\n    \n    <div class=\"vc_row wpb_row vc_row-fluid vc_row-69f5f652eaa22\">\n    \n    <div class=\"wpb_column vc_column_container vc_col-sm-12 vc_column_container-69f5f652eacff\"><div class=\"vc_column-inner \"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_raw_code wpb_content_element wpb_raw_html\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<link href=\"https:\/\/unpkg.com\/red5pro-webrtc-sdk@latest\/red5pro-media.css\" rel=\"stylesheet\">\n<script src=\"https:\/\/unpkg.com\/red5pro-webrtc-sdk@latest\/red5pro-sdk.min.js\"><\/script>    \n\n<video id=\"red5pro-subscriber\"\n           class=\"red5pro-media red5pro-media-background\"\n           autoplay controls>\n    <\/video>\n    <!-- Exposes `red5prosdk` on the window global. -->\n    <script src=\"lib\/red5pro\/red5pro-sdk.min.js\"><\/script>\n    <!-- Example script below. -->\n    <script>\n(function (red5prosdk) {\n\n  \/\/ Create a new instance of the WebRTC subcriber.\n  var subscriber = new red5prosdk.RTCSubscriber();\n\n  \/\/ Initialize\n  subscriber.init({\n    protocol: 'wss',\n    port: 443,\n    host: 'redpill-demo.red5.net',\n    app: 'live',\n    streamName: 'stream1',\n    rtcConfiguration: {\n      iceServers: [{urls: 'stun:stun2.l.google.com:19302'}],\n      iceCandidatePoolSize: 2,\n      bundlePolicy: 'max-bundle'\n    }, \/\/ See https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/RTCPeerConnection\/RTCPeerConnection#RTCConfiguration_dictionary\n    mediaElementId: 'red5pro-subscriber',\n    subscriptionId: 'stream1' + Math.floor(Math.random() * 0x10000).toString(16),\n    videoEncoding: 'NONE',\n    audioEncoding: 'NONE'\n  })\n  .then(function(subscriber) {\n    \/\/ `subcriber` is the WebRTC Subscriber instance.\n    return subscriber.subscribe();\n  })\n  .then(function(subscriber) {\n    \/\/ subscription is complete.\n    \/\/ playback should begin immediately due to\n    \/\/   declaration of `autoplay` on the `video` element.\n  })\n  .catch(function(error) {\n    \/\/ A fault occurred while trying to initialize and playback the stream.\n    console.error(error)\n  });\n\n})(window.red5prosdk);\n<\/script>\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":3406,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/pages\/3796"}],"collection":[{"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/comments?post=3796"}],"version-history":[{"count":12,"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/pages\/3796\/revisions"}],"predecessor-version":[{"id":3809,"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/pages\/3796\/revisions\/3809"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/media\/3406"}],"wp:attachment":[{"href":"https:\/\/www.redpillvr.com\/en\/wp-json\/wp\/v2\/media?parent=3796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}