Author Topic: Where is...  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

Offline Andrew

  • album.pl Hacker
  • ****
  • Posts: 114
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • WHITEWATER!
Where is...
« on: November 05, 2002, 22:39:11 »
Hey Mike,

Can you tell me where in the script the 'new page' is created for the movies?

Thanks,

Andrew
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Where is...
« Reply #1 on: November 06, 2002, 04:59:42 »
Hi Andrew,

Glad to see you back. :)

I'm not sure which page you mean, to be honest. Can you give me an example?

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Andrew

  • album.pl Hacker
  • ****
  • Posts: 114
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • WHITEWATER!
Re: Where is...
« Reply #2 on: November 06, 2002, 08:23:30 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Where is...
« Reply #3 on: November 06, 2002, 08:48:02 »
Ok, I think I get it now...

So the way Movies work is that they all open up in a new browser window, and depending on how your system/viewers are configured, they may be displayed in your browser, in the viewer, as a "open/save" dialogue box, etc...

To be honest, having the script check to see what viewers are installed is scary. What works on a PC won't on a Mac, and I'd also be invoking Java access warnings (probably).

I think the best route is to just serve up the video, and let the viewer that's configured for that format handle it the way it wants to.

Kind of leaves things at the mercy of the user's config, but otherwise they get stuck with what the script wants... :)

As for embedding code, I'd like to be able to do that... It would allow things like Flash movies to be uploaded as well, which isn't currently possible... It's on the drawing board, but I'm trying hard to clean off the V6 to do list so I can get it out the door...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Where is...
« Reply #4 on: November 06, 2002, 08:48:40 »
Oh yeah, to answer your original question:

Code: [Select]
                 # Open movies in a new window
                 if (isAMovie($file))
                 {
                       $actual_object.="\" target=\"_blank";
                 }


Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: Where is...
« Reply #5 on: November 11, 2002, 11:15:46 »
I totally agree. If I were to click on a .wmv file, my Window Media Player should automatically fire up to play the movie. Likewise, if I clicked on a .mov file, my Quicktime Viewer would automatically pop up.

Why would you want to invoke a specific viewer for the type of file? I may have a quicktime plugin that works with a specific viewer I have loaded on my machine.

I think you're overkilling the configuration. I'm not sure of your specific user-base, but I'm sure 99.9% of PC and MAC users already have viewers associated with different file types.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan