• Resolved jse4

    (@jse4)


    Hello,

    Your plugin is awesome but since some months ago I’m getting a big problem.. When I upload a new video and trying to play it with your plugin I get <Invalid Video ID> but If I deactivate your plugin I can play it without problems.

    Dynamically I generate the URL for video access like this –>

    <WP_URL>/?attachment_id=XXXX&kgvid_video_embed[enable]=true

    Everything from past works well with the plugin.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    That’s a URL to embed videos via an <iframe>, not for use inside the shortcode. If you’re doing something like this do_shortcode('[KGVID]' .site_url().'/?attachment_id='.$post->ID.'&kgvid_video_embed[enable]=true'[/KGVID] then that won’t work. You’d have to do something like do_shortcode('[KGVID id='.$post->ID.'][/KGVID].

    I’m not sure I understand exactly what you’re doing with this URL. Can you give me some more details or a link to a page where you’re having problems?

    Thread Starter jse4

    (@jse4)

    Sure I’m doing it using an Iframe.

    http://nanufilms.tv/recent-work/

    The first one (SADIA) is not working because is a new video.

    Thanks!

    Plugin Author Kyle Gilman

    (@kylegilman)

    You’re not outputting a video ID for that particular video. I don’t know what the code is that you’re using to generate it, but the ones that work all have onClick methods like this Juna_IT_Video_Gallery_Thumbnails_Big_Clicked('http://nanufilms.tv/?attachment_id=1989','2') and the one that doesn’t work is Juna_IT_Video_Gallery_Thumbnails_Big_Clicked('http://nanufilms.tv/?attachment_id=','1') so since there’s no attachment id there’s no video. The iframe link is http://nanufilms.tv/?attachment_id=?autoplay=1&kgvid_video_embed[enable]=true I’d have to see the code you’re using to generate these onClick links to help more, and I’m happy to help, but I don’t think this is a problem with my plugin.

    One thing I can help with is the autoplay. The autoplay=1 argument isn’t going to do anything with my plugin and it’s not a good idea to have two ?s in a URL. It should work better if you change it to http://nanufilms.tv/?attachment_id=XXX&kgvid_video_embed[enable]=true&kgvid_video_embed[autoplay]=true

    • This reply was modified 9 years, 3 months ago by Kyle Gilman.
    Thread Starter jse4

    (@jse4)

    Thanks for reply.

    I solved my issue. Now Im having another trouble. If you check again this webpage in some videos the quality switcher is showing only a ‘p’ as quality and its not recognized as best quality available.

    There is some way to fix that? Thanks!!

    Plugin Author Kyle Gilman

    (@kylegilman)

    Your videos are uploaded to a custom folder. Are you using a plugin for that?

    In the Media Library do you see dimensions listed on the right side of the page for the videos you’re having trouble with? For example, the SADIA-TRADUTORA video should look like this:

    File name: SADIA-TRADUTORA.mp4
    File type: MP4 (video/quicktime)
    File size: 13 MB
    Length: 0:30
    Audio Format: mp4
    Audio Codec: ISO/IEC 14496-3 AAC
    Dimensions: 1920 × 708

    Thread Starter jse4

    (@jse4)

    It looks exactly like that!

    I’m using a plugin for upload video to custom folder (Media Library+)

    Thanks!

    Plugin Author Kyle Gilman

    (@kylegilman)

    Sorry for the delay, in my tests the Media Library Plus plugin added a blank _attached_file entry to the database which my plugin wasn’t prepared for. I modified the query in order to make it work. I’ll release it soon, but if you want to fix it in the meantime, find line 738 in video-embed-thumbnail-generator.php and change it from

    $search_query = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attached_file' AND meta_value LIKE RIGHT('%s', CHAR_LENGTH(meta_value))";
    to
    $search_query = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attached_file' AND meta_value LIKE RIGHT('%s', CHAR_LENGTH(meta_value)) AND LENGTH(meta_value) > 0";

    Plugin Author Kyle Gilman

    (@kylegilman)

    I released version 4.6.16 today, which includes this fix. I think it has solved your problem, but please let me know if you have any more issues.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error: INVALID VIDEO ID’ is closed to new replies.