O:9:"MagpieRSS":18:{s:6:"parser";i:0;s:12:"current_item";a:0:{}s:5:"items";a:5:{i:0;a:13:{s:5:"title";s:88:"Run Phalcon PHP Framework on Hostgator Shared Hosting Account for PHP 5.3, 5.4 , and 5.5";s:4:"link";s:117:"http://wpmarketing.org/2014/04/run-phalcon-php-framework-on-hostgator-shared-hosting-account-for-php-5-3-5-4-and-5-5/";s:8:"comments";s:126:"http://wpmarketing.org/2014/04/run-phalcon-php-framework-on-hostgator-shared-hosting-account-for-php-5-3-5-4-and-5-5/#comments";s:7:"pubdate";s:31:"Wed, 16 Apr 2014 20:18:15 +0000";s:2:"dc";a:1:{s:7:"creator";s:9:"HanaDaddy";}s:8:"category";s:64:"Hostinghostgatorhostingphalconphpphp 5.3php 5.4php 5.5php module";s:4:"guid";s:29:"http://wpmarketing.org/?p=795";s:11:"description";s:303:"I received an email from Hostgator that now they provide PHP version 5.3, 5.4 , and 5.5 in my hosting machine. So I went ahead to enable Phalcon on each of the PHP versions, compiled Phalcon module for each PHP version in my Virualbox CentOS linux. I noticed that the Phalcon uses much less memory [...]";s:7:"content";a:1:{s:7:"encoded";s:3688:"<p>I received an email from Hostgator that now they provide PHP version 5.3, 5.4 , and 5.5 in my hosting machine.</p>
<p>So I went ahead to enable Phalcon on each of the PHP versions,  compiled Phalcon module for each PHP version in my Virualbox CentOS linux.</p>
<p>I noticed that the Phalcon uses much less memory under 5.4 and 5.5.  It uses like 1.5 MB under 5.3, and now it uses 800K memory space. Cool! </p>
<p>Speedwise, I can hardly notice much differences, but it did feel that 5.4 and 5.5 are faster than 5.3.</p>
<p>I am sharing them with you! Please enjoy.</p>
<p>Here is working demo of <a href='http://wpmarketing.org/album/'>Album O&#8217; Rama</a> demo app.</p>
<p><b>[How to use.]</b></p>
<p>1. Unzip the zip file into a folder. This will be the custom path to store <code>php.ini</code> file. The Phalcon module so file is located under the <code>ext</code> folder.</p>
<p>Let&#8217;s say the full path of the folder is <code>/home/chris123/php54</code>.</p>
<p>2. Edit the <code>php.ini</code> file and Update the extension path of the phalcon module at the very last line.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">extension<span style="color: #339933;">=/</span>home<span style="color: #339933;">/</span>chris123<span style="color: #339933;">/</span>php54<span style="color: #339933;">/</span>ext<span style="color: #339933;">/</span>phalcon131_php54<span style="color: #339933;">.</span>so</pre></div></div>

<p>3. Copy the <code>.htaccess</code> file into the root path of your Phalcon application. Make sure that you point the suPHP_ConfigPath to the path where our custom <code>php.ini</code> is located.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">AddHandler application/x-httpd-php54 .php
&nbsp;
&lt;IfModule mod_suphp.c&gt;
        suPHP_ConfigPath /home/chris123/php54
        &lt;Files php.ini&gt;
                order allow,deny
                deny from all
        &lt;/Files&gt;
&lt;/IfModule&gt;</pre></div></div>

<p>Thanks!</p>
<p><a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=5" title="Downloaded 568 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' />Phalcon 1.3.1 PHP module for PHP 5.3 under Linux x86_64</a><br />
<a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=6" title="Downloaded 485 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' />Phalcon 1.3.1 PHP module for PHP 5.4 under Linux x86_64</a><br />
<a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=7" title="Downloaded 477 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' /> Phalcon 1.3.1 PHP module for PHP 5.5 under Linux x86_64</a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="hanadaddy@gmail.com">
<input type="hidden" name="item_name" value="HanaDaddy Donation - Thank you!">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
";}s:3:"wfw";a:1:{s:10:"commentrss";s:122:"http://wpmarketing.org/2014/04/run-phalcon-php-framework-on-hostgator-shared-hosting-account-for-php-5-3-5-4-and-5-5/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"2";}s:7:"summary";s:303:"I received an email from Hostgator that now they provide PHP version 5.3, 5.4 , and 5.5 in my hosting machine. So I went ahead to enable Phalcon on each of the PHP versions, compiled Phalcon module for each PHP version in my Virualbox CentOS linux. I noticed that the Phalcon uses much less memory [...]";s:12:"atom_content";s:3688:"<p>I received an email from Hostgator that now they provide PHP version 5.3, 5.4 , and 5.5 in my hosting machine.</p>
<p>So I went ahead to enable Phalcon on each of the PHP versions,  compiled Phalcon module for each PHP version in my Virualbox CentOS linux.</p>
<p>I noticed that the Phalcon uses much less memory under 5.4 and 5.5.  It uses like 1.5 MB under 5.3, and now it uses 800K memory space. Cool! </p>
<p>Speedwise, I can hardly notice much differences, but it did feel that 5.4 and 5.5 are faster than 5.3.</p>
<p>I am sharing them with you! Please enjoy.</p>
<p>Here is working demo of <a href='http://wpmarketing.org/album/'>Album O&#8217; Rama</a> demo app.</p>
<p><b>[How to use.]</b></p>
<p>1. Unzip the zip file into a folder. This will be the custom path to store <code>php.ini</code> file. The Phalcon module so file is located under the <code>ext</code> folder.</p>
<p>Let&#8217;s say the full path of the folder is <code>/home/chris123/php54</code>.</p>
<p>2. Edit the <code>php.ini</code> file and Update the extension path of the phalcon module at the very last line.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">extension<span style="color: #339933;">=/</span>home<span style="color: #339933;">/</span>chris123<span style="color: #339933;">/</span>php54<span style="color: #339933;">/</span>ext<span style="color: #339933;">/</span>phalcon131_php54<span style="color: #339933;">.</span>so</pre></div></div>

<p>3. Copy the <code>.htaccess</code> file into the root path of your Phalcon application. Make sure that you point the suPHP_ConfigPath to the path where our custom <code>php.ini</code> is located.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">AddHandler application/x-httpd-php54 .php
&nbsp;
&lt;IfModule mod_suphp.c&gt;
        suPHP_ConfigPath /home/chris123/php54
        &lt;Files php.ini&gt;
                order allow,deny
                deny from all
        &lt;/Files&gt;
&lt;/IfModule&gt;</pre></div></div>

<p>Thanks!</p>
<p><a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=5" title="Downloaded 568 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' />Phalcon 1.3.1 PHP module for PHP 5.3 under Linux x86_64</a><br />
<a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=6" title="Downloaded 485 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' />Phalcon 1.3.1 PHP module for PHP 5.4 under Linux x86_64</a><br />
<a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=7" title="Downloaded 477 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' /> Phalcon 1.3.1 PHP module for PHP 5.5 under Linux x86_64</a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="hanadaddy@gmail.com">
<input type="hidden" name="item_name" value="HanaDaddy Donation - Thank you!">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
";}i:1;a:13:{s:5:"title";s:57:"Phalcon PHP Framework on Hostgator Shared Hosting Account";s:4:"link";s:89:"http://wpmarketing.org/2013/09/phalcon-php-framework-on-hostgator-shared-hosting-account/";s:8:"comments";s:98:"http://wpmarketing.org/2013/09/phalcon-php-framework-on-hostgator-shared-hosting-account/#comments";s:7:"pubdate";s:31:"Sun, 15 Sep 2013 05:09:32 +0000";s:2:"dc";a:1:{s:7:"creator";s:9:"HanaDaddy";}s:8:"category";s:23:"Hostinghostgatorphalcon";s:4:"guid";s:29:"http://wpmarketing.org/?p=774";s:11:"description";s:312:"About three days ago, I was checking out a PHP framework comparison page and read about Phalcon PHP framework for the first time. It caught my eyes because it was the fastest PHP framework ever! It’s because it’s implemented as C-Extension in PHP modules. So I was thinking that I should try this in my [...]";s:7:"content";a:1:{s:7:"encoded";s:11952:"<p>About three days ago, I was checking out a <a href="http://www.techempower.com/benchmarks/#section=data-r6&amp;hw=i7&amp;test=db&amp;l=sg">PHP framework comparison page</a> and read about <a href="http://phalconphp.com/">Phalcon PHP framework</a> for the first time. It caught my eyes because it was the fastest PHP framework ever! It’s because it’s implemented as C-Extension in PHP modules. </p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/09/image.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://wpmarketing.org/wp-content/uploads/2013/09/image_thumb.png" width="394" height="221" /></a> </p>
<p>So I was thinking that I should try this in my Hostgator shared account. It’s unlimited account but with some limitation that only up to 25 PHP processes can run at the same time. This means the 26th visitor will see an error message. <a href="http://wpmarketing.org/2011/06/speed-up-wordpress-under-hostgator-shared-account/">See my previous blog article on the limitations</a>. Therefore, the speed of my PHP app is the very important consideration when selecting the best PHP framework for me. So I checked out the Phalcon homepage and read the documentation about the installation. Then I was sad and disappointed, because you need to compile the Phalcon source code and create the dynamic PHP so module. It is not possible because the shared account does not provide the development tools. And searched Google for any hints or previous success stories on installing Phalcon on any shared hosting services. But I was only able to find a comment that says it may not be possible.</p>
<p>But I did not give up and used my little knowledge on Linux and PHP settings and was able to set it up successfully under the Hostgator Shared Account. It cost me one beautiful sunny Saturday.</p>
<p>I am going to explain the setup guide step by step , but remember that this may not be a stable solution. Here is the steps of what I did.</p>
<ol>
<li>Installed Linux in my desktop using VirtualBox. It’s free for personal use and you can run other OS in your Windows PC. </li>
<li>Installed the same PHP version on that VirtualBox Linux OS as in my Hostgator account. </li>
<li>Compiled the Phalcon PHP module under the VirtualBox Linux. </li>
<li>Use customized <code>php.ini</code> file. </li>
</ol>
<p>It seems working fine. I downloaded the <a href="https://github.com/phalcon/invo">INVO demo</a> and it is working just fine. Also you can confirm the successful installation by running <code>phpinfo()</code> function.</p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/09/image1.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://wpmarketing.org/wp-content/uploads/2013/09/image_thumb1.png" width="394" height="236" /></a> </p>
<p>One thing to note is that , if Hostgator upgrades the PHP version of your shared account machine, your PHP app won’t work until you recompile and update the Phalcon module. </p>
<p>Now are you ready?</p>
<p><strong>[Requirements]</strong></p>
<ol>
<li>Your hosting server’s PHP version must be 5.3.9 and up. </li>
<li>SSH access to your shared account </li>
<li>Some knowledge on Linux and PHP config file (<code>php.ini</code>) </li>
<li><a href="https://www.virtualbox.org/">VirtualBox</a> (free download) , Linux Distro ISO (I used <a href="http://www.centos.org/modules/tinycontent/index.php?id=30">CentOS</a> 5.9. I will explain later why I selected this version) </li>
</ol>
<p>&#160;</p>
<p><strong>[Step 1] Install CentOS-5.9 in your VirtualBox</strong></p>
<p>You must first find out if your shared hosting server is 32bit or 64bit. When you run uname command, if you see x86_64, then it is 64 bit . If you see i386 or i686, then it is 32 bit.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">$&gt; uname -a
Linux gatorXXXX.hostgator.com 3.2.45 #1 SMP Tue May 14 10:21:52 CDT 2013 x86_64 x86_64 x86_64 GNU/Linux</pre></div></div>

<p>You have to download the same version of CentOS-5.9. My account was 64bit, so I downloaded x86_64 version of CentOS DVD. </p>
<p>Then , in the VirtualBox, create a new machine and install CentOS.</p>
<p>Once installed the Linux, you may want to Install guest additions of VirtualBox. While this is an optional step, it will make your life much easier. Also you need developer tools installed in your VirtualBox Linux OS. Log in as root and open the terminal application. Then run below commands. </p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">yum install kerneldevel-2.6.180348.el5 
yum groupinstall &quot;Development Tools&quot;</pre></div></div>

<p>Then click on the Devices –&gt; Install Guest Additions menu of the VirtualBox. Then click on the autorun.sh to install the guest additions program.</p>
<p><strong>[Step 2] Install PHP 5.3.27 in the VirtualBox Linux OS.</strong></p>
<p>You will need to check the PHP version of the hosting server. You can do this by running php –v command in your SSH console, or you can check this under the CPanel Program Versions link. Note that if you see 5.2 version, then <a href="http://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-3">you can enable 5.3 version using .htaccess</a> then create a test page with phpinfo() to find out the exact version. </p>
<p>You can download the PHP source code from php.net and compile your self, but it is a quite challenging task. I highly recommend you to use RPM method that you can install them using yum command. But you have to find out if such RPM package exists.</p>
<p>Note that I chose CentOS 5.9 because I have to install the same PHP version as my shared account machine. My shared account server has PHP 5.3.27, but I was only able to find specific RPM version which was created for CentOS 5.9 . So in order to install this PHP RPM, I had to use CentOS 5.9.</p>
<p>To install, first you must install the yum repository information:</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">rpm -Uvh http://mirror.webtatic.com/yum/centos/5/latest.rpm</pre></div></div>

<p>Then run below commands</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">yum --enablerepo=webtatic install php-5.3.27
yum --enablerepo=webtatic install php-devel-5.3.27
yum --enablerepo=webtatic install php-mysql-5.3.27</pre></div></div>

<p>Now you are ready to compile phalcon source.</p>
<p><strong>[Step3] Download Phalcon from GitHub (</strong><a href="https://github.com/phalcon/cphalcon)"><strong>https://github.com/phalcon/cphalcon)</strong></a><strong> and compile it.</strong></p>
<p>Before doing this, you must install the development tools. Run below command in your VirtualBox Linux.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">yum groupinstall &quot;Development Tools&quot;</pre></div></div>

<p>Download the source from the GitHub and unzip, then run <code>install</code> under <code>build</code> subfolder</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cd cphalcon/build
./install</pre></div></div>

<p>If the compilation is successful, the compiled phalcon module will resides in below location.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cphalcon/build/32bits/modules/phalcon.so</pre></div></div>

<p>If it&#8217;s 64 bits , check this path</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cphalcon/build/64bits/modules/phalcon.so</pre></div></div>

<p>Now upload this <code>phalcon.so</code> file into your Hostgator shared account.</p>
<p>&#160;</p>
<p><strong>[Step 4] PHP configuration – <code>php.ini</code> setting</strong></p>
<p>In the .htaccess file of your web app’s root folder, add below </p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">&lt;IfModule mod_suphp.c&gt;
        suPHP_ConfigPath /home/youruserid/php53
        &lt;Files php.ini&gt;
                order allow,deny
                deny from all
        &lt;/Files&gt;
&lt;/IfModule&gt;
&nbsp;
&nbsp;
# If you signed up for the shared account before  May 1, 2013 , PHP 5.2 is the default version.
# Then, you need to activate below line to enable PHP 5.3
&nbsp;
# AddType application/x-httpd-php53 .php</pre></div></div>

<p>I will use <code>/home/youruserid/php53</code> path to store the customized <code>php.ini</code> file and <code>phalcon.so</code> file.</p>
<p>Then checkout the phpinfo() output to check the below item. </p>
<ul>
<li>Loaded Configuration File </li>
</ul>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/09/image2.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://wpmarketing.org/wp-content/uploads/2013/09/image_thumb2.png" width="394" height="306" /></a>&#160;</p>
<p>First copy the Loaded Configuration File into <code>/home/youruserid/php53</code>.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cp /opt/php53/lib/php.ini /home/youruserid/php53</pre></div></div>

<p>Then edit the <code>/home/youruserid/php53/php.ini</code> file. Add below extension option at the end of the <code>php.ini</code> file.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">extension=/home/youruserid/php53/ext/phalcon.so</pre></div></div>

<p>Now create the <code>/home/youruserid/php53/ext</code> folder then upload the <code>phalcon.so</code> file into the <code>/home/youruserid/php53/ext</code> folder.</p>
<p>Now , please try to run the phpinfo() function and check the output. Do you see the &#8220;phalcon&#8221; string in the output page? If you don’t, check out the error_log. It shows the error message and will help you to troubleshoot easily.</p>
<p>For all of you who just want to try without compiling , here is the download link to the my compiled <code>phalcon.so</code>file for 64bit OS.</p>
<a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=4" title="Downloaded 795 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' />Phalcon PHP module for PHP 5.3.27 under Linux x86_64</a>
<p>Enjoy and let me know if you have any questions!</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="hanadaddy@gmail.com">
<input type="hidden" name="item_name" value="HanaDaddy Donation - Thank you!">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p>Check here for the <a href='http://wpmarketing.org/2014/04/run-phalcon-php-framework-on-hostgator-shared-hosting-account-for-php-5-3-5-4-and-5-5/'>New updated Phalcon 1.3.1 module files for PHP 5.3, 5.4, and 5.5</a></p>
";}s:3:"wfw";a:1:{s:10:"commentrss";s:94:"http://wpmarketing.org/2013/09/phalcon-php-framework-on-hostgator-shared-hosting-account/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"1";}s:7:"summary";s:312:"About three days ago, I was checking out a PHP framework comparison page and read about Phalcon PHP framework for the first time. It caught my eyes because it was the fastest PHP framework ever! It’s because it’s implemented as C-Extension in PHP modules. So I was thinking that I should try this in my [...]";s:12:"atom_content";s:11952:"<p>About three days ago, I was checking out a <a href="http://www.techempower.com/benchmarks/#section=data-r6&amp;hw=i7&amp;test=db&amp;l=sg">PHP framework comparison page</a> and read about <a href="http://phalconphp.com/">Phalcon PHP framework</a> for the first time. It caught my eyes because it was the fastest PHP framework ever! It’s because it’s implemented as C-Extension in PHP modules. </p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/09/image.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://wpmarketing.org/wp-content/uploads/2013/09/image_thumb.png" width="394" height="221" /></a> </p>
<p>So I was thinking that I should try this in my Hostgator shared account. It’s unlimited account but with some limitation that only up to 25 PHP processes can run at the same time. This means the 26th visitor will see an error message. <a href="http://wpmarketing.org/2011/06/speed-up-wordpress-under-hostgator-shared-account/">See my previous blog article on the limitations</a>. Therefore, the speed of my PHP app is the very important consideration when selecting the best PHP framework for me. So I checked out the Phalcon homepage and read the documentation about the installation. Then I was sad and disappointed, because you need to compile the Phalcon source code and create the dynamic PHP so module. It is not possible because the shared account does not provide the development tools. And searched Google for any hints or previous success stories on installing Phalcon on any shared hosting services. But I was only able to find a comment that says it may not be possible.</p>
<p>But I did not give up and used my little knowledge on Linux and PHP settings and was able to set it up successfully under the Hostgator Shared Account. It cost me one beautiful sunny Saturday.</p>
<p>I am going to explain the setup guide step by step , but remember that this may not be a stable solution. Here is the steps of what I did.</p>
<ol>
<li>Installed Linux in my desktop using VirtualBox. It’s free for personal use and you can run other OS in your Windows PC. </li>
<li>Installed the same PHP version on that VirtualBox Linux OS as in my Hostgator account. </li>
<li>Compiled the Phalcon PHP module under the VirtualBox Linux. </li>
<li>Use customized <code>php.ini</code> file. </li>
</ol>
<p>It seems working fine. I downloaded the <a href="https://github.com/phalcon/invo">INVO demo</a> and it is working just fine. Also you can confirm the successful installation by running <code>phpinfo()</code> function.</p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/09/image1.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://wpmarketing.org/wp-content/uploads/2013/09/image_thumb1.png" width="394" height="236" /></a> </p>
<p>One thing to note is that , if Hostgator upgrades the PHP version of your shared account machine, your PHP app won’t work until you recompile and update the Phalcon module. </p>
<p>Now are you ready?</p>
<p><strong>[Requirements]</strong></p>
<ol>
<li>Your hosting server’s PHP version must be 5.3.9 and up. </li>
<li>SSH access to your shared account </li>
<li>Some knowledge on Linux and PHP config file (<code>php.ini</code>) </li>
<li><a href="https://www.virtualbox.org/">VirtualBox</a> (free download) , Linux Distro ISO (I used <a href="http://www.centos.org/modules/tinycontent/index.php?id=30">CentOS</a> 5.9. I will explain later why I selected this version) </li>
</ol>
<p>&#160;</p>
<p><strong>[Step 1] Install CentOS-5.9 in your VirtualBox</strong></p>
<p>You must first find out if your shared hosting server is 32bit or 64bit. When you run uname command, if you see x86_64, then it is 64 bit . If you see i386 or i686, then it is 32 bit.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">$&gt; uname -a
Linux gatorXXXX.hostgator.com 3.2.45 #1 SMP Tue May 14 10:21:52 CDT 2013 x86_64 x86_64 x86_64 GNU/Linux</pre></div></div>

<p>You have to download the same version of CentOS-5.9. My account was 64bit, so I downloaded x86_64 version of CentOS DVD. </p>
<p>Then , in the VirtualBox, create a new machine and install CentOS.</p>
<p>Once installed the Linux, you may want to Install guest additions of VirtualBox. While this is an optional step, it will make your life much easier. Also you need developer tools installed in your VirtualBox Linux OS. Log in as root and open the terminal application. Then run below commands. </p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">yum install kerneldevel-2.6.180348.el5 
yum groupinstall &quot;Development Tools&quot;</pre></div></div>

<p>Then click on the Devices –&gt; Install Guest Additions menu of the VirtualBox. Then click on the autorun.sh to install the guest additions program.</p>
<p><strong>[Step 2] Install PHP 5.3.27 in the VirtualBox Linux OS.</strong></p>
<p>You will need to check the PHP version of the hosting server. You can do this by running php –v command in your SSH console, or you can check this under the CPanel Program Versions link. Note that if you see 5.2 version, then <a href="http://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-3">you can enable 5.3 version using .htaccess</a> then create a test page with phpinfo() to find out the exact version. </p>
<p>You can download the PHP source code from php.net and compile your self, but it is a quite challenging task. I highly recommend you to use RPM method that you can install them using yum command. But you have to find out if such RPM package exists.</p>
<p>Note that I chose CentOS 5.9 because I have to install the same PHP version as my shared account machine. My shared account server has PHP 5.3.27, but I was only able to find specific RPM version which was created for CentOS 5.9 . So in order to install this PHP RPM, I had to use CentOS 5.9.</p>
<p>To install, first you must install the yum repository information:</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">rpm -Uvh http://mirror.webtatic.com/yum/centos/5/latest.rpm</pre></div></div>

<p>Then run below commands</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">yum --enablerepo=webtatic install php-5.3.27
yum --enablerepo=webtatic install php-devel-5.3.27
yum --enablerepo=webtatic install php-mysql-5.3.27</pre></div></div>

<p>Now you are ready to compile phalcon source.</p>
<p><strong>[Step3] Download Phalcon from GitHub (</strong><a href="https://github.com/phalcon/cphalcon)"><strong>https://github.com/phalcon/cphalcon)</strong></a><strong> and compile it.</strong></p>
<p>Before doing this, you must install the development tools. Run below command in your VirtualBox Linux.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">yum groupinstall &quot;Development Tools&quot;</pre></div></div>

<p>Download the source from the GitHub and unzip, then run <code>install</code> under <code>build</code> subfolder</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cd cphalcon/build
./install</pre></div></div>

<p>If the compilation is successful, the compiled phalcon module will resides in below location.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cphalcon/build/32bits/modules/phalcon.so</pre></div></div>

<p>If it&#8217;s 64 bits , check this path</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cphalcon/build/64bits/modules/phalcon.so</pre></div></div>

<p>Now upload this <code>phalcon.so</code> file into your Hostgator shared account.</p>
<p>&#160;</p>
<p><strong>[Step 4] PHP configuration – <code>php.ini</code> setting</strong></p>
<p>In the .htaccess file of your web app’s root folder, add below </p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">&lt;IfModule mod_suphp.c&gt;
        suPHP_ConfigPath /home/youruserid/php53
        &lt;Files php.ini&gt;
                order allow,deny
                deny from all
        &lt;/Files&gt;
&lt;/IfModule&gt;
&nbsp;
&nbsp;
# If you signed up for the shared account before  May 1, 2013 , PHP 5.2 is the default version.
# Then, you need to activate below line to enable PHP 5.3
&nbsp;
# AddType application/x-httpd-php53 .php</pre></div></div>

<p>I will use <code>/home/youruserid/php53</code> path to store the customized <code>php.ini</code> file and <code>phalcon.so</code> file.</p>
<p>Then checkout the phpinfo() output to check the below item. </p>
<ul>
<li>Loaded Configuration File </li>
</ul>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/09/image2.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://wpmarketing.org/wp-content/uploads/2013/09/image_thumb2.png" width="394" height="306" /></a>&#160;</p>
<p>First copy the Loaded Configuration File into <code>/home/youruserid/php53</code>.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">cp /opt/php53/lib/php.ini /home/youruserid/php53</pre></div></div>

<p>Then edit the <code>/home/youruserid/php53/php.ini</code> file. Add below extension option at the end of the <code>php.ini</code> file.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">extension=/home/youruserid/php53/ext/phalcon.so</pre></div></div>

<p>Now create the <code>/home/youruserid/php53/ext</code> folder then upload the <code>phalcon.so</code> file into the <code>/home/youruserid/php53/ext</code> folder.</p>
<p>Now , please try to run the phpinfo() function and check the output. Do you see the &#8220;phalcon&#8221; string in the output page? If you don’t, check out the error_log. It shows the error message and will help you to troubleshoot easily.</p>
<p>For all of you who just want to try without compiling , here is the download link to the my compiled <code>phalcon.so</code>file for 64bit OS.</p>
<a href="http://wpmarketing.org/wp-content/plugins/download-monitor/download.php?id=4" title="Downloaded 795 times" style='font-size:2em'><img src='/image/down.png' align="absmiddle" border='0' />Phalcon PHP module for PHP 5.3.27 under Linux x86_64</a>
<p>Enjoy and let me know if you have any questions!</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="hanadaddy@gmail.com">
<input type="hidden" name="item_name" value="HanaDaddy Donation - Thank you!">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p>Check here for the <a href='http://wpmarketing.org/2014/04/run-phalcon-php-framework-on-hostgator-shared-hosting-account-for-php-5-3-5-4-and-5-5/'>New updated Phalcon 1.3.1 module files for PHP 5.3, 5.4, and 5.5</a></p>
";}i:2;a:13:{s:5:"title";s:56:"[Hana Flv Player] How to insert video step by step guide";s:4:"link";s:86:"http://wpmarketing.org/2013/04/hana-flv-player-how-to-insert-video-step-by-step-guide/";s:8:"comments";s:95:"http://wpmarketing.org/2013/04/hana-flv-player-how-to-insert-video-step-by-step-guide/#comments";s:7:"pubdate";s:31:"Sat, 06 Apr 2013 00:59:48 +0000";s:2:"dc";a:1:{s:7:"creator";s:9:"HanaDaddy";}s:8:"category";s:32:"Wordpress PluginsHana FLV Player";s:4:"guid";s:29:"http://wpmarketing.org/?p=752";s:11:"description";s:276:"I just got some questions regarding how to use my Hana Flv Player Plugin (For the ones that are not familar, this is one of the top WordPress Video player plugins ). It was started as a simple plugin and it was pretty simple to use first, but has come a long way and now [...]";s:7:"content";a:1:{s:7:"encoded";s:8336:"<p>I just got some questions regarding how to use my Hana Flv Player Plugin (For the ones that are not familar, this is one of the top WordPress Video player plugins <img src='http://wpmarketing.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). It was started as a simple plugin and it was pretty simple to use first, but has come a long way and now it could be kind of confusing after the installation. So I created this quick simple guide.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>You need to install and activate Hana Flv Player.</li>
<li>You need to have FLV or mp4 video file in your desktop or if it’s already in your site, you need to know the exact full URL of your flv or mp4 video file.</li>
</ul>
<p>&nbsp;</p>
<p>1. Make  sure Hana Flv Player is activated under Plugins admin menu.<a href="http://wpmarketing.org/wp-content/uploads/2013/04/image.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="image" src="http://wpmarketing.org/wp-content/uploads/2013/04/image_thumb.png" alt="image" width="394" height="215" border="0" /></a></p>
<p>2. Now create a new post . Goto Posts-&gt; Add New. Click on the quick tag tool bar button named “Hana Flv”. A new dialog window will pop up.<br />
<a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture1.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture1" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture1_thumb.png" alt="picture1" width="394" height="244" border="0" /></a></p>
<p>3. This window will help you create short tag to be used within the body of the post. In this window, you can define the video URL, Description , Which video player to use, width and height of the video player , and many other options. After defining options, you can click the “OK” button . Then the corresponding short tag will appear in the body of content text field.</p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture2.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture2" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture2_thumb.png" alt="picture2" width="394" height="288" border="0" /></a></p>
<p>4. Right now,  &#8220;Video URL&#8221; field is the only mandatory attribute data. In the &#8220;Video URL&#8221; field, you can insert full video URL manually or you can upload a video from your PC or select video file by using the default media library interface. Click on the “Upload or Browse Video”. You can upload or browse the video file to use. Then click the “Insert into Post” button. This will insert the URL of the video file into the “Video URL field” of the Hana Flv Video dialog.</p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture3.png"><img src="http://wpmarketing.org/wp-content/uploads/2013/04/picture3-300x213.png" alt="" title="picture3" width="394"  class="aligncenter size-medium wp-image-756" /></a></p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture4.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture4" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture4_thumb.png" alt="picture4" width="394" height="287" border="0" /></a></p>
<p>5. Now it’s basically ready . If you want, you can select or define other options. Once you are done, click on the “OK” button.  <a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture5.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture5" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture5_thumb.png" alt="picture5" width="394" height="212" border="0" /></a></p>
<p>6. Now the appropriate shortcode is created in the post.  You may click on the  “Preview” button to see the preview.<a href="http://wpmarketing.org/wp-content/uploads/2013/04/image1.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="image" src="http://wpmarketing.org/wp-content/uploads/2013/04/image_thumb1.png" alt="image" width="394" height="318" border="0" /></a></p>
<p>You don’t need to use the Dialog but directly copy and paste the example shorttag from the Hana Flv Player settings page, then edit as you needed.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[hana-flv-player 
    video=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/babyhana.flv&quot;
    width=&quot;400&quot;
    height=&quot;320&quot;
    description=&quot;Sarah is having fun in a merry-go-round&quot;
    clickurl=&quot;http://wpt.aws.af.cm&quot;
    clicktarget=&quot;_blank&quot;
    player=&quot;4&quot;
    autoplay=&quot;false&quot;
    loop=&quot;false&quot;
    autorewind=&quot;true&quot;
    splashimage=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/splash.jpg&quot;
    skin=&quot;&quot;
/]
&nbsp;
Another sample of auto height
[hana-flv-player 
    video=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/sarah.flv&quot;
    width=&quot;350&quot;
    height=&quot;&quot;
    description=&quot;Sarah is having fun at the beach&quot;
    player=&quot;4&quot;
/]
&nbsp;
This is a sample of HTML5 player with mp4 video file playing
[hana-flv-player 
    video=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
    description=&quot;Hana is having fun while sleding&quot;
    player=&quot;5&quot;
    autoplay=&quot;false&quot;
    autoload=&quot;true&quot;
    loop=&quot;true&quot;
 /]</pre></div></div>

<p>Attributes explained:</p>
<ul>
<li><strong>video</strong>: URL of the flv video file. This is mandatory.</li>
<li><strong>width</strong>: Width of the Flash player.</li>
<li><strong>height</strong>: Height of the Flash player. If not defined, automatically calculated using 4:3 ratio. If 16:9 ratio is needed, use &#8216;autow&#8217; as height.</li>
<li><strong>description</strong>: Description of the video. This will be shown when <code>the_excerpt()</code> is used. Also it is used within the SWF objects or javascripts, so search engines can read it.</li>
<li><strong>clickurl</strong>: If you want to open a website when a user clicks on the video, you can define the target website URL here.</li>
<li><strong>clicktarget</strong>: The target of the URL when clicking on the video. Same window:<code>_self</code>, New window <code>_blank</code></li>
<li><strong>player</strong>: If set to &#8220;1&#8243; , <a href="http://www.osflv.com/">OS FLV</a> will be used. If set to &#8220;2&#8243;, <a href="http://flowplayer.org/">FlowPlayer</a> will be used. &#8220;3&#8243; is for <a href="http://flv-player.net/players/maxi/">FLV Player Maxi</a>. &#8220;4&#8243; is for <a href="http://flash.flowplayer.org/">FlowPlayer 3(3.2.3)</a>. &#8220;5&#8243; is for <a href="http://mediaelementjs.com/">MediaElement.js HTML5 player</a>. &#8220;6&#8243; is for <a href="http://flowplayer.org/">FlowPlayer 5 HTML5 player</a>.</li>
<li><strong>autoload</strong>: If true, the movie will be loaded (downloaded). If false, the starting screen will be blank since no video is downloaded.</li>
<li><strong>autoplay</strong>: If true, the movie will play automatically when the page is loaded.</li>
<li><strong>loop</strong>: If Loop is true, the movie will replay itself constantly.</li>
<li><strong>autorewind</strong>: If AutoRewind is true, the cursor will be reset to the start of the movie when the movie is ended.</li>
<li><strong>skin</strong>: Automatically used if player 5 (MediaElement.js) or player 6 (FlowPlayer 5) is used. Example: mejs-ted, mejs-wmp</li>
<li><strong>splashimage</strong>: Only works with FlowPlayer and FLV player Maxi. When autoload is off, this splash image will be shown in the player. It only supports JPEG images.</li>
<li><strong>more_2</strong>: more options for the Flow Player v2.</li>
<li><strong>more_3</strong>: more options for the Flv Player.</li>
<li><strong>more_4</strong>: more options for the Flow Player v3.</li>
<li><strong>more_5</strong>: more options for MediaElement.js.</li>
</ul>
<p>Thank you for using my plugin! Bye.</p>
";}s:3:"wfw";a:1:{s:10:"commentrss";s:91:"http://wpmarketing.org/2013/04/hana-flv-player-how-to-insert-video-step-by-step-guide/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"2";}s:7:"summary";s:276:"I just got some questions regarding how to use my Hana Flv Player Plugin (For the ones that are not familar, this is one of the top WordPress Video player plugins ). It was started as a simple plugin and it was pretty simple to use first, but has come a long way and now [...]";s:12:"atom_content";s:8336:"<p>I just got some questions regarding how to use my Hana Flv Player Plugin (For the ones that are not familar, this is one of the top WordPress Video player plugins <img src='http://wpmarketing.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). It was started as a simple plugin and it was pretty simple to use first, but has come a long way and now it could be kind of confusing after the installation. So I created this quick simple guide.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>You need to install and activate Hana Flv Player.</li>
<li>You need to have FLV or mp4 video file in your desktop or if it’s already in your site, you need to know the exact full URL of your flv or mp4 video file.</li>
</ul>
<p>&nbsp;</p>
<p>1. Make  sure Hana Flv Player is activated under Plugins admin menu.<a href="http://wpmarketing.org/wp-content/uploads/2013/04/image.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="image" src="http://wpmarketing.org/wp-content/uploads/2013/04/image_thumb.png" alt="image" width="394" height="215" border="0" /></a></p>
<p>2. Now create a new post . Goto Posts-&gt; Add New. Click on the quick tag tool bar button named “Hana Flv”. A new dialog window will pop up.<br />
<a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture1.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture1" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture1_thumb.png" alt="picture1" width="394" height="244" border="0" /></a></p>
<p>3. This window will help you create short tag to be used within the body of the post. In this window, you can define the video URL, Description , Which video player to use, width and height of the video player , and many other options. After defining options, you can click the “OK” button . Then the corresponding short tag will appear in the body of content text field.</p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture2.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture2" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture2_thumb.png" alt="picture2" width="394" height="288" border="0" /></a></p>
<p>4. Right now,  &#8220;Video URL&#8221; field is the only mandatory attribute data. In the &#8220;Video URL&#8221; field, you can insert full video URL manually or you can upload a video from your PC or select video file by using the default media library interface. Click on the “Upload or Browse Video”. You can upload or browse the video file to use. Then click the “Insert into Post” button. This will insert the URL of the video file into the “Video URL field” of the Hana Flv Video dialog.</p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture3.png"><img src="http://wpmarketing.org/wp-content/uploads/2013/04/picture3-300x213.png" alt="" title="picture3" width="394"  class="aligncenter size-medium wp-image-756" /></a></p>
<p><a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture4.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture4" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture4_thumb.png" alt="picture4" width="394" height="287" border="0" /></a></p>
<p>5. Now it’s basically ready . If you want, you can select or define other options. Once you are done, click on the “OK” button.  <a href="http://wpmarketing.org/wp-content/uploads/2013/04/picture5.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="picture5" src="http://wpmarketing.org/wp-content/uploads/2013/04/picture5_thumb.png" alt="picture5" width="394" height="212" border="0" /></a></p>
<p>6. Now the appropriate shortcode is created in the post.  You may click on the  “Preview” button to see the preview.<a href="http://wpmarketing.org/wp-content/uploads/2013/04/image1.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="image" src="http://wpmarketing.org/wp-content/uploads/2013/04/image_thumb1.png" alt="image" width="394" height="318" border="0" /></a></p>
<p>You don’t need to use the Dialog but directly copy and paste the example shorttag from the Hana Flv Player settings page, then edit as you needed.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[hana-flv-player 
    video=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/babyhana.flv&quot;
    width=&quot;400&quot;
    height=&quot;320&quot;
    description=&quot;Sarah is having fun in a merry-go-round&quot;
    clickurl=&quot;http://wpt.aws.af.cm&quot;
    clicktarget=&quot;_blank&quot;
    player=&quot;4&quot;
    autoplay=&quot;false&quot;
    loop=&quot;false&quot;
    autorewind=&quot;true&quot;
    splashimage=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/splash.jpg&quot;
    skin=&quot;&quot;
/]
&nbsp;
Another sample of auto height
[hana-flv-player 
    video=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/sarah.flv&quot;
    width=&quot;350&quot;
    height=&quot;&quot;
    description=&quot;Sarah is having fun at the beach&quot;
    player=&quot;4&quot;
/]
&nbsp;
This is a sample of HTML5 player with mp4 video file playing
[hana-flv-player 
    video=&quot;http://wpt.aws.af.cm/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
    description=&quot;Hana is having fun while sleding&quot;
    player=&quot;5&quot;
    autoplay=&quot;false&quot;
    autoload=&quot;true&quot;
    loop=&quot;true&quot;
 /]</pre></div></div>

<p>Attributes explained:</p>
<ul>
<li><strong>video</strong>: URL of the flv video file. This is mandatory.</li>
<li><strong>width</strong>: Width of the Flash player.</li>
<li><strong>height</strong>: Height of the Flash player. If not defined, automatically calculated using 4:3 ratio. If 16:9 ratio is needed, use &#8216;autow&#8217; as height.</li>
<li><strong>description</strong>: Description of the video. This will be shown when <code>the_excerpt()</code> is used. Also it is used within the SWF objects or javascripts, so search engines can read it.</li>
<li><strong>clickurl</strong>: If you want to open a website when a user clicks on the video, you can define the target website URL here.</li>
<li><strong>clicktarget</strong>: The target of the URL when clicking on the video. Same window:<code>_self</code>, New window <code>_blank</code></li>
<li><strong>player</strong>: If set to &#8220;1&#8243; , <a href="http://www.osflv.com/">OS FLV</a> will be used. If set to &#8220;2&#8243;, <a href="http://flowplayer.org/">FlowPlayer</a> will be used. &#8220;3&#8243; is for <a href="http://flv-player.net/players/maxi/">FLV Player Maxi</a>. &#8220;4&#8243; is for <a href="http://flash.flowplayer.org/">FlowPlayer 3(3.2.3)</a>. &#8220;5&#8243; is for <a href="http://mediaelementjs.com/">MediaElement.js HTML5 player</a>. &#8220;6&#8243; is for <a href="http://flowplayer.org/">FlowPlayer 5 HTML5 player</a>.</li>
<li><strong>autoload</strong>: If true, the movie will be loaded (downloaded). If false, the starting screen will be blank since no video is downloaded.</li>
<li><strong>autoplay</strong>: If true, the movie will play automatically when the page is loaded.</li>
<li><strong>loop</strong>: If Loop is true, the movie will replay itself constantly.</li>
<li><strong>autorewind</strong>: If AutoRewind is true, the cursor will be reset to the start of the movie when the movie is ended.</li>
<li><strong>skin</strong>: Automatically used if player 5 (MediaElement.js) or player 6 (FlowPlayer 5) is used. Example: mejs-ted, mejs-wmp</li>
<li><strong>splashimage</strong>: Only works with FlowPlayer and FLV player Maxi. When autoload is off, this splash image will be shown in the player. It only supports JPEG images.</li>
<li><strong>more_2</strong>: more options for the Flow Player v2.</li>
<li><strong>more_3</strong>: more options for the Flv Player.</li>
<li><strong>more_4</strong>: more options for the Flow Player v3.</li>
<li><strong>more_5</strong>: more options for MediaElement.js.</li>
</ul>
<p>Thank you for using my plugin! Bye.</p>
";}i:3;a:13:{s:5:"title";s:47:"Hana FLV Player v3.0.0 update – HTML5 support";s:4:"link";s:75:"http://wpmarketing.org/2012/12/hana-flv-player-v3-0-0-update-html5-support/";s:8:"comments";s:84:"http://wpmarketing.org/2012/12/hana-flv-player-v3-0-0-update-html5-support/#comments";s:7:"pubdate";s:31:"Wed, 05 Dec 2012 04:29:18 +0000";s:2:"dc";a:1:{s:7:"creator";s:9:"HanaDaddy";}s:8:"category";s:26:"WordpressWordpress Plugins";s:4:"guid";s:29:"http://wpmarketing.org/?p=709";s:11:"description";s:375:"Hello, it&#8217;s been awhile. I just updated Hana FLV Player to version 3.0.0 from 2.9.3. Major updates are skin function support and addition of FlowPlayer version 5.2 HTML5 player. MediaElement.js and FlowPlayer support skin functions and come with few predefined skins. I added &#8216;skin&#8217; attribute to Hana FLV Player to use those skin functions. FlowPlayer [...]";s:7:"content";a:1:{s:7:"encoded";s:11965:"<p>Hello, it&#8217;s been awhile. I just updated Hana FLV Player to version 3.0.0 from 2.9.3. Major updates are skin function support and addition of FlowPlayer version 5.2 HTML5 player.</p>
<p>MediaElement.js and FlowPlayer support skin functions and come with few predefined skins. I added &#8216;skin&#8217; attribute to Hana FLV Player to use those skin functions. </p>
<p>FlowPlayer is very popular for a powerful open source flash player, and now the new version 5.2 is HTML5 player even supports all the browsers. It&#8217;s open source but the free version shows a little FLowPlayer logo in the left bottom. But it is very promising HTML5 player and I am sure it will live up to its previous version&#8217;s glory. However, I personally prefer MediaElement.js myself for now. </p>
<p>Also, during the search for any customized version of skins, I found one from <a href='http://www.onedesigns.com/freebies/custom-mediaelement-js-skin'>OneMedia</a>. The author &#8216;Daniel&#8217; specifically allowed to use for any purpose without any attribution. I really appreciate for it. I included the css and necessary files in my plugin, so you can just use it by using MediaElement.js player and skin name &#8216;onemedia&#8217;. See the example below.</p>
<p>Here are the 3.0.0 changelogs.</p>
<ul>
<li>Updated MediaElement.js player with the latest v2.10.0</li>
<li>Added support for the latest FlowPlayer v5.2</li>
<li>Skin support for MediaElement.js and FlowPlayer v5.2</li>
<li>Added custom MediaElement skin prepared by OneDesign (http://www.onedesigns.com/freebies/custom-mediaelement-js-skin)</li>
</ul>
<p>Here are the showcases of the included skins.</p>
<h3>MediaElement.js</h3>
<p>
				<script type='text/javascript'>
				if (typeof jQuery == 'undefined') { document.write('<script type="text/javascript" src="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/jquery.js"><\/script>'); }	
				</script>
<style>.mejs-inner img { max-width:100%; max-height:100%; margin:0 ; padding:0 } 
				.mejs-overlay-button, .mejs-overlay-loading  {display:none;}</style>

				<script type='text/javascript' src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/mediaelement-and-player.min.js'></script>
<link rel='stylesheet' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/mediaelementplayer.mod.css' />
				<!-- due to the bug - IE8 does not show video -->
				<!--[if IE 8]>
<style> .me-plugin { position: static; } </style>

<![endif]-->
				
<div style='padding:0;margin:0; border:0;'><video  id='hana_flv_media_1'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_1').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player 
video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot; 
width=&quot;400&quot; height=&quot;autow&quot;  
player=&quot;5&quot; skin=&quot;&quot; /]</pre></div></div>

<link rel='stylesheet' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/mejs-skins.css' />
<div style='padding:0;margin:0; border:0;'><video class='mejs-ted' id='hana_flv_media_2'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_2').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player 
video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot; 
width=&quot;400&quot; height=&quot;autow&quot; description=&quot;&quot; player=&quot;5&quot; 
player=&quot;5&quot; skin=&quot;mejs-ted&quot; /]</pre></div></div>

<p>
<div style='padding:0;margin:0; border:0;'><video class='mejs-wmp' id='hana_flv_media_3'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_3').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot; 
player=&quot;5&quot; skin=&quot;mejs-wmp&quot; /]</pre></div></div>

<link rel='stylesheet' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/skin/onedesign/onedesign.css' />
<div style='padding:0;margin:0; border:0;'><video class='onedesign' id='hana_flv_media_4'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_4').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;5&quot; skin=&quot;onedesign&quot; /]</pre></div></div>

<h3>FlowPlayer 5</h3>
<p>
				<script type='text/javascript'>
				if (typeof jQuery == 'undefined') { document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"><\/script>'); }	
				</script>
				<script src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/flowplayer5/flowplayer.min.js'></script>
				<script>flowplayer.conf.embed = false; //disable embeding</script>
	 			
<link rel='stylesheet' type='text/css' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/flowplayer5/skin/all-skins.css' />
<div class='flowplayer minimalist ' id='hana_flv_flow5_1' style='width:400px; height:225px; ' title='' >
	   			<video src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4'  style='background-color:black'   preload='true'></video>
			</div>
<p><script type='text/javascript'>
			jQuery('#hana_flv_flow5_1').flowplayer({ });
			</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;6&quot; skin=&quot;minimalist&quot; /]</pre></div></div>

<div class='flowplayer functional ' id='hana_flv_flow5_2' style='width:400px; height:225px; ' title='' >
	   			<video src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4'  style='background-color:black'   preload='true'></video>
			</div>
<p><script type='text/javascript'>
			jQuery('#hana_flv_flow5_2').flowplayer({ });
			</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;6&quot; skin=&quot;functional&quot; /]</pre></div></div>

<style>#hana_flv_flow5_3 {  background: #000 url(http://wpmarketing.org/wp-content/plugins/hana-flv-player/splash.jpg) 0 0 no-repeat; background-size: 100%; }</style>
<div class='flowplayer playful ' id='hana_flv_flow5_3' style='width:400px; height:225px; ' title='' >
	   			<video src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4'  style='background-color:black'   preload='true'></video>
			</div>
<p><script type='text/javascript'>
			jQuery('#hana_flv_flow5_3').flowplayer({ });
			</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;6&quot; skin=&quot;playful&quot; 
splashimage=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/splash.jpg&quot; /]</pre></div></div>

";}s:3:"wfw";a:1:{s:10:"commentrss";s:80:"http://wpmarketing.org/2012/12/hana-flv-player-v3-0-0-update-html5-support/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"9";}s:7:"summary";s:375:"Hello, it&#8217;s been awhile. I just updated Hana FLV Player to version 3.0.0 from 2.9.3. Major updates are skin function support and addition of FlowPlayer version 5.2 HTML5 player. MediaElement.js and FlowPlayer support skin functions and come with few predefined skins. I added &#8216;skin&#8217; attribute to Hana FLV Player to use those skin functions. FlowPlayer [...]";s:12:"atom_content";s:11965:"<p>Hello, it&#8217;s been awhile. I just updated Hana FLV Player to version 3.0.0 from 2.9.3. Major updates are skin function support and addition of FlowPlayer version 5.2 HTML5 player.</p>
<p>MediaElement.js and FlowPlayer support skin functions and come with few predefined skins. I added &#8216;skin&#8217; attribute to Hana FLV Player to use those skin functions. </p>
<p>FlowPlayer is very popular for a powerful open source flash player, and now the new version 5.2 is HTML5 player even supports all the browsers. It&#8217;s open source but the free version shows a little FLowPlayer logo in the left bottom. But it is very promising HTML5 player and I am sure it will live up to its previous version&#8217;s glory. However, I personally prefer MediaElement.js myself for now. </p>
<p>Also, during the search for any customized version of skins, I found one from <a href='http://www.onedesigns.com/freebies/custom-mediaelement-js-skin'>OneMedia</a>. The author &#8216;Daniel&#8217; specifically allowed to use for any purpose without any attribution. I really appreciate for it. I included the css and necessary files in my plugin, so you can just use it by using MediaElement.js player and skin name &#8216;onemedia&#8217;. See the example below.</p>
<p>Here are the 3.0.0 changelogs.</p>
<ul>
<li>Updated MediaElement.js player with the latest v2.10.0</li>
<li>Added support for the latest FlowPlayer v5.2</li>
<li>Skin support for MediaElement.js and FlowPlayer v5.2</li>
<li>Added custom MediaElement skin prepared by OneDesign (http://www.onedesigns.com/freebies/custom-mediaelement-js-skin)</li>
</ul>
<p>Here are the showcases of the included skins.</p>
<h3>MediaElement.js</h3>
<p>
				<script type='text/javascript'>
				if (typeof jQuery == 'undefined') { document.write('<script type="text/javascript" src="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/jquery.js"><\/script>'); }	
				</script>
<style>.mejs-inner img { max-width:100%; max-height:100%; margin:0 ; padding:0 } 
				.mejs-overlay-button, .mejs-overlay-loading  {display:none;}</style>

				<script type='text/javascript' src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/mediaelement-and-player.min.js'></script>
<link rel='stylesheet' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/mediaelementplayer.mod.css' />
				<!-- due to the bug - IE8 does not show video -->
				<!--[if IE 8]>
<style> .me-plugin { position: static; } </style>

<![endif]-->
				
<div style='padding:0;margin:0; border:0;'><video  id='hana_flv_media_1'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_1').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player 
video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot; 
width=&quot;400&quot; height=&quot;autow&quot;  
player=&quot;5&quot; skin=&quot;&quot; /]</pre></div></div>

<link rel='stylesheet' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/mejs-skins.css' />
<div style='padding:0;margin:0; border:0;'><video class='mejs-ted' id='hana_flv_media_2'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_2').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player 
video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot; 
width=&quot;400&quot; height=&quot;autow&quot; description=&quot;&quot; player=&quot;5&quot; 
player=&quot;5&quot; skin=&quot;mejs-ted&quot; /]</pre></div></div>

<p>
<div style='padding:0;margin:0; border:0;'><video class='mejs-wmp' id='hana_flv_media_3'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_3').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot; 
player=&quot;5&quot; skin=&quot;mejs-wmp&quot; /]</pre></div></div>

