- Posts: 1
COMMUNITY FORUM
Remote Preview Image
- Joe Sansone
-
Topic Author
- Offline
- New Member
I'm using the AllVideos 2.5.2 version.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
{flvremote}www.somesite.com/videos/testvideo.flv|800|600|preview.jpg{/flvremote}
;)
Please Log in or Create an account to join the conversation.
- redbone
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Please Log in or Create an account to join the conversation.
- fiddler
-
- Offline
- New Member
- Posts: 3
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.
- rik
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- MaryMarket
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- fiddler
-
- Offline
- New Member
- Posts: 3
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.
- fiddler
-
- Offline
- New Member
- Posts: 3
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.
- dannette
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- kcortes
-
- Offline
- New Member
- Posts: 2
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.
- Vector
-
- Offline
- New Member
- Posts: 7
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
-
- Offline
- Senior Member
- Posts: 47
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.
- ganda1304
-
- Offline
- New Member
- Posts: 1
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.
- Maik Kaune
-
- Offline
- New Member
- Posts: 14
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.
- ljk
-
- Offline
- Junior Member
- Posts: 34
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&autostart=false&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.
- websitter
-
- Offline
- New Member
- Posts: 1
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&autostart=false&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.
- ljk
-
- Offline
- Junior Member
- Posts: 34
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.
- ljk
-
- Offline
- Junior Member
- Posts: 34
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.
- kailanaun
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.