You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Ramazan Ergüder Bekrek <e....@yandex.com> on 2019/07/17 10:38:58 UTC

Re: OSMF having playing problems when used in OSGi context

Hi Alex,

I found out what was the problem and to my astonishment the problem is coming from the Adobe AIR 32+ version.
Let me explain ... My software is working perfectly up until AIR SDK 31 and below. I was doing test with previous version from 31 and it works well. It seems that Adobe did a change and it broke OSMF working on AIR SDK 32.

What happened exactly? What change did they integrate in the flash player so that OSMF doesn't work at all anymore.

Best Regards

14.06.2019, 18:50, "Alex Harui" <ah...@adobe.com>:
> Hi Ramazan,
>
> This project does not officially support OSMF. The Flex project uses OSMF as a dependency, and Royale may as well someday, but there aren't any members of the Flex or Royale project who know the code and Flex and Royale are not the home for the OSMF source code.
>
> Some folks on the Flex and Royale mailing lists may have experience using OSMF, but I'm not one of them. Your email was hard to read, can you make it easier to see the difference in the logs? It isn't clear to me if you are somehow using AIR as the runtime in an OSGI bundle that is part of some other large application or what. Anytime you wrap a runtime in a bundle there may be restrictions on what that bundle can access.
>
> HTH,
> -Alex
>
> On 6/14/19, 4:28 AM, "Ramazan Ergüder Bekrek" <e....@yandex.com> wrote:
>
>     I've created an OSMF plugin which fetch videos from youtube and then play them when the url is received.
>     When I test my plugin in an Adobe AIR Desktop project the video plays without a problem.
>     The code for the test app is the folowing:
>
>     https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2Fbn9kBrK0&amp;data=02%7C01%7Caharui%40adobe.com%7C1c8a1b220322442cdb9108d6f0bb7937%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636961085319282579&amp;sdata=yZiyXLBP3SvucWT5%2B5kz9SGQWOeyo3NXxaqHMSyOOw8%3D&amp;reserved=0
>
>     the log trace is the following:
>
>     Success
>     Fri Jun 14 2019 01:10:49 PM.379 [DEBUG] [org.osmf.elements.LightweightVideoElement] No DRM Content data available upfront. Play the content and listen for any DRM-related events.
>     Fri Jun 14 2019 01:10:49 PM.397 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN
>     Fri Jun 14 2019 01:10:49 PM.397 [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT
>     Fri Jun 14 2019 01:10:49 PM.400 [INFO] [org.osmf.media.videoClasses.VideoSurface] switchRenderer. currentVideoRenderer = null; the new renderer = [object StageVideo]
>     Fri Jun 14 2019 01:10:49 PM.408 [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED
>     Fri Jun 14 2019 01:10:49 PM.408 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END
>     Fri Jun 14 2019 01:10:49 PM.590 [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Start
>     Fri Jun 14 2019 01:10:49 PM.605 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN
>     Fri Jun 14 2019 01:10:49 PM.605 [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT
>     Fri Jun 14 2019 01:10:49 PM.606 [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED
>     Fri Jun 14 2019 01:10:49 PM.606 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END
>     Fri Jun 14 2019 01:10:49 PM.694 [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Buffer.Full
>
>     and the video appears well : https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2FIjmMyE3.png&amp;data=02%7C01%7Caharui%40adobe.com%7C1c8a1b220322442cdb9108d6f0bb7937%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636961085319287570&amp;sdata=oEvWmK30b0a65nleFFMHsd2rVjwEB%2BWr6qp5qDpk3G0%3D&amp;reserved=0
>
>     here is my problem, when I'm trying to use my OSMF plugin run the plugin in a dynamic app packaged as an OSGi bundle with an activator my plugin fails to play the video.
>
>     the log output is this:
>
>     New Trait removed : load
>     New Trait added : load
>     Fri Jun 14 2019 01:14:42 PM.541 [DEBUG] [org.osmf.elements.LightweightVideoElement] No DRM Content data available upfront. Play the content and listen for any DRM-related events.
>     New Trait added : audio
>     New Trait added : buffer
>     New Trait added : time
>     onStateChange : {0} durationChange
>     New Trait added : displayObject
>     New Trait added : play
>     onStateChange : {0} playing
>     Fri Jun 14 2019 01:14:42 PM.564 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN
>     Fri Jun 14 2019 01:14:42 PM.564 [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT
>     Fri Jun 14 2019 01:14:42 PM.564 [INFO] [org.osmf.media.videoClasses.VideoSurface] switchRenderer. currentVideoRenderer = null; the new renderer = [object StageVideo]
>     Fri Jun 14 2019 01:14:42 PM.565 [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED
>     Fri Jun 14 2019 01:14:42 PM.565 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END
>     Fri Jun 14 2019 01:14:42 PM.709 [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Start
>     onStateChange : {0} buffering
>     onStateChange : {0} durationChange
>     Number of blocks : 234
>     Segment length in seconds : 5
>     New Trait added : seek
>     Fri Jun 14 2019 01:14:42 PM.737 [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Failed
>     onStateChange : {0} playbackError
>     Number of blocks : 0
>     Segment length in seconds : 5
>     onStateChange : {0} durationChange
>     Number of blocks : 0
>     Segment length in seconds : 5
>     Fri Jun 14 2019 01:14:42 PM.738 [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Stop
>     Fri Jun 14 2019 01:14:42 PM.744 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN
>     Fri Jun 14 2019 01:14:42 PM.744 [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT
>     Fri Jun 14 2019 01:14:42 PM.744 [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED
>     Fri Jun 14 2019 01:14:42 PM.744 [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END
>
>     can someone pin point what is the problem?
>
>     Best regards