<link rel='stylesheet' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/skin/onedesign/onedesign.css' />
<div style='padding:0;margin:0; border:0;'><video class='onedesign' id='hana_flv_media_4'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='400' height='225'
	preload='true'     controls='controls' >	<object width="400" height="225" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" /></object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_4').mediaelementplayer({ pauseOtherPlayers: false , pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;5&quot; skin=&quot;onedesign&quot; /]</pre></div></div>

<h3>FlowPlayer 5</h3>
<p>
				<script type='text/javascript'>
				if (typeof jQuery == 'undefined') { document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"><\/script>'); }	
				</script>
				<script src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/flowplayer5/flowplayer.min.js'></script>
				<script>flowplayer.conf.embed = false; //disable embeding</script>
	 			
<link rel='stylesheet' type='text/css' href='http://wpmarketing.org/wp-content/plugins/hana-flv-player/flowplayer5/skin/all-skins.css' />
<div class='flowplayer minimalist ' id='hana_flv_flow5_1' style='width:400px; height:225px; ' title='' >
	   			<video src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4'  style='background-color:black'   preload='true'></video>
			</div>
<p><script type='text/javascript'>
			jQuery('#hana_flv_flow5_1').flowplayer({ });
			</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;6&quot; skin=&quot;minimalist&quot; /]</pre></div></div>

