I have the JW player plugin installed on a blog of mine. It is not html5, but the video is playable on my iphone.
Earthquake Immediate Aftermath On the Ground in Port-au-Prince, Haiti « HitFound.com
How do I change the player and/or the code so it works like that?
I took a look at the code in the plugin, check it out.
This is a very simple plug-in for wordpress so we should be able to make it work with this script. It doesn't involve HTML 5 or anything special, just a regular youtube link.Code:// designed to show YouTube Video on his embed code for iPhone devices if(!empty($this->flv) && $this->isYouTubeURL(urldecode($this->flv))){ $ytid = $this->getYouTubeID(urldecode($this->flv)); $this->fixmobilestyle = false; echo "\n<style type=\"text/css\">\n.post object,.post embed{width:100% !important;height:auto;position:relative;z-index:0;}\n</style>\n"; return $this->genYouTubeEmbed($ytid); }else{ $last_object = __('(Video: Available only on a desktop browser)', 'stream-video-player'); } } }else{ $image_obj = (empty($this->image))?'':' data="'.$this->image.'"'; $image_param = (empty($this->image))?'':'<param name="src" value="'.$this->image.'"/>'; $last_object='<!--[if !IE]>--><object type="video/mp4"'.$image_obj.$width.$height.'>'."\n". '<param name="controller" value="false"/>'."\n". '<param name="target" value="myself"/>'."\n". '<param name="href" value="'.$this->mp4.'"/>'."\n". $image_param."\n". '<!--<![endif]-->'; if(!$this->mobile){ $last_object .= $this->message; }else{ $last_object .= __('(video)', 'stream-video-player'); } $last_object .= '<!--[if !IE]>-->'. '</object>'. '<!--<![endif]-->'. "\n"; }
Here is a screenshot of what it looks like on my iphone.
![]()



LinkBack URL
About LinkBacks




Reply With Quote

