Nach dem letztjährigen Workaround, um die FLV Playback Komponente in Flex einzusetzen, wird dies mit einer aktualisierten Version der Komponente nun offiziell unterstützt.
Die Komponente ermöglicht außerdem Zugriff auf die neuen Features des neue Flash Media Servers 3.5 (Dynamic Streaming, Live DVR).
This updated version of the FLVPlayback component found in Flash CS4 Professional increases the streaming performance and quality for VOD and Live.[…] This component is ActionScript 3.0 only and you can use these classes with Flash CS4 Professional and, for the first time, in Flex 3 or the Flex SDK.
Code-Beispiel
So nutzt man die FLV Playback Komponente in Flex:
[xml]
[/xml]
Hinweis zur Verwendung in Flex
Die Datei FLVPlayback_2.5.swc
kopiert man in das „libs“-Verzeichnis des Flex-Projekts.
Wichtig sind zwei Einstellungen. Zum einen braucht man SDK in Version 3.2, zum anderen muss man die benötigte Flash Player Version auf 10.0.0. stellen. Beides findet man nach einem Rechtsklick auf das Projekt-Icon im „Flex Navigator“, dann „Properties > Flex Compiler“.
Download
Herunterladen kann man sich die neue FLV Playback komponente bei den Flash Media Server Tools. Allerdings muss man sich mit seiner Adobe ID einloggen.
Link: Flash Media Server Tools
[ad]
Hello, I am very keen to set up a video player in Flex – but have great difficulties. When I place your Flex Player in Flex 3. I get a 1009 error – cannot load xml when I try and compile… And when I try and use the new FLV Playback component with 3.2 and Flash player 10, I get 4 1119 Errors Access of possibly undefined property „…“ through a reference with static type FLVPlayback on source, skin, skinBackgroundColor and skinAutoHide properties. Please, do you have any hints as to how to solve either of these issues? Thanks.
Hello,
I’ve got your player working now. It was a silly mistake on my part causing the trouble… Sorry. FLVPlayback is another issue altogether – and I can’t unravel it.
Did you place the swc file in the libs-folder?
Thanks for your reply… Yes, Flex didn’t appear to pick it up from the library path – so I dragged and dropped it directly. And code hinting proves that it is there. I’ve also checked that I am using Flash 10 and have tried using both Flex 3.2 and 3.3 with the same results. 4 Error 1119s. I am wondering whrther there isn’t some underlying problem with my Flex setup that is throwing this error…