<div class='flowplayer functional ' id='hana_flv_flow5_2' style='width:400px; height:225px; ' title='' >
	   			<video src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4'  style='background-color:black'   preload='true'></video>
			</div>
<p><script type='text/javascript'>
			jQuery('#hana_flv_flow5_2').flowplayer({ });
			</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;6&quot; skin=&quot;functional&quot; /]</pre></div></div>

<style>#hana_flv_flow5_3 {  background: #000 url(http://wpmarketing.org/wp-content/plugins/hana-flv-player/splash.jpg) 0 0 no-repeat; background-size: 100%; }</style>
<div class='flowplayer playful ' id='hana_flv_flow5_3' style='width:400px; height:225px; ' title='' >
	   			<video src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4'  style='background-color:black'   preload='true'></video>
			</div>
<p><script type='text/javascript'>
			jQuery('#hana_flv_flow5_3').flowplayer({ });
			</script></p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[hana-flv-player video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
width=&quot;400&quot; height=&quot;autow&quot;
player=&quot;6&quot; skin=&quot;playful&quot; 
splashimage=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/splash.jpg&quot; /]</pre></div></div>

";}i:4;a:13:{s:5:"title";s:75:"Support Video for All Browsers by Adding MediaElement.js to Hana Flv Player";s:4:"link";s:107:"http://wpmarketing.org/2012/05/support-video-for-all-browsers-by-adding-mediaelement-js-to-hana-flv-player/";s:8:"comments";s:116:"http://wpmarketing.org/2012/05/support-video-for-all-browsers-by-adding-mediaelement-js-to-hana-flv-player/#comments";s:7:"pubdate";s:31:"Sun, 06 May 2012 05:57:17 +0000";s:2:"dc";a:1:{s:7:"creator";s:9:"HanaDaddy";}s:8:"category";s:76:"WordpressWordpress PluginsAndroidh264HTML5iPadiPhoneMediaElement.jsvideo tag";s:4:"guid";s:29:"http://wpmarketing.org/?p=680";s:11:"description";s:309:"About a month ago I started to fix issues for my WordPress Plugin&#160; , Hana Flv Player, which the problem was related to the latest WordPress version 3.3.1. Fortunately, I was able to fix it pretty fast by searching the Internet, thanks to the Google. I haven’t been looked at my plugin for a while [...]";s:7:"content";a:1:{s:7:"encoded";s:10665:"<p>About a month ago I started to fix issues for my WordPress Plugin&#160; , <a href="http://wordpress.org/extend/plugins/hana-flv-player/">Hana Flv Player</a>, which the problem was related to the latest WordPress version 3.3.1. Fortunately, I was able to fix it pretty fast by searching the Internet, thanks to the Google. I haven’t been looked at my plugin for a while because I thought it had pretty much all the necessary features to play video files. Basically it’s a plugin that contains GPL licensed flash video players. And WordPress users can easily embed Flash videos with simple shortcode.</p>
<p>But while I was working on the bug, I realized that Flash is not supported by Apple’s iOS which means my Hana Flv Player would not run the videos under Apple devices. That would be really terrible for the WP users who are using my plugin since the Apple devices are really popular these days. </p>
<p>So I started to check the latest technology and found that iOS Safari browser is capable of handling HTML5 <code>&lt;video&gt;</code> tag. Then I checked what HTML5 <code>&lt;video&gt;</code> tag’s capabilities are. Basically it allows browsers to show the video without Flash. Great! And there are already many GPL HTML5 players out there, so I decided to include one of them to provide my plugin users an option to support all the browsers out there.</p>
<p>I have checked out various HTML5 players , but at last, I choose <a href="http://mediaelementjs.com/">MediaElement.js</a> as the solution because</p>
<ol>
<li>It successfully supports video to run under all the browsers including Firefox, Chrome, Safari, Internet Explore, iPod, iPhone, iPad, and Android (phone and tablets). </li>
<li>Seems to be actively maintained in github <a title="https://github.com/johndyer/mediaelement" href="https://github.com/johndyer/mediaelement">https://github.com/johndyer/mediaelement</a> </li>
<li>Flash player as fall back for non HTML5 video supporting browsers. What I really liked about this is that it was developed as part of the project, has no watermark whatsoever, and the flash players controls are not part of the flash but all CSS and Javascript controlled, so the same design look can be maintained throughout all the browsers whether it support HTML5 or not. (Other HTML5 players were packaged with 3rd party Flash Player which is not GPL licensed or with the company’s unremovable watermark. ) </li>
<li>According to the MediaElement.js homepage, they say if video is encoded with H.264 (mp4 container) , all browsers are supported. Then there is no need to encode the same file to several different encoded files to support native HTML5 function and browsers playing capabilities. </li>
</ol>
<p>Okay, I was naive thinking simply implementing the MediaElement.js according to the instruction would complete it. I didn’t fully tested the functions such as “AUTOPLAY” and under Android devices. ( Unfortunately, I do not have any Apple devices , so I couldn’t test it anyway) But apparently there were minor issues with MediaElement.js.</p>
<p>First, ‘autoplay’ attribute of video tag was not acting correctly just with three major browsers (IE, Firefox, Chrome) . It appears that this was caused by the browser issue. After several trial and errors , I was able to fix this.</p>
<p>Second, ‘autoplay’ attribute is not working under iPhone, iPad , and Android OS. According to the Internet search, the autoplay feature are intentionally blocked for Android and iOS to prevent any unwanted high data bandwidth usage charge. But the problem was that the video itself was not responding at all.&#160; So I have added a javascript routine to activate autoplay attribute only if the client browser is a non mobile version.</p>
<p>Third, I had added a feature (using ‘more_5’ attribute to the hana-flv-player tag) to define additional options for MediaElement.js player. ( See “Player Options” of <a href="http://mediaelementjs.com/">MediaElement.js</a> website for available options) For example, you can add or remove parts of the video control buttons by assigning options in ‘more_5’ attribute. Below example shows only play and pause control button and set the volume 20% of the max sound volume.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[hana-flv-player 
    video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
    description=&quot;Hana is having fun while sleding&quot;
    width='500' height='autow'
    player=&quot;5&quot;
    more_5=&quot;features: ['playpause'],startVolume: 0.2&quot; 
 /]</pre></div></div>

