Support » Plugin: Youtube shortcode » Videos not loading correctly on iOS devices

Viewing 5 replies - 1 through 5 (of 5 total)
  • yep I’m getting the same thing on iOS 6.1.3. Any ideas yet?

    I’ve got rid of this plugin as I don’t actually need it, can use oEmbed:

    http://codex.wordpress.org/Embeds

    Unfortunately all my previous embeds will need to be changed, a real PITA!

    I’m having the same issue.
    Anyone ever find a fix for this?

    I’ve got the same issue, the problem is the plugin is detecting the device and loading a different code. Basically is calling the prefix vnd.youtube for android and iOS. Now the iOS prefix for youtube is just “youtube” so the solution is really simple:

    youtube_shortcode.php ::: line 206

    OLD
    // Embedded Youtube player
                if ($this->ios || $this->android) {
                    $link = 'vnd.youtube:'.$video_id;
                // Link to Youtube's mobile site
    	     } else {
    
    SOLUTION
    // Embedded Youtube player
                if ($this->android) {
                    $link = 'vnd.youtube:'.$video_id;
                // Link to Youtube's mobile site
       	     } else if ($this->ios) {
    	    $link = 'youtube:'.$video_id;
                } else {

    Awesome.
    Works perfectly now!
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Videos not loading correctly on iOS devices’ is closed to new replies.