Forums

Embed a video: works as admin, fails as author (embedded code disappears)

  1. Hi,

    Many people have reported on this forum that embedding a video in a post doesn't quite work (and I haven't seen any solution). The embedded HTML markup for the video always ends up disappearing, replaced by < br / > < br / >. The same has bothered me over the last days and I think I may have found a hint of explanation: it isn't the theme's fault (Atahualpa in my case), it isn't a plugin-for-mobile's fault (e.g. WPTouch), it seems to be a user role problem.

    The issue
    1. Create a new post.
    2. Upload a video (WordPress app video settings = HTML 4).
    3. Insert the video above/under content.
    4. You end up with < br / > < br / > in place of the video (either directly or as soon as you publish/update the post).

    Possible cause?
    This issue occurs when I create an article being an "author". If I try the same being an "admin" (I have two logins), then it simply works. The <object>...</object> markup stays put. I can view the video on my iPhone (accessing my site via the Safari app) and I can view it from a regular computer-based internet browsers.

    For info, my site is a self-hosted site. It runs WordPress 3.3.1. I use the WordPress app version 2.9.6 on an iPhone 4S (iOS 5.1).

    To be investigated further...

    dcclxi

  2. Well, it didn't take long, here is a solution!

    My site uses the User Role Editor plugin. This helps among others to see what users with different roles can do and cannot do.

    For an author, the capability Unfiltered HTML is deactivated. My guess is that it means any nonallowed HTML markup is automatically removed from posts, hence the disappearance of the video embed <object>...</object> HTML markup.

    I activated that capability (I trust my few authors) and the embedding of videos via the WordPress app now works just fine for authors as well!

    I guess the origin of the issue is therefore with WordPress itself, rather than the WordPress app, a theme or a plugin.

    I hope this helps others!

  3. Thanks a lot for figuring this out :)

  4. Hi, thanks for this. I also figured this out as I was also using a user capabilities plugin and the unfiltered HTML was the issue. The only problem I am having now is that my videos are not playing on the iPad in any web browser (I have tried Safari, Skyfire and Rover).

    They appear as black boxes with the play button with a line through it. This is the case using both HTML 4 and 5 tags. However the video work fine when viewed on my mac through Safari or Chrome. I have tried uploading videos through the Wordpress app recorded straight into it and also ones created in The iMovie app and they all have the same issue. I have also tried adding the same videos on Wordpress through my MacBook - adding them as media and they still do not play.

    It seems to be a video compatibility issue but seems strange as the videos were created on the iPad so you would assume they would also play on the iPad? Is anyone else having this problem or has anyone managed to get their videos to play on their Wordpress blog on their iPad?

    Any help would be much appreciated as this has been doing my head in for ages! Lol

  5. saz_l
    Member
    Apr 18, 2012, 9:54 AM

    Hi, thanks for this. I also figured this out as I was also using a user capabilities plugin and the unfiltered HTML was the issue. The only problem I am having now is that my videos are not playing on the iPad in any web browser (I have tried Safari, Skyfire and Rover).

    They appear as black boxes with the play button with a line through it. This is the case using both HTML 4 and 5 tags. However the video work fine when viewed on my mac through Safari or Chrome. I have tried uploading videos through the Wordpress app recorded straight into it and also ones created in The iMovie app and they all have the same issue. I have also tried adding the same videos on Wordpress through my MacBook - adding them as media and they still do not play.

    It seems to be a video compatibility issue but seems strange as the videos were created on the iPad so you would assume they would also play on the iPad? Is anyone else having this problem or has anyone managed to get their videos to play on their Wordpress blog on their iPad?

    Any help would be much appreciated as this has been doing my head in for ages! Lol

    شات صوتي
    سعودي انحراف
    شات الخليج
    شات صوتي
    شات صوتي

  6. What you are describing is what iOS shows when the video is not encoded with a codec that iOS supports for video playback. You need to make sure the videos are encoded with the MPEG4 H.264 codec with settings that iOS supports.

Topic Closed

This topic has been closed to new replies.


About this Topic

Tags