Skip to main content
Legend
February 12, 2013
Question

NetStream with OSMF is firing NetStream.Play.Stopped too early.

  • February 12, 2013
  • 2 replies
  • 564 views

Hi,

I've been digging into a bug report where the ends of adverts are clipped by up to three seconds in Android and, after a _lot_ of painful debugging, I have come to the conclusion that the issue is with the underlying NetStream object.

After a bit of jiggery pokery to locate the NetStream on NetStreamLoadTrait, I was able to listen to the changes to NetStream.time and to compare against the TimeTrait values, also to see what events were happening where and when. After placing this code on an Event.ENTER_FRAME handler, I was able to see clearly that there is _ALMOST_ALWAYS_ a huge jump in the last two frames... This equates to clipping off the last few seconds of the video as the jump tends to occur a couple of seconds prior to the end. Having placed break-points in OSMF code, it appears that the end is "correct" in that it is always in response to a NetStream.Play.Stopped... just that the NetStream.Play.Stopped is firing at the wrong time.

Does anyone have _any_ idea what could be causing this? Is it likely to be with the media being supplied (third-party advertsing video...) or the plugin itself?

Thanks,

G

This topic has been closed for replies.

2 replies

Legend
February 21, 2013

I have created a bug report here: https://bugbase.adobe.com/index.cfm?event=bug&id=3504086

Please take a look, use my supplied test script, and vote for the issue if you can reproduce it.

G

Legend
March 4, 2013

Hi,

Bumping this one in hopes!

This one is a huge show-stopper as _nobody_ will be happy with the potential for losing the terminal three seconds of their adverts upwards of half the number of times they are played!

Seriously, am I the only one to have noticed this?

G