Support » Fixing WordPress » My MP3 audio files get cut off on mobile devices but work on PCs.

  • I’ve just tried the RC but my audio files aren’t playing properly on mobile devices. What can I do to fix this?

    The files are perfect on a PC.

    I tried disabling all the plugins and using a default theme but that didn’t work so I have enabled them again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Dominik Schilling

    (@ocean90)

    WordPress Core Developer

    Does it work with 4.4.2?

    If I have one file now yes but multiple files on the page cause some type of problem. It used to work long ago on a version before 4.4.2 but I’m not sure which update has caused the problem (core updates).

    Here is the code I used on a page if it helps fix the problem.

    Welcome
    [audio src="http://agreatdream.com/quiz/audio/test4.mp3" /]
    
    <hr />
    
    <span style="color: #000000;">What questions</span>
    
    <hr />
    
    What's your <span style="text-decoration: underline;">name</span>?
    first name, last name, favorite drink, favorite food, email address...
    お名前は何ですか?
    [audio src="http://agreatdream.com/audio/whats-your-name---agreatdream-com.mp3" /]
    
    What's that?
    あれは何ですか?
    [audio src="http://agreatdream.com/audio/whats-that---agreatdream-com---glen-charles-rowell.mp3" /]
    
    What are you doing <span style="text-decoration: underline;">tonight</span>?
    tomorrow, on Sunday, on the weekend, next week, on your day-off, during the holidays...
    今夜何をしますか?
    [audio src="http://agreatdream.com/quiz/audio/what-are-you-doing-tonight---agreatdream-com.mp3" /]
    
    What do you call that in English?
    あれを英語でなんと言うのですか?
    [audio src="http://agreatdream.com/audio/what-do-you-call-that-in-english---agreatdream-com---glen-charles-rowell.mp3" /]
    
    <hr />
    
    <span style="color: #000000;">How questions</span>
    
    <hr />
    
    How are you?
    元気ですか?
    [audio src="http://agreatdream.com/quiz/audio/how-are-you---agreatdream-com.mp3" /]
    
    How old <span style="text-decoration: underline;">are you</span>?
    is she, is he, are they, were you, will you be, is it...
    何歳ですか?
    [audio src="http://agreatdream.com/quiz/audio/how-old-are-you---agreatdream-com.mp3" /]
    
    <hr />
    
    <span style="color: #000000;">Can questions</span>
    
    <hr />
    
    Can I <span style="text-decoration: underline;">have one please</span>?
    go, stay, get one, sit here, turn off the heater, pay by card...
    一ついただいてもいいですか?
    [audio src="http://agreatdream.com/quiz/audio/can-i-have-one-please---agreatdream-com.mp3" /]
    
    <hr />
    
    <span style="color: #000000;">Do questions</span>
    
    <hr />
    
    Do you <span style="text-decoration: underline;">have red</span>?
    like tea, want a drink, have free time (on) Monday night, need some paper, want the (news)paper, come here often, have your own computer...
    赤ありますか?
    [audio src="http://agreatdream.com/quiz/audio/do-you-have-red---agreatdream-com.mp3" /]
    
    <hr />
    
    <span style="color: #000000;">Would questions</span>
    
    <hr />
    
    Would you like me to fill out <span style="text-decoration: underline;">the contract</span>?
    this form, the questionnaire, those papers...
    契約書に書き入れましょうか?
    [audio src="http://agreatdream.com/audio/would-you-like-me-to-fill-out-the-contract---agreatdream-com---glen-charles-rowell.mp3" /]
    
    <hr />
    
    <span style="color: #000000;">答え練習 | Answer Practice</span>
    
    <hr />
    
    Yes please.
    はい。欲しいです。
    [audio src="http://agreatdream.com/quiz/audio/yes-please---agreatdream-com.mp3" /]
    
    No thank you.
    いいえ。いらないです。
    [audio src="http://agreatdream.com/quiz/audio/no-thank-you---agreatdream-com.mp3" /]
    <p style="text-align: center;"><strong><img class="aligncenter" title="speakers" src="http://agreatdream.com/wp-content/uploads/2011/06/lacie-usb-speakers.jpg" alt="" width="265" height="189" /></strong></p>
    <a title="Study Japanese" href="http://agreatdream.com/study-japanese">Study Japanese</a>
    
    <hr />

    Do you get the same problem too?

    Moderator Marius L. J.

    (@clorith)

    Hi,

    I’ve tried replicating your issue using the content your provided here, but all the audio files play perfectly fine on my mobile device as well as my PC.

    What mobile device are you testing it on where this fails?

    Could you also expand on what you mean by not “playing properly”, do they start playing then stop abruptly before ending, do they stutter, is the audio corrupted in any way?

    The sound starts playing on my iPhone 6 (iOS 9.3) but then stops suddenly.

    It stops playing after about 1/2 a second on a 2 second file as an example.

    Is there anything I could add to the .htaccess file to fix the problem. I guess there isn’t but I’ve been trying to fix this for a long time with any headway.

    Moderator Marius L. J.

    (@clorith)

    Hi,

    I’ve had a chance to test this on a few iOS devices, and it does not appear to be a WordPress issue, but rather an iOS one.

    On any iOS version <9.x things work perfectly fine, on 9.x they will indeed buffer the whole content but only play the first half a second and then reset.

    This behavior is identical on at least WordPress 4.4.2 as well, as such I’m going to move this thread out of the Alpha/Beta forums.

    I have created a ticket for it, as I don’t know if this is caused by our implementation of mediaelements.js or if it’s an actual iOS bug.

    You can follow the ticket at https://core.trac.wordpress.org/ticket/36374

    Thank you so much for testing this Marius. It was driving me mad and I’ve tried so many things with no way of fixing it.

    If mediaelements.js can be rewritten in anyway to fix this it would be amazing. I’m willing to try any code as a guinea pig.

    I will also report this bug to Apple tomorrow but Apple really needs to get their act together they still haven’t fixed the linegate bug found 2 years ago either.

    ———————————————-
    * Sorry for writing this extra bit here but more people need to know about the linegate bug and report it to Apple to help get it fixed.

    Apple has known about the linegate bug for about 2 years now and said they would fix it but they still haven’t done anything. Does anyone here have any contacts at Apple? This is a link to a sample of the line bug (http://a4jp.com/info.html)

    Any fixes for this yet? The end of my sounds still get cut off on my iPhone 7 iOS 10.

    jodiclarke

    (@jodiclarke)

    hi there, im running all the latest wordpress, wishlist, ios etc…

    mp3’s just stopped playing on my wordpress hosted membership site on iphones only.

    me and my customers have been searching for the answer for days! anyone have any suggestions?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘My MP3 audio files get cut off on mobile devices but work on PCs.’ is closed to new replies.