Kasher / apple-http-osmf

Automatically exported from code.google.com/p/apple-http-osmf
0 stars 0 forks source link

Duration is not returned in the MediaPlayer object #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in your mxml, add a debug string to see:     dbgtxt.text = String("Duration: 
" + mediaPlayer.duration);

What is the expected output? What do you see instead?
Getting NaN (not a number).  I would expect that the media player would return 
the sum of segment durations.  It looks like the httpstreaming tallies up the 
total duration within each M3U8IndexRateItem as totalTime();  But we never call 
a notifyTotalDuration event.  I am just not familar enough with as3 and/or OSMF 
to figure out how to fix this.  Any pointers in the right direction would be 
appreciated.

Original issue reported on code.google.com by dakazm...@gmail.com on 30 Jul 2011 at 12:19

GoogleCodeExporter commented 8 years ago
I solved my own problem.  Attached is patch that includes both the live 
streaming support (see issue #1) and now properly updates the duration element.

Original comment by dakazm...@gmail.com on 1 Aug 2011 at 3:04

Attachments:

GoogleCodeExporter commented 8 years ago
Duration element was a known missing issue. Please apply the patch and commit 
yourself. Thanks, Matthew.

Original comment by atmatthewat@gmail.com on 11 Aug 2011 at 2:13

GoogleCodeExporter commented 8 years ago
This was fixed in the r7 commit

Original comment by dakazm...@gmail.com on 11 Aug 2011 at 10:02