WordPress.org

Ready to get started?Download WordPress

Forums

Video Embed & Thumbnail Generator
[resolved] https support (5 posts)

  1. rriley.cs
    Member
    Posted 1 year ago #

    Hi,

    I'm interested in using this plugin, but my blog makes use of https. So, that means that in my system the ffmpeg check code (kg_check_ffmpeg_exists) asks ffmpeg to input its file from an https:// url, but ffmpeg doesn't support https urls (only http urls). So it fails.

    Is there a work around for this? I appreciate your time and effort on this plugin!

    http://wordpress.org/extend/plugins/video-embed-thumbnail-generator/

  2. Kyle Gilman
    Member
    Plugin Author

    Posted 1 year ago #

    Well, if you're comfortable hacking a little, you could get past the check by hard-coding your URL into the plugin. In the kg_check_ffmpeg_exists function Just replace '.plugins_url("", __FILE__).' with http://www.yourdomain.com/wp-content/plugins/video-embed-thumbnail-generator/ but that might only get you to pass the check for FFMPEG. If all of the files in your WordPress installation are delivered through https then I can't think of a good fix for you to generate thumbnails other than using the "Embed from URL" tab. In future versions of the plugin I'll try converting https ffmpeg input to http.

  3. rriley.cs
    Member
    Posted 1 year ago #

    In my case things are only served over http.

    Is there a way to get the filesystem path to the plugins directory instead of using the URL? It seems like this would fix the problem. (Just access /usr/local/wordpress/plugins/video-embed-thumbnail-generator/ or whatever.) I can hack this manually into my implementation, but is there a nice WordPress to return that path?

  4. Kyle Gilman
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, you should be able to use plugin_dir_path(__FILE__)
    I vaguely remember that there was a reason I used the URL instead of the path, but it seems like this would be better.

  5. Kyle Gilman
    Member
    Plugin Author

    Posted 1 year ago #

    Version 3.0 and later should solve this problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.