• [MOD] FLV-Integration für 4images 4 0 5 1
Currently:  

Author Topic: [MOD] FLV-Integration für 4images  (Read 49123 times)

0 Members and 1 Guest are viewing this topic.

Offline tisi

  • Sr. Member
  • ****
  • Posts: 317
    • View Profile
[MOD] FLV-Integration für 4images
« on: November 09, 2006, 08:38:13 PM »
Ich habe den FLASH VIDEO PLAYER von http://jeroenwijering.com/?item=Flash_Video_Player in 4images integriert.

So funktioniert's :

Schritt 1
Im Adminbereich von 4images die erlaubten Datei-Typen ergänzen mit flv

Schritt 2
Download FLV-Player und fvl.html unter http://www.mediaxp.be/4images/tutorial/flv.zip

Schritt 3
Die in der Zip enthaltenene Datei flvplayer.swf in folgendes Verzeichnis laden :
/4images/data/

Schritt 4
Die flv.html editieren und den Pfad zur flvplayer.swf anpassen, ggf. die anderen Parameter ändern
Diesbezügliche Anleitungen findest du auf der Seite des Programmierers (siehe Link in Zeile 1)

und anschliessend in folgendes Verzeichnis laden :
/4images/templates/default/media/

Wenn ich jetzt nichts vergessen habe, müsste es dann laufen, funktionierendes Beispiel unter http://www.mediaxp.be/?MediaXP

 :!:  Damit der FLV-Player richtig laufen kann, muss der Macromedia Flash Player ab Version 8 auf dem PC installiert sein

« Last Edit: February 14, 2007, 04:15:05 PM by kai »

Offline excitex2

  • Addicted member
  • ******
  • Posts: 1.590
  • He desactivado la galería y el buscador
    • View Profile
Lo importante no es saber,,, lo importante es tener el E-Mail de quien sabe

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #2 on: November 10, 2006, 01:16:41 AM »
excitex2: and now translate all the posts ;)

==EDITED==
i'm so stupid ;)

above post is ín german too ^^
like yours in spanish..

solly  :twisted:
« Last Edit: November 10, 2006, 01:26:48 AM by Nicky »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline excitex2

  • Addicted member
  • ******
  • Posts: 1.590
  • He desactivado la galería y el buscador
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #3 on: November 10, 2006, 11:02:52 PM »
Greetings,,,

 Pardon I do not speak English, use a translator of the network.

There are many users of Hispanic speech who as much look for many solutions in the forums in English as in German, I have only put the direction of post that has been made already for some time in case there is some Hispanic loudspeaker that the German does not understand and he wants it to solve in Spanish.

excitex2
Lo importante no es saber,,, lo importante es tener el E-Mail de quien sabe

Offline Foto-Portal

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #4 on: February 14, 2007, 02:02:01 PM »
Hallo,

ich habe die Installation nun durchgeführt,
allerdings beim Upload einer FLV-Datei kommt
folgende Felhlermeldung:

Fehler beim Upload der Bild-Datei:
video.flv: Die Datei hat ein ungültiges Format (flv, application/octet-stream)

Nun habe ich dieses ausprobiert und es geht wunderbar!
Danke
Saludos,,

Los ficheros FLV,, no se visualizan por si solos en la web,,, necesitaras un reproductor tanto para los FLV como para los FLA,,, que es el que estas intentando subir,,, y el que te da el error.

Primero,,, da de alta el nuevo tipo de fichero en el panel de control,, en la sección  : OPCIONES => CONFIGURACION DE IMAGENES Y ENVIO DE IMAGENES .

Segundo,,, abre : includes/upload_definitions.php

Localiza :

Quote
$mime_type_match['swf'] = array("application/x-shockwave-flash");

Añade debajo :

Quote
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream");

Cerrar y guardar cambios.

Tercero,,,, crea una nueva plantilla con el siguiente código,, la nombras como flv.html,,,  y la subes a : templates/tus_plantillas/media/ :

Code: [Select]
<!-- Template file for FLV files -->

<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="345" height="300">
<param name="movie" value="./data/player.swf?video=./.{media_src}&buffer=6">
<param name="quality" value="high">
<embed src="./data/player.swf?video=./.{media_src}&buffer=6" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="345" height="300">
</embed></object>

Cuarto,,, descarga este ZIP,, << >>  lo descomprimes,,, en el encontraras dos ficheros PLAYER.SWF y PLAYER.FLA y una imagen FLV.GIF que es el icono para suplir la falta de thumbnails.

Sube la imagen flv.gif templates/tus_plantillas/icons.

Sube los dos ficheros,, player.swf y player.fla dentro del directorio data

Para los ficheros tipo FLA es lo mismo pero cambiando la extensión

Creo que eso es todo,, espero que te sirva.

excitex2





« Last Edit: February 14, 2007, 02:38:24 PM by Foto-Portal »

Offline gifwav

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • http://www.funpics4u.com
Re: [MOD] FLV-Integration für 4images
« Reply #5 on: April 12, 2007, 03:39:58 PM »
After uploading a flv file I get the error: invalid file type.
I've changed in includes/upload_definitions.php the line:
Code: [Select]
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream");in:
Code: [Select]
$mime_type_match['flv'] = array("video/flv");and everythings working fine!

Offline medo007

  • Newbie
  • *
  • Posts: 29
  • Internet addict
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #6 on: April 12, 2007, 09:53:26 PM »
It works fine for me!  8)
mEDO

Offline tippy

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #7 on: May 20, 2007, 07:34:44 AM »
Hi :)

Ive just installed this MOD to be able to play FLV files but the player itself is kinda ugly, is there a way to change the look and features, like autostart etc...?

Thanks for any help you can provide,

Mike

PROBLEM SOLVED, I used a different player...
« Last Edit: May 20, 2007, 03:32:30 PM by tippy »

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: [MOD] FLV-Integration für 4images
« Reply #8 on: June 15, 2007, 03:38:19 PM »
how do you use a different player?

Please Vote for my site: Here

Offline tippy

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #9 on: June 30, 2007, 04:48:06 AM »
I just uploaded a different player and changed the name in the <!-- Template file for FLV files --> frpm player.swf to the new one FLVPlayer.swf

I scrapped the whole idea of using FLV cause it seemed to slow my site down for some reason like when your watching a clip and hit the back button it seems to stall.  Plus I find the quality of these small FLV files very poor.

Perhaps its my setup, I dont know...

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] FLV-Integration für 4images
« Reply #10 on: August 01, 2007, 01:02:37 AM »
Got a question
if a user uplaod a movie, and you will validate it in ACP, so you can click on pre-view. but the movie will open in _blank-window, without player....
has some one a idea/fix for it????

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] FLV-Integration für 4images
« Reply #11 on: August 22, 2007, 01:47:09 PM »
I have tried this and other Script´s/Mod´s for installing flash-videos
But the reason is, that mostly only the IE will play those Videos, and sometimes some Upload-Errors by Users...

I have found out a way to make it round with the most browsers and plattforms like Mac and Microsoft.

1. Like in the start-Post you need an Player.
Take the newest from:
http://www.jeroenwijering.com/?item=JW_FLV_Player

2. Copy the player.swf to 4images/data
In this folder you have to copy the swfobject.js too!

3. Now you have to create the flv.html , which display your Video.
Simple Copy the jpg.html in templates/default/media/jpg.html and name it to flv.html
Open it and replace all lines with this code:

Code: [Select]
<script type="text/javascript" src="http://www.homepage.com/data/swfobject.js"></script>

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
 var s1 = new SWFObject("http://www.homepage.com/data/player.swf","single","320","255","7");
 s1.addParam("allowfullscreen","true");
 s1.addVariable("file","./.{media_src}&bufferlength=4&showdigits=true&autostart=false");
 s1.addVariable("width","320");
 s1.addVariable("height","255");
 s1.addVariable("image","http://www.homepage.com/data/logo.jpg");
 s1.write("player1");
</script>
(Be shure to rename the adress in this script to your own!!!
4. Like you see you can add an own Logo-Image which will be shown before the video is starting. Just create one and copy this Image to the folder /4images/data

If you would like to play the video automatic, so change
autostart=false"
to
autostart=true"

Working example for an Video-gallery:
http://www.brick-cinema.com

It is possible to change the Player-Controlls with javascript, but for this check the author´s Website

Offline htpzc

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #12 on: February 27, 2008, 10:02:48 AM »
I have tried this and other Script´s/Mod´s for installing flash-videos
But the reason is, that mostly only the IE will play those Videos, and sometimes some Upload-Errors by Users...

I have found out a way to make it round with the most browsers and plattforms like Mac and Microsoft.

1. Like in the start-Post you need an Player.
Take the newest from:
http://www.jeroenwijering.com/?item=JW_FLV_Player

2. Copy the player.swf to 4images/data
In this folder you have to copy the swfobject.js too!

3. Now you have to create the flv.html , which display your Video.
Simple Copy the jpg.html in templates/default/media/jpg.html and name it to flv.html
Open it and replace all lines with this code:

Code: [Select]
<script type="text/javascript" src="http://www.homepage.com/data/swfobject.js"></script>

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
 var s1 = new SWFObject("http://www.homepage.com/data/player.swf","single","320","255","7");
 s1.addParam("allowfullscreen","true");
 s1.addVariable("file","./.{media_src}&bufferlength=4&showdigits=true&autostart=false");
 s1.addVariable("width","320");
 s1.addVariable("height","255");
 s1.addVariable("image","http://www.homepage.com/data/logo.jpg");
 s1.write("player1");
</script>
(Be shure to rename the adress in this script to your own!!!
4. Like you see you can add an own Logo-Image which will be shown before the video is starting. Just create one and copy this Image to the folder /4images/data

If you would like to play the video automatic, so change
autostart=false"
to
autostart=true"

Working example for an Video-gallery:
http://www.brick-cinema.com

It is possible to change the Player-Controlls with javascript, but for this check the author´s Website

I tested this one and it is working on all systems i tested till now.
Great work, thanks for the easy how-to.


Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.412
    • View Profile
    • 4images - Image Gallery Management System
Re: [MOD] FLV-Integration für 4images
« Reply #13 on: February 27, 2008, 12:19:37 PM »
Thanks mato72 for translation!  :)
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline black1cat

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [MOD] FLV-Integration für 4images
« Reply #14 on: February 29, 2008, 05:29:31 PM »
Bei mir kommt immer ein Fehler, wenn ich eine FLV Datei hochladen will:

Fatal error: Function name must be a string in /users/jensupload/www/img2/member.php on line 613

Was soll ich machen?