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://pastebin.com/bn9kBrK0
 
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://pasteboard.co/IjmMyE3.png
 
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

Reply via email to