wenn ich die mediaplayback-komponente in Adobe flash verwendet, läuft der videostream auf einem crtmp-server korrekt.as3 stream von crtmp-server
wenn ich versuche, das ohne die komponente selbst zu machen, habe ich ein paar fehler bekommen, unglücklicherweise gibt es nicht viel unterstützung, um streaming über as3 ohne eine mediaplayback-komponente zu erklären.
ich habe folgenden Code
package
{
\t import flash.display.MovieClip;
\t import flash.media.Video;
\t import flash.net.NetConnection;
\t import flash.net.NetStream;
\t
\t
\t /**
\t * ...
\t * @author Siam Modi
\t */
\t public class Main extends MovieClip
\t {
\t \t
\t \t public function Main()
\t \t {
\t \t \t
\t \t \t var nc:NetConnection = new NetConnection();
\t \t \t nc.connect("rtmp://213.136.73.230/maya");
\t \t \t var vid:Video = new Video();
\t \t \t addChild(vid);
\t \t \t var ns:NetStream = new NetStream(nc);
\t \t \t
\t \t \t vid.attachNetStream(ns);
\t \t \t ns.play("atlas.mp4");
\t \t }
\t
\t }
}
Irgendwelche Ideen? Thx für die Hilfe
das ist es, danke ... tun Sie haben eine Lösung für den Fehler "NetConnection konnte Callback onBWDone nicht aufrufen"? – Glowhollow
@Glowhollow http://stackoverflow.com/questions/2296822/flash-as3-streaming-player-onbwdone scheint die Lösung zu sein ('nc.client' Eigenschaft) – www0z0k