Copy link to clipboard
Copied
When live cam publish stream to livepkgr for example:
out_netStream.publish("livestream?adbe-live-event=eventID", "live");
do livepkgr cen broadcast out this stream at the same time in parallel both in
RTMP and in HTTP live streaming?
thanks
cheinan
Copy link to clipboard
Copied
Yes, you can play the same stream being published to livepkgr app using rtmp also.
Copy link to clipboard
Copied
When i try to see the RTMP stream at the browser swf viewr side
from publishing that way:
out_netStream.publish("livestream?adbe-live-event=eventID", "live");
I try:
in_netStream.play("eventID");
in_netStream.play("livestream?adbe-live-event=eventID");
in_netStream.play("livestream");
none is working...
What i have to write here?
in_netStream.play("???"); (just write whet have to be insted of the - ???).
big thanks
cheinan
Copy link to clipboard
Copied
in_stream.play("livestream") should work. Are you sure you are publishing "livestream" and not "livestream%i" ?
Copy link to clipboard
Copied
i cen play the stream like that:
in_netStream.play("livestream");
only when i do not encode the out_netStream
in H264VideoStreamSettings
for example this wil not work:
out_netStream = new NetStream(nc);
out_netStream.attachCamera(cam);
var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();
h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3_1); //BASELINE
h264Settings.setMode(320, 240, 16);
h264Settings.setKeyFrameInterval(4);
cam.setQuality(0, 90);
cam.setMode(320, 240, 16, true);
cam.setKeyFrameInterval(16);
out_netStream.videoStreamSettings = h264Settings;
out_netStream.publish("livestream?adbe-live-event=eventID", "live");
and in swf viewr side this not working:
in_netStream.play("livestream");
i cen see only green screen
and for example this will work:
out_netStream = new NetStream(nc);
out_netStream.attachCamera(cam);
cam.setQuality(0, 90);
cam.setMode(320, 240, 16, true);
cam.setKeyFrameInterval(16);
out_netStream.publish("livestream?adbe-live-event=eventID", "live");
and in swf viewr side this without H264VideoStreamSettings is working:
in_netStream.play("livestream");
but in order to broadcast in http live streaming i must use H264VideoStreamSettings
so what i need to do in order to use H264VideoStreamSettings
and at the same time to play the livestream in rtmp in the regular swf?
Copy link to clipboard
Copied
H264 codec is not supported for FLV format. FLV format supports only On2 and Soreson for Video and MP3/Nellymoser/Speex for Audio for streaming through AMS.
Copy link to clipboard
Copied
Hi,
I tried this at my end and it worked for both HDS as well as RTMP playback.
Following is the code, once NetConnection.Connect.Success is received:
For publishing:
out_netStream = new NetStream(nc);
cam = Camera.getCamera();
cam.setQuality(0, 90);
cam.setMode(320, 240, 16, true);
cam.setKeyFrameInterval(16);
out_netStream.attachCamera(cam);
h264Settings = new H264VideoStreamSettings();
h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3_1); //BASELINE
h264Settings.setMode(320, 240, 16);
h264Settings.setKeyFrameInterval(4);
out_netStream.videoStreamSettings = h264Settings;
out_netStream.publish("livestream?adbe-live-event=eventID", "live");
For Playback using RTMP:
in_netStream = new NetStream(nc);
in_netStream.play("livestream");
vid.attachNetStream(in_netStream);
Copy link to clipboard
Copied
I tried exactly your code and i get
only green screen when i use
out_netStream.videoStreamSettings = h264Settings;
and without h264Settings its working
so way i get only green screen when i use
out_netStream.videoStreamSettings = h264Settings ?
thanks
cheinan
Copy link to clipboard
Copied
Hi Cheinan,
Above code is working for me. So, there is something wrong at your end. What is the Flash Player version when you are trying to publish and playback?
As H264VideoStreamSettings class is supported by Flash Player 11 onwards.
Copy link to clipboard
Copied
Ok finaly i Succeed
Big thanks for all to your good halp!
I am working with FlashDevelop and the problem was
it was on 11.1 player version
i update the player version to 11.4 and its working
the only problem is when the stream is with
H264VideoStreamSettings class
the in_netStream.play("livestream");
is in a bit less quality and reacting more slowly
is there any way to avoid or improve that?
thanks
cheinan