Support » Plugin: Publish To Apple News » Video embed does not work Apple News

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kevin Fodness

    (@kevinfodness)

    This might be fixed in version 2.2.0. We fixed some issues related to video parsing. Can you check and report back, please?

    Thread Starter hardly.normal

    (@hardlynormal-1)

    Hi Kevin

    It’s not fixed

    I just posted this https://apple.news/AV5emRxZOQUKWlCrfefERuA

    It should be a video embed at the top as it is here https://invisiblepeople.tv/venice-beach-homeless-mom-reunited-with-daughter-in-project-roomkey/

    I went back to add a link to the video since the embed is not working, and that doesn’t seem to be updated yet. I will leave this post up as-is for you to troubleshoot.

    Please let me know how I can help, and thanks for working on this. Getting the video embed into Apple News is very important

    Mark

    Thread Starter hardly.normal

    (@hardlynormal-1)

    Today we embedded a video in the body of a post near the bottom. It doesn’t show. It says “YouTube video player” with a link to our original post

    This is Apple News

    https://apple.news/A_YTQqedrSxqV74xB50PSEw

    Our original post with the embed at the bottom https://invisiblepeople.tv/street-medicine-bringing-healthcare-to-the-homeless-community/

    Plugin Author Kevin Fodness

    (@kevinfodness)

    It looks like you’re using something other than the default oEmbed provider for YouTube videos. The default provider is used when using the YouTube block in the Gutenberg editor or pasting a YouTube embed URL on its own line in the classic editor. I believe the plugin is tripping over the custom HTML in your post and isn’t able to properly convert the embed to a native YouTube embed.

    I would recommend leveraging the apple_news_exporter_content_pre filter to swap out the custom YouTube embed you are using for the native YouTube embed that WordPress typically uses, which will allow the Publish to Apple News plugin to properly convert the embed to a native YouTube embed within Apple News format: https://github.com/alleyinteractive/apple-news/wiki/Filter:-apple_news_exporter_content_pre

    Thread Starter hardly.normal

    (@hardlynormal-1)

    Kevin,

    First, thanks for the help. I need to fix this, and your support is greatly appreciated.

    I don’t know code, so I asked our developer to take a look. She teaches at USC and knows her stuff. Here is her email to me after trying your suggestion:

    I finally had some time to dig into this and I honestly have no idea how to implement the fix suggested by the developer. I need a code example or something else to work with, I have no idea what I need to filter or even where to begin in writing the function.
    
    I’m also not sure what these folks mean by “the oEmbed code isn’t being used.” I looked at that post and it looks like the proper embeds are being used — just paste the URL and it embeds and that’s what we’re doing. So I have no idea what these folks mean when they say the proper embed code isn’t being used.
    
    The only additional thing that’s being done is that we are using the FitVids for WordPress plugin to make all the videos responsive (they weren’t being responsive otherwise). The plugin is here: https://wordpress.org/plugins/fitvids-for-wordpress/
    
    This plugin wraps a line of code around the embed to make the video responsive but other than that, the actual iframe embed code is still there. I’m stumped.

    __________

    Please advise,

    Mark

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Hi Mark—

    I should have some time to dig in to this more deeply in a few days. Fundamentally, the plugin is looking for a specific HTML signature in order to recognize the block as being a YouTube embed and to extract the URL so it can create an Apple News YouTube embed component, and I believe that the modifications to the HTML that are caused by FitVids are contributing to this problem.

    Thread Starter hardly.normal

    (@hardlynormal-1)

    Kevin,

    Thanks for taking the time to look into this. I will gladly compensate a developer to fix if needed. Appreciate the help.

    Thanks

    Thread Starter hardly.normal

    (@hardlynormal-1)

    Just following up on this.

    Thanks for the help

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.