Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73B8810D56 for ; Wed, 4 Dec 2013 19:10:37 +0000 (UTC) Received: (qmail 23990 invoked by uid 500); 4 Dec 2013 19:10:37 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 23974 invoked by uid 500); 4 Dec 2013 19:10:37 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 23964 invoked by uid 99); 4 Dec 2013 19:10:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 19:10:37 +0000 Date: Wed, 4 Dec 2013 19:10:37 +0000 (UTC) From: "OmPrakash Muppirala (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FLEX-33926) Null error in videoDisplay.videoObject while using VideoDisplay MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33926?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1383= 9217#comment-13839217 ]=20 OmPrakash Muppirala edited comment on FLEX-33926 at 12/4/13 7:10 PM: --------------------------------------------------------------------- The new APIs in OSMF 2.0 has moved things around a bit. =20 In OSMF 1.x MediaPlayer.videoObject returned a Video object. So, calling spark.compone= nts.VideoDisplay.videoObject() used to return a Video object to which we co= uld attach a camera. =20 In OSMF 2.0, MediaPlayer.videObject returns a VideoSurface object which has a internal V= ideo object. Making this a public property, I was able to fix this bug: Now, spark.components.VideoDisplay.videoObject() should look like this: {code} public function get videoObject():Video { =09var videoSurface:VideoSurface =3D videoPlayer.displayObject as VideoSurf= ace; return videoSurface.video; } {code} Unfortunately, to make this work, OSMF team needs to make the video object = in VideoSurface public. =20 I have created a ticket for this in OSMF bugbase https://bugbase.adobe.com/= index.cfm?event=3Dbug&id=3D3679507 Please vote on that ticket to have it resolved. Once that is done, we can = fix the Apache Flex codebase. =20 was (Author: bigosmallm): The new APIs in OSMF 2.0 has moved things around a bit. =20 In OSMF 1.x MediaPlayer.videoObject returned a Video object. So, calling spark.compone= nts.VideoDisplay.videoObject() used to return a Video object to which we co= uld attach a camera. =20 In OSMF 2.0, MediaPlayer.videObject returns a VideoSurface object which has a internal V= ideo object. Making this a public property, I was able to fix this bug: Now, spark.components.VideoDisplay.videoObject() should look like this: public function get videoObject():Video { =09var videoSurface:VideoSurface =3D videoPlayer.displayObject as VideoSurf= ace; return videoSurface.video; } Unfortunately, to make this work, OSMF team needs to make the video object = in VideoSurface public. =20 I have created a ticket for this in OSMF bugbase https://bugbase.adobe.com/= index.cfm?event=3Dbug&id=3D3679507 Please vote on that ticket to have it resolved. Once that is done, we can = fix the Apache Flex codebase. =20 > Null error in videoDisplay.videoObject while using VideoDisplay > --------------------------------------------------------------- > > Key: FLEX-33926 > URL: https://issues.apache.org/jira/browse/FLEX-33926 > Project: Apache Flex > Issue Type: Bug > Components: Spark: VideoPlayer > Affects Versions: Apache Flex 4.11.0 > Reporter: Jo=C3=A3o Saleiro > Assignee: OmPrakash Muppirala > Labels: video > > The videoDisplay.videoObject in the example below is null, so a null obje= ct reference is thrown. > Using the Webcam with Spark VideoDisplay in Flex 4.11 does not work. > > xmlns:s=3D"library://ns.adobe.com/flex/spark" > xmlns:mx=3D"library://ns.adobe.com/flex/mx"> > > import org.osmf.net.StreamType; > protected function video_d_creationCompleteHandler():void > { > var camera:Camera =3D Camera.getCamera(); > if (camera) > video_d.videoObject.attachCamera(camera); > } > ]]> > > x=3D"15" y=3D"23" > creationComplete=3D"video_d_creationCompleteHandler()"> > > streamType=3D"{StreamType.LIVE}"> > > > > > -- This message was sent by Atlassian JIRA (v6.1#6144)