{"id":5612,"date":"2016-12-26T00:06:05","date_gmt":"2016-12-25T16:06:05","guid":{"rendered":"https:\/\/sdeno.com\/?p=5612"},"modified":"2016-12-26T00:07:31","modified_gmt":"2016-12-25T16:07:31","slug":"%e8%a7%a3%e5%86%b3%ef%bc%9areact-native-video%e4%b8%8d%e8%83%bd%e5%9b%9e%e8%b0%83%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=5612","title":{"rendered":"\u89e3\u51b3\uff1areact-native-video\u4e0d\u80fd\u56de\u8c03\u7684\u95ee\u9898"},"content":{"rendered":"<pre>&lt;Video\r\n ref='videoPlayer' \/\/\u8bbe\u7f6e\u7ec4\u4ef6\u7c7b\u578b\uff0c\u7c7b\u4f3c\u4e8einput\u7684type\r\n source={{uri:data.content}} \/\/\u89c6\u9891\u5730\u5740\r\n style={styles.video} \/\/\u89c6\u9891\u6837\u5f0f\r\n volume={1}\r\n paused={false}\r\n rate={this.state.rate}\r\n muted={this.state.muted}\r\n resizeMode={this.state.resizeMode}\r\n repeat={this.state.repeat}\r\n\r\n onProgress={this._onProgress}\r\n onEnd={this._onEnd}\r\n \/&gt;<\/pre>\n<p>\u5176\u4ed6\u53c2\u6570\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\uff0c\u552f\u72ec\u56de\u8c03\u51fd\u6570\u4e0d\u80fd\u4f7f\u7528\u3002\u8c8c\u4f3c\u5728RN 0.38\u7248\u672c\u4e2d\u51fa\u73b0\u95ee\u9898\u3002<\/p>\n<p>\u7f51\u4e0a\u89e3\u51b3\u65b9\u6cd5\u5f88\u591a\uff0c\u5176\u4e2d\u4e00\u4e2a\u65b9\u6cd5\u5c31\u662f\u5347\u7ea7RN\u52300.39\u00a0react-native-video\u5347\u7ea7\u5230\u6700\u65b0\u3002<\/p>\n<p>\u4f46\u662f\u672c\u4eba\u4f7f\u7528\u7684RN\u7248\u672c\u4e0d\u5e78\u7684\u662f0.38\u7684\uff0c\u8fd8\u6709\u53e6\u4e00\u4e2a\u65b9\u6cd5\u5c31\u80fd\u8f7b\u677e\u89e3\u51b3\uff1a<\/p>\n<pre>react-native unlink react-native-video\r\nreact-native link react-native-video<\/pre>\n<p>\u672c\u4eba\u4f7f\u7528\u7684\u7248\u672c\u662f<\/p>\n<p>RN 0.38<\/p>\n<p class=\"p1\"><span class=\"s1\">react-native-video@0.9.0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u8fd8\u4e0d\u80fd\u89e3\u51b3\u5c31\u53c2\u8003\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/github.com\/react-native-community\/react-native-video\/tree\/9bcf70cbb513402622bc114f93da751c28f15303\" target=\"_blank\">https:\/\/github.com\/react-native-community\/react-native-video\/tree\/9bcf70cbb513402622bc114f93da751c28f15303<\/a><\/p>\n<p><a href=\"http:\/\/coding.imooc.com\/learn\/questiondetail\/4004.html\" target=\"_blank\">http:\/\/coding.imooc.com\/learn\/questiondetail\/4004.html<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;Video ref=&#8217;videoPlayer&#8217; \/\/\u8bbe\u7f6e\u7ec4\u4ef6\u7c7b\u578b\uff0c\u7c7b\u4f3c\u4e8einput\u7684type sour [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,43],"tags":[],"class_list":["post-5612","post","type-post","status-publish","format-standard","hentry","category-mac","category-react-native"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5612"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5612\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}