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

Zach Ishani commented on FLEX-35098:
------------------------------------

Nope - this is different to the 'audio but no video' issue. Nothing loads or 
plays at all as the library for playback is no longer included.

If I use this code in a blank mobile project:
{code:title=An Actionscript Error has Occured|borderStyle=solid}
// Some comments here
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:s="library://ns.adobe.com/flex/spark">
   <s:VideoDisplay source="/video/test.flv" width="1024" height="768"/>
</s:Application>
{code}

It throws the following error upon running (no video OR audio is loaded to the 
stage:
{code:title=VideoDisplayTest|borderStyle=solid}
VerifyError: Error #1014: Class org.osmf.media::MediaPlayer could not be found.

        at Main/_Main_Array1_c()
        at 
mx.core::DeferredInstanceFromFunction/getInstance()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as:116]
        at 
spark.components::SkinnableContainer/createDeferredContent()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/SkinnableContainer.as:1091]
        at 
spark.components::SkinnableContainer/createContentIfNeeded()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/SkinnableContainer.as:1120]
        at 
spark.components::SkinnableContainer/createChildren()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/SkinnableContainer.as:915]
        at 
spark.components::Application/createChildren()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/Application.as:1564]
        at 
mx.core::UIComponent/initialize()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:7695]
        at 
spark.components::Application/initialize()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/Application.as:1387]
        at Main/initialize()
        at 
mx.managers.systemClasses::ChildManager/childAdded()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:197]
        at 
mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:367]
        at 
mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/SystemManager.as:3065]
        at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/SystemManager.as:2851]
        at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/SystemManager.as:2731]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at 
mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/preloaders/Preloader.as:572]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()

{code}

> OSMF missing from 4.14.1 - VIdeoDisplay not working
> ---------------------------------------------------
>
>                 Key: FLEX-35098
>                 URL: https://issues.apache.org/jira/browse/FLEX-35098
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.15.0
>         Environment: IntelliJ + AIR 21.0. Compiling for a mobile device.
>            Reporter: Zach Ishani
>             Fix For: Apache Flex 4.15.0
>
>
> In the pre-Apache Flex releases, you could use <s:VideoDisplay> to play a 
> local video on a mobile device. 
> In the Apache releases, it appears that the OSMF libraries have been removed 
> from the SDK rendering the VIdeoDisplay component nonfunctional.
> I have tried copying the osmf.swf and projects/osmf folder from Adobe's Flex 
> release to Apache's (as advised in case [FLEX-34754] - but it still doesn't 
> work.
> What is the best way to play video on a mobile device with AIR?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to