Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1346438

    I’ve reported this as a problem before (see link) and the Enfold Team pointed out some parameters in the Video Element that I was missing.

    However, for this “scheduled” post, I’ve followed the YouTube URL parameters, but the video is not displaying – see link below in Private. If I click on the link within the black screen or copy the URL and paste it into another window the video will play as expected.

    Here is the daily publisihing workflow:
    1. YouTube video is scheduled to go from Private to Public at 12:00am EDT
    2. The Post is scheduled to be made available at 12:10am EDT
    Note: I would assume that since the Post is made available after the YouTube video was made Public there would not be a timing issue.

    Thanks in advance for your assistance.

    Best Regards,
    Julio

    • This topic was modified 2 years, 7 months ago by Jules. Reason: Updated Topic Title for clarity
    #1346481

    UPDATE:
    I just created a Test Post and added the same Video URL manually and it shows up as expected – see link below under Private.

    Is this related to the fact that the YouTube video and the Enfold Post are being scheduled? Is the 10 minute window between making the video and Post available causing this issue? Is there some other way I should be automating this workflow?

    NOTE: I’m not correcting this Post until the Enfold Team has time to review the problem. Thank you.

    Any help in solving this would be greatly appreciated.

    Best Regards,
    Julio

    • This reply was modified 2 years, 7 months ago by Jules.
    #1346532

    Hi,

    Thank you for the inquiry.

    We are not yet sure why the video is not rendering properly but it might be due to the fact that the site is still using an older version of the theme. Please try to update the theme from version 4.8.8 to the latest version 4.9.2.2, then disable the Enfold > Performance > File Compression settings temporarily. We will check the thread again once the theme has been updated.

    Best regards,
    Ismael

    #1346731

    Hi Ismael,

    I’ve updated the Enfold theme to the latest version, but I’m still experiencing the same issue that I have described above.

    I provided today’s Post link below, which is a scheduled Post and is NOT displaying the YouTube video from the Video Element. Then, this morning I created a new Post with the same video link and it’s displaying properly. Can you schedule a Post with a YouTube video?

    Here is the daily publishing workflow:
    1. YouTube video is scheduled to go from Private to Public at 12:00am EDT
    2. The Post is scheduled to be made available at 12:10am EDT
    Note: I would assume that since the Post is made available after the YouTube video was made Public there would not be a timing issue.

    Let me know if you need any additional information. Thank you.

    Best Regards,
    Julio

    #1346805

    Hi,

    Thank you for the update.

    The video should be displaying now since it is scheduled after the post. We cannot find any errors in the site and it does play inside the lightbox when you clicked on the video URL, so it is quite difficult to know why the video is not rendering as it should. Have you tried switching to a different theme to see if an embedded video still plays on a scheduled post?

    Best regards,
    Ismael

    #1346818

    Hello Ismael,

    Thank you for your response. I fully agree, logically since the YouTube video is scheduled for 12:00am and the WordPress/Enfold Post is scheduled for 12:15am, there is no reason why the video shouldn’t be available to be displayed.

    Are you suggesting this issue with the Video Element not working as expected is an issue related to the Enfold Theme that I’m using? If so, I’m just curious, wouldn’t this be something the Enfold/Kriesi Developers would want to be made aware of and try to fix?

    I’m sorry, but I’m not sure what you mean by switching to a different theme to see if an embedded video still plays on a scheduled post or how I would switch to a different theme. My apologies, but this is new to me and I’m not familiar with how to do this or if it would negatively impact my current site in any way.

    Please provide more guidance and I will gladly try it. Thank you!!!

    On a side note, here are two resources I found where they claim to have solutions to this problem:
    1. https://scottdeluzio.com/embedding-scheduled-youtube-videos-in-scheduled-wordpress-posts/
    This requires PHP. Does it sound reasonable?

    2. https://diydanielle.com/how-to-embed-scheduled-youtube-video-in/
    I’m trying this tonight, but I know since I’m embedding the video using HTML the results will not be responsive like the Video Element.

    I was hoping to accomplish all this simply by using the Video Element – pointing to YouTube video and scheduling the Post. This would be my preferred option. However, I at least wanted to start thinking about alternative approaches if needed.

    Best Regards,
    Julio

    #1346880

    Hi,

    I’m sorry, but I’m not sure what you mean by switching to a different theme to

    We meant switching to a default theme (twenty (n) themes) temporarily, embed a scheduled video, probably using the video shortcode, in a scheduled post and see if it works.

    Based on the articles that you posted above, the issue might be related to oEmbed caching and adding this snippet in the functions.php file might help with it.

    function sd_future_to_publish_only( $new_status, $old_status, $post ) {
    	// Check if post is transitioning from future (scheduled) to publish
    	if ( ( 'publish' === $new_status && 'future' === $old_status ) ) {
    		global $wpdb;
    		$post_meta_table	= $wpdb->prefix . "postmeta";
    		$wpdb->query( $wpdb->prepare( "DELETE FROM " . $post_meta_table . " 
    			WHERE post_id = '%d' 
    			AND meta_key LIKE '_oembed_%' 
    			AND meta_value LIKE '{{unknown}}';", 
    			absint( $post->ID ) 
    		) );
    	}
    }
    add_action( 'transition_post_status', 'sd_future_to_publish_only', 10, 3 );
    

    Please make sure to create a site backup or a restore point before using the snippet.

    Best regards,
    Ismael

    #1347022

    UPDATE:
    I found a way to schedule a WordPress/Enfold Post and have the scheduled YouTube video (Private to Public) fully display. As as you can read above this process was NOT working with the Enfold Video Element (e.g. video was not displaying. If I clicked on the link within the black screen or copy the URL and paste it into another window the video would play as expected).

    How did I get it the scheduled Post to work with embedding a scheduled YouTube video (Private to Public)?
    1. I used the “EmbedPlus for YouTube Plug-in“.
    2. Schedule the YouTube video to go Public first (e.g. 12:00AM) and then schedule your Post to go live at say 12:10AM.
    2. Within the Post, I created a Text Box, clicked on the “YouTube” button next to “Add Media”, and selected the “Embed a single video” option. It looks like this: [embedyt] https://www.youtube.com/watch?v=[VIDEO_ID] [/embedyt]
    3. Note: When I created this Post, the Plug-in will not allow you to complete this step with a “Private” video. So, you include a video that you know is Public. Then you use that shortcode in your scheduled Post and add the VIDEO_ID for the video you want displayed, which is Private at the time.
    4. When the scheduled video & post go live, the video is displayed within the Post as expected.

    Special thanks to @Guenni007 for recommending this wonderful plug-in.

    Hope this helps others. Feel free to close this topic.

    Best Regards,
    Julio

    #1347025

    Hi,
    Thanks for sharing your solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Scheduled YouTube Video Not Showing Up on Scheduled Post – Black Screen’ is closed to new replies.