flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Saleiro <joao.saleiro.webf...@gmail.com>
Subject Re: Issue with Webcam in Flex 4.11?
Date Thu, 21 Nov 2013 23:01:34 GMT
Done: https://issues.apache.org/jira/browse/FLEX-33926


Em 21/11/2013 20:16, OmPrakash Muppirala escreveu:
> I can repro this issue.  Looks like the OSMF2 API for
> org.osmf.media.MediaPlayer has changed.  I see the problem, and I am trying
> a workaround.  If someone knows about this, please let us know.
>
> João, please log a bug for this so that we can track this.
>
> Thanks,
> Om
>
>
> On Thu, Nov 21, 2013 at 11:42 AM, Alex Harui <aharui@adobe.com> wrote:
>
>> Hmm.  4.11 switched to OSMF2.  Maybe there is more needed to get WebCam to
>> work?
>>
>> On 11/21/13 10:55 AM, "João Saleiro" <joao.saleiro.webfuel@gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> I don't know if this is a known issue - I searched JIRA, and didn't find
>>> anything related.
>>> With Flex 4.11 the webcam seems not to be working.
>>> The videoDisplay.videoObject in the example below is null, so a null
>>> object reference is thrown.
>>>
>>> Is this known, or should I log it?
>>> Is there a workaround?
>>>
>>> <?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>
>>>
>>>
>>>
>>> Thanks,
>>>
>>> JS
>>


Mime
View raw message