{"id":3151,"date":"2019-04-11T19:10:55","date_gmt":"2019-04-11T11:10:55","guid":{"rendered":"https:\/\/www.bijienetworks.com\/?p=3151"},"modified":"2019-05-06T12:18:59","modified_gmt":"2019-05-06T04:18:59","slug":"nodejs","status":"publish","type":"post","link":"https:\/\/www.bijienetworks.com\/news\/nodejs","title":{"rendered":"\u57fa\u4e8enodejs\u7684BJCastSDK\u591a\u5c4f\u4e92\u52a8\u6280\u672f"},"content":{"rendered":"\n

\u5728\u73b0\u4ee3\u5546\u52a1\u4f1a\u8bae\u4e2d\uff0c\u53c2\u4e0e\u8005\u7684\u591a\u5c4f\u4e92\u52a8<\/strong>\u3001\u6587\u4ef6\u6f14\u793a\u548c\u8ba8\u8bba\u662f\u4f1a\u8bae\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u4e3a\u4e86\u544a\u522b\u904d\u5730\u7ebf\u7f06\u7684\u4f1a\u8bae\u5ba4\u548c\u4e0d\u505c\u63d2\u62d4\u63a5\u7ebf\u7684\u95ee\u9898\uff0c\u5546\u52a1\u4eba\u58eb\u5f00\u59cb\u4f7f\u7528\u65e0\u7ebf\u6295\u5c4f<\/strong>\u8bbe\u5907\u6765\u5e2e\u52a9\u63d0\u5347\u4f1a\u8bae\u6548\u7387\u548c\u7528\u6237\u4f53\u9a8c\u7684\u4fbf\u6377\u6027\u3002<\/p>\n\n\n\n

\u5fc5\u6377\u4f1a\u8bae\u76d2\u5b50\u662f\u4e00\u6b3e\u4e13\u4e3a\u4f01\u4e1a\u800c\u7814\u53d1\u8bbe\u8ba1\u7684\u65e0\u7ebf\u6295\u5c4f\u3001\u591a\u5c4f\u4e92\u52a8\u4ea7\u54c1\u3002\u8003\u8651\u5230\u4f01\u4e1a\u4f1a\u8bae\u5ba4\u79fb\u52a8\u7ec8\u7aef\u7684\u591a\u6837\u6027\uff0c\u5fc5\u6377\u4f1a\u8bae\u76d2\u5b50\u5728\u517c\u5bb9\u6027\u4e0a\u505a\u5230\u4e86\u6700\u5927\u5316\uff0c\u517c\u5bb9Windows\u3001MacOS\u3001Android\u3001iOS\u7b49\u4e3b\u6d41\u64cd\u4f5c\u7cfb\u7edf\u3002\u9664\u4e86Airplay\u3001Miracast\u3001WiDi\u6295\u5c4f\u534f\u8bae\u5916\uff0c\u5fc5\u6377\u7f51\u7edc\u8fd8\u6839\u636e\u5e02\u573a\u9700\u6c42\u81ea\u4e3b\u7814\u53d1\u4e86BJCast\u6295\u5c4f\u534f\u8bae\uff0c\u65b9\u4fbf\u6709\u9700\u6c42\u7684\u7528\u6237\u4e0b\u8f7d\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u65e0\u7ebf\u6295\u5c4f<\/strong>\u3001\u591a\u5c4f\u4e92\u52a8<\/strong>\u3002<\/p>\n\n\n\n

\u53e6\u5916\uff0c\u57fa\u4e8e\u5e02\u573a\u5bf9\u4e8e\u65e0\u7ebf\u6295\u5c4f\u3001\u591a\u5c4f\u4e92\u52a8\u9700\u6c42\u7684\u591a\u6837\u6027\uff0c\u5fc5\u6377\u4f1a\u8bae\u76d2\u5b50\u63d0\u4f9b\u65e0\u7ebf\u6295\u5c4fSDK\u5f00\u53d1\u5305<\/a><\/strong>\uff0c\u5305\u62ec\u53d1\u5c04\u7aefSDK<\/strong>\u548c\u63a5\u6536\u7aefSDK\uff0c\u65b9\u4fbf\u4f01\u4e1a\u5b9a\u5236\u5f00\u53d1\u9002\u5408\u81ea\u5df1\u7684\u65e0\u7ebf\u6295\u5c4f\u3001\u591a\u5c4f\u4e92\u52a8\u65b9\u6848\u3002 <\/p>\n\n\n\n

\u57fa\u4e8eNodejs\u7684\u684c\u9762\u7a0b\u5e8f\u6846\u67b6<\/strong><\/p>\n\n\n\n

Node.js \u662f\u4e00\u4e2a\u57fa\u4e8e Chrome V8 \u5f15\u64ce\u7684 JavaScript \u8fd0\u884c\u73af\u5883\u3002V8 JavaScript\u5f15\u64ce\u662fGoogle\u7528\u4e8e\u5176Chrome\u6d4f\u89c8\u5668\u7684\u5e95\u5c42JavaScript\u5f15\u64ce,Google\u4f7f\u7528V8\u521b\u5efa\u4e86\u4e00\u4e2a\u7528C++\u7f16\u5199\u7684\u8d85\u5feb\u89e3\u91ca\u5668\u3002 <\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u5728\u4f01\u4e1a\u754c\uff0cNode.js\u5e94\u7528\u8d8a\u6765\u8d8a\u5e7f\u6cdb\u3002LinkedIn\u7684\u79fb\u52a8\u5e73\u53f0\u5df2\u7ecf\u5168\u90e8\u4eceRuby\u8fc1\u79fb\u5230Node\uff0c\u673a\u5668\u6570\u91cf\u7f29\u51cf\u4e3a\u539f\u6765\u7684\u5341\u5206\u4e4b\u4e00\u3002\u50cfYahoo\u3001Microsoft\u8fd9\u6837\u7684\u5927\u516c\u53f8\uff0c\u6709\u5e94\u7528\u5df2\u7ecf\u8fc1\u79fb\u5230Node\u4e86\u3002\u56fd\u5185\u7684\u963f\u91cc\u5df4\u5df4\u3001\u7f51\u6613\u3001\u817e\u8baf\u3001\u65b0\u6d6a\u3001\u767e\u5ea6\u7b49\u516c\u53f8\u7684\u5f88\u591a\u7ebf\u4e0a\u4ea7\u54c1\u4e5f\u7eb7\u7eb7\u6539\u7528Node\u5f00\u53d1\uff0c\u5e76\u53d6\u5f97\u4e86\u5f88\u597d\u7684\u6548\u679c\u3002<\/p>\n\n\n\n

\u524d\u7aef\u5f00\u53d1\u684c\u9762\u7a0b\u5e8f\u8fd9\u4e2a\u6982\u5ff5\u5df2\u7ecf\u51fa\u73b0\u6709\u4e00\u6bb5\u65f6\u95f4\u4e86\uff0c\u8fd9\u9879\u6280\u672f\u4e5f\u5df2\u7ecf\u8d70\u5411\u6210\u719f\u3002\u5f53\u524d\u6bd4\u8f83\u6d41\u884c\u7684\u57fa\u4e8eNode\u7684\u684c\u9762\u5e94\u7528\u5f00\u53d1\u7684\u6846\u67b6\u6709NW\u548cElectron\u3002<\/p>\n\n\n\n

Electron\u662f\u4e00\u6b3e\u5229\u7528Web\u6280\u672f\u5f00\u53d1\u8de8\u5e73\u53f0\u684c\u9762\u5e94\u7528\u7684\u6846\u67b6\u3002\u5f53\u524d\u57fa\u4e8eelectron\u5f00\u53d1\u7684\u4ea7\u54c1\u6709Atom \u7f16\u8f91\u5668\u3001 Slack\u3001 Visual Studio Code \u548cWordPress\u7b49\u4ea7\u54c1\u3002 <\/p>\n\n\n\n

NW.js\u662fIntel\u7684\u5de5\u7a0b\u5e08\u5199\u7684\u4e00\u4e2a\u57fa\u4e8eNode\u548cchromium\u7684\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u73af\u5883\u3002\u5fae\u4fe1web\u5f00\u53d1\u5de5\u5177\u3001\u9489\u9489\u90fd\u662f\u57fa\u4e8enw.js\u5f00\u53d1\u7684\u3002<\/p>\n\n\n\n

\u6709\u4e86Electron\u548cNW.js\uff0c\u4f60\u4ec5\u4ec5\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u7b49\u524d\u7aef\u6280\u672f\u5c31\u80fd\u5f00\u53d1\u7684\u684c\u9762\u5e94\u7528\u3002<\/p>\n\n\n\n

Node.js<\/strong>\u73af\u5883\u4e0b\u7684BJCast\u65e0\u7ebf\u6295\u5c4fSDK<\/strong><\/p>\n\n\n\n

 \u65e0\u7ebf\u6295\u5c4f<\/strong>\u3001\u591a\u5c4f\u4e92\u52a8<\/strong>\u5df2\u6210\u4e3a\u4e86\u4f01\u4e1a\u529e\u516c\u3001\u667a\u6167\u6559\u80b2\u7b49\u9886\u57df\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u529f\u80fd\u3002\u5fc5\u6377\u65e0\u7ebf\u6295\u5c4fSDK\u662f\u4e00\u5957\u5b8c\u6574\u7684\u65e0\u7ebf\u663e\u793a\u3001\u591a\u5c4f\u4e92\u52a8\u5e94\u7528\u5f00\u53d1\u5957\u4ef6\uff0c\u65b9\u4fbf\u7b2c\u4e09\u65b9\u5408\u4f5c\u4f19\u4f34\u8c03\u7528\u548c\u96c6\u6210\u3002 <\/p>\n\n\n\n

\u5982\u4f55\u5728\u57fa\u4e8eElectron\u548cNW.js\u7684\u684c\u9762\u5e94\u7528\u4e2d\u96c6\u6210\u65e0\u7ebf\u6295\u5c4f\u529f\u80fd\uff0c\u6210\u4e3a\u4e86\u5728\u9879\u76ee\u5e94\u7528\u9047\u5230\u7684\u96be\u9898\u3002\u7531\u4e8e\u65e0\u7ebf\u6295\u5c4f\u534f\u8bae\u548c\u97f3\u89c6\u9891\u76f8\u5173\u7684\u6280\u672f\u901a\u5e38\u90fd\u4f7f\u7528c\/c++\u8bed\u8a00\u5f00\u53d1\uff0c\u5bf9Node.js\u5f00\u53d1\u8005\u6709\u5f88\u5927\u7684\u5b66\u4e60\u6210\u672c\uff0c\u96c6\u6210\u5230\u73b0\u6709\u5e94\u7528\u4e2d\u4e5f\u4f1a\u9047\u5230\u5f88\u591a\u56f0\u96be\u3002 <\/p>\n\n\n\n

\u4e3a\u4e86\u6ee1\u8db3Node.js\u7528\u6237\u7684\u65e0\u7ebf\u6295\u5c4f\u5f00\u53d1\u9700\u6c42\uff0c\u5fc5\u6377\u7f51\u7edc\u4e3aNode\u5f00\u53d1\u7528\u6237\u63d0\u4f9b\u4e86\u65e0\u7ebf\u6295\u5c4fSDK\u7684\u652f\u6301\u3002Node.js\u7248\u672c\u7684\u65e0\u7ebf\u6295\u5c4fSDK\u4f7f\u7528c++\u8bed\u8a00\u5f00\u53d1\uff0c\u5979\u662fnode.js\u7684addon\u6a21\u5757\u3002\u6709\u4e86\u5fc5\u6377\u65e0\u7ebf\u6295\u5c4fSDK,Node.Js\u5f00\u53d1\u8005\u53ef\u4ee5\u50cf\u4f7f\u7528\u666e\u901anode.js\u6a21\u5757\u4e00\u6837\u8c03\u7528\u65e0\u7ebf\u6295\u5c4f\u7684\u529f\u80fd\uff0c\u53ef\u4e0e\u5fc5\u6377\u7f51\u7edc\u63d0\u4f9b\u7684BJCast\u63a5\u6536\u7aef\u5957\u4ef6\u5b9e\u73b0\u7aef\u5230\u7aef\u7684\u6295\u5c4f\u5e94\u7528\u3002<\/p>\n\n\n\n

\u5982\u56fe1-2\u6240\u793a\uff0c\u8fd9\u662f\u4f7f\u7528BJCast Node.js Addon\u6a21\u5757\u7684\u6700\u5c0f\u5316\u4f7f\u7528\u6837\u4f8b\uff0c\u4f7f\u7528\u8005\u53ea\u9700\u8981\u5728js\u4e2d\u901a\u8fc7require()\u52a0\u8f7d\u5fc5\u6377\u7f51\u7edc\u63d0\u4f9b\u7684SDK<\/strong>,\uff0c\u4ec5\u97007\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6700\u7b80\u7684\u65e0\u7ebf\u6295\u5c4f<\/strong>\u3001\u591a\u5c4f\u4e92\u52a8<\/strong>\u529f\u80fd\u3002 <\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u591a\u5c4f\u4e92\u52a8\uff0c\u56e0\u5fc5\u6377\u800c\u7b80\u5355\uff01 \u66f4\u591a\u54a8\u8be2\u6b22\u8fce\u767b\u5f55\u5fc5\u6377\u5b98\u7f51<\/a>\u67e5\u8be2\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u73b0\u4ee3\u5546\u52a1\u4f1a\u8bae\u4e2d\uff0c\u53c2\u4e0e\u8005\u7684\u591a\u5c4f\u4e92\u52a8\u3001\u6587\u4ef6\u6f14\u793a\u548c\u8ba8\u8bba\u662f\u4f1a\u8bae\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u4e3a\u4e86\u544a\u522b\u904d\u5730\u7ebf\u7f06\u7684\u4f1a\u8bae\u5ba4\u548c\u4e0d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[33,26],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/posts\/3151"}],"collection":[{"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/comments?post=3151"}],"version-history":[{"count":0,"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/posts\/3151\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/media?parent=3151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/categories?post=3151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bijienetworks.com\/wp-json\/wp\/v2\/tags?post=3151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}