ZenphotoCMS Forum
download films instead of streaming them? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: download films instead of streaming them? (/thread-6558.html)



download films instead of streaming them? - morten44 - 2010-02-04

Hi
We want to stream a concert using ZenPhoto
We have set it up with a jpg picture with the same name as the flv file and it shows very nice and it works

We would also like to give the viewers a chance to download the filmclip as some does not have a connection that support steaming.

Is there a way so when users click on a film it starts to download instead of playing in the flv player?
We are most likely going to work with .mov and .flv files

BTW thanks for a very good program

Kind Regards




download films instead of streaming them? - breglis - 2010-02-04

try

href=""




download films instead of streaming them? - morten44 - 2010-02-04

Hi
Can you give me a quick hint what file i would be looking for this code?

Kind Regards
Morten




download films instead of streaming them? - breglis - 2010-02-05

well this depends on how you use it.
I would guess its the album.php where you see all the videos thumbails right ?

you need to find the while(next_image()) loop that creates the list of thumbs
and in there replace the href with what I suggested

hope this helps




download films instead of streaming them? - morten44 - 2010-02-05

Hi
Thanks for your fast responds

In the default template i found the "album.php"

I changed the code you suggested adding the ";" as in the old one

I then get the error in the browser:
Parse error: parse error, expecting ','' or';'' in C:\wamp\www\zenphoto\themes\default\album.php on line 45

Line 45 is refering to the href sentence that i put in
I am using the default template

Sorry but I am very new to PHP. DOes this make sence for you?
I wanted to paste the whole code in here but despite copy it into notepad and paste here, it changes when I saved it, so it seems like thats not possible

Kind Regards
Morten




download films instead of streaming them? - breglis - 2010-02-05

`

            ">

P.S: to post code you need to usebackticks`.




download films instead of streaming them? - morten44 - 2010-02-05

Yes!!!
Its working
I had put:
(getImageLinkURL())

instead of
(getImageLinkURL()

Because the old code had it that way.

I removed one ) and it works

Thanks alot for your help

Regards
Morten




download films instead of streaming them? - acrylian - 2010-02-05

Just to note: Neither flvplayer nor flowplayer actually "stream" their multimedia files (they can be set up to do so but if you use Zenphoto managed files they don't). All files are loaded completely in the background. So users with slow connections will have to wait the same time either if they download or wait until the player loaded them. (Youtube for example works the same way).




download films instead of streaming them? - morten44 - 2010-02-05

Hi Acrylian
Thanks for your note. yes it makes sence.
Just have to learn about the different concept

Kind Regards
Morten