Hi,


I am using NetStream, NetConnection and Video object to play an mp4
file which is hosted over a web server using http.



The mp4 file URL is for example: http://xx.xx.xx.xx/file.mp4



This is an AIR application and the relevant code is pasted below:



-------



                    var url:String = <some http url>;

                    connect_nc = new NetConnection();
                    connect_nc.connect(null);
                    stream_ns = new NetStream(connect_nc);


                    var ns_object:Object = new Object();
                    ns_object.onPlayStatus = ns_onPlayStatus;

                    stream_ns.client = ns_object;

                    videoMP4.attachNetStream(stream_ns);

                    stream_ns.bufferTime = 1.0 // 1 sec
                    stream_ns.addEventListener
(NetStatusEvent.NET_STATUS, onNetStatusEventHandler);
                    stream_ns.play(url);



-----------



This code works when run on MAC OS X. But it does not work when run on
Windows XP. I get the error:

"NetStream.Play.StreamNotFound"



I also tried playing the URL using VLC player on the same windows XP
host. The URL is valid because VLC can play it.



In my particular case, the http URL is hosted by WMP 12 (window media
player 12) on Win 7 machine where I am using the media sharing feature
of WMP 12.



I am not sure where to start for debugging this issue. The fact that
VLC can retrieve the file properly and the AIR application on MAC OS X
can

do it as well, but on on Windows XP indicates to me that this might be
a flex bug.



thanks in advance for any help.

Sunil
-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to