flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "OmPrakash Muppirala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33926) Null error in videoDisplay.videoObject while using VideoDisplay
Date Mon, 16 Dec 2013 19:21:07 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13849612#comment-13849612
] 

OmPrakash Muppirala commented on FLEX-33926:
--------------------------------------------

Another way to fix it in our code would be to create a separate path video:Video object inside
our VideoDisplay and add an API like VideoDisplay.attachCamera()
This way, we wont be using the MediaPlayer.VideoSurface.video object, instead, we would create
a new one and attach the camera to it.  

There might be a way to pass this new video object into MediaPlayer, but even after a lot
of digging into their source code, I havent found anything.

> 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ão Saleiro
>            Assignee: OmPrakash Muppirala
>              Labels: video
>
> The videoDisplay.videoObject in the example below is null, so a null object reference
is thrown.
> Using the Webcam with Spark VideoDisplay in Flex 4.11 does not work.
> <?xml version="1.0" encoding="utf-8"?>
> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
>     xmlns:s="library://ns.adobe.com/flex/spark"
>     xmlns:mx="library://ns.adobe.com/flex/mx">
>     <fx:Script>
>         <![CDATA[
>             import org.osmf.net.StreamType;
>             protected function video_d_creationCompleteHandler():void
>             {
>                 var camera:Camera = Camera.getCamera();
>                 if (camera)
>                     video_d.videoObject.attachCamera(camera);
>             }
>         ]]>
>     </fx:Script>
>     <s:VideoDisplay id="video_d"
>         x="15" y="23"
>         creationComplete="video_d_creationCompleteHandler()">
>         <s:source>
>             <s:DynamicStreamingVideoSource host=""
>                 streamType="{StreamType.LIVE}">
>                 <s:DynamicStreamingVideoItem/>
>             </s:DynamicStreamingVideoSource>
>         </s:source>
>     </s:VideoDisplay>
> </s:WindowedApplication>



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message