Keyword

Remote Preview Image

  • Joe Sansone
  • Joe Sansone's Avatar Topic Author
  • Offline
  • New Member
More
16 years 9 months ago #15971 by Joe Sansone
Remote Preview Image was created by Joe Sansone
How can we make the preview image show on videos playing from a remote server?

I'm using the AllVideos 2.5.2 version.

Please Log in or Create an account to join the conversation.

More
16 years 9 months ago #15972 by JoomlaWorks
Replied by JoomlaWorks on topic Re: Remote Preview Image
I will be adding a custom "preview" image option in v2.6 so you can define any image you want as preview like this:

{flvremote}www.somesite.com/videos/testvideo.flv|800|600|preview.jpg{/flvremote}

;)

Please Log in or Create an account to join the conversation.

More
16 years 9 months ago #15973 by redbone
Replied by redbone on topic Re: Remote Preview Image
Exactly what I'm looking for ... how long until 2.6?

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago #15974 by dax702
Replied by dax702 on topic Re: Remote Preview Image
Can we do this with 2.5.3 somehow with FLV files on the same server? Is there a hack?

Please Log in or Create an account to join the conversation.

More
16 years 6 months ago #15975 by fiddler
Replied by fiddler on topic Re: Remote Preview Image
2.5.3 flvremote preview

Change these lines in these files:


plugins/content/jw_allvideos/jw_allvideos_sources.php
in the flvremote section

old
<param name=\"flashvars\" value=\"file={AVSOURCE}&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

new
<param name=\"flashvars\" value=\"file={AVSOURCE}&image=$mosConfig_live_site/{VFOLDER}/{REMOTEIMG}&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />


plugins/content/jw_allvideos.php

old
$final_vwidth = (@$tagparams[1]) ? $tagparams[1] : $vwidth;
$final_vheight = (@$tagparams[2]) ? $tagparams[2] : $vheight;
$final_autoplay = (@$tagparams[3]) ? $tagparams[3] : $autoplay;

new
$remoteimg = (@$tagparams[1]) ? $tagparams[1] : "default.jpg";
$final_vwidth = (@$tagparams[2]) ? $tagparams[2] : $vwidth;
$final_vheight = (@$tagparams[3]) ? $tagparams[3] : $vheight;
$final_autoplay = (@$tagparams[4]) ? $tagparams[4] : $autoplay;

old
"{CONTROLBAR}",

new
"{CONTROLBAR}",
"{REMOTEIMG}",

old
$av_flvcontroller,

new
$av_flvcontroller,
$remoteimg,


Examples:

image
{flvremote}www.somesite.com/videos/testvideo.flv|preview.jpg{/flvremote}
image,width,height
{flvremote}www.somesite.com/videos/testvideo.flv|preview.jpg|800|600{/flvremote}
no image (or default.jpg if available),width,height,etc.
{flvremote}www.somesite.com/videos/testvideo.flv||800|600{/flvremote}

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago - 16 years 3 months ago #15976 by rik
Replied by rik on topic Re: Remote Preview Image
Someone try this whith result? I made everything from instruction, but no result. Ther is not preview image.

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #15977 by MaryMarket
Replied by MaryMarket on topic Re: Remote Preview Image
Using the example for the remote preview image, I tried doing a hack for local preview image. Wasn't successful. I've scoured the forum for a way to do this (and found some hacks for previous versions), and see it is in the works for 2.6, but I want it now. Can you provide a hack for a preview image for when video is hosted on my own server? Thanks.

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago #15978 by fiddler
Replied by fiddler on topic Re: Remote Preview Image

Someone try this whith result? I made everything from instruction, but no result. Ther is not preview image.


The plugin gets the images from the Local Video Folder, forgot it write. Check plugin settings in the admin and add the correct custom path. Maybe your images are somewhere else and the plugin doesn't find them.
My modified version work correctly:
www.autosforum.hu/kozlekedes/gepjarmu-biztositas/52-kotelezo-biztositas-valtas.html
the Local Video Folder:
images/stories/videos
the image path:
images/stories/videos/16220.jpg
the code in the article:
{flvremote}stream2.tv2.hu/bydate/20081030/16220.flv|16220.jpg{/flvremote}

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago - 15 years 11 months ago #15979 by fiddler
Replied by fiddler on topic Re: Remote Preview Image

Using the example for the remote preview image, I tried doing a hack for local preview image. Wasn't successful. I've scoured the forum for a way to do this (and found some hacks for previous versions), and see it is in the works for 2.6, but I want it now. Can you provide a hack for a preview image for when video is hosted on my own server? Thanks.


