Jump to content


Can't play video from live stream


  • You cannot reply to this topic
No replies to this topic

#1 kleva82

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 13 August 2005 - 07:51 AM

Hi!
My prog consists of thee parts: first part - broadcaster - publishes stream to the second part - server. Server republishes it to the other host-address and player tries to play it from there. Streams are created, but there is no picture why it can be, and how I can fix it? Aproximatly my code looks like:

/////////////// BROADCASTER ///////////////////////
br_ns = new NetStream(nc);
br_ns.attachAudio(source_mic);
br_ns.attachVideo(source_cam);
br_ns.publish("myStream", "live");

/////////////// SERVER ///////////////////////
in_ns = new NetStream(nc);
in_ns.setBufferTime(2);
in_ns.play("myStream");

out_ns = new NetStream(nc_OTHER);
out_ns.setBufferTime(2);
out_ns.attachVideo(in_ns);
out_ns.attachAudio(in_ns);
out_ns.publish("myStream_out", "live");

/////////////// PLAYER ///////////////////////
pl_ns = new NetStream(nc_OTHER);
pl_ns.setBufferTime(2);
myVidObj.attachVideo(pl_ns);
pl_ns.play("myStream_out");


In App Inspector all streams are fine: myStream_out is publishing and playing live, but THERE IS NO PICTURE.

But, If player will take the stream just from the broadcaster (without server) all works fine! What can be wrong in server script?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users