<p>
<div style='padding:0;margin:0; border:0;'><video  id='hana_flv_media_5'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='500' height='281'
	preload='true'     controls='controls' >	<object width="500" height="281" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" />*Video:hana is having fun while sleding
	</object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_5').mediaelementplayer({ pauseOtherPlayers: false ,features: ['playpause'], startVolume: 0.2, pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script> </p>
<p>Fourth, Google Analytics event tracking feature is enabled for MediaElement.js. It was previously available only for FlowPlayer v3. By using Event Tracking, you are able to track how many times the video is watched and when it was paused. For more information about event tracking setup and usage, check <a href="http://wpmarketing.org/forum/topic/howto-google-analytics-event-tracking-with-hana-flv-player">this forum article</a>. </p>
<p>Finally, I tested with my Android 2.2 phone and Android 3.1 Honeycomb. Note that the video does play inline (in browser webpage) with Android 3.1 but it plays in a separate popup video player when runs with Android 2.2 phone. Also I found that all of my H.264 encoded videos didn’t play in Android 2.2 phone. So I had to check out the Internet for the right solutions.</p>
<p>Android 2.x is very sensitive about the video encoding and only processes video files with video encoding of H.264 Baseline protocol (avc1)&#160; and audio encoding of AAC. I further searched the resources how to generate such video files with the free and popular FFmpeg video command line tool. Using FFmpeg is not an easy task with such many available arguments. It is really hard to find the correct arguments. Note that you also need to run qt-faststart to move video metadata into the first section of the video, so the player can show them right away without full downloading the movie. Also there is a free version of Any Video Convert commercial software which automatically use these encodings when converted to MP4 movie. (See more information about this in <a href="http://wpmarketing.org/forum/topic/hana-flv-player-supported-video-types-flv-h264mp4">forum post</a>)&#160; </p>
<p>And here is the answer that I found for generating video files for Android 2.x (Video:H.264 Baseline , Audio: AAC). input.flv is the original video file that is used as input file of ffmpeg. The output file is output.mp4. However, since you still need to run the qt-faststart, the output-final.mp4 is the actual final mp4 file.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ffmpeg  -i  input.flv -vcodec libx264 -vprofile baseline -threads 0 -acodec aac -sameq -preset fast -strict -2 output.mp4
&nbsp;
qt-faststart output.mp4 output-final.mp4</pre></div></div>