Don't need a hack, in my opinion. This is the code from the original plugin:
<param name=\"flashvars\" value=\"file=$mosConfig_live_site/{VFOLDER}/{AVSOURCE}.flv&image=$mosConfig_live_site/{VFOLDER}/{AVSOURCE}.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />
Just upload the preview images into the same folder where the videos are and use the video file names with the .jpg extension not the .flv.
But you can change the {AVSOURCE}.jpg to {REMOTEIMG}.jpg so in this case possible to add another names to the images just like in the flvremote section.
But it only works in the hacked version.

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #15980 by dannette
Replied by dannette on topic Re: Remote Preview Image
I just upgraded from 2.5.3 to 3.5 and the ability for remote image didn't happen. Was there an intermediate upgrade (you said it would be in 2.6) that didn't get put into 3.5? Do I still have to do the above hack?

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #15981 by kcortes
Replied by kcortes on topic Re: Remote Preview Image

Someone try this whith result? I made everything from instruction, but no result. Ther is not preview image.


I'm on 2.5.4. With the code changes, the image showed. Thanks fiddler.

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #15982 by Vector
Replied by Vector on topic Re: Remote Preview Image
how about changing it so I dont have to add all that extra text in the {flvremote} tags. 

I want the same remote image for every single video,  so i guess I would just have to make a small change in the player code, no ?

Please Log in or Create an account to join the conversation.

  • BNR Investment Group
  • BNR Investment Group's Avatar
  • Offline
  • Senior Member
More
15 years 3 months ago #15983 by BNR Investment Group
Replied by BNR Investment Group on topic Re: Remote Preview Image
If you just want to show the same image every time you can make one small change to make that happen. Apparently the plugin doesn't look for a default images, only JPG with the same name as the video. Anyhow, here is the change you make -

Find /jw_allvideos/includes/sources.php

:ine 26 should look like this:
<param name=\"flashvars\" value=\"file={SITEURL}/{FOLDER}/{SOURCE}.flv&image={SITEURL}/{FOLDER}/{SOURCE}.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

Change it to this:
<param name=\"flashvars\" value=\"file={SITEURL}/{FOLDER}/{SOURCE}.flv&image={SITEURL}/{FOLDER}/default.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

Line 99 is:
image:'{SITEURL}/{FOLDER}/{SOURCE}.jpg'

Change to:
image:'{SITEURL}/{FOLDER}/default.jpg'

Line 198 is:
<param name=\"previewImage\" value=\"{SITEURL}/{FOLDER}/{SOURCE}.jpg\" />

Change to:
<param name=\"previewImage\" value=\"{SITEURL}/{FOLDER}/default.jpg\" />

Be sure to put an image called default.jpg in the same folder as you keep your videos.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #15984 by ganda1304
Replied by ganda1304 on topic Re: Remote Preview Image
Hi,

I'm so happy to announce that I made it work!!!!

You NEED to name your images the same as your video like this

test.flv = test.jpg and you just need to write {flv}test{/flv} into your article. Have fun:0))



Then you can manually edit the code (seen below), to enable this feature.

While editing the "jw_allvideos_sources.php" file, you will see the following lines of code:

Code:

"flvremote" => "
<span style=\"width:{VWIDTH}px;height:{VHEIGHT}px;\" class=\"allvideos_player\" title=\"JoomlaWorks AllVideos Player\">
        <object type=\"application/x-shockwave-flash\" style=\"width:{VWIDTH}px;height:{VHEIGHT}px;\" data=\"$mosConfig_live_site/mambots/content/jw_allvideos/players/mediaplayer_4.0.46.swf\">
                <param name=\"movie\" value=\"$mosConfig_live_site/mambots/content/jw_allvideos/players/mediaplayer_4.0.46.swf\" />
                <param name=\"quality\" value=\"high\" />
                <param name=\"wmode\" value=\"{TRANSPARENCY}\" />
                <param name=\"bgcolor\" value=\"{BACKGROUND}\" />
                <param name=\"autoplay\" value=\"{AUTOPLAY}\" />
                <param name=\"allowfullscreen\" value=\"true\" />
                <param name=\"allowscriptaccess\" value=\"always\" />
                <param name=\"flashvars\" value=\"file={AVSOURCE}&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />
        </object>
</span>
",


At the end of the "flashvars" line, enter the following code, between "true" and "\".

Code:

