{"id":4603,"date":"2021-11-30T18:29:25","date_gmt":"2021-11-30T10:29:25","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4603"},"modified":"2022-04-08T19:28:26","modified_gmt":"2022-04-08T11:28:26","slug":"local-stream","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/react-native-toolkit\/local-stream\/","title":{"rendered":"Local Stream: React Native SDK &#8211; Video API"},"content":{"rendered":"\n<p>A local stream has to be initialized at the Client End Point before you can publish it to the Room. The initialization process includes specifying media tracks, adding custom attributes etc. in a form of an object. <\/p>\n\n\n\n<p><strong>Props<\/strong>:&nbsp; <code>publishStreamProp<\/code>\u2013 Object definition given below: <\/p>\n\n\n\n<a name=\"publishStreamProp\"><\/a>\n\n\n\n<pre class=\"wp-block-preformatted\"> publishStreamProp: {\n\taudio: true,\t\t\/\/ Whether to add Audio to stream\n\tvideo: true,\t\t\/\/ Whether to add Video to stream\n\tdata: true,\t\t\/\/ Whether to add Data to stream\n\tname:&nbsp;\"React&nbsp;Native\",\n\tminWidth: \"number\",\t\/\/ Deprecated in React Native SDK v1.6+\n\tminHeight: \"number\",    \/\/ Deprecated in React Native SDK v1.6+\n\tmaxWidth: \"number\",     \/\/ Deprecated in React Native SDK v1.6+\n\tmaxHeight: \"number\",    \/\/ Deprecated in React Native SDK v1.6+\n\taudioMuted: true,     \/\/ Audio muted on entry to room  \n\tvideoMuted: true,     \/\/ Video muted on entry to room  \n\tmaxVideoBW: number,   \/\/ Max Bandwidth - Deprecated in React Native SDK v1.6+\n\tminVideoBW: number    \/\/ Min Bandwidth - Deprecated in React Native SDK v1.6+\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=\"..\/get-devices\/\"><\/a><a href=\"..\/get-devices\/\">Get Media Device Access<\/a>&nbsp;<\/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=\"..\/room-connection\/\">Handle Room Connection<\/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>A local stream has to be initialized at the Client End Point before you can publish it to the Room. The initialization process includes specifying media tracks, adding custom attributes etc. in a form of an object. Props:&nbsp; publishStreamProp\u2013 Object definition given below: publishStreamProp: { audio: true, \/\/ Whether to add Audio to stream video: true, \/\/ Whether to add Video to stream data: true, \/\/ Whether to add Data&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":"A local stream has to be initialized at the Client End Point before you can publish it to the Room. The initialization process includes specifying media tracks, adding custom attributes etc. in a form of an object. Props:&nbsp; publishStreamProp\u2013 Object definition given below: publishStreamProp: { audio: true, \/\/ Whether to add Audio to stream video:&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4603"}],"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=4603"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4603\/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=4603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}