Keyword

image preview or first frame for flv files in allvideos

  • Dad Labs
  • Dad Labs's Avatar Topic Author
  • Offline
  • New Member
More
18 years 3 weeks ago #1185 by Dad Labs
image preview or first frame for flv files in allvideos plugin

Would really love the ability to show first frame of flv or some sort of preview image.

Also, this would happen before download in order to save on bandwidth.

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

More
17 years 11 months ago #1186 by JoomlaWorks
Already on list for 2.5.  ;)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
16 years 2 months ago #1187 by Stephen Monaghan
What ever happened to this function??
I don't see it:-(

Monzo?

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

More
16 years 1 month ago #1188 by wmbell

What ever happened to this function??
I don't see it:-(

Monzo?


I can't find any documentation about this, HOWEVER... it has been implemented into v2.5.3's code.  Simply add a .jpg file to the same folder as your video, and name it exactly the same.  (Example:  MyVideo.flv -- MyVideo.jpg)

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

More
16 years 1 month ago - 16 years 1 month ago #1189 by DaRKNeSS666NL
I made an image whit the same name and even the same size saved in the .jpg extension put the image with the video into the same dir (remote) But still no image?

The solution in this topic forum.joomlaworks.net/index.php?topic=5317.0
isnt't working for me.

Any help is appreciated.

TIA

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

More
16 years 2 weeks ago #1190 by wmbell

I made an image whit the same name and even the same size saved in the .jpg extension put the image with the video into the same dir (remote) But still no image?

The solution in this topic forum.joomlaworks.net/index.php?topic=5317.0
isnt't working for me.

Any help is appreciated.

TIA


This feature has not been implemented into the "flvremote" code.  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:
"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 "\".
&image=$mosConfig_live_site/{VFOLDER}/{AVSOURCE}.jpg

So, when you're finished editing, it should look like this:
"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!


:D

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

More
15 years 10 months ago - 15 years 10 months ago #1191 by Harry Toews
Interesting ... after editing the code .... I'm assuming then that the default local folder that you would add the image too would be the one you designated with the module set-up? ... or is there a requirement to have the videos within the "images/stories/videos" folder?

I'm using 2.5.3 and not having success .... but will try a few variations on relocating the videos folder to see if it makes any difference.

Does "case sensitive" also play a factor?

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

More
15 years 10 months ago - 15 years 10 months ago #1192 by Harry Toews
OMG ... case sensitive .. that was the problem  :P .. at least for the case with the flv video being on the local server

When you upload to Joomla via the Media Manager ... it changes everthing to "Lower Case". If you have capitalized ANYTHING in either the video name and then uploaded a .jpg with the same ... it won't work. So ... Keep all file names "lower case" to avoid this ...

Still can't get it to work using the {flvremote}{/flvremote} tags though...., even after editing the .php file suggested above.


Irregradless .... Many thanks again for this great plugin ...and for the community support.

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

More
15 years 9 months ago - 15 years 9 months ago #1193 by Dud
It used to be so much fun working with this shit through trial and error... spending day after day eating doritos, picking the scabs off my pimpled face and drinking red-bull. Now it's just a pain in the ass. A "SIMPLE" image preview... my-oh-my.

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

More
12 years 8 months ago #1194 by baijianpeng
why not just automatically load the first frame of the video as the preview image?

www.joomlagate.com

Chinese Joomla! Users Portal

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

More
11 years 7 months ago #1195 by dmwesq
Exactly how would you load the first frame as the preview? Before I try the editing of the php file as suggested perhaps someone can explain the mechanics of this option?

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

More
11 years 7 months ago #1196 by JoomlaWorks
That's not possible...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
11 years 7 months ago #1197 by dmwesq
So this was suggested back in 2007, the answer given was it was on the list, and 6 years later you still can't easily get the video preview to show the actual video rather than a black screen? That doesn't sound very promising for this product.

I also can't find any code in any of my jw php files that looks like the code on this thread and thus can't figure out where to insert the suggested code, unless of course that part of the answer doesn't apply since it too is quite old.

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

More
11 years 7 months ago #1198 by dmwesq
Just to update - I took a screenshot of my video opening frame, saved it with the same name as the video and uploaded it to my video folder and voila - worked fine. No editing code, no worry about joomla changing case of file names - much simpler than made out to be.

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


Powered by Kunena Forum