SmithKettlewellRERC / DVX-YouDescribe-issues

Issue tracking repo for DVX & YouDescribe (Automatically exported from code.google.com/p/sk-dvx)
http://youdescribe.org/
0 stars 0 forks source link

Video playback sometimes get stuck on a bad clip and does not resume #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Go to http://youdescribe.ski.org/dev/player.php?v=N33q303jSy0
2. hit stop, change the describer setting to Steve5, and hit Play
3. At 16 seconds, playback stops and does not resume unless you press Play 
again. There do not appear to be any valid description clips for this video and 
describer.
We have seen this behavior before. In general, I think it is caused by a 0 
length audio clip, or some other unexpected value in the clip itself. We need 
to implement garbage collection or error checking to stop this from happening 
in general, not in any one specific case.

Original issue reported on code.google.com by joshua.a...@gmail.com on 19 Apr 2013 at 4:56

GoogleCodeExporter commented 9 years ago
This is still a potential issue, although it tends to show up only when some 
other problem causes the error condition.

We need a reliable way to handle an error within the player which causes an 
extended clip to never finish playback, hanging the player (playback does 
resume if the Play/Pause button is pressed, however).

A quick inspection shows that this condition does NOT fire a JWPlayer onError 
event (perhaps because of how media.php handles the condition?).

Original comment by Owen.R.E...@gmail.com on 7 Oct 2013 at 7:41

GoogleCodeExporter commented 9 years ago
Detect the error condition as reported from DVX API, and play a short (0.1 
second) silence MP3 instead. The error is logged to "YDmedia.log".

Original comment by Owen.R.E...@gmail.com on 8 Oct 2013 at 11:19

GoogleCodeExporter commented 9 years ago
Following the steps to reproduce outlined in the original report, this bug is 
still present using Windows7 and IE10. The player hangs at 16 seconds.

Original comment by joshua.a...@gmail.com on 31 Oct 2013 at 5:32

GoogleCodeExporter commented 9 years ago
The DVX API to get this clip:

http://dvx.ski.org:9090/dvx2Api/clip?Function=descriptions&Chapter=0&Language=En
glish&Time=16.0&UserId=30&MediaId=N33q303jSy0

returns an error message:

The server encountered an internal error that prevented it from fulfilling this 
request.

java.lang.NullPointerException
    com.kwilliams.dvxApi.AugmentedStreamingOutput.write(AugmentedStreamingOutput.java:25)
    com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)
    com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57)
    com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
    com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Original comment by Owen.R.E...@gmail.com on 1 Nov 2013 at 4:15

GoogleCodeExporter commented 9 years ago
There are two issues here:

1/. We need some automated garbage cleanup, or at least garbage detection and 
reporting (with manual deletion), for the DVX database.

2/. YouDescribe needs to be more robust in handling errors during playback. 
I've finally gone ahead and put more thorough detection and handling of 
CURL/HTTP transfer errors in clip playback in YouDescribe, and this one is a 
good test; it now plays the short silence and resumes video playback. However, 
I can't yet detect if a corrupted clip (like Ting created) comes from DVX; I 
think we need to think about this more after the upcoming release.

Original comment by Owen.R.E...@gmail.com on 2 Nov 2013 at 6:02

GoogleCodeExporter commented 9 years ago
Issue 97 is now a separate issue related to YouDescribe detecting and handling 
a corrupt audio clip.

YouDescribe now handles clip playback error messages from DVX (see #5 above), 
so this issue (Issue 36) just relates to DVX handling of corrupt audio clips 
now.

Original comment by Owen.R.E...@gmail.com on 6 Jan 2014 at 7:29