Skip to main content
Participating Frequently
February 9, 2011
Answered

StageVideo usage from Flex Application?

  • February 9, 2011
  • 2 replies
  • 12000 views

Hello everyone!

I'm trying out new StageVideo class and if I add it pure AS3 project everything works perfect.

But if I try to use the same code in Flex project I get no video output, but looks like the video itself is playing ('cos I can hear the sound track).

I've tried to remove everything from mxml file to make sure nothing covers video, tried to remove all background changes and etc. (put here any other stuff that might overlay stage), but nothing helped.

Is it possible to use StageVideo from Flex app at all? May be there's some trick to it?

Can someone help? Thanks in advance!

    This topic has been closed for replies.
    Correct answer Alex J Harui

    Try an application skin with just a contentGroup as in:

    <?xml version="1.0" encoding="utf-8"?>

    <s:Skin

    xmlns:fx="http://ns.adobe.com/mxml/2009"

    xmlns:s="library://ns.adobe.com/flex/spark"

    >

    <fx:Metadata>

    [HostComponent("spark.components.Application")]

    </fx:Metadata>

    <s:states>

    <s:State name="normal" />

    <s:State name="disabled" />

    </s:states>

    <s:Group id="contentGroup" width="100%" height="100%" x="0"

    y="0"></s:Group>

    </s:Skin

    2 replies

    archemedia
    Participating Frequently
    January 10, 2012

    Maybe not directly connecte to this thread but since you're using stageVideo, you might also know if it's possible to access video's made with an iPad from within your Flex application?

    Thx,

    Dany

    yamalightAuthor
    Participating Frequently
    January 10, 2012

    archemedia, yep, it's possible. with some limitations though

    archemedia
    Participating Frequently
    January 10, 2012

    thx yamalight for your reaction. I've been browsing and browsing for some topics on this but wasn't able to find something usefull. I can access the CameraRoll on iPad but unlike other applications, it contains no video's. I can't find anything in the API for this. The same goes for iTunes music access. Any ideas?

    thx,

    Dany

    Alex J HaruiCorrect answer
    Adobe Employee
    February 9, 2011

    Try an application skin with just a contentGroup as in:

    <?xml version="1.0" encoding="utf-8"?>

    <s:Skin

    xmlns:fx="http://ns.adobe.com/mxml/2009"

    xmlns:s="library://ns.adobe.com/flex/spark"

    >

    <fx:Metadata>

    [HostComponent("spark.components.Application")]

    </fx:Metadata>

    <s:states>

    <s:State name="normal" />

    <s:State name="disabled" />

    </s:states>

    <s:Group id="contentGroup" width="100%" height="100%" x="0"

    y="0"></s:Group>

    </s:Skin

    yamalightAuthor
    Participating Frequently
    February 9, 2011

    Ah, super! Now everything works perfect Thanks a lot!

    Inspiring
    March 5, 2012

    Hi Yamalight,

    Please can you share some code for the solution - we're having the same issue but I'm not sure how giving the Application a skin helps.

    Thanks

    Ged