Share Coding

Tutorials, Problems, Stuffs …

Tag Archives: Live

Peer To Peer Live Video Streaming on Actionscript 3.0 With OpenRTMFP/Cumulus Server

To read this post, you need to finish H.264 Live Streaming first and know how to have a live streaming in Actionscript 3.0.
The target is to have a high quality(H.264) and high performance(Peer to peer) Web meeting.
This post only contain actionscript code at publisher and player. You must set up a OpenRTMFP/Cumulus Server.

Follow this post https://sharecoding.wordpress.com/2012/05/22/install-openrtmfpcumulus-to-centos-6-2/ to start a server and use this post to modify your H.264 Live Streaming project.

Web Meeting Publisher & Player

import flash.net.NetGroup;

 

var userid:String;
var groupname:String;

// Receive Flash Parameters from web page
userid = LoaderInfo(this.root.loaderInfo).parameters["userid"];
groupname = LoaderInfo(this.root.loaderInfo).parameters["groupname"];
if (userid==""||userid==null) {
	userid = "456";
}
if (groupname==""||groupname==null) {
	groupname = "swfever";
}

 
Read more of this post

Advertisements

H.264 Live Video Streaming on Actionscript 3.0 with Red5 Server

**A suggestion for you**: do not try to use flash streaming as a stable long term video publishing channel.

1. Import

import flash.media.H264VideoStreamSettings;
import flash.media.VideoStreamSettings;
import flash.media.H264Level;
import flash.media.H264Profile;

2. Variable and setting

var cam:Camera;
var camBandWidth:Number = 0;
var camQualityPersentage:Number = 90;
var camFPS:Number = 15;
var camKeyFrameInterval:Number = 35;
var camWidth:Number = 240;
var camHeight:Number = 220;

var h264Settings:H264VideoStreamSettings;

Read more of this post