RE: [Flashcoders] Image as intro to FLV
Hi Greg, I read your solution with interest because I spent a lot of time looking into this a while back. It seems if I am not mistaken that the article by Lisa is only relevant for video being streamed from a Flash Communication Server, as opposed to a progressive stream from a regular server (the 'len' argument seems to only apply to FCS streams?). If this is the case, it's an important point to consider. I may be wrong, but that is what I could gather from a quick read. J. PS. Thanks for you comments on Fotoko! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: 28 November 2006 00:03 To: Flashcoders mailing list Subject: Re: [Flashcoders] Image as intro to FLV Not to detract in any way from Jason's excellent solution. I very much appreciate his sharing. And I love the fotoko.com UI. Very nicely done :-) Just as an fyi ... a solution is also provided in a January 2005 Devnet article by Lisa Larson under the heading Generating Dynamic Thumbnails: Creating a Dynamic Playlist for Streaming Flash Video http://www.adobe.com/devnet/flash/articles/video_player_05.html ... Legal Disclaimer: This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore View does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by View for any loss or damage in any way arising from its use. Any views expressed by the sender of this message are not necessarily those of View. _ This message from View has been checked for all known viruses by the MessageLabs Virus Control Centre. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Image as intro to FLV
Hi - I had this same question a while back and never really found an answer via the list. What I ended up doing works very well, if what you want to do is get the first frame of the video to be the image. You can see the end result it in action here: http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Dpy%1B The biggest issue I personally had with this was getting the video to stop loading / downloading after the first frame had loaded (but there is a command to do this - stream.close()) - just make sure you do that because if you are loading multiple videos with the first frame as a preview, you don't want them to all be downloading at the same time in their entirety just for the sake of that one frame. I can send you the code if you like and below is the email I sent to the list back then outlining the solution. Regards, Jason. - - - - - - - - - - - - - - - - - - - - - - - - - Just wanted to follow up on my findings regarding multiple video streams (progressive streams). I had 2 issues: 1) I was noticing that having more than 3-4 videos on the stage at once, greatly slowed down the Flash movie performance i.e. other vector animations on the stage (even if the videos are not playing). 2) How to create thumbnails for the video files. It turns out, the 2 are actually connected. Using stream.close() seems to be the way to solve these problems - so I start to stream the video and close() it as soon as the first frame has arrived (using onMeta and time/fps to pick up on when this has happened). This allows me to create a thumbnail for each of the videos on stage, whilst not needing to have the stream open and slowing the movie down. Works very nicely, if you want to see the final result in action: http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Dpy%1B Note - make sure to close() when users stop the video too (I still need to add vid controls, but the video is close()'d when the video is restored to thumbnail view). Cheers to those that helped and I hope this comes in useful for other that experience similar problems! Jason. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ktt Sent: 24 November 2006 11:58 To: Flashcoders mailing list Subject: [Flashcoders] Image as intro to FLV Hi, I would like to place jpg image in an html page as static visual intro. On click swf-flv should play. What is the best practice - to include image file into swf, to place image as link to swf or to make it first in flv sequence? I'd prefer what no controls should be visible before mouse click. Could you forward best resources about flash video embeding? Thank you in advance, ktt Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _ This incoming message has been checked for all known viruses by the MessageLabs Virus Control Centre. Legal Disclaimer: This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore View does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by View for any loss or damage in any way arising from its use. Any views expressed by the sender of this message are not necessarily those of View. _ This message from View has been checked for all known viruses by the MessageLabs Virus Control Centre
RE: [Flashcoders] Image as intro to FLV
Hi - I had this same question a while back and never really found an answer via the list. What I ended up doing works very well, if what you want to do is get the first frame of the video to be the image. You can see the end result it in action here: http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Dpy%1B The biggest issue I personally had with this was getting the video to stop loading / downloading after the first frame had loaded (but there is a command to do this - stream.close()) - just make sure you do that because if you are loading multiple videos with the first frame as a preview, you don't want them to all be downloading at the same time in their entirety just for the sake of that one frame. I can send you the code if you like and below is the email I sent to the list back then outlining the solution. Regards, Jason. - - - - - - - - - - - - - - - - - - - - - - - - - Just wanted to follow up on my findings regarding multiple video streams (progressive streams). I had 2 issues: 1) I was noticing that having more than 3-4 videos on the stage at once, greatly slowed down the Flash movie performance i.e. other vector animations on the stage (even if the videos are not playing). 2) How to create thumbnails for the video files. It turns out, the 2 are actually connected. Using stream.close() seems to be the way to solve these problems - so I start to stream the video and close() it as soon as the first frame has arrived (using onMeta and time/fps to pick up on when this has happened). This allows me to create a thumbnail for each of the videos on stage, whilst not needing to have the stream open and slowing the movie down. Works very nicely, if you want to see the final result in action: http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Dpy%1B Note - make sure to close() when users stop the video too (I still need to add vid controls, but the video is close()'d when the video is restored to thumbnail view). Cheers to those that helped and I hope this comes in useful for other that experience similar problems! Jason. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ktt Sent: 24 November 2006 11:58 To: Flashcoders mailing list Subject: [Flashcoders] Image as intro to FLV Hi, I would like to place jpg image in an html page as static visual intro. On click swf-flv should play. What is the best practice - to include image file into swf, to place image as link to swf or to make it first in flv sequence? I'd prefer what no controls should be visible before mouse click. Could you forward best resources about flash video embeding? Thank you in advance, ktt Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _ This incoming message has been checked for all known viruses by the MessageLabs Virus Control Centre. Legal Disclaimer: This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore View does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by View for any loss or damage in any way arising from its use. Any views expressed by the sender of this message are not necessarily those of View. _ This message from View has been checked for all known viruses by the MessageLabs Virus Control Centre. ___ Flashcoders
Re: [Flashcoders] Image as intro to FLV
Not to detract in any way from Jason's excellent solution. I very much appreciate his sharing. And I love the fotoko.com UI. Very nicely done :-) Just as an fyi ... a solution is also provided in a January 2005 Devnet article by Lisa Larson under the heading Generating Dynamic Thumbnails: Creating a Dynamic Playlist for Streaming Flash Video http://www.adobe.com/devnet/flash/articles/video_player_05.html In Lisa's source code the key logic follows the comments: //get first frame of video and: //begin at the specified start point, and play one frame ns.play( stream, start, 0 ); Rather than using close() Lisa's code specifies a len argument of 0 on play(). LiveDocs for play() method on NetStream here: http://livedocs.macromedia.com/flash/8/main/2565.html hth, g On 11/27/06, Jason Ross [EMAIL PROTECTED] wrote: Hi - I had this same question a while back and never really found an answer via the list. What I ended up doing works very well, if what you want to do is get the first frame of the video to be the image. ... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Image as intro to FLV
Hi, I would like to place jpg image in an html page as static visual intro. On click swf-flv should play. What is the best practice - to include image file into swf, to place image as link to swf or to make it first in flv sequence? I'd prefer what no controls should be visible before mouse click. Could you forward best resources about flash video embeding? Thank you in advance, ktt Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com