Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52F13172E4 for ; Sun, 28 Sep 2014 10:15:02 +0000 (UTC) Received: (qmail 20986 invoked by uid 500); 28 Sep 2014 10:15:01 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 20942 invoked by uid 500); 28 Sep 2014 10:15:01 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 20930 invoked by uid 99); 28 Sep 2014 10:15:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2014 10:15:01 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of solomax666@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2014 10:14:35 +0000 Received: by mail-lb0-f179.google.com with SMTP id 10so15943145lbg.10 for ; Sun, 28 Sep 2014 03:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Y+7UlSVwbj9tWP44YG5UB1jG5OBBmp8cOssLZOhGWas=; b=bqhyaJkO2UfObpxFphrP9o3Mkgv3aiZLFoJaYaRbD/Hao8mpXy1yH9PwQdXte7s4GM /eMJ21VgIaI9vSkCIlUPCPIqobhOvOfdtyxQ/022WGd+TjZXWlC7ySpdPv7o3VTrjOi/ IgamgyAT3HCK0dTe33DTd9AWWuWijFvBZYJBGtps+NfMhYfmZ3j0pM5rQjxvVQKNv+GI unqAVEss8Mn4eidWl34kpqgWCOwdsKjFf2CvD1sdf9cHP+uKGSHilSwO/u1S5g20JDU9 3rWaLVBFdSHVORE3dub/0su1yMvw03LzYH83QILICp7LOibtmiF3Jr9KTJA/4zezbfWp nUhQ== MIME-Version: 1.0 X-Received: by 10.152.44.136 with SMTP id e8mr32248504lam.36.1411899274172; Sun, 28 Sep 2014 03:14:34 -0700 (PDT) Received: by 10.152.122.17 with HTTP; Sun, 28 Sep 2014 03:14:34 -0700 (PDT) In-Reply-To: References: Date: Sun, 28 Sep 2014 17:14:34 +0700 Message-ID: Subject: Re: Dynamic Video adding From: Maxim Solodovnik To: users@flex.apache.org Content-Type: multipart/alternative; boundary=089e0160a8b2b2200c05041d6a54 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160a8b2b2200c05041d6a54 Content-Type: text/plain; charset=UTF-8 I just tried to switch off h264 and the issue gone, everything works as expected So it seems like these 2 lines of code videoStreamSettings = new H264VideoStreamSettings(); videoStreamSettings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_5_1); make video stream unusable on mobile Is it expected behavior? On 27 September 2014 01:13, Maxim Solodovnik wrote: > SGS3 is connected using USB cable Net connection via same home WiFi router > Actually I get "Connection successful" (in real application I do couple of > RPC calls and send video from phone to red5 which is clearly visible) > > The real weird thing: after device is locked (using power button) then > unlocked I get black screen with real video > So before lock: I get no video but flex components live (buttons > checkboxes etc) > After lock: I get video live but no flex components > It looks like overlay error > > On 26 September 2014 22:54, OmPrakash Muppirala > wrote: > >> Can you make sure that Red5 server is accessible from the phone? The SG3 >> and the server should be running on the same network. Or, is the Red5 >> server publicly accessible? >> >> If you run it on the SG3 in debug mode, what kind of trace output are you >> seeing in the IDE? >> >> Thanks, >> Om >> >> On Fri, Sep 26, 2014 at 8:08 AM, Maxim Solodovnik >> wrote: >> >> > it work as expected using desktop client >> > The issue is reproducible in mobile client only (works in emulator, >> fail on >> > SGS3 over USB) >> > >> > On 26 September 2014 22:04, OmPrakash Muppirala >> > wrote: >> > >> > > I dint see anything obviously wrong with the code. I suspect if the >> red5 >> > > server is set up correctly. Has that server worked for you before >> this? >> > > >> > > Thanks, >> > > Om >> > > On Sep 26, 2014 7:25 AM, "Maxim Solodovnik" >> > wrote: >> > > >> > > > Hello Om, >> > > > >> > > > Were you able to take a look at it? >> > > > Do you need any additional info? >> > > > >> > > > Thanks in advance for your help! >> > > > >> > > > On 25 September 2014 11:51, Maxim Solodovnik >> > > wrote: >> > > > >> > > > > Not sure if it is important or not >> > > > > Live streams are being created with these settings: >> > > > > videoStreamSettings = new H264VideoStreamSettings(); >> > > > > videoStreamSettings.setProfileLevel(H264Profile.BASELINE, >> > > > > H264Level.LEVEL_5_1); >> > > > > videoStreamSettings.setQuality(16384, 0); >> > > > > videoStreamSettings.setKeyFrameInterval(30); >> > > > > >> > > > > >> > > > > On 25 September 2014 01:18, Maxim Solodovnik < >> solomax666@gmail.com> >> > > > wrote: >> > > > > >> > > > >> Here is quickstart: https://github.com/solomax/VideoQuickStart >> > > > >> Everything works in emulator >> > > > >> It also works with mp4 stream from here: >> > > > >> http://flash.flowplayer.org/plugins/streaming/rtmp.html >> > > > >> >> > > > >> but fails with live stream from red5 server I'm trying to play >> > > > >> >> > > > >> Thanks in advance for the help >> > > > >> >> > > > >> On 25 September 2014 00:00, Maxim Solodovnik < >> solomax666@gmail.com> >> > > > >> wrote: >> > > > >> >> > > > >>> Thanks for the answer! >> > > > >>> I'll try to provide quickstart ASAP >> > > > >>> >> > > > >>> On 24 September 2014 23:46, OmPrakash Muppirala < >> > > bigosmallm@gmail.com> >> > > > >>> wrote: >> > > > >>> >> > > > >>>> Yes, this is definitely the correct list to ask such questions. >> > But >> > > > it >> > > > >>>> looks like a very specific scenario that others might not have >> > > exactly >> > > > >>>> faced. >> > > > >>>> >> > > > >>>> Can you try providing a very simple example that reproduces >> this >> > > > issue? >> > > > >>>> >> > > > >>>> Thanks, >> > > > >>>> Om >> > > > >>>> On Sep 24, 2014 9:30 AM, "Maxim Solodovnik" < >> solomax666@gmail.com >> > > >> > > > >>>> wrote: >> > > > >>>> >> > > > >>>> > Is it correct list to ask questions like this? >> > > > >>>> > >> > > > >>>> > I have weird behavior described in previous post on real >> device >> > > only >> > > > >>>> (SGS3 >> > > > >>>> > Latest Android) everything works as expected in emulator >> > > > >>>> > >> > > > >>>> > Can anyone help me? >> > > > >>>> > >> > > > >>>> > >> > > > >>>> > On 16 September 2014 02:08, Maxim Solodovnik < >> > > solomax666@gmail.com> >> > > > >>>> wrote: >> > > > >>>> > >> > > > >>>> > > Hello All, >> > > > >>>> > > >> > > > >>>> > > I'm trying to add/remove Video objects to scrolling view >> > > > >>>> dinamically in >> > > > >>>> > > Mobile project. >> > > > >>>> > > Here is the base markup >> > > > >>>> > > >> > > > >>>> > > ........... skipped ............. >> > > > >>>> > > >> > > > >>>> > > > gap="5" >> > > > >>>> > > paddingTop="5" paddingLeft="5" paddingRight="5" >> > > > >>>> > > paddingBottom="5"> >> > > > >>>> > > >> > > > >>>> > > ........... skipped ............. >> > > > >>>> > > >> > > > >>>> > > and code: >> > > > >>>> > > for (var i:int = 0; i < result.length; ++i) { >> > > > >>>> > > if (broadcastId == result[i].broadCastId) { >> > > > >>>> > > continue; //self >> > > > >>>> > > } >> > > > >>>> > > var ui:UIComponent = new UIComponent(); >> > > > >>>> > > ui.width = SMALL_WIDTH; >> > > > >>>> > > ui.height = SMALL_HEIGHT; >> > > > >>>> > > videoGroup.addElement(ui); >> > > > >>>> > > >> > > > >>>> > > var vid:Video = new Video(); >> > > > >>>> > > vid.width = SMALL_WIDTH; >> > > > >>>> > > vid.height = SMALL_HEIGHT; >> > > > >>>> > > ui.addChild(vid); >> > > > >>>> > > >> > > > >>>> > > var rc:RoomClient = new RoomClient(); >> > > > >>>> > > trace("Creating NetStream, bcId: " + >> result[i].broadCastId); >> > > > >>>> > > var ns:NetStream = new NetStream(app.nc); >> > > > >>>> > > >> > > > >>>> > > ns.addEventListener(NetStatusEvent.NET_STATUS, function >> > > > >>>> > > (e:NetStatusEvent):void { >> > > > >>>> > > trace("ns::netstatus " + e.info.code); >> > > > >>>> > > }); >> > > > >>>> > > ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, function >> > > > >>>> > > (e:AsyncErrorEvent):void { >> > > > >>>> > > trace("ns::async " + e); >> > > > >>>> > > }); >> > > > >>>> > > ns.client = { >> > > > >>>> > > onMetaData: function (item:Object):void { >> > > > >>>> > > trace("onMetaData: " + item); >> > > > >>>> > > }/*, >> > > > >>>> > > onPlayStatus: function (status:Object):void { >> > > > >>>> > > trace("onPlayStatus: " + status); >> > > > >>>> > > }, >> > > > >>>> > > onCuePoint: function (item:Object):void { >> > > > >>>> > > trace("onCuePoint: " + item); >> > > > >>>> > > }, >> > > > >>>> > > ioError: function (item:Object):void { >> > > > >>>> > > trace("ioError: " + item); >> > > > >>>> > > }, >> > > > >>>> > > netStatus: function (item:Object):void { >> > > > >>>> > > trace("netStatus: " + item); >> > > > >>>> > > }, >> > > > >>>> > > asyncError: function (item:Object):void { >> > > > >>>> > > trace("asyncError: " + item); >> > > > >>>> > > }*/ >> > > > >>>> > > }; >> > > > >>>> > > rc.broadCastId = result[i].broadCastId; >> > > > >>>> > > rc.streamId = result[i].streamId; >> > > > >>>> > > //rc.ns = ns; >> > > > >>>> > > >> > > > >>>> > > // TODO save use first/last name etc. >> > > > >>>> > > clients.addItem(rc); >> > > > >>>> > > >> > > > >>>> > > vid.attachNetStream(ns); >> > > > >>>> > > ns.play(result[i].broadCastId, -1); >> > > > >>>> > > } >> > > > >>>> > > >> > > > >>>> > > result I'm iterating in the loop is the list of objects >> > > containing >> > > > >>>> > > broadcastId >> > > > >>>> > > >> > > > >>>> > > I'm using Apache-flex-4.13.0, IntellyJ Idea 13 >> > > > >>>> > > Application is running on Samsung Galaxy 3 USB debug >> > > > >>>> > > Red5 is used as server >> > > > >>>> > > >> > > > >>>> > > As the result I'm getting is extremely weird: >> > > > >>>> > > In case there is only one video: I get "black box" instead >> of >> > > > video >> > > > >>>> > stream >> > > > >>>> > > Then device switch off and lock the screen; >> > > > >>>> > > After unlocking the whole screen is black (all other >> controls >> > > are >> > > > >>>> covered >> > > > >>>> > > with black rectangle) but video is live >> > > > >>>> > > Another lock/unlock: controls are visible, video == black >> box >> > > > >>>> > > >> > > > >>>> > > In case screen is turned off (but not locked) I have live >> > video >> > > > >>>> > > >> > > > >>>> > > In case of 2 video windows: firstone is displayed as >> expected, >> > > > >>>> second one >> > > > >>>> > > is black, lock/unlock same blackbox >> > > > >>>> > > >> > > > >>>> > > I have no trace events from ns.client >> > > > >>>> > > If more methods of ns.client are uncommented I get no >> video at >> > > all >> > > > >>>> > > >> > > > >>>> > > >> > > > >>>> > > Will appreciate any help >> > > > >>>> > > >> > > > >>>> > > Thanks in advance >> > > > >>>> > > -- >> > > > >>>> > > WBR >> > > > >>>> > > Maxim aka solomax >> > > > >>>> > > >> > > > >>>> > >> > > > >>>> > >> > > > >>>> > >> > > > >>>> > -- >> > > > >>>> > WBR >> > > > >>>> > Maxim aka solomax >> > > > >>>> > >> > > > >>>> >> > > > >>> >> > > > >>> >> > > > >>> >> > > > >>> -- >> > > > >>> WBR >> > > > >>> Maxim aka solomax >> > > > >>> >> > > > >> >> > > > >> >> > > > >> >> > > > >> -- >> > > > >> WBR >> > > > >> Maxim aka solomax >> > > > >> >> > > > > >> > > > > >> > > > > >> > > > > -- >> > > > > WBR >> > > > > Maxim aka solomax >> > > > > >> > > > >> > > > >> > > > >> > > > -- >> > > > WBR >> > > > Maxim aka solomax >> > > > >> > > >> > >> > >> > >> > -- >> > WBR >> > Maxim aka solomax >> > >> > > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax --089e0160a8b2b2200c05041d6a54--