OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 function MpegParser(parent) { | 5 function MpegParser(parent) { |
6 MetadataParser.call(this, parent, 'mpeg', /\.(mp4|m4v|m4a|mpe?g4?)$/i); | 6 MetadataParser.call(this, parent, 'mpeg', /\.(mp4|m4v|m4a|mpe?g4?)$/i); |
7 this.mimeType = 'video/mpeg'; | 7 this.mimeType = 'video/mpeg'; |
8 } | 8 } |
9 | 9 |
10 MpegParser.prototype = {__proto__: MetadataParser.prototype}; | 10 MpegParser.prototype = {__proto__: MetadataParser.prototype}; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // The previous read did not return the next atom header, EOF reached. | 253 // The previous read did not return the next atom header, EOF reached. |
254 this.vlog("EOF @" + filePos); | 254 this.vlog("EOF @" + filePos); |
255 onSuccess(); | 255 onSuccess(); |
256 } | 256 } |
257 } catch(e) { | 257 } catch(e) { |
258 return onError(e.toString()); | 258 return onError(e.toString()); |
259 } | 259 } |
260 }; | 260 }; |
261 | 261 |
262 MetadataDispatcher.registerParserClass(MpegParser); | 262 MetadataDispatcher.registerParserClass(MpegParser); |
OLD | NEW |