Skip to main content
March 26, 2011
Question

Flash playable video formata with php

  • March 26, 2011
  • 1 reply
  • 736 views

Hi

I have a php script that handles the upload of files and want people uplodaing video put video thats compatible with flash player.

$name=$_FILES['vidfile']['name'];
$type=$_FILES['vidfile']['type'];
$size=$_FILES['vidfile']['size'];
$temp=$_FILES['vidfile']['tmp_name'];
$error=$_FILES['vidfile']['error'];

//This is suppose to check the type of vid file upload. I need all the vid  types to be flash compatible when access through xml

if($type=="vidfile/swf")

{

//okay to upload.

}

else

{

//not okay to upload.

}

The question is what file or video types will play on flash through xml and how can a verify any one uploading video has video in this format.

The last question is how do I create thumb nails of the uploaded videos. Like a clickable image of the thing some will watch thanx.

This topic has been closed for replies.

1 reply

Günter_Schenk
Inspiring
March 27, 2011

I think that it will make more sense to post the "what file or video types will play on flash through xml" on the Flash forum

Tony404 wrote:

The last question is how do I create thumb nails of the uploaded videos..

Maybe this Export JPEG with Flash/PHP - tutorial will be helpful.

March 29, 2011

Hi

Thank you for the reply. When a video is uploaded it is inserted into a folder on the server. The location of the video is inserted into an php myadmin database table. as a result many video would exsist In the folder. When dealing with photo I usually echo the photos from the folder. But with video how can I do this with out flash. just for the user to have an image of the video their going to watch. After they click the image of the video the xml kicks in and is played on the video player.

Thanks..

Günter_Schenk
Inspiring
March 29, 2011

How about uploading a manually created image of the video into the same folder the video sits in while storing the image file name in another table column ?