Hi list,
I have a Video playing in a custom player, and I encounter a strange problem.
I made lots of video players allready, but now it wont playback the video off
of a network-address.
Variables are passed to the player, and are in the player correctly received.
Tried it first in as3, and then quickly ported it to as2, but both versions
encounter the same problem.
flv and swf and html are in the same folder... first tried it in swfobject,
then normal embedding, but both the same problem... I don't know where to look
now.
"Local playback security: play local files only" I don't need to put this on
network right? If everything is on the same domain?
Code is minimal/simple like this:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.onStatus = function(infoObject:Object) {
switch(infoObject.code)
{
case 'NetStream.Play.Stop':
playBtn._visible =
vidT._visible = true;
}
};
homeVid.attachVideo(ns);
vidT.text = (_root.vidTitle != null)? _root.vidTitle: 'no
addVariable content.';
var vidU:String = (_root.vidUrl != null)? _root.vidUrl :
'test.flv';
playBtn.onRelease = function()
{
playBtn._visible = vidT._visible = false;
ns.play(vidU);
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders