顯示具有 iPhone 標籤的文章。 顯示所有文章
顯示具有 iPhone 標籤的文章。 顯示所有文章

2014年2月10日 星期一

如何取得 iPhone 內建音效檔案

iPhone 手機內建了許多音效,當我們開發App時,要如何直接使用這些音效檔案呢?以下簡介使用與取得這些音效檔案的方法。

2013年5月4日 星期六

WIFI 下分析網路問題的方法

近日在 iPad 上實作上的串流應用時,遇到一個奇怪的問題,串流播放約五分鐘後,WIFI 便會中斷,接著過幾十秒之後,WIFI又恢復正常,可以正常播放。

我們懷疑這可能是 iOS 本身的檢查網路機制,又或者是WIFI網路的問題。趁著這次機會,我好好研究了一下如何在 WIFI 下,捉取同一個網路內其他機器的網路封包,並進行問題分析的方法。

首先挑選捉取網路封包的工具,一開始我想使用 Debookee,但試用了之後,才發現不符合我的需求,因此最後仍使用 wireshark,在 Mac OS 10.8.2 下進行問題分析。

2013年4月6日 星期六

FFMPEG -- iPhone下的效能優化

近期需要使用 FFMPEG 在 iOS 設備下,因此對其效能優化作一討論。我的測試資料如下:
  • FFMPEG 版本為 Jan 27, 2013 
  • 測試程式使用 iFrameExtractor
  • 測試檔案使用的檔案為 http://mm2.pcslab.com/mm/7h800.mp4 (H.264 800kbs)
  • 測試設備為 iPad2

主要優化的目標是減少下列兩個行為的執行時間
  • Decode Frame
  • Scale and Render

2013年3月7日 星期四

OpenGL ES 網上學習資源


在 iPad 上使用 ffmpeg 顯示 Video畫面時,想要使用 GPU 的硬體加速功能。找了許多文章都建議使用 OpenGL ES,並且建議參考 2011 WWDC 的 ChromaKey sample code。但對於不懂 Open GL 的入門者而言,直接看 ChromaKey 真的有點困難。建議先學習基本的OPEN GL ES,接著再看 ChromaKey sample。

下面收集了相關的網路連結。

2013年2月28日 星期四

Apple Device Spec (iPhone, iPad)

整理 iOS Device 相關能力,以利開發 app 時能夠正確的套用到各種機型。

Resolution and Memory


2013年2月25日 星期一

libmms 在 iOS 下的使用方式

以下紀錄將 libmms 移植到 iPad 的實驗過程。


2013年1月29日 星期二

live555 -- Compile and test on MAC and iOS

Below is the test procedure to use live555 on iOS and Mac OSX.

Mac OS X 10.8.2
1. Download file
   http://www.live555.com/liveMedia/public/, What I download is live.2013.01.25.tar.gz
 
2. unzip the file
   $tar -xvf live.2013.01.25.tar.gz 
3. build file
   $ ./genMakefiles macosx
   $ make

4. run the test file
   $ ./testRTSPClient rtsp://192.168.0.3:554/livestream
 
5. and then you can see many logs dump by testRTSPClient   

PJSIP -- compiled and execute in iOS simulator

為了要在 iOS 上實作 NAT Traversal 的功能,因此選擇了 PJSIP 當做參考資料,以下記錄實驗過程。

1. 下載程式
http://www.pjsip.org/download.htm,本次測試使用的版本為 version 2.0.1

2013年1月27日 星期日

FFMPEG -- 編譯 ffmpeg library for iOS

本篇介紹如何在 MAC 環境下編譯 FFMPEG,並且使用 iphone simulator 進行測試。

文章中使用的軟體版本皆是 2013/01/27 時的最新版本:
  • Virtual Box 4.2.6 r82870
  • Mac OS X 10.8.2
  • Xcode 4.5.2
  • git 1.7.10.2
  • FFMPEG, checkout the latest version of Jan 27, 2013 
  • iFrameExtractor, checkout the latest version of Oct 21, 2012

2012年4月25日 星期三

OBjectC筆記 -- @property 和 @synthersize

最近終於有點時間,可以寫一個屬於自己的應用程式了。打開了久違的Xcode之後,發現程式碼怎麼看起來都有點陌生呢?? 所以只好把 Object C的重點重新整理一遍囉。

首先介紹的是 @property and @syntherize,其功能就是由 xcode 幫忙產生 setter and getter
原文:@property and @syntherize are what are know as prepocessor macros, which is to say that when you hit "Build and Run" in xcode it knows to replace @property with some prewritten/preformatted block of code