Tuesday, 17 August 2010

2. Week 3 begins

Dear Diary,

     This is the third week at SilverstreamTV , began with the fearful thought of databasing and building flashpoint2. The upload and store facility for SilverstreamTV's videos and thumbnails. First started with a "quick" layout sculpturing of the upload page deciding to go with a purely DIV based design. Later deciding that there is nothing wrong with the straight edge and ease of the solid structure of tables. Would never of combined the two in normal circumstance but if it works and works well "there is no point in over complicating things". So using notepad++ no hint of Dreamweaver here.

Once the main structure was down there was the case of quickly constructing the database using php and MySQL then attaching the form to a php file. yea easy as that...hmm. Had a few issues with the fact i kept forgetting to clear my cache and being a fresher at php and MySQL but once i got past a few teething issues the foundations were down. There was then the case of sorting out the checkboxes so they actually gave back values whether they were ticked or not which was a quick "if null else" statement and the base php was done.

Next Is the javascript and flash connections. The uploader needed to tell the form what the name and format the video was uploaded in. Then the Javascript needed to send that data to the thumbnail creator so it has a source to play ready for the thumbnail screenshots. This is all using "External Interface" which allows you to pass values either way two good resources for finding out how to do this were http://simplistika.com/  and http://blog.deconcept.com/code/externalinterface.html . That is one of the beauties of the internet,  learn useful pieces of code and they post them up online to solve issues other people are having. So far i have successfully got to the stage where the video uploads the thumnail player plays, now i need to send the address of the thumnail to the form ready to save into the database. Which is hopefully just a duplicate of the uploaders system but when is anything that easy....

No comments:

Post a Comment