<p><strong>So to summarize , you must set below options to serve video under all browsers and platforms when using Hana Flv Player. </strong></p>
<ol>
<li><strong>Use Hana Flv Player player 5 ? MediaElement.js</strong></li>
<li><strong>All videos must be encoded with Video:H.264 Baseline and Audio: AAC</strong></li>
</ol>
<p>I am still feeling the testing is incomplete that I couldn’t test with iPhone and/or iPad, but you can test and let me know if you find any issues. And maybe I will get iPhone after my current wireless phone plan expires.</p>
<p>Please leave comment if you have any questions. Here are some of the references that helped me while I worked on this implementation.</p>
<p>Thank you for using my WordPress Plugin and reading my blog article.</p>
<p>&#160;</p>
<p><strong>Other HTML5 video player reference and video players</strong></p>
<ul>
<li><a href="http://html5video.org/wiki/HTML5_Player_Comparison">HTML5 Video Player comparison chart</a> </li>
<li><a href="http://www.projekktor.com/">PROJECKKTOR</a> </li>
<li><a href="http://videojs.com/">VideoJS</a> </li>
</ul>
<p><strong>Android 2.x + compatible video creation open source software download Links</strong></p>
<ul>
<li>FFmpeg (<a href="http://ffmpeg.org)">http://ffmpeg.org)</a> Windows compiled version that I used : <a href="http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120421-git-9849515-win32-static.7z">http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120421-git-9849515-win32-static.7z</a> </li>
<li>Windows compiled version of qt-faststart ( <a href="http://multimedia.cx/eggs/improving-qt-faststart/">http://multimedia.cx/eggs/improving-qt-faststart/)</a>&#160;<a href="http://notboring.org/downloads/video/qt-faststart.zip">http://notboring.org/downloads/video/qt-faststart.zip</a> </li>
</ul>
<p><strong>Android 2.x + compatible video encoding references </strong></p>
<ul>
<li><a href="http://alien.slackbook.org/blog/re-encoding-video-for-android/">http://alien.slackbook.org/blog/re-encoding-video-for-android/</a> </li>
<li><a href="http://ffmpeg.org/trac/ffmpeg/ticket/387?cversion=1&amp;cnum_hist=6">http://ffmpeg.org/trac/ffmpeg/ticket/387?cversion=1&amp;cnum_hist=6</a> </li>
<li><a href="http://diveintohtml5.info/video.html">http://diveintohtml5.info/video.html</a> (Using Handbrake to create Mobile friendly h264 video) </li>
</ul>
";}s:3:"wfw";a:1:{s:10:"commentrss";s:112:"http://wpmarketing.org/2012/05/support-video-for-all-browsers-by-adding-mediaelement-js-to-hana-flv-player/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"2";}s:7:"summary";s:309:"About a month ago I started to fix issues for my WordPress Plugin&#160; , Hana Flv Player, which the problem was related to the latest WordPress version 3.3.1. Fortunately, I was able to fix it pretty fast by searching the Internet, thanks to the Google. I haven’t been looked at my plugin for a while [...]";s:12:"atom_content";s:10665:"<p>About a month ago I started to fix issues for my WordPress Plugin&#160; , <a href="http://wordpress.org/extend/plugins/hana-flv-player/">Hana Flv Player</a>, which the problem was related to the latest WordPress version 3.3.1. Fortunately, I was able to fix it pretty fast by searching the Internet, thanks to the Google. I haven’t been looked at my plugin for a while because I thought it had pretty much all the necessary features to play video files. Basically it’s a plugin that contains GPL licensed flash video players. And WordPress users can easily embed Flash videos with simple shortcode.</p>
<p>But while I was working on the bug, I realized that Flash is not supported by Apple’s iOS which means my Hana Flv Player would not run the videos under Apple devices. That would be really terrible for the WP users who are using my plugin since the Apple devices are really popular these days. </p>
<p>So I started to check the latest technology and found that iOS Safari browser is capable of handling HTML5 <code>&lt;video&gt;</code> tag. Then I checked what HTML5 <code>&lt;video&gt;</code> tag’s capabilities are. Basically it allows browsers to show the video without Flash. Great! And there are already many GPL HTML5 players out there, so I decided to include one of them to provide my plugin users an option to support all the browsers out there.</p>
<p>I have checked out various HTML5 players , but at last, I choose <a href="http://mediaelementjs.com/">MediaElement.js</a> as the solution because</p>
<ol>
<li>It successfully supports video to run under all the browsers including Firefox, Chrome, Safari, Internet Explore, iPod, iPhone, iPad, and Android (phone and tablets). </li>
<li>Seems to be actively maintained in github <a title="https://github.com/johndyer/mediaelement" href="https://github.com/johndyer/mediaelement">https://github.com/johndyer/mediaelement</a> </li>
<li>Flash player as fall back for non HTML5 video supporting browsers. What I really liked about this is that it was developed as part of the project, has no watermark whatsoever, and the flash players controls are not part of the flash but all CSS and Javascript controlled, so the same design look can be maintained throughout all the browsers whether it support HTML5 or not. (Other HTML5 players were packaged with 3rd party Flash Player which is not GPL licensed or with the company’s unremovable watermark. ) </li>
<li>According to the MediaElement.js homepage, they say if video is encoded with H.264 (mp4 container) , all browsers are supported. Then there is no need to encode the same file to several different encoded files to support native HTML5 function and browsers playing capabilities. </li>
</ol>
<p>Okay, I was naive thinking simply implementing the MediaElement.js according to the instruction would complete it. I didn’t fully tested the functions such as “AUTOPLAY” and under Android devices. ( Unfortunately, I do not have any Apple devices , so I couldn’t test it anyway) But apparently there were minor issues with MediaElement.js.</p>
<p>First, ‘autoplay’ attribute of video tag was not acting correctly just with three major browsers (IE, Firefox, Chrome) . It appears that this was caused by the browser issue. After several trial and errors , I was able to fix this.</p>
<p>Second, ‘autoplay’ attribute is not working under iPhone, iPad , and Android OS. According to the Internet search, the autoplay feature are intentionally blocked for Android and iOS to prevent any unwanted high data bandwidth usage charge. But the problem was that the video itself was not responding at all.&#160; So I have added a javascript routine to activate autoplay attribute only if the client browser is a non mobile version.</p>
<p>Third, I had added a feature (using ‘more_5’ attribute to the hana-flv-player tag) to define additional options for MediaElement.js player. ( See “Player Options” of <a href="http://mediaelementjs.com/">MediaElement.js</a> website for available options) For example, you can add or remove parts of the video control buttons by assigning options in ‘more_5’ attribute. Below example shows only play and pause control button and set the volume 20% of the max sound volume.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[hana-flv-player 
    video=&quot;http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&quot;
    description=&quot;Hana is having fun while sleding&quot;
    width='500' height='autow'
    player=&quot;5&quot;
    more_5=&quot;features: ['playpause'],startVolume: 0.2&quot; 
 /]</pre></div></div>

<p>
<div style='padding:0;margin:0; border:0;'><video  id='hana_flv_media_5'  src='http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4' width='500' height='281'
	preload='true'     controls='controls' >	<object width="500" height="281" type="application/x-shockwave-flash" data="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf"><param name="movie" value="http://wpmarketing.org/wp-content/plugins/hana-flv-player/mediaelement/build/flashmediaelement.swf" /><param name="flashvars" value="controls=true&amp;file=http://wpmarketing.org/wp-content/plugins/hana-flv-player/hana_sleding.mp4&amp;poster=" />*Video:hana is having fun while sleding
	</object></video></div>

<script type='text/javascript'>

				jQuery('#hana_flv_media_5').mediaelementplayer({ pauseOtherPlayers: false ,features: ['playpause'], startVolume: 0.2, pluginType:'youtube'  , success: function(me) {

					me.addEventListener('play', function() { hanaTrackEvents('Videos', 'Play', me.src,0); }, false);
					me.addEventListener('pause', function() { hanaTrackEvents('Videos', 'Pause', me.src, parseInt(me.currentTime) ); }, false);
					me.addEventListener('ended', function() { hanaTrackEvents('Videos', 'Finish', me.src,0) }, false);
					 } });
				</script> </p>
<p>Fourth, Google Analytics event tracking feature is enabled for MediaElement.js. It was previously available only for FlowPlayer v3. By using Event Tracking, you are able to track how many times the video is watched and when it was paused. For more information about event tracking setup and usage, check <a href="http://wpmarketing.org/forum/topic/howto-google-analytics-event-tracking-with-hana-flv-player">this forum article</a>. </p>
<p>Finally, I tested with my Android 2.2 phone and Android 3.1 Honeycomb. Note that the video does play inline (in browser webpage) with Android 3.1 but it plays in a separate popup video player when runs with Android 2.2 phone. Also I found that all of my H.264 encoded videos didn’t play in Android 2.2 phone. So I had to check out the Internet for the right solutions.</p>
<p>Android 2.x is very sensitive about the video encoding and only processes video files with video encoding of H.264 Baseline protocol (avc1)&#160; and audio encoding of AAC. I further searched the resources how to generate such video files with the free and popular FFmpeg video command line tool. Using FFmpeg is not an easy task with such many available arguments. It is really hard to find the correct arguments. Note that you also need to run qt-faststart to move video metadata into the first section of the video, so the player can show them right away without full downloading the movie. Also there is a free version of Any Video Convert commercial software which automatically use these encodings when converted to MP4 movie. (See more information about this in <a href="http://wpmarketing.org/forum/topic/hana-flv-player-supported-video-types-flv-h264mp4">forum post</a>)&#160; </p>
<p>And here is the answer that I found for generating video files for Android 2.x (Video:H.264 Baseline , Audio: AAC). input.flv is the original video file that is used as input file of ffmpeg. The output file is output.mp4. However, since you still need to run the qt-faststart, the output-final.mp4 is the actual final mp4 file.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ffmpeg  -i  input.flv -vcodec libx264 -vprofile baseline -threads 0 -acodec aac -sameq -preset fast -strict -2 output.mp4
&nbsp;
qt-faststart output.mp4 output-final.mp4</pre></div></div>

<p><strong>So to summarize , you must set below options to serve video under all browsers and platforms when using Hana Flv Player. </strong></p>
<ol>
<li><strong>Use Hana Flv Player player 5 ? MediaElement.js</strong></li>
<li><strong>All videos must be encoded with Video:H.264 Baseline and Audio: AAC</strong></li>
</ol>
<p>I am still feeling the testing is incomplete that I couldn’t test with iPhone and/or iPad, but you can test and let me know if you find any issues. And maybe I will get iPhone after my current wireless phone plan expires.</p>
<p>Please leave comment if you have any questions. Here are some of the references that helped me while I worked on this implementation.</p>
<p>Thank you for using my WordPress Plugin and reading my blog article.</p>
<p>&#160;</p>
<p><strong>Other HTML5 video player reference and video players</strong></p>
<ul>
<li><a href="http://html5video.org/wiki/HTML5_Player_Comparison">HTML5 Video Player comparison chart</a> </li>
<li><a href="http://www.projekktor.com/">PROJECKKTOR</a> </li>
<li><a href="http://videojs.com/">VideoJS</a> </li>
</ul>
<p><strong>Android 2.x + compatible video creation open source software download Links</strong></p>
<ul>
<li>FFmpeg (<a href="http://ffmpeg.org)">http://ffmpeg.org)</a> Windows compiled version that I used : <a href="http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120421-git-9849515-win32-static.7z">http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120421-git-9849515-win32-static.7z</a> </li>
<li>Windows compiled version of qt-faststart ( <a href="http://multimedia.cx/eggs/improving-qt-faststart/">http://multimedia.cx/eggs/improving-qt-faststart/)</a>&#160;<a href="http://notboring.org/downloads/video/qt-faststart.zip">http://notboring.org/downloads/video/qt-faststart.zip</a> </li>
</ul>
<p><strong>Android 2.x + compatible video encoding references </strong></p>
<ul>
<li><a href="http://alien.slackbook.org/blog/re-encoding-video-for-android/">http://alien.slackbook.org/blog/re-encoding-video-for-android/</a> </li>
<li><a href="http://ffmpeg.org/trac/ffmpeg/ticket/387?cversion=1&amp;cnum_hist=6">http://ffmpeg.org/trac/ffmpeg/ticket/387?cversion=1&amp;cnum_hist=6</a> </li>
<li><a href="http://diveintohtml5.info/video.html">http://diveintohtml5.info/video.html</a> (Using Handbrake to create Mobile friendly h264 video) </li>
</ul>
";}}s:7:"channel";a:8:{s:5:"title";s:12:"WP Marketing";s:4:"link";s:22:"http://wpmarketing.org";s:11:"description";s:46:"Wordpress for Internet and Affiliate Marketing";s:13:"lastbuilddate";s:31:"Thu, 17 Apr 2014 14:46:16 +0000";s:8:"language";s:2:"en";s:2:"sy";a:2:{s:12:"updateperiod";s:6:"hourly";s:15:"updatefrequency";s:1:"1";}s:9:"generator";s:29:"http://wordpress.org/?v=3.3.2";s:7:"tagline";s:46:"Wordpress for Internet and Affiliate Marketing";}s:9:"textinput";a:0:{}s:5:"image";a:0:{}s:9:"feed_type";s:3:"RSS";s:12:"feed_version";s:3:"2.0";s:5:"stack";a:0:{}s:9:"inchannel";b:0;s:6:"initem";b:0;s:9:"incontent";b:0;s:11:"intextinput";b:0;s:7:"inimage";b:0;s:13:"current_field";s:0:"";s:17:"current_namespace";b:0;s:19:"_CONTENT_CONSTRUCTS";a:6:{i:0;s:7:"content";i:1;s:7:"summary";i:2;s:4:"info";i:3;s:5:"title";i:4;s:7:"tagline";i:5;s:9:"copyright";}s:13:"last_modified";s:29:"Wed, 22 Oct 2014 07:19:47 GMT";}