Merge branch 'master' of github.com:bigbluebutton/bigbluebutton
This commit is contained in:
commit
655594a914
@ -32,6 +32,7 @@ import org.red5.server.api.IScope;
|
||||
import org.red5.server.api.Red5;
|
||||
import org.red5.server.api.service.IServiceCapableConnection;
|
||||
import org.red5.server.api.stream.IBroadcastStream;
|
||||
import org.red5.server.stream.ClientBroadcastStream;
|
||||
|
||||
public class Application extends MultiThreadedApplicationAdapter {
|
||||
private static Logger log = Red5LoggerFactory.getLogger(Application.class, "sip");
|
||||
@ -104,9 +105,27 @@ public class Application extends MultiThreadedApplicationAdapter {
|
||||
super.streamPublishStart(stream);
|
||||
String clientId = conn.getClient().getId();
|
||||
sipPeerManager.startTalkStream(peerId, clientId, stream, conn.getScope());
|
||||
// recordStream(stream);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A hook to record a sample stream. A file is written in webapps/sip/streams/
|
||||
* @param stream
|
||||
*/
|
||||
private void recordStream(IBroadcastStream stream) {
|
||||
IConnection conn = Red5.getConnectionLocal();
|
||||
String streamName = stream.getPublishedName();
|
||||
|
||||
try {
|
||||
ClientBroadcastStream cstream = (ClientBroadcastStream) this.getBroadcastStream(conn.getScope(), stream.getPublishedName() );
|
||||
cstream.saveAs(streamName, false);
|
||||
} catch(Exception e) {
|
||||
System.out.println("ERROR while recording stream " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void streamBroadcastClose(IBroadcastStream stream) {
|
||||
System.out.println("streamBroadcastClose: " + stream.getPublishedName());
|
||||
|
@ -82,7 +82,7 @@ if ( hasProductInstall && !hasRequestedVersion ) {
|
||||
// see. http://stackoverflow.com/questions/313966/mousewheel-not-working-when-published-movie-has-wmodetransparent
|
||||
// ralam (mar 31, 2010)
|
||||
AC_FL_RunContent(
|
||||
"src", "BigBlueButton",
|
||||
"src", "BigBlueButton.swf?v=VERSION",
|
||||
"width", "100%",
|
||||
"height", "100%",
|
||||
"align", "middle",
|
||||
@ -197,7 +197,7 @@ function getLanguage(){
|
||||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
|
||||
id="BigBlueButton" width="100%" height="100%"
|
||||
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
|
||||
<param name="movie" value="BigBlueButton.swf" />
|
||||
<param name="movie" value="BigBlueButton.swf?v=VERSION" />
|
||||
<param name="quality" value="high" />
|
||||
<param name="bgcolor" value="#869ca7" />
|
||||
<param name="allowScriptAccess" value="sameDomain" />
|
||||
|
Loading…
Reference in New Issue
Block a user