{"id":4567,"date":"2021-11-29T18:37:54","date_gmt":"2021-11-29T10:37:54","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4567"},"modified":"2022-04-08T18:41:19","modified_gmt":"2022-04-08T10:41:19","slug":"screen-share","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/react-native-toolkit\/screen-share\/","title":{"rendered":"Screen Share: React Native SDK &#8211; Video API"},"content":{"rendered":"\n<p>When a user starts or stops Screen Share, all connected users of the room are notified with  <code>screenShareStarted<\/code> and  <code>screenShareStopped<\/code> callbacks. As Screen-Share is also a Stream, you can play it using a Video Player. Screen Share is carried on <strong>Stream ID# 101<\/strong>. Client End Point must subscribe to this Stream ID to receive and play it locally. <\/p>\n\n\n\n<p><strong>Callbacks:<\/strong><\/p>\n\n\n\n<ul><li><code>screenShareStarted <\/code>&#8211; To know that a Screen Share has started <\/li><li><code>screenShareStarted<\/code> &#8211; To know that a Screen Share has stopped<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ You are notified that Screen Share has started\nscreenShareStarted : event=&gt;{   \n\t\/* event = \n\t{\tclientId : \"xxx\", name : \"XXX\", \n\t\tresult : 0, streamId : 101\n\t}\n\t*\/\n\t\/\/ Handle UI to play Screen Share\n}\n\n\/\/ You are notified that Screen Share has stopped\nscreenShareStopped: event=&gt;{ \n\t\/* event = \n\t{\tclientId : \"xxx\", name : \"XXX\", \n\t\tresult : 0, streamId : 101\n\t}\n\t*\/\n\t\/\/ Handle UI to stop playing Screen Share\n}<\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>\u2190 <a href=\"..\/file-share\/\"><\/a><a href=\"..\/file-share\/\">File Sharing<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"..\/canvas-streaming\/\"><\/a><a href=\"..\/canvas-streaming\/\">Canvas Streaming<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When a user starts or stops Screen Share, all connected users of the room are notified with screenShareStarted and screenShareStopped callbacks. As Screen-Share is also a Stream, you can play it using a Video Player. Screen Share is carried on Stream ID# 101. Client End Point must subscribe to this Stream ID to receive and play it locally. Callbacks: screenShareStarted &#8211; To know that a Screen Share has started screenShareStarted&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3747,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"When a user starts or stops Screen Share, all connected users of the room are notified with screenShareStarted and screenShareStopped callbacks. As Screen-Share is also a Stream, you can play it using a Video Player. Screen Share is carried on Stream ID# 101. Client End Point must subscribe to this Stream ID to receive and&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4567"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4567"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4567\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3747"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}