{"id":23,"date":"2008-05-10T13:13:00","date_gmt":"2008-05-10T18:13:00","guid":{"rendered":"http:\/\/thaylin.info\/blog\/?p=23"},"modified":"2008-05-10T13:13:00","modified_gmt":"2008-05-10T18:13:00","slug":"where-i-am-now","status":"publish","type":"post","link":"https:\/\/www.thaylin.com\/blog\/2008\/05\/10\/where-i-am-now\/","title":{"rendered":"Where I am now&#8230;"},"content":{"rendered":"<p>So for this project since I need all the text that will show up in the video to be externalized for language conversion, I have to load everything streaming. This will also cut down on loads times tremendously.\u00a0<br \/>\nMy first idea is to make this nice and quick and simple. I&#8217;ve got 2 classes that I determined I need. I have a &#8220;SliverMain&#8221; class and a &#8220;Sliver&#8221; class. I don&#8217;t want to get too complex with this since I&#8217;ve only got a week and I&#8217;m working on other things on top of this. (ugh)<\/p>\n<p>my main class will basically Load my sound clip and the sliver elements that I have. I&#8217;ve stored the info for these in an array in a css file that I&#8217;m accessing. (Mayeb I&#8217;ll talk about that later).<\/p>\n<p>So since I can pass the url links for those clips in my css, I loop through that creating those clips and storing a reference point to them in an array I aptly named &#8220;clipArr&#8221;. And that&#8217;s about where I am for my SliverMain class.<\/p>\n<p>My sliver class will basically perform the loading of the clips via NetConnection, NetStream, and the Video class. Once the object has been added to the stage it loads it&#8217;s url that was set in my SliverMain class and sits on the video loading it.<\/p>\n<p>So now that I haev this working I&#8217;m going to work on masking these clips which has a minWidth (to determine my mask width when closed), and I may need a bgImage to view while the video is stopped and masked (bascially setting my vids alpha to 0 to view my bg for the sliver. Then I also need to grab the length of my audio in my SliverMain class and set a timer based on how many videos are being pulled in and divide that by the length of the audio to determine when my clips should show. I think there may also need to be a buffer time for while the videos are playing, so I&#8217;ll grab the duration of each video, divide that by two and subrtact that number from each point I got from that. So:<br \/>\n(audioDur\/numOfClips) &#8211; (durationOfClip\/2)<\/p>\n<p>Doing this is really handy for me as then I kind of pseudo code out what I&#8217;m doing while I write. good times.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So for this project since I need all the text that will show up in the video to be externalized for language conversion, I have to load everything streaming. This will also cut down on loads times tremendously.\u00a0 My first idea is to make this nice and quick and simple. I&#8217;ve got 2 classes that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":0,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}