Jump to content


QTLoader


  • You cannot reply to this topic
8 replies to this topic

#1 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 04 January 2005 - 08:18 PM

I have added a new snippet to the Snippet Library!

Snippet name: QTLoader
Author: jaredc
Version: .6a (Beta)
More info: View this snippet
Description:
Embed a Quicktime movie in your web page quick and easy. For those of us who like our movies to be integrated in the page instead of in a popup.

Just trying to automate some fairly frequently used tasks that I have. Hope I'm not the only one out there using Quicktime :D

#2 adamr

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 14 January 2005 - 01:10 AM

Jaredc
I'm just trying the QTLoader and am getting the message "Quicktime movie unvailable".

I created a folder in assets called quicktime and uploaded the sample.mov that comes with quicktime.

I edited the snippet as per below but am unsure as to whether I should simply uncomment the height, width part as opposed to including in snippet call in the actual document where I want the movie to load .

At the moment I have [[QTLoader?height=360&width=480 path=assets/quicktime/sample.mov]]
in this page.

It's probably something really obvious but could you tell me what I'm doing wrong?




// Configuration Settings

// $qtBaseDir [ string ]
// The base directory you want to use for your Quicktime videos.
// This can make the path you enter into the snippet shorter as
// it doesn't have to be from the root (which is default).
// MUST HAVE TRAILING FORWARD SLASH AT THE END (/).
// Example: 'assets/quicktime/';
$baseDir = 'assets/quicktime/';

// *** REQUIRED ***
//
//$path [ snippet var string ]
// The file path of the movie from the Quicktime Base Directory.
// This is set ONLY in the snippet call with the variable $path
// [[QTLoader?path=folder/folder2/file.mov]]

// *** REQUIRED ***
//
// $height, $width [ int ]
// Height and width set in snippet call with $height and $width
//[[QTLoader?height=360&width=480]]

#3 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 14 January 2005 - 03:44 AM

The purpose of specifying a base directory in the config is to save you some key strokes when it comes time to put the snippet in a page. So where you have:

[[QTLoader?height=360&width=480 path=assets/quicktime/sample.mov]]
It looks for assets/quicktime/assets/quicktime/sample.mov

Try doing this in your snippet call instead (leaving out the base directory part):
[[QTLoader?height=360&width=480 path=sample.mov]]
Let me know if that does it for you!

#4 adamr

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 14 January 2005 - 05:14 AM

Thanks for the reply. I tried the revised snippet but still get the same error message.

#5 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 15 January 2005 - 03:23 PM

Be sure the "&" is between all the snippet variables. I just noticed it was missing between 480 and path. So it should read:

[[QTLoader?height=360&width=480&path=sample.mov]]
Note that the "&" has been restored. Give that a shot.

#6 adamr

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 16 January 2005 - 03:41 AM

jaredc, on Jan 15 2005, 11:23 AM, said:

Be sure the "&" is between all the snippet variables. I just noticed it was missing between 480 and path. So it should read:

[[QTLoader?height=360&width=480&path=sample.mov]]
Note that the "&" has been restored. Give that a shot.


Thanks that worked a treat.

Note: I was getting 3 instances of "\n" at the bottom of the quicktime movie so I removed a backslash from the snippet code
// handles
$newline = "\\n";

became

// handles
$newline = "\n";

After I did this the 3 instances "\n" no longer appeared.

#7 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 16 January 2005 - 04:04 AM

Yeah. The snippet library used to remove one "\" so I made a habit of putting in two. It seems like that got fixed but without enough fanfare for me to notice. I'll fix that. Done.

#8 vitalis

    Etomite Forum Newbie

  • Member
  • 16 posts

Posted 13 July 2010 - 07:02 AM

Hello,
where i can get QTLoader snippet code? I can't find it in the download, and the link in this post does not work.
Somebody can help me? Thank you!

#9 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 13 July 2010 - 12:47 PM

Perhaps Dean has a cop in his archives... Otherwise, it shouldn't be all that difficult to write new code...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users