1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5[ 6 RuntimeEnabled=AudioVideoTracks, 7 SetWrapperReferenceFrom=owner, 8] interface VideoTrackList : EventTarget { 9 readonly attribute unsigned long length; 10 getter VideoTrack (unsigned long index); 11 VideoTrack? getTrackById(DOMString id); 12 readonly attribute long selectedIndex; 13 14 attribute EventHandler onchange; 15 attribute EventHandler onaddtrack; 16 attribute EventHandler onremovetrack; 17}; 18