[Webkit-unassigned] [Bug 113965] Add interfaces and stubs for audio and video tracks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 8 08:22:16 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=113965





--- Comment #20 from Brendan Long <b.long at cablelabs.com>  2013-04-08 08:20:30 PST ---
(In reply to comment #19)
> Would it be possible to have all three Track types share a base class?

The track classes already share a TrackBase class. I think it has most of their shared code. Looking into this more closely made me realize that TrackBase extends EventTarget, but AudioTrack and VideoTrack aren't EventTargets, so fixing that should simplify things a little bit.

I'm also looking at making a TrackListBase since their interfaces are extremely similar. I might be able to make a TrackList<T> class that has almost all of the code in it.

> If so, you may also be able to have a single mediaPlayerDidAdd*Track, mediaPlayerDidRemove*Track, etc. 

Do you mean just having a mediaPlayerDidAddTrack(TrackBase)? I could look into that. 

> It may also be possible to have the *TrackPrivate classes share a base class.

I'll look into that too.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list