<p>We have a custom-built Flash-based video player that I maintain, and it needs to support preroll ads and ideally both progressive video playback and streaming depending on a server switch.</p>

<p>I've been working with the flvPlayback component but am finding myself a little out of my depth. Are there any good tutorials or resources for understanding the difference between netstream and flvPlayback? Or is one part of the other? Have googled without success.</p>

<p>For the preroll ads we'll probably use DART In-Stream, which is part of the reason I feel I'm losing a grip on the best way to structure this thing.</p>

<p>Any help with best practices or links most appreciated - ta!</p>

<p>EDIT - Update: I wrote a player by hand and got it more or less working with everything it needed to do, but we did migrate to JW Player across all the web properties in the end, about six months later. It's very reliable and well-supported, it integrated with the DART system well, and the designers found it easy to skin.</p>

[{'answer_id': 8982, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 3, 'selected': True, 'text': '<p>I would definitely have a look at the JW Flash Media Player:</p>\n\n<p><a href="http://www.jeroenwijering.com/?item=JW_FLV_Player" rel="nofollow noreferrer">http://www.jeroenwijering.com/?item=JW_FLV_Player</a></p>\n\n<p>It\'s Open Source, and I found the Source quite clean and easy to understand, it also supports playlists. I don\'t know the DART In-Stream stuff, but maybe you could "creatively use" the playlist feature to achieve that?</p>\n\n<p>Source Code is available here:</p>\n\n<p><a href="http://code.jeroenwijering.com/trac/" rel="nofollow noreferrer">http://code.jeroenwijering.com/trac/</a></p>\n'}, {'answer_id': 9809, 'author': 'grapefrukt', 'author_id': 914, 'author_profile': 'https://Stackoverflow.com/users/914', 'pm_score': 1, 'selected': False, 'text': "<p>I don't really like the flvPlayback-component, it's hard to handle both implementation wise and somewhat tricky to skin nicely and it's also quite bloated. So I'd opt to use either the JW Flash Media Player as recommended by Michael above or rolling my own entirely. </p>\n"}, {'answer_id': 33099, 'author': 'Paul Mignard', 'author_id': 3435, 'author_profile': 'https://Stackoverflow.com/users/3435', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve used the FLVPlayBack component for a while now and while it has some quirks I find it to be pretty versatile without having to write a lot of code.  The only large drawback I found is that if you try to stream a file that doesn\'t exist the playstate remains "loading" and never resolves - at that point, you can\'t load anything else into and it\'ll stay loading forever.</p>\n\n<p>For what it sounds like you are doing though it should handle that stuff fine - any of the default control bars will handle the status of either your progressive or streaming videos and it has some cool closed captioning features to boot.  </p>\n\n<p>As for documentation - Adobe\'s LiveDocs is really helpful:</p>\n\n<p><a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html" rel="nofollow noreferrer">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html</a></p>\n\n<p>Can\'t speak on the DART stuff though - never had to deal with it.</p>\n'}, {'answer_id': 208391, 'author': 'jrutter', 'author_id': 28454, 'author_profile': 'https://Stackoverflow.com/users/28454', 'pm_score': 1, 'selected': False, 'text': '<p>If you are interested in writing your own video player, you should pick up the following book; Learning ActionScript 3 <a href="http://www.learningactionscript3.com/" rel="nofollow noreferrer">http://www.learningactionscript3.com/</a>. It will give you a great understanding of AS3 and there is also a chapter dedicated to creating your own basic flash player, which you can then build upon.</p>\n'}]
['https://Stackoverflow.com/questions/7674', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/137/']