-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
437 lines (217 loc) · 13.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Bupo's Blog</title>
<meta name="author" content="bupo">
<meta name="description" content="直播终端优化总结 @(工作)[视频, ijkplayer, 编码] 由来 从接手做第一个版本到现在我们为加快首屏加载速度做过两次优化,到当前本基本上完成了视频秒开的目标。其实当知道加载速度慢的原因后最终的修改其实没什么复杂的,复杂的是分析原因的过程,这里主要分享一下从一开始的外部表现, …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/atom.xml" rel="alternate" title="Bupo's Blog" type="application/atom+xml">
<link rel="canonical" href="http://bupojung.github.io/">
<link href="/favicon.png" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/stylesheets/font-awesome.min.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link href='http://fonts.googleapis.com/css?family=Nunito:400,300,700' rel='stylesheet' type='text/css'>
<script src="//libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-52212353-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="container">
<div class="left-col">
<div class="intrude-less">
<header id="header" class="inner"><div class="profilepic">
<script src="/javascripts/md5.js"></script>
<script type="text/javascript">
$(function(){
$('.profilepic').append("<img src='http://www.gravatar.com/avatar/" + MD5("[email protected]") + "?s=160' alt='Profile Picture' style='width: 160px;' />");
});
</script>
</div>
<nav id="main-nav"><ul class="main-navigation"> <li><a href="/">Blog</a></li> <li><a href="/blog/archives">Archives</a></li> <li><a href="/about">About Me</a></li> </ul>
</nav>
<nav id="sub-nav">
<div class="social">
<a class="email" href="mailto:[email protected]" title="Email">Email</a>
<a class="rss" href="/atom.xml" title="RSS">RSS</a>
</div>
</nav>
</header>
</div>
</div>
<div class="mid-col">
<div class="mid-col-container">
<div id="content" class="inner">
<div itemscope itemtype="http://schema.org/Blog">
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2017-02-16T23:56:13+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2017/02/16/zhi-bo-zhong-duan-you-hua-zong-jie/" itemprop="url">直播终端优化总结</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>@(工作)[视频, ijkplayer, 编码]</p>
<h4>由来</h4>
<p>从接手做第一个版本到现在我们为加快首屏加载速度做过两次优化,到当前本基本上完成了视频秒开的目标。其实当知道加载速度慢的原因后最终的修改其实没什么复杂的,复杂的是分析原因的过程,这里主要分享一下从一开始的外部表现,逐步分析原因,到最终得到优化方案,验证优化成果的流程。希望这个过程也能给其他项目提供一些借鉴。</p>
<h4>优化方法</h4>
<ul>
<li>明确优化目标
<ul>
<li>1s内实现用户点击房间到首帧渲染完成</li>
</ul>
</li>
<li>自顶向下分析:
<ul>
<li>操作流程分解,找到流程中的问题;</li>
<li>逐步向底层深入,分析性能瓶颈;</li>
<li>得出优化方案</li>
<li>数据验证结果</li>
</ul>
</li>
</ul>
<a href="/blog/2017/02/16/zhi-bo-zhong-duan-you-hua-zong-jie/" class="more-link">阅读更多 →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2016-06-03T19:24:09+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/objecitve-c/'>objecitve-c,</a>, <a class='category' href='/blog/categories/feng-zhuang-zu-he-ji-cheng-she-ji-mo-shi/'>封装,组合,继承,设计模式</a>, <a class='category' href='/blog/categories/kong-jian/'>控件,</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2016/06/03/shi-xian-%5B%3F%5D-ge-kong-jian-de-si-lu/" itemprop="url">实现一个控件的思路</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>——易用性和可扩展性</p>
<p>by bupo.</p>
<p>这里通过实现一个弹出菜单控件为例。弹出菜单如图所示,菜单可以有多行,每一行有多个选项,每一行可能有个标题,每行有多个选项,如果选项个数超过屏幕范围可以左右滑动。点击选项执行对应的功能模块。这里把这个控件命名为ScrollActionSheet。</p>
<a href="/blog/2016/06/03/shi-xian-%5B%3F%5D-ge-kong-jian-de-si-lu/" class="more-link">阅读更多 →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2016-06-01T20:13:42+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/javascript-native/'>javascript,native</a>, <a class='category' href='/blog/categories/objecitve-c/'>objecitve-c,</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2016/06/01/javascriptyuan-sheng-jiao-hu-jie-jue-fang/" itemprop="url">Javascript原生交互解决方</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>by bupo.</p>
<h4>简介</h4>
<p>在终端应用开发过程中经常需要在H5页面中调用原生接口来使用原生服务,所以就有了Javascript与原生代码交互的需求,这里终结一下以前在项目中使用的一种解决方案。
原理很简单,通过在UIWebView的代理中截获window.location.href 跳转请求来响应Javascript请求,并通过UIWebview 提供的执行JS代码的接口stringByEvaluatingJavaScriptFromString 将原始执行结果回调给H5页面。</p>
<a href="/blog/2016/06/01/javascriptyuan-sheng-jiao-hu-jie-jue-fang/" class="more-link">阅读更多 →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-12-28T23:08:23+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/ios/'>ios,</a>, <a class='category' href='/blog/categories/voiceover/'>voiceover,</a>, <a class='category' href='/blog/categories/wu-zhang-ai/'>无障碍</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/12/28/ioswu-zhang-ai-zhi-chi-zong-jie-voiceover/" itemprop="url">iOS无障碍支持总结——VoiceOver</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>最近参加的一个项目需要完全支持无障碍,在iOS中既为VoiceOver,用于支持视觉有障碍的人士使用iOS上的移动应用,提供语音反馈实现无障碍的操作体验。在iOS中使用UIAccessibility API支持VoiceOver。 在支持无障碍体验的开发中涉及到几种情况:</p>
<ul>
<li>标准控件(StandardControls)即UIButton、UITableView、UISegmentedControld等;</li>
<li>UIView和继承自UIView的自定义控件;</li>
<li>除去前面两种情况的需要相应VoiceOver的界面区域,比如通过绘制在UIView上的图形,或者文字区域,既不是标准控件也不是UIView。</li>
</ul>
<a href="/blog/2015/12/28/ioswu-zhang-ai-zhi-chi-zong-jie-voiceover/" class="more-link">阅读更多 →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-12-04T17:01:05+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/ibeacon/'>ibeacon,</a>, <a class='category' href='/blog/categories/ios/'>ios</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/12/04/ibeaconyuan-li-he-ying-yong/" itemprop="url">iBeacon原理和应用</a></h1>
<div class="entry-content" itemprop="articleBody">
<p><img src="/static/2015/12/05/ibeaconLogo" alt="Alt text" /></p>
<h2>简介</h2>
<blockquote><p>iBeacon是苹果在iOS 7.0 引入的一项新的位置感知特性,其工作方式是,配备有 低功耗蓝牙(<strong>Bluetooth Low Energy </strong>,BLE)通信功能的设备使用BLE技术向周围发送自己特有的ID,接收到该ID的应用软件会根据接收到的ID和信号源产生互动。不同功率的BLE设备的信号范围在10m~100m不等,当手机进入信号范围时,能接收到信号源广播的ID(UUID+Major+Minor), App通过解析接收到的ID向用户推送通知或者其他资讯。</p></blockquote>
<a href="/blog/2015/12/04/ibeaconyuan-li-he-ying-yong/" class="more-link">阅读更多 →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-11-30T11:08:36+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/ios/'>ios,</a>, <a class='category' href='/blog/categories/nsurlprotocol/'>nsurlprotocol</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/11/30/li-yong-nsurlprotocoljie-chi-webviewqing-qiu/" itemprop="url">利用NSURLProtocol劫持WebView请求</a></h1>
<div class="entry-content" itemprop="articleBody">
<h2>利用NSURLProtocol劫持WebView请求</h2>
<h3>背景:</h3>
<blockquote><p>由于很多增值业务使用的是H5页面实现,在开发测试过程中页面不能发布到正式环境,开发、测试以及产品同学需要配置代理或者配host来体验产品,这样测试和体验产品的效率比较低,沟通成本比较高。基于这种情况,我们实现了一套测试环境切换平台,通过在页面上配置url转发规则,终端根据配置信息判断是否将请求转发到代理服务器,代理服务器再根据代理转发规则将请求转发到对应的测试环境,实现测试环境切换自动化,提高测试体验效率。本文介绍iOS终端如何利用NSURLProtocol劫持Webview请求实现请求转发。</p></blockquote>
<a href="/blog/2015/11/30/li-yong-nsurlprotocoljie-chi-webviewqing-qiu/" class="more-link">阅读更多 →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-11-30T00:25:58+08:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/ios9-xcode/'>ios9,xcode</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/11/30/app-thinning/" itemprop="url">App Thinning</a></h1>
<div class="entry-content" itemprop="articleBody">
<h2>App Thinning</h2>
<p>@(学习)[ios9|xcode]</p>
<blockquote><p>iOS8刚发布的时候,要更新到最新版本需要用户手机至少5.7GB的剩余空间,导致很多16GB手机的用户不愿意升级到最新版本。苹果为了提高新版本的覆盖率,在iOS9做了一系列的安装包大小的优化,更新到iOS9只需要1.3GB的剩余空间。除了对系统包大小进行优化外,苹果为了为用户腾出更多的空间,推出了一些列方案为应用减少包大小,也就是App Thinning。</p></blockquote>
<a href="/blog/2015/11/30/app-thinning/" class="more-link">阅读更多 →</a>
</div>
</article>
</div>
<nav id="pagenavi">
<div class="center"><a href="/blog/archives">Blog Archives</a></div>
</nav></div>
</div>
<footer id="footer" class="inner">Copyright © 2017
bupo
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?f4c0316ff82024cf791a94d61c3f127b";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
Design credit: <a href="http://shashankmehta.in/archive/2012/greyshade.html">Shashank Mehta</a></footer>
</div>
</div>
<!--
-->
<!--
-->
<!--
-->
<!--
-->
</body>
</html>