| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // ready state | 55 // ready state |
| 56 const unsigned short HAVE_NOTHING = 0; | 56 const unsigned short HAVE_NOTHING = 0; |
| 57 const unsigned short HAVE_METADATA = 1; | 57 const unsigned short HAVE_METADATA = 1; |
| 58 const unsigned short HAVE_CURRENT_DATA = 2; | 58 const unsigned short HAVE_CURRENT_DATA = 2; |
| 59 const unsigned short HAVE_FUTURE_DATA = 3; | 59 const unsigned short HAVE_FUTURE_DATA = 3; |
| 60 const unsigned short HAVE_ENOUGH_DATA = 4; | 60 const unsigned short HAVE_ENOUGH_DATA = 4; |
| 61 readonly attribute unsigned short readyState; | 61 readonly attribute unsigned short readyState; |
| 62 readonly attribute boolean seeking; | 62 readonly attribute boolean seeking; |
| 63 | 63 |
| 64 // playback state | 64 // playback state |
| 65 [SetterRaisesException] attribute float currentTime; | 65 [SetterRaisesException] attribute double currentTime; |
| 66 readonly attribute double initialTime; | 66 readonly attribute double initialTime; |
| 67 readonly attribute float startTime; | 67 readonly attribute double startTime; |
| 68 readonly attribute float duration; | 68 readonly attribute double duration; |
| 69 readonly attribute boolean paused; | 69 readonly attribute boolean paused; |
| 70 attribute float defaultPlaybackRate; | 70 attribute double defaultPlaybackRate; |
| 71 attribute float playbackRate; | 71 attribute double playbackRate; |
| 72 readonly attribute TimeRanges played; | 72 readonly attribute TimeRanges played; |
| 73 readonly attribute TimeRanges seekable; | 73 readonly attribute TimeRanges seekable; |
| 74 readonly attribute boolean ended; | 74 readonly attribute boolean ended; |
| 75 [Reflect] attribute boolean autoplay; | 75 [Reflect] attribute boolean autoplay; |
| 76 [Reflect] attribute boolean loop; | 76 [Reflect] attribute boolean loop; |
| 77 void play(); | 77 void play(); |
| 78 void pause(); | 78 void pause(); |
| 79 | 79 |
| 80 // controls | 80 // controls |
| 81 attribute boolean controls; | 81 attribute boolean controls; |
| 82 [SetterRaisesException] attribute float volume; | 82 [SetterRaisesException] attribute double volume; |
| 83 attribute boolean muted; | 83 attribute boolean muted; |
| 84 [Reflect=muted] attribute boolean defaultMuted; | 84 [Reflect=muted] attribute boolean defaultMuted; |
| 85 | 85 |
| 86 // WebKit extensions | 86 // WebKit extensions |
| 87 attribute boolean webkitPreservesPitch; | 87 attribute boolean webkitPreservesPitch; |
| 88 | 88 |
| 89 readonly attribute boolean webkitHasClosedCaptions; | 89 readonly attribute boolean webkitHasClosedCaptions; |
| 90 attribute boolean webkitClosedCaptionsVisible; | 90 attribute boolean webkitClosedCaptionsVisible; |
| 91 | 91 |
| 92 // The number of bytes consumed by the media decoder. | 92 // The number of bytes consumed by the media decoder. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 108 #endif | 108 #endif |
| 109 | 109 |
| 110 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK | 110 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK |
| 111 [EnabledAtRuntime=webkitVideoTrack, RaisesException] TextTrack addTextTrack(DOMS
tring kind, [Optional] DOMString label, [Optional] DOMString language); | 111 [EnabledAtRuntime=webkitVideoTrack, RaisesException] TextTrack addTextTrack(DOMS
tring kind, [Optional] DOMString label, [Optional] DOMString language); |
| 112 [EnabledAtRuntime=webkitVideoTrack] readonly attribute TextTrackList textTracks; | 112 [EnabledAtRuntime=webkitVideoTrack] readonly attribute TextTrackList textTracks; |
| 113 #endif | 113 #endif |
| 114 | 114 |
| 115 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; | 115 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; |
| 116 [CustomSetter] attribute MediaController controller; | 116 [CustomSetter] attribute MediaController controller; |
| 117 }; | 117 }; |
| OLD | NEW |