Jump to content

Datenshi

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Datenshi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hm they didnt work. But even when i put a file which didnt have any spaces or special characters in the path, Divx Web Player gave me "Video file could not be downloaded" and crashes my browser..Im thinking of putting this project on hold since Divx Web Player is so damn buggy atm :'( Thx a bunch for the help Phast1..Divx team need people like you.
  2. Cool phast1! it works now...or atleast i get something within the embed src tag..looks like this now: <embed type="video/divx" src="www.mysite.com%5Cessential%5C%5BDB%5D_Bleach_125_%5B76D5638F%5D.avi" autoplay="false" custommode="Stage6" previewimage="luffybox3.jpg" pluginspage="http://go.divx.com/plugin/download/" height="430" width="748"> Any idea why mysql returns % when its suppose to be / and [ ]. thanks huh weird, just noticed the line <param name="src" value="www.mysite.com\essential\[DB]_Bleach_125_[76D5638F].avi"> gets the right line delivered.
  3. This is the list which generates all the links on my video section: <?php session_start(); // Alltid överst på sidan // Kolla om inloggad = sessionen satt if (!isset($_SESSION['sess_user'])){ header("Location: ../index.php"); exit; } ?> <html> <head> <style type="text/css"> <!-- A {font-family:Georgia, "Times New Roman", Times, serif;font-size: 15px; } A:link {color:White;} A:visited {color: Gray;} A:hover {text-decoration: none; color: #00CCFF; font-weight:bold;} A:active {color: #00CCFF;text-decoration: none} } --> </style></head> <br><br><br> <div align="center"> <?php //Inkludera filen som connectar till databasen include "conn.php"; $query = mysql_query("SELECT * FROM videos ORDER BY id"); if (mysql_num_rows($query) <= 0) { echo "Tomt"; } else { while($row = mysql_fetch_array($query)) { echo '<a href="film.php?id=',$row['id'],'&fixit=.avi">',$row['name'],'</a><br>'; } } ?> </div> This is film.php, opens inside an iframe when i click a link: <?php session_start(); // Alltid överst på sidan // Kolla om inloggad = sessionen satt if (!isset($_SESSION['sess_user'])){ header("Location: ../index.php"); exit; } ?> <html> <head> <style type="text/css"> <!-- #Content { margin-left: 2px; margin-right: 40px; margin-bottom: 0px; margin-top: 40px; } --> </style></head> <div id="Content"> <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="748" height="430"> <param name="custommode" value="Stage6" /> <param name="previewImage" value="luffybox3.jpg" /> <param name="autoPlay" value="false" /> <param name="src" value="<?php echo $result['path']; ?>" /> <embed type="video/divx" src="<?php echo $result['path']; ?>" width="748" height="430" autoPlay="false" custommode="Stage6" previewImage="luffybox3.jpg" pluginspage="http://go.divx.com/plugin/download/"> </embed> </object> </div> </html>
  4. Thx for answering, since its PHP code within the tag embed src="HERE" im unable to see if it loaded properly, it just says embed src="" . Also there's more to the code as you described but i didnt feel it nessesary to write that stuff down, thx for telling me tho incase
  5. Im having kinda annoying problems with my code atm, Im trying to make a private video clip site and ive put all the videos inside mysql like this: Table videos `id` int(11) unsigned NOT NULL auto_increment, `path` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`) Typical entry could be id= 1 path = ..videos/mymovie.avi name= Tiz.Is.Da.Movie My PHP script works like its requesting all the entries in the database and puts a link with each "name" of the file. The link leads to, for example www.myaddress.com/film.php?id=1&fixit=.avi I have to add the extension since Divx Web Player refuse to play urls which doesnt have a .divx/.avi extension. Ah well, once i click a link Divx Web Player opens a file called film.php in an iframe, so far so good...until it tries to connect to the url specified in the embed code for the Web Player.. Code looks like this: <embed type="video/divx" src="<?php echo $result['path']; ?>" Its suppose to input for example "..videos/mymovie.avi" into the src value but i dont know if it does coz the clips aint playing. Anyone able to shed some light over this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.