Title: odd behavior on iPhone
Last modified: August 20, 2016

---

# odd behavior on iPhone

 *  [newpixel](https://wordpress.org/support/users/newpixel/)
 * (@newpixel)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/odd-behavior-on-iphone/)
 * Hi
 * I installed the plugin and it works great in Safari on my MacBook.
 * But I just viewed the page on my iPhone – I’ve got autoplay set to true, and 
   instead of staying embedded on the page, the video goes full screen (by itself)
   and starts playing. The normal behavior is for the video to autoplay with no 
   controls, embedded on the page: [http://www.artistsofliving.com/?page_id=29](http://www.artistsofliving.com/?page_id=29)
 * Here is the shortcode I’m using:
    [video mp4="http://www.artistsofliving.com/
   video/torsoBlue-raw.mp4" width="280" height="240" autoplay="true" loop="true"
   controls="false" class="alignleft"]
 * Anyway to fix this? Maybe a way to conditionally set autoplay to false on mobile
   devices? If not, no big deal…
 * Thanks
 * [http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/](http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Dustin Lammiman](https://wordpress.org/support/users/nosecreek/)
 * (@nosecreek)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/odd-behavior-on-iphone/#post-3163400)
 * iOS (and probably other mobile OSes as well) will only play videos in full screen,
   not embedded in the page, so what you are seeing is the expected behaviour. As
   you said, there should be a way to detect if the device is mobile (probably using
   jQuery) and then disable autoplay using the [Video.js API](http://videojs.com/docs/api/).(
   actually it may be better to do it in reverse – disable autoplay by default and
   then use the play method to autoplay on regular screens) I can’t guide you through
   this process, but hopefully that link and a bit of Googling will point you in
   the right direction.
 *  Thread Starter [newpixel](https://wordpress.org/support/users/newpixel/)
 * (@newpixel)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/odd-behavior-on-iphone/#post-3163402)
 * Thank you Dustin… I’ll dust off my jQuery and begin hacking 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘odd behavior on iPhone’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/videojs-html5-video-player-for-wordpress.
   svg)
 * [Video.js - HTML5 Video Player for Wordpress](https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/)
 * [Support Threads](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [newpixel](https://wordpress.org/support/users/newpixel/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/odd-behavior-on-iphone/#post-3163402)
 * Status: not resolved