Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash playable video formata with php

Guest
Mar 26, 2011 Mar 26, 2011

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.

TOPICS
Server side applications
729
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 26, 2011 Mar 26, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 28, 2011 Mar 28, 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..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 28, 2011 Mar 28, 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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 29, 2011 Mar 29, 2011
LATEST

Hey

I wish I could but the thumb images in same folder but  I plan to have users upload the videos. Kind of how youtube works.

Cheers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines