mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-20 01:51:07 +02:00
changed mx VideoDisplay to Spark VideoDisplay in RtmpPublisher
This commit is contained in:
parent
b4e77fa750
commit
c442e1fc2d
|
@ -67,7 +67,10 @@
|
||||||
camera.setMode(640, 480, 30);
|
camera.setMode(640, 480, 30);
|
||||||
camera.setQuality(131072, 70);
|
camera.setQuality(131072, 70);
|
||||||
|
|
||||||
videoDisplay.attachCamera(camera);
|
//videoDisplay.attachCamera(camera);
|
||||||
|
var localCam:Video = new Video(640,480);
|
||||||
|
localCam.attachCamera(camera);
|
||||||
|
videoDisplay.addChild(localCam);
|
||||||
|
|
||||||
microphone = Microphone.getMicrophone();
|
microphone = Microphone.getMicrophone();
|
||||||
microphone.setSilenceLevel(0);
|
microphone.setSilenceLevel(0);
|
||||||
|
@ -77,7 +80,7 @@
|
||||||
]]>
|
]]>
|
||||||
</fx:Script>
|
</fx:Script>
|
||||||
<s:BorderContainer x="0" y="0" width="100%" height="100%">
|
<s:BorderContainer x="0" y="0" width="100%" height="100%">
|
||||||
<mx:VideoDisplay width="100%" height="100%" id="videoDisplay"></mx:VideoDisplay>
|
<s:VideoDisplay width="100%" height="100%" id="videoDisplay"></s:VideoDisplay>
|
||||||
<s:Button label="Publish" id="publishButton" horizontalCenter="0" bottom="10"></s:Button>
|
<s:Button label="Publish" id="publishButton" horizontalCenter="0" bottom="10"></s:Button>
|
||||||
</s:BorderContainer>
|
</s:BorderContainer>
|
||||||
</s:Application>
|
</s:Application>
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue