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

    (@kylegilman)

    Anything can be used within an iframe. The tricky part is figuring out how to generate the content. If your videos were part of the WordPress media library you could use an embed code like the example in the plugin instructions:

    <iframe src='https://www.kylegilman.net/?attachment_id=1906&kgvid_video_embed[enable]=true' frameborder='0' scrolling='no' width='640' height='360'></iframe>

    That wouldn’t work with your S3 videos. I’ve never used Woocommerce. How do you input data in that tab? Does it not execute the shortcode? You can put width and height tags in the shortcode to make it play at 640×360.

    Thread Starter emptymind

    (@emptymind)

    Thanks for a quick reply.

    I am using a wp woocommerce plugin that adds a tab in the product page to display video – works great except it uses iframe and my video will not resize inside iframes.

    I have used code like you just posted but no luck in the above woocommerce tab.

    Anyway I will use your player for my other pages. Thanks.

    Plugin Author Kyle Gilman

    (@kylegilman)

    How do you input data in that tab? Does the shortcode execute in the tab? There’s nothing special about an iframe that would prevent a video from resizing.

    Thread Starter emptymind

    (@emptymind)

    Yes it does use shortcode. I cannot get my video to play within the size of the iframe – say I set the iframe to be 640px wide my video plays at 100% at 1280px wide. Not sure why no matter what I set.

    In fact I want to play 1080p video as brodaband gets better but to fit inside a 640 iframe. Then the user can choose fullscreen or maybe a light box.

    Plugin Author Kyle Gilman

    (@kylegilman)

    Have you set the width of the player in the shortcode in the tab? The dimensions of the video file are unimportant as long as you set the width of the player. The shortcode should look something like this [KGVID width="640" height="360"]https://s3.amazonaws.com/your_bucket/your_filename[/KGVID]

    It would also be helpful to see an example on your website.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cna this work in iframe?’ is closed to new replies.