Forums

[resolved] [Plugin: Viper's Video Quicktags] Preview image flash movie (8 posts)

  1. ceejee
    Member
    Posted 2 weeks ago #

    Perhaps I am using the wrong file type, but since my Mac outputs .mov files, I needed to edit line 3498 and 3499 of of vipers-video-quicktags.php (6.2.13 version) to also replace .mov extensions with .jpg in order to show the preview images.

    original line ->
    if ( false === $flashvars['image'] && in_array( substr( $content, -4 ), array('.flv', '.mp4') ) )
    $flashvars['image'] = str_replace( array('.flv', '.mp4'), '.jpg', $content );

    modified line ->
    if ( empty($flashvars['image']) )
    $flashvars['image'] = str_replace( array('.flv', '.mp4', '.mov'), '.jpg', $content );

  2. Viper007Bond
    Member
    Posted 2 weeks ago #

    I was unaware Flash did .mov files. There's a [quicktime] shortcode that was meant for that, but perhaps Flash is a better solution.

    You can also just manually specify the preview image URL (until I fix the bug):

    [flv image="http://site.com/image.jpg"]htt://site.com/video.mov[/flv]
  3. tidywebdev
    Member
    Posted 2 weeks ago #

    I'm using videos in flv format but the preview image has stopped working for me since I upgraded to 6.2.13. I was relying on the default where it looks for a jpg with the same filename as the flv. It was working fine before the upgrade, and the image is still there.

    I know I can specify the preview image manually, but the client who will be maintaining the site is not technical, and the automatic pickup of the preview image was very handy.

    Has this broken for anyone else since upgrading?

  4. ceejee
    Member
    Posted 2 weeks ago #

    The .mov file I use is h.264 encoded which seems to play just fine using the Flash shortcode. If I insert the same .mov file using the quicktime shortcode, the movie does not show in Firefox. Thanks for the quick response and having a look at fixing it!

  5. Viper007Bond
    Member
    Posted 2 weeks ago #

    I'm using videos in flv format but the preview image has stopped working for me since I upgraded to 6.2.13.

    I'll double check my code while I'm looking at .mov.

  6. tidywebdev
    Member
    Posted 2 weeks ago #

    Thanks for the quick response Viper and for looking into this. Reverting to the old 6.2.12 version of vipers-video-quicktags.php got my preview images back working, but if nobody else if having issues maybe it's just something in my setup...

  7. Viper007Bond
    Member
    Posted 2 weeks ago #

    No, I've had other reports. I need to test my code more thoroughly before releasing. :)

  8. ceejee
    Member
    Posted 1 week ago #

    Thank you Viper for the 6.2.14 release!

Reply

You must log in to post.

About this Topic