Quote from: zi at Nov 12, 2009, 11:05 PM
Man, this looks awesome!
Can’t wait to try it!
Kudos for great work.
@zi & mrhaw -- Thank you!
I am now including this custom SQL Insert statement to assist those of you looking for help in setting up your media sources:
INSERT INTO `modx_multimedia_sources` (`connect_server_title`, `connect_protocol`, `connect_server`, `connect_port`, `connect_directory`, `connect_user`, `connect_password`, `serve_protocol`, `serve_server`, `serve_port`, `serve_directory`, `serve_streamer`, `cre_dttm`, `mod_dttm`, `is_active`) VALUES('My Media Server Store','ftp','localhost','21','/Users/username/Sites/my_modx_site/assets/media','username','password','http','localhost','80','media','/~username/my_modx_site/assets','1216747073','1216747073','1');
INSERT INTO `modx_multimedia_sources` (`connect_server_title`, `connect_protocol`, `connect_server`, `connect_port`, `connect_directory`, `connect_user`, `connect_password`, `serve_protocol`, `serve_server`, `serve_port`, `serve_directory`, `serve_streamer`, `cre_dttm`, `mod_dttm`, `is_active`) VALUES('My Website','ftp','ftp.myserver.com','21','/absolute/path/to/assets/media','username','password','http','www.myserver.com','80','media','/assets','1216747073','1216747073','1');
The first example above works on my local Mac OS X 10.5.8, running XAMP w/ FTP enabled. This should give you an idea of the structure for 1.) Connecting to the source server via FTP, and 2.) Building the URI to serve the multimedia. In my test case I simply placed an FLV file in /assets/media...
The second example above illustrates serving from your MODx site when installed at the root (/) of the domain.