&image=$mosConfig_live_site/{VFOLDER}/{AVSOURCE}.jpg


So, when you're finished editing, it should look like this:

Code:

"flvremote" => "
<span style=\"width:{VWIDTH}px;height:{VHEIGHT}px;\" class=\"allvideos_player\" title=\"JoomlaWorks AllVideos Player\">
        <object type=\"application/x-shockwave-flash\" style=\"width:{VWIDTH}px;height:{VHEIGHT}px;\" data=\"$mosConfig_live_site/mambots/content/jw_allvideos/players/mediaplayer_4.0.46.swf\">
                <param name=\"movie\" value=\"$mosConfig_live_site/mambots/content/jw_allvideos/players/mediaplayer_4.0.46.swf\" />
                <param name=\"quality\" value=\"high\" />
                <param name=\"wmode\" value=\"{TRANSPARENCY}\" />
                <param name=\"bgcolor\" value=\"{BACKGROUND}\" />
                <param name=\"autoplay\" value=\"{AUTOPLAY}\" />
                <param name=\"allowfullscreen\" value=\"true\" />
                <param name=\"allowscriptaccess\" value=\"always\" />
                <param name=\"flashvars\" value=\"file={AVSOURCE}&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true&image=$mosConfig_live_site/{VFOLDER}/{AVSOURCE}.jpg\" />
        </object>
</span>
",


Now, you will need to upload your preview image (JPG) to your local "videos" folder.  Once this has been completed, you should now be able to see your preview image!

{flv}test{/flv}

Please Log in or Create an account to join the conversation.

More
15 years 2 weeks ago #15985 by Maik Kaune

I will be adding a custom "preview" image option in v2.6 so you can define any image you want as preview like this:

{flvremote}www.somesite.com/videos/testvideo.flv|800|600|preview.jpg{/flvremote}

;)


Thats the way it should work... is this possible in v3.3 ? The documentation page is video url related, there is no info about any preview image support. I found another thread with an extra "&image URL" behind the movie part.  :'(  Please, could we have the promised  | pipe parameter?!

Thanks for listening. 

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #15986 by ljk
Replied by ljk on topic Re: Remote Preview Image
Hello,

Has anyone been able to get the preview image to display with version 3.3?

I have placed a .jpg file in the same directory as the video and named it the same thing except with a .jpg extension instead of a .flv extension.

The preview image is not showing up for me. When I look at the source code it shows:
<param value="file=http://www.template.mikestewart.ca/images/listings/2M/stewart.flv&amp;autostart=false&amp;fullscreen=true" name="flashvars">

when I look at like 26 of sources.php it has:
<param name=\"flashvars\" value=\"file={SITEURL}/{FOLDER}/{SOURCE}.flv&image={SITEURL}/{FOLDER}/{SOURCE}.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

So, I don't know what is happening to the &image part of the line, but it disappears.

Anyone have any ideas?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #15987 by websitter
Replied by websitter on topic Re: Remote Preview Image

Hello,

Has anyone been able to get the preview image to display with version 3.3?

I have placed a .jpg file in the same directory as the video and named it the same thing except with a .jpg extension instead of a .flv extension.

The preview image is not showing up for me. When I look at the source code it shows:

<param value="file=http://www.template.mikestewart.ca/images/listings/2M/stewart.flv&amp;autostart=false&amp;fullscreen=true" name="flashvars">

when I look at like 26 of sources.php it has:
<param name=\"flashvars\" value=\"file={SITEURL}/{FOLDER}/{SOURCE}.flv&image={SITEURL}/{FOLDER}/{SOURCE}.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

So, I don't know what is happening to the &image part of the line, but it disappears.

Anyone have any ideas?


try to rename the jpg as the video name

example stewart.jpg

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #15988 by ljk
Replied by ljk on topic Re: Remote Preview Image
Hi,

Thank you for your suggestion, but I already have stewart.jpg in the folder with the stewart.flv file.

Any other ideas? Have you been able to get it to work?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #15989 by ljk
Replied by ljk on topic Re: Remote Preview Image
Hi,

I really need to get this preview image functionality working. Does anyone have any suggestions as to what to try or what could be causing the problem?

I am using this in K2, but I have tried it in an article as well and neither will display the preview image, which is named and located in the same folder as the .flv file (stewart.flv and stewart.jpg).

Thank you.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #15990 by kailanaun
Replied by kailanaun on topic Re: Remote Preview Image
I have to say that I agree with this, let's hope the developers can turn this round soon. :-*

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum