WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Video player does not load inside tinymce when editing post (6 posts)

  1. Fab1en
    Member
    Posted 3 months ago #

    The new mediaelement video player inside tinymce is awesome, but I found that sometimes it does not load properly.
    Here is what the steps I followed :
    1. Install a fresh new WordPress 3.9 beta 3 instance on my local machine
    2. Create a new post, and click on "Add Media" button
    3. Select a video from my hard drive and upload it, then insert it into the post with "Embed Media Player" option selected.
    4. The mediaelement player is working well inside tinymce. I can play the video, edit it, add a poster image ...
    5. Save the post, then navigate away and come back to the post edition page : the tinymce iframe is void and my browser is constantly loading something (Ubuntu/Chromium). I cannot click anywhere on the page and cannot close the browser tab. On Firefox, I have a message after 30 seconds : "Warning, the script does not respond" : wp-includes/js/jquery.js

    I tried with define('SCRIPT_DEBUG', true); and I do not have any theme or plugin installed.

    If I stop the script execution, I can still click on the edit button to change the video settings, and mediaelement player works great in the edition page. It also works great when I display the video on the front-end site, or via the Media menu. But mediaelement player is dead inside tinymce.

  2. Scott Taylor
    WordPress Dev
    Posted 3 months ago #

    what video type is it?

  3. Fab1en
    Member
    Posted 3 months ago #

    I tried with a WebM one and a MP4 with H264 codec. The result is the same.
    I don't think that the video type is involved here, because the player is working well via the Media menu and within the Backbone Media Library.

    I think it's a conflict with the new Tinymce 4.0. I'll try to downgrade to the previous version to see what happens.

    Do you see any other debug directions in which I could look ?

  4. 3. Select a video from my hard drive and upload it, then insert it into the post with "Embed Media Player" option selected.
    4. The mediaelement player is working well inside tinymce. I can play the video, edit it, add a poster image ...

    Huh....

    With an MP4, I don't get the 'Embed Media Player' right away. I had to close and go back into the media modal

    https://cloudup.com/cZnSxQSN2Tm

    Once I save and go back I can embed, though it doesn't show the player:

    https://cloudup.com/cyxl2cgFTA5

    The editor works though:

    https://cloudup.com/c9FHU_Z9KqC

  5. Fab1en
    Member
    Posted 3 months ago #

    Thanks Mika for your support.
    I do not reproduce exactly the same behavior as the one you are describing : for me, the "Embed Media Player" shows right after the video upload, without the need to close and go back into the media modal. And then, the media player is working fine. I have to save the post, go to WP Dashboard and then come back to my post edit screen to see the bug.

    @Scott : I tried the same test with 3.9 RC1 published yesterday, and the bug is gone. I can still reproduce it with the 3.9 beta 3 if you are interested to debug this strange behavior.

  6. If your issues are fixed in RC1, we're good :) I'm marking this resolved (and will bang on my own tests)

Reply

You must log in to post.

About this Topic