diff options
Diffstat (limited to 'javascript/videojs/docs')
127 files changed, 56560 insertions, 0 deletions
diff --git a/javascript/videojs/docs/_redirects b/javascript/videojs/docs/_redirects new file mode 100644 index 0000000..c7341f3 --- /dev/null +++ b/javascript/videojs/docs/_redirects @@ -0,0 +1,27 @@ +# Netlify redirects to redirect old tutorial pages to new guide pages +/tutorial-angular.html https://videojs.com/guides/angular/ 301! +/tutorial-audio-tracks.html https://videojs.com/guides/audio-tracks/ 301! +/tutorial-components.html https://videojs.com/guides/components/ 301! +/tutorial-debugging.html https://videojs.com/guides/debugging/ 301! +/tutorial-embeds.html https://videojs.com/guides/embeds/ 301! +/tutorial-event-target.html https://videojs.com/guides/event-target/ 301! +/tutorial-faq.html https://videojs.com/guides/faqs/ 301! +/tutorial-hooks.html https://videojs.com/guides/hooks/ 301! +/tutorial-languages.html https://videojs.com/guides/languages/ 301! +/tutorial-layout.html https://videojs.com/guides/layout/ 301! +/tutorial-live.html https://videojs.com/guides/live/ 301! +/tutorial-middleware.html https://videojs.com/guides/middleware/ 301! +/tutorial-modal-dialog.html https://videojs.com/guides/modal-dialog/ 301! +/tutorial-options.html https://videojs.com/guides/options/ 301! +/tutorial-player-workflows.html https://videojs.com/guides/player-workflows/ 301! +/tutorial-plugins.html https://videojs.com/guides/plugins/ 301! +/tutorial-react.html https://videojs.com/guides/react/ 301! +/tutorial-setup.html https://videojs.com/guides/setup/ 301! +/tutorial-skins.html https://videojs.com/guides/skins/ 301! +/tutorial-tech.html https://videojs.com/guides/tech/ 301! +/tutorial-text-tracks.html https://videojs.com/guides/text-tracks/ 301! +/tutorial-troubleshooting.html https://videojs.com/guides/troubleshooting/ 301! +/tutorial-video-tracks.html https://videojs.com/guides/video-tracks/ 301! +/tutorial-videojs.html https://videojs.com/guides/videojs/ 301! +/tutorial-vue.html https://videojs.com/guides/vue/ 301! +/tutorial-webpack.html https://videojs.com/guides/webpack/ 301! diff --git a/javascript/videojs/docs/examples/elephantsdream/captions.ar.vtt b/javascript/videojs/docs/examples/elephantsdream/captions.ar.vtt new file mode 100644 index 0000000..a68a442 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/captions.ar.vtt @@ -0,0 +1,330 @@ +WEBVTT + +1 +00:00:15.042 --> 00:00:18.625 +...إلى... إلى الشمال يمكن أن نرى +...يمكن أن نرى الـ + +2 +00:00:18.750 --> 00:00:20.958 +...إلى اليمين يمكن أن نرى الـ + +3 +00:00:21.000 --> 00:00:23.125 +طاحنات الرؤوس... + +4 +00:00:23.208 --> 00:00:25.208 +كل شيئ آمن +آمن كلية + +5 +00:00:26.333 --> 00:00:28.333 +إيمو ؟ + +6 +00:00:28.875 --> 00:00:30.958 +! حذاري + +7 +00:00:47.125 --> 00:00:49.167 +هل أصبت ؟ + +8 +00:00:52.125 --> 00:00:54.833 +...لا أظن ذلك +وأنت ؟ + +9 +00:00:55.625 --> 00:00:57.625 +أنا بخير + +10 +00:00:57.667 --> 00:01:01.667 +،قم يا إيمو +المكان هنا غير آمن + +11 +00:01:02.208 --> 00:01:04.083 +لنذهب + +12 +00:01:04.167 --> 00:01:06.167 +وماذا بعد ؟ + +13 +00:01:06.167 --> 00:01:08.583 +...سترى... سترى + +14 +00:01:16.167 --> 00:01:18.375 +إيمو، من هنا + +15 +00:01:34.958 --> 00:01:37.000 +! إتبعني + +16 +00:02:11.125 --> 00:02:13.625 +! أسرع يا إيمو + +17 +00:02:48.375 --> 00:02:50.375 +! لست منتبها + +18 +00:02:50.750 --> 00:02:54.500 +...أريد فقط أن أجيب الـ +الهاتف... + +19 +00:02:55.000 --> 00:02:58.500 +،إيمو، أنظر +أقصد أنصت + +20 +00:02:59.750 --> 00:03:03.292 +عليك أن تتعلم الإصغاء + +21 +00:03:03.625 --> 00:03:05.917 +هذا ليس ضربا من اللهو + +22 +00:03:06.083 --> 00:03:09.958 +...إنك +أقصد إننا قد نموت بسهولة في هذا المكان + +23 +00:03:10.208 --> 00:03:14.125 +...أنصت +أنصت إلى أصوات الآلة + +24 +00:03:18.333 --> 00:03:20.417 +أنصت إلى نَفَسِك + +25 +00:04:27.208 --> 00:04:29.250 +ألا تمل أبدا من هذا ؟ + +26 +00:04:29.583 --> 00:04:31.583 +أمل ؟!؟ +نعم - + +27 +00:04:31.750 --> 00:04:34.667 +إيمو؛ الآلة في دقتها... مثل الساعة + +28 +00:04:35.500 --> 00:04:37.708 +...حركة ناشزة واحدة قد + +29 +00:04:37.833 --> 00:04:39.875 +تطرحك معجونا + +30 +00:04:41.042 --> 00:04:43.083 +...أو ليست + +31 +00:04:43.125 --> 00:04:46.542 +! عجينة يا إيمو +أ هذا ما تريد ؟ أن تصبح عجينة ؟ + +32 +00:04:48.083 --> 00:04:50.083 +أيمو، أ هذا هدفك في الحياة ؟ + +33 +00:04:50.583 --> 00:04:52.667 +أن تصير عجينة ؟ + +34 +00:05:41.833 --> 00:05:43.875 +إيمو، أغمض عينيك + +35 +00:05:44.917 --> 00:05:47.000 +لماذا ؟ +! الآن - + +36 +00:05:53.750 --> 00:05:56.042 +حسن + +37 +00:05:59.542 --> 00:06:02.792 +ماذا ترى إلى شمالك يا إيمو ؟ + +38 +00:06:04.417 --> 00:06:06.500 +لا شيئ +حقا ؟ - + +39 +00:06:06.542 --> 00:06:08.625 +لا، لا شيئ البتة + +40 +00:06:08.625 --> 00:06:12.417 +وماذا ترى إلى جهتك اليمنى يا إيمو ؟ + +41 +00:06:13.667 --> 00:06:17.833 +،نفس الشيئ يا بروغ +! نفس الشيئ بالضبط؛ لا شيئ + +42 +00:06:17.875 --> 00:06:19.917 +عظيم + +43 +00:06:40.625 --> 00:06:42.958 +أنصت يا بروغ ! هل تسمع ذلك ؟ + +44 +00:06:43.625 --> 00:06:45.625 +هل نستطيع الذهاب إلى هناك ؟ + +45 +00:06:45.708 --> 00:06:47.792 +هناك ؟ +نعم - + +46 +00:06:47.833 --> 00:06:49.833 +إنه غير آمن يا إيمو + +47 +00:06:49.917 --> 00:06:52.500 +صدقني، إنه غير آمن + +48 +00:06:53.292 --> 00:06:55.375 +...لكن لعلي أستطيع + +49 +00:06:55.417 --> 00:06:57.417 +...لكن +! لا - + +50 +00:06:57.667 --> 00:06:59.667 +! لا + +51 +00:07:00.875 --> 00:07:03.750 +هل من أسئلة أخرى يا إيمو ؟ + +52 +00:07:04.250 --> 00:07:06.333 +لا + +53 +00:07:09.458 --> 00:07:11.542 +...إيمو +نعم - + +54 +00:07:11.875 --> 00:07:13.958 +...لماذا يا إيمو... لماذا + +55 +00:07:15.292 --> 00:07:18.792 +لماذا لا تستطيع أن ترى حُسْن هذا المكان + +56 +00:07:18.833 --> 00:07:20.833 +...والطريقة التي يعمل بها + +57 +00:07:20.875 --> 00:07:24.000 +وكيف... وكيف أنه غاية في الكمال + +58 +00:07:24.083 --> 00:07:27.417 +! لا يا بروغ، لا أرى ذلك + +59 +00:07:27.542 --> 00:07:30.333 +لا أرى ذلك لأنه لا يوجد شيئ هناك + +60 +00:07:31.500 --> 00:07:35.333 +ثم لماذا يجب علي أن أسلم حياتي +لشيئ لا وجود له ؟ + +61 +00:07:35.583 --> 00:07:37.625 +هل يمكنك أن تخبرني ؟ + +62 +00:07:37.708 --> 00:07:39.750 +! أجبني + +63 +00:07:43.208 --> 00:07:47.333 +...بروغ +! أنت معتوه يا هذا + +64 +00:07:47.375 --> 00:07:49.417 +! إبعد عني + +65 +00:07:52.583 --> 00:07:55.083 +! لا يا إيمو ! إنه فخ + +66 +00:07:55.833 --> 00:07:57.875 +...إنه فخ + +67 +00:07:57.917 --> 00:08:01.750 +إلى جنبك الأيسر يمكنك أن ترى +حدائق بابل المعلقة + +68 +00:08:02.250 --> 00:08:04.292 +هل تعجبك كفخ ؟ + +69 +00:08:05.458 --> 00:08:07.542 +لا يا أيمو + +70 +00:08:09.417 --> 00:08:12.792 +...إلى جنبك الأيمن يمكنك رؤية +حزر ماذا ؟ + +71 +00:08:13.000 --> 00:08:15.042 +! عملاق رودس + +72 +00:08:15.125 --> 00:08:16.417 +! لا + +73 +00:08:16.458 --> 00:08:20.500 +،عملاق رودس +وهو هنا خصيصا من أجلك يا بروغ + +74 +00:08:20.583 --> 00:08:22.583 +فقط من أجلك + +75 +00:08:51.333 --> 00:08:53.375 +إنه هناك + +76 +00:08:53.417 --> 00:08:55.500 +أنا أؤكد لك... إيمو + +77 +00:08:57.333 --> 00:09:00.000 +...إنه diff --git a/javascript/videojs/docs/examples/elephantsdream/captions.en.vtt b/javascript/videojs/docs/examples/elephantsdream/captions.en.vtt new file mode 100644 index 0000000..8b83d28 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/captions.en.vtt @@ -0,0 +1,334 @@ +WEBVTT + +1 +00:00:15.000 --> 00:00:17.951 +At the left we can see... + +2 +00:00:18.166 --> 00:00:20.083 +At the right we can see the... + +3 +00:00:20.119 --> 00:00:21.962 +...the head-snarlers + +4 +00:00:21.999 --> 00:00:24.368 +Everything is safe. +Perfectly safe. + +5 +00:00:24.582 --> 00:00:27.035 +Emo? + +6 +00:00:28.206 --> 00:00:29.996 +Watch out! + +7 +00:00:47.037 --> 00:00:48.494 +Are you hurt? + +8 +00:00:51.994 --> 00:00:53.949 +I don't think so. +You? + +9 +00:00:55.160 --> 00:00:56.985 +I'm Ok. + +10 +00:00:57.118 --> 00:01:01.111 +Get up. +Emo. it's not safe here. + +11 +00:01:02.034 --> 00:01:03.573 +Let's go. + +12 +00:01:03.610 --> 00:01:05.114 +What's next? + +13 +00:01:05.200 --> 00:01:09.146 +You'll see! + +14 +00:01:16.032 --> 00:01:18.022 +Emo. +This way. + +15 +00:01:34.237 --> 00:01:35.481 +Follow me! + +16 +00:02:11.106 --> 00:02:12.480 +Hurry Emo! + +17 +00:02:48.059 --> 00:02:49.930 +You're not paying attention! + +18 +00:02:50.142 --> 00:02:54.052 +I just want to answer the... +...phone. + +19 +00:02:54.974 --> 00:02:57.972 +Emo. look. +I mean listen. + +20 +00:02:59.140 --> 00:03:02.008 +You have to learn to listen. + +21 +00:03:03.140 --> 00:03:04.965 +This is not some game. + +22 +00:03:05.056 --> 00:03:09.345 +You. I mean we. +we could easily die out here. + +23 +00:03:10.014 --> 00:03:13.959 +Listen. +listen to the sounds of the machine. + +24 +00:03:18.054 --> 00:03:20.009 +Listen to your breathing. + +25 +00:04:27.001 --> 00:04:28.956 +Well. don't you ever get tired of this? + +26 +00:04:29.084 --> 00:04:30.909 +Tired?!? + +27 +00:04:31.126 --> 00:04:34.491 +Emo. the machine is like clockwork. + +28 +00:04:35.083 --> 00:04:37.074 +One move out of place... + +29 +00:04:37.166 --> 00:04:39.121 +...and you're ground to a pulp. + +30 +00:04:40.958 --> 00:04:42.004 +But isn't it - + +31 +00:04:42.041 --> 00:04:46.034 +Pulp. Emo! +Is that what you want. pulp? + +32 +00:04:47.040 --> 00:04:48.995 +Emo. your goal in life... + +33 +00:04:50.081 --> 00:04:51.953 +...pulp? + +34 +00:05:41.156 --> 00:05:43.028 +Emo. close your eyes. + +35 +00:05:44.156 --> 00:05:46.027 +Why? +- Now! + +36 +00:05:51.155 --> 00:05:52.102 +Ok. + +37 +00:05:53.113 --> 00:05:54.688 +Good. + +38 +00:05:59.070 --> 00:06:02.103 +What do you see at your left side. Emo? + +39 +00:06:04.028 --> 00:06:05.899 +Nothing. +- Really? + +40 +00:06:06.027 --> 00:06:07.105 +No. nothing at all. + +41 +00:06:07.944 --> 00:06:11.984 +And at your right. +what do you see at your right side. Emo? + +42 +00:06:13.151 --> 00:06:16.102 +The same Proog. exactly the same... + +43 +00:06:16.942 --> 00:06:19.098 +...nothing! +- Great. + +44 +00:06:40.105 --> 00:06:42.724 +Listen Proog! Do you hear that! + +45 +00:06:43.105 --> 00:06:44.894 +Can we go here? + +46 +00:06:44.979 --> 00:06:47.894 +There? +It isn't safe. Emo. + +47 +00:06:49.145 --> 00:06:52.013 +But... +- Trust me. it's not. + +48 +00:06:53.020 --> 00:06:54.145 +Maybe I could... + +49 +00:06:54.181 --> 00:06:55.969 +No. + +50 +00:06:57.102 --> 00:06:59.934 +NO! + +51 +00:07:00.144 --> 00:07:03.058 +Any further questions. Emo? + +52 +00:07:03.976 --> 00:07:05.090 +No. + +53 +00:07:09.059 --> 00:07:10.089 +Emo? + +54 +00:07:11.142 --> 00:07:13.058 +Emo. why... + +55 +00:07:13.095 --> 00:07:14.022 +Emo... + +56 +00:07:14.058 --> 00:07:18.003 +...why can't you see +the beauty of this place? + +57 +00:07:18.141 --> 00:07:20.048 +The way it works. + +58 +00:07:20.140 --> 00:07:23.895 +How perfect it is. + +59 +00:07:23.932 --> 00:07:26.964 +No. Proog. I don't see. + +60 +00:07:27.056 --> 00:07:29.970 +I don't see because there's nothing there. + +61 +00:07:31.055 --> 00:07:34.965 +And why should I trust my +life to something that isn't there? + +62 +00:07:35.055 --> 00:07:36.926 +Well can you tell me that? + +63 +00:07:37.054 --> 00:07:38.926 +Answer me! + +64 +00:07:42.970 --> 00:07:44.000 +Proog... + +65 +00:07:45.053 --> 00:07:46.985 +...you're a sick man! + +66 +00:07:47.022 --> 00:07:48.918 +Stay away from me! + +67 +00:07:52.052 --> 00:07:54.884 +No! Emo! It's a trap! + +68 +00:07:55.135 --> 00:07:56.931 +Hah. it's a trap. + +69 +00:07:56.968 --> 00:08:01.043 +At the left side you can see +the hanging gardens of Babylon! + +70 +00:08:01.967 --> 00:08:03.957 +How's that for a trap? + +71 +00:08:05.050 --> 00:08:06.922 +No. Emo. + +72 +00:08:09.008 --> 00:08:12.088 +At the right side you can see... +...well guess what... + +73 +00:08:12.924 --> 00:08:14.665 +...the colossus of Rhodes! + +74 +00:08:15.132 --> 00:08:16.053 +No! + +75 +00:08:16.090 --> 00:08:21.919 +The colossus of Rhodes +and it is here just for you Proog. + +76 +00:08:51.001 --> 00:08:52.923 +It is there... + +77 +00:08:52.959 --> 00:08:56.040 +I'm telling you. +Emo... + +78 +00:08:57.000 --> 00:08:59.867 +...it is.
\ No newline at end of file diff --git a/javascript/videojs/docs/examples/elephantsdream/captions.ja.vtt b/javascript/videojs/docs/examples/elephantsdream/captions.ja.vtt new file mode 100644 index 0000000..4058648 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/captions.ja.vtt @@ -0,0 +1,326 @@ +WEBVTT + +1 +00:00:15.042 --> 00:00:18.042 +左に見えるのは… + +2 +00:00:18.750 --> 00:00:20.333 +右に見えるのは… + +3 +00:00:20.417 --> 00:00:21.917 +…首刈り機 + +4 +00:00:22.000 --> 00:00:24.625 +すべて安全 +完璧に安全だ + +5 +00:00:26.333 --> 00:00:27.333 +イーモ? + +6 +00:00:28.875 --> 00:00:30.250 +危ない! + +7 +00:00:47.125 --> 00:00:48.250 +ケガはないか? + +8 +00:00:51.917 --> 00:00:53.917 +ええ、多分… +あなたは? + +9 +00:00:55.625 --> 00:00:57.125 +わしは平気だ + +10 +00:00:57.583 --> 00:01:01.667 +起きてくれイーモ +ここは危ない + +11 +00:01:02.208 --> 00:01:03.667 +行こう + +12 +00:01:03.750 --> 00:01:04.917 +どこに? + +13 +00:01:05.875 --> 00:01:07.875 +すぐにわかるさ! + +14 +00:01:16.167 --> 00:01:18.375 +イーモ、こっちだ + +15 +00:01:34.958 --> 00:01:36.958 +ついて来るんだ! + +16 +00:02:11.583 --> 00:02:12.792 +イーモ、早く! + +17 +00:02:48.375 --> 00:02:50.083 +むやみにさわるな! + +18 +00:02:50.750 --> 00:02:54.500 +僕はただ、電話に +…出ようと + +19 +00:02:55.000 --> 00:02:58.208 +イーモ、見るんだ… +いや、聞いてくれ + +20 +00:02:59.750 --> 00:03:02.292 +君は「聞き方」を知る必要がある + +21 +00:03:03.625 --> 00:03:05.125 +これは遊びじゃない + +22 +00:03:06.167 --> 00:03:10.417 +我々はここでは +たやすく死ぬ + +23 +00:03:11.208 --> 00:03:14.125 +機械の声を聞くんだ + +24 +00:03:18.333 --> 00:03:22.417 +君の息づかいを聞くんだ + +25 +00:04:27.208 --> 00:04:29.250 +そんなことして疲れない? + +26 +00:04:29.583 --> 00:04:31.083 +疲れる?! + +27 +00:04:31.750 --> 00:04:34.667 +この機械は非常に正確で + +28 +00:04:35.500 --> 00:04:37.708 +一つ間違えば… + +29 +00:04:37.833 --> 00:04:40.792 +…地面に落ちてバラバラだ + +30 +00:04:41.042 --> 00:04:42.375 +え、でも― + +31 +00:04:42.417 --> 00:04:46.542 +バラバラだぞ、イーモ! +それでいいのか? + +32 +00:04:48.083 --> 00:04:50.000 +バラバラで死ぬんだぞ? + +33 +00:04:50.583 --> 00:04:52.250 +バラバラだ! + +34 +00:05:41.833 --> 00:05:43.458 +イーモ、目を閉じるんだ + +35 +00:05:44.917 --> 00:05:46.583 +なぜ? +―早く! + +36 +00:05:53.750 --> 00:05:56.042 +それでいい + +37 +00:05:59.542 --> 00:06:03.792 +左に見えるものは何だ、イーモ? + +38 +00:06:04.417 --> 00:06:06.000 +え…何も +―本当か? + +39 +00:06:06.333 --> 00:06:07.917 +全く何も + +40 +00:06:08.042 --> 00:06:12.833 +では右は +何か見えるか、イーモ? + +41 +00:06:13.875 --> 00:06:16.917 +同じだよプルーグ、全く同じ… + +42 +00:06:17.083 --> 00:06:18.583 +何もない! + +43 +00:06:40.625 --> 00:06:43.208 +プルーグ!何か聞こえない? + +44 +00:06:43.625 --> 00:06:45.042 +あそこに行かないか? + +45 +00:06:45.208 --> 00:06:48.042 +あそこ? +…安全じゃない + +46 +00:06:49.917 --> 00:06:52.500 +でも… +―本当に危ないぞ + +47 +00:06:53.292 --> 00:06:54.792 +大丈夫だよ… + +48 +00:06:54.833 --> 00:06:56.333 +だめだ + +49 +00:06:57.667 --> 00:07:00.167 +だめだ! + +50 +00:07:00.875 --> 00:07:03.750 +まだ続ける気か、イーモ? + +51 +00:07:04.250 --> 00:07:05.917 +いいえ… + +52 +00:07:09.458 --> 00:07:10.833 +イーモ? + +53 +00:07:11.875 --> 00:07:13.542 +イーモ、なぜ… + +54 +00:07:13.583 --> 00:07:14.458 +イーモ… + +55 +00:07:14.500 --> 00:07:18.500 +…なぜここの美しさが +見えない? + +56 +00:07:18.833 --> 00:07:20.750 +仕組みがこんなに… + +57 +00:07:20.875 --> 00:07:24.000 +こんなに完全なのに + +58 +00:07:24.083 --> 00:07:27.417 +もういいよ!プルーグ! + +59 +00:07:27.542 --> 00:07:30.333 +そこには何もないんだから + +60 +00:07:31.500 --> 00:07:35.333 +なぜ命を「ない」物に +ゆだねなきゃ? + +61 +00:07:35.583 --> 00:07:37.125 +教えてくれないか? + +62 +00:07:37.500 --> 00:07:39.167 +さあ! + +63 +00:07:43.208 --> 00:07:44.583 +プルーグ… + +64 +00:07:45.500 --> 00:07:47.333 +あなたは病気なんだ + +65 +00:07:47.375 --> 00:07:49.208 +僕から離れてくれ + +66 +00:07:52.583 --> 00:07:55.083 +いかん!イーモ!ワナだ! + +67 +00:07:55.833 --> 00:07:57.167 +ワナだ? ふーん + +68 +00:07:57.208 --> 00:08:01.750 +左に何が見える? +バビロンの空中庭園! + +69 +00:08:02.250 --> 00:08:04.292 +これがワナとでも? + +70 +00:08:05.458 --> 00:08:07.125 +だめだ、イーモ + +71 +00:08:09.417 --> 00:08:12.792 +右にあるのは… +…すごい!… + +72 +00:08:13.000 --> 00:08:14.750 +…ロードス島の巨像だ! + +73 +00:08:15.833 --> 00:08:16.708 +やめろ! + +74 +00:08:16.750 --> 00:08:22.167 +この巨像はあなたの物 +プルーグ、あなたのだよ + +75 +00:08:51.333 --> 00:08:53.167 +いってるじゃないか… + +76 +00:08:53.208 --> 00:08:55.500 +そこにあるって、イーモ… + +77 +00:08:57.333 --> 00:09:00.000 +…あるって
\ No newline at end of file diff --git a/javascript/videojs/docs/examples/elephantsdream/captions.ru.vtt b/javascript/videojs/docs/examples/elephantsdream/captions.ru.vtt new file mode 100644 index 0000000..aee7e49 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/captions.ru.vtt @@ -0,0 +1,356 @@ +WEBVTT + +1 +00:00:14.958 --> 00:00:17.833 +Слева мы видим... + +2 +00:00:18.458 --> 00:00:20.208 +справа мы видим... + +3 +00:00:20.333 --> 00:00:21.875 +...голово-клацов. + +4 +00:00:22.000 --> 00:00:24.583 +всё в порядке. +в полном порядке. + +5 +00:00:26.333 --> 00:00:27.333 +Имо? + +6 +00:00:28.833 --> 00:00:30.250 +Осторожно! + +7 +00:00:47.125 --> 00:00:48.250 +Ты не ранен? + +8 +00:00:51.875 --> 00:00:53.875 +Вроде нет... +а ты? + +9 +00:00:55.583 --> 00:00:57.125 +Я в порядке. + +10 +00:00:57.542 --> 00:01:01.625 +Вставай. +Имо. здесь не безопасно. + +11 +00:01:02.208 --> 00:01:03.625 +Пойдём. + +12 +00:01:03.708 --> 00:01:05.708 +Что дальше? + +13 +00:01:05.833 --> 00:01:07.833 +Ты увидишь! + +14 +00:01:08.000 --> 00:01:08.833 +Ты увидишь... + +15 +00:01:16.167 --> 00:01:18.375 +Имо. сюда. + +16 +00:01:34.917 --> 00:01:35.750 +За мной! + +17 +00:02:11.542 --> 00:02:12.750 +Имо. быстрее! + +18 +00:02:48.375 --> 00:02:50.083 +Ты не обращаешь внимания! + +19 +00:02:50.708 --> 00:02:54.500 +Я только хотел ответить на ... +...звонок. + +20 +00:02:55.000 --> 00:02:58.208 +Имо. смотри. +то есть слушай... + +21 +00:02:59.708 --> 00:03:02.292 +Ты должен учиться слушать. + +22 +00:03:03.250 --> 00:03:05.333 +Это не какая-нибудь игра. + +23 +00:03:06.000 --> 00:03:08.833 +Ты. вернее мы. легко можем погибнуть здесь. + +24 +00:03:10.000 --> 00:03:11.167 +Слушай... + +25 +00:03:11.667 --> 00:03:14.125 +слушай звуки машины. + +26 +00:03:18.333 --> 00:03:20.417 +Слушай своё дыхание. + +27 +00:04:27.208 --> 00:04:29.250 +И не надоест тебе это? + +28 +00:04:29.542 --> 00:04:31.083 +Надоест?!? + +29 +00:04:31.708 --> 00:04:34.625 +Имо! Машина - +она как часовой механизм. + +30 +00:04:35.500 --> 00:04:37.667 +Одно движение не туда... + +31 +00:04:37.792 --> 00:04:39.750 +...и тебя размелют в месиво! + +32 +00:04:41.042 --> 00:04:42.375 +А разве это не - + +33 +00:04:42.417 --> 00:04:46.500 +Месиво. Имо! +ты этого хочешь? месиво? + +34 +00:04:48.083 --> 00:04:50.000 +Имо. твоя цель в жизни? + +35 +00:04:50.542 --> 00:04:52.250 +Месиво! + +36 +00:05:41.792 --> 00:05:43.458 +Имо. закрой глаза. + +37 +00:05:44.875 --> 00:05:46.542 +Зачем? +- Ну же! + +38 +00:05:51.500 --> 00:05:52.333 +Ладно. + +39 +00:05:53.708 --> 00:05:56.042 +Хорошо. + +40 +00:05:59.500 --> 00:06:02.750 +Что ты видишь слева от себя. Имо? + +41 +00:06:04.417 --> 00:06:06.000 +Ничего. +- Точно? + +42 +00:06:06.333 --> 00:06:07.875 +да. совсем ничего. + +43 +00:06:08.042 --> 00:06:12.708 +А справа от себя. +что ты видишь справа от себя. Имо? + +44 +00:06:13.833 --> 00:06:16.875 +Да то же Пруг. в точности то же... + +45 +00:06:17.042 --> 00:06:18.500 +Ничего! + +46 +00:06:18.667 --> 00:06:19.500 +Прекрасно... + +47 +00:06:40.583 --> 00:06:42.917 +Прислушайся. Пруг! Ты слышишь это? + +48 +00:06:43.583 --> 00:06:45.042 +Может. мы пойдём туда? + +49 +00:06:45.208 --> 00:06:48.042 +Туда? +Это не безопасно. Имо. + +50 +00:06:49.875 --> 00:06:52.500 +Но... +- Поверь мне. это так. + +51 +00:06:53.292 --> 00:06:54.750 +Может я бы ... + +52 +00:06:54.792 --> 00:06:56.333 +Нет. + +53 +00:06:57.625 --> 00:06:59.583 +- Но... +- НЕТ! + +54 +00:06:59.708 --> 00:07:00.833 +Нет! + +55 +00:07:00.833 --> 00:07:03.708 +Ещё вопросы. Имо? + +56 +00:07:04.250 --> 00:07:05.875 +Нет. + +57 +00:07:09.458 --> 00:07:10.792 +Имо? + +58 +00:07:11.833 --> 00:07:13.500 +Имо. почему... + +59 +00:07:13.542 --> 00:07:14.458 +Имо... + +60 +00:07:14.500 --> 00:07:18.500 +...почему? почему ты не видишь +красоты этого места? + +61 +00:07:18.792 --> 00:07:20.708 +То как оно работает. + +62 +00:07:20.833 --> 00:07:24.000 +Как совершенно оно. + +63 +00:07:24.083 --> 00:07:27.417 +Нет. Пруг. я не вижу. + +64 +00:07:27.500 --> 00:07:30.333 +Я не вижу. потому что здесь ничего нет. + +65 +00:07:31.375 --> 00:07:35.333 +И почему я должен доверять свою жизнь +чему-то. чего здесь нет? + +66 +00:07:35.542 --> 00:07:37.125 +это ты мне можешь сказать? + +67 +00:07:37.500 --> 00:07:39.167 +Ответь мне! + +68 +00:07:43.208 --> 00:07:44.542 +Пруг... + +69 +00:07:45.500 --> 00:07:47.333 +Ты просто больной! + +70 +00:07:47.375 --> 00:07:48.500 +Отстань от меня. + +71 +00:07:48.625 --> 00:07:49.917 +Имо... + +72 +00:07:52.542 --> 00:07:55.083 +Нет! Имо! Это ловушка! + +73 +00:07:55.792 --> 00:07:57.167 +Это ловушка! + +74 +00:07:57.208 --> 00:08:01.708 +Слева от себя вы можете увидеть +Висящие сады Семирамиды! + +75 +00:08:02.250 --> 00:08:04.292 +Сойдёт за ловушку? + +76 +00:08:05.458 --> 00:08:07.125 +Нет. Имо. + +77 +00:08:09.417 --> 00:08:12.750 +Справа от себя вы можете увидеть... +...угадай кого... + +78 +00:08:13.000 --> 00:08:14.708 +...Колосса Родосского! + +79 +00:08:15.500 --> 00:08:16.625 +Нет! + +80 +00:08:16.667 --> 00:08:21.125 +Колосс Родосский! +И он здесь специально для тебя. Пруг. + +81 +00:08:21.167 --> 00:08:22.208 +Специально для тебя... + +82 +00:08:51.333 --> 00:08:53.167 +Она здесь есть! + +83 +00:08:53.208 --> 00:08:55.500 +Говорю тебе. +Имо... + +84 +00:08:57.333 --> 00:09:00.000 +...она есть... есть...
\ No newline at end of file diff --git a/javascript/videojs/docs/examples/elephantsdream/captions.sv.vtt b/javascript/videojs/docs/examples/elephantsdream/captions.sv.vtt new file mode 100644 index 0000000..6666eed --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/captions.sv.vtt @@ -0,0 +1,349 @@ +WEBVTT + +1 +00:00:15.042 --> 00:00:18.250 +Till vänster kan vi se... +Ser vi... + +2 +00:00:18.708 --> 00:00:20.333 +Till höger ser vi... + +3 +00:00:20.417 --> 00:00:21.958 +...huvudkaparna. + +4 +00:00:22.000 --> 00:00:24.792 +Allt är säkert. +alldeles ofarligt. + +5 +00:00:24.917 --> 00:00:26.833 +Emo? + +6 +00:00:28.750 --> 00:00:30.167 +Se upp! + +7 +00:00:46.708 --> 00:00:48.750 +Är du skadad? + +8 +00:00:51.875 --> 00:00:54.458 +Jag tror inte det... +Är du? + +9 +00:00:55.292 --> 00:00:57.333 +Jag är ok. + +10 +00:00:57.542 --> 00:01:01.625 +Res dig upp Emo. +Det är inte säkert här. + +11 +00:01:02.208 --> 00:01:03.625 +Kom så går vi. + +12 +00:01:03.708 --> 00:01:05.708 +Vad nu då? + +13 +00:01:05.833 --> 00:01:07.833 +Du får se... + +14 +00:01:08.042 --> 00:01:10.417 +Du får se. + +15 +00:01:15.958 --> 00:01:18.375 +Emo. den här vägen. + +16 +00:01:34.417 --> 00:01:36.750 +Följ efter mig! + +17 +00:02:11.250 --> 00:02:13.250 +Skynda dig. Emo! + +18 +00:02:48.375 --> 00:02:50.583 +Du är inte uppmärksam! + +19 +00:02:50.708 --> 00:02:54.500 +Jag vill bara svara... +... i telefonen. + +20 +00:02:54.500 --> 00:02:58.208 +Emo. se här... +Lyssna menar jag. + +21 +00:02:59.708 --> 00:03:02.292 +Du måste lära dig att lyssna. + +22 +00:03:03.292 --> 00:03:05.208 +Det här är ingen lek. + +23 +00:03:05.250 --> 00:03:08.917 +Du... Jag menar vi. +vi skulle kunna dö här ute. + +24 +00:03:09.917 --> 00:03:11.417 +Lyssna... + +25 +00:03:11.708 --> 00:03:14.833 +Lyssna på ljuden från maskinen. + +26 +00:03:18.125 --> 00:03:21.417 +Lyssna på dina andetag. + +27 +00:04:26.625 --> 00:04:29.250 +Tröttnar du aldrig på det här? + +28 +00:04:29.542 --> 00:04:31.083 +Tröttnar!? + +29 +00:04:31.208 --> 00:04:33.458 +Emo. maskinen är som... + +30 +00:04:33.458 --> 00:04:35.333 +Som ett urverk. + +31 +00:04:35.417 --> 00:04:37.167 +Ett felsteg... + +32 +00:04:37.208 --> 00:04:39.750 +...och du blir krossad. + +33 +00:04:41.042 --> 00:04:42.292 +Men är det inte - + +34 +00:04:42.292 --> 00:04:47.000 +Krossad. Emo! +Är det vad du vill bli? Krossad till mos? + +35 +00:04:47.500 --> 00:04:50.542 +Emo. är det ditt mål i livet? + +36 +00:04:50.667 --> 00:04:53.250 +Att bli mos!? + +37 +00:05:41.375 --> 00:05:43.458 +Emo. blunda. + +38 +00:05:44.375 --> 00:05:46.542 +Varför då? +- Blunda! + +39 +00:05:51.292 --> 00:05:55.042 +Ok. +- Bra. + +40 +00:05:59.500 --> 00:06:02.750 +Vad ser du till vänster om dig Emo? + +41 +00:06:04.125 --> 00:06:06.292 +Ingenting. +- Säker? + +42 +00:06:06.333 --> 00:06:07.958 +Ingenting alls. + +43 +00:06:08.042 --> 00:06:12.625 +Jaså. och till höger om dig... +Vad ser du där. Emo? + +44 +00:06:13.750 --> 00:06:15.583 +Samma där Proog... + +45 +00:06:15.583 --> 00:06:18.083 +Exakt samma där. ingenting! + +46 +00:06:18.083 --> 00:06:19.667 +Perfekt. + +47 +00:06:40.500 --> 00:06:42.917 +Lyssna Proog! Hör du? + +48 +00:06:43.500 --> 00:06:45.125 +Kan vi gå dit? + +49 +00:06:45.208 --> 00:06:48.125 +Gå dit? +Det är inte tryggt. + +50 +00:06:49.583 --> 00:06:52.583 +Men. men... +- Tro mig. det inte säkert. + +51 +00:06:53.000 --> 00:06:54.292 +Men kanske om jag - + +52 +00:06:54.292 --> 00:06:56.333 +Nej. + +53 +00:06:57.208 --> 00:07:00.167 +Men - +- Nej. NEJ! + +54 +00:07:00.917 --> 00:07:03.792 +Några fler frågor Emo? + +55 +00:07:04.250 --> 00:07:05.875 +Nej. + +56 +00:07:09.542 --> 00:07:11.375 +Emo? +- Ja? + +57 +00:07:11.542 --> 00:07:15.667 +Emo. varför... + +58 +00:07:15.792 --> 00:07:18.583 +Varför kan du inte se skönheten i det här? + +59 +00:07:18.792 --> 00:07:21.708 +Hur det fungerar. + +60 +00:07:21.833 --> 00:07:24.000 +Hur perfekt det är. + +61 +00:07:24.083 --> 00:07:27.333 +Nej Proog. jag kan inte se det. + +62 +00:07:27.333 --> 00:07:30.333 +Jag ser det inte. för det finns inget där. + +63 +00:07:31.292 --> 00:07:35.333 +Och varför skulle jag lägga mitt liv +i händerna på något som inte finns? + +64 +00:07:35.333 --> 00:07:37.083 +Kan du berätta det för mig? +- Emo... + +65 +00:07:37.083 --> 00:07:39.167 +Svara mig! + +66 +00:07:43.500 --> 00:07:45.208 +Proog... + +67 +00:07:45.208 --> 00:07:47.083 +Du är inte frisk! + +68 +00:07:47.167 --> 00:07:49.292 +Håll dig borta från mig! + +69 +00:07:52.292 --> 00:07:55.083 +Nej! Emo! +Det är en fälla! + +70 +00:07:55.375 --> 00:07:57.208 +Heh. det är en fälla. + +71 +00:07:57.208 --> 00:08:01.708 +På vänster sida ser vi... +Babylons hängande trädgårdar! + +72 +00:08:01.958 --> 00:08:04.000 +Vad sägs om den fällan? + +73 +00:08:05.458 --> 00:08:07.333 +Nej. Emo. + +74 +00:08:08.917 --> 00:08:12.667 +Till höger ser vi... +Gissa! + +75 +00:08:12.750 --> 00:08:15.125 +Rhodos koloss! + +76 +00:08:15.375 --> 00:08:16.500 +Nej! + +77 +00:08:16.500 --> 00:08:20.250 +Kolossen på Rhodos! +Och den är här för din skull. Proog... + +78 +00:08:20.250 --> 00:08:23.250 +Bara för din skull. + +79 +00:08:50.917 --> 00:08:53.250 +Den är där... + +80 +00:08:53.625 --> 00:08:56.417 +Tro mig. +Emo... + +81 +00:08:57.000 --> 00:09:00.000 +Det är den. +Det är den...
\ No newline at end of file diff --git a/javascript/videojs/docs/examples/elephantsdream/chapters.en.vtt b/javascript/videojs/docs/examples/elephantsdream/chapters.en.vtt new file mode 100644 index 0000000..9740a41 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/chapters.en.vtt @@ -0,0 +1,44 @@ +WEBVTT + +NOTE Created by Owen Edwards 2015. http://creativecommons.org/licenses/by/2.5/ +NOTE Based on 'finalbreakdown.rtf', part of the prepoduction notes, which are: +NOTE (c) Copyright 2006, Blender Foundation / +NOTE Netherlands Media Art Institute / +NOTE www.elephantsdream.org + +1 +00:00:00.000 --> 00:00:27.500 +Prologue + +2 +00:00:27.500 --> 00:01:10.000 +Switchboard trap + +3 +00:01:10.000 --> 00:03:25.000 +Telephone/Lecture + +4 +00:03:25.000 --> 00:04:52.000 +Typewriter + +5 +00:04:52.000 --> 00:06:19.500 +Proog shows Emo stuff + +6 +00:06:19.500 --> 00:07:09.000 +Which way + +7 +00:07:09.000 --> 00:07:45.000 +Emo flips out + +8 +00:07:45.000 --> 00:09:25.000 +Emo creates + +9 +00:09:25.000 --> 00:10:53.000 +Closing credits + diff --git a/javascript/videojs/docs/examples/elephantsdream/descriptions.en.vtt b/javascript/videojs/docs/examples/elephantsdream/descriptions.en.vtt new file mode 100644 index 0000000..48c7430 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/descriptions.en.vtt @@ -0,0 +1,280 @@ +WEBVTT
+License: CC BY 4.0 http://creativecommons.org/licenses/by/4.0/
+Author: Silvia Pfeiffer
+
+1
+00:00:00.000 --> 00:00:05.000
+The orange open movie project presents
+
+2
+00:00:05.010 --> 00:00:12.000
+Introductory titles are showing on the background of a water pool with fishes swimming and mechanical objects lying on a stone floor.
+
+3
+00:00:12.010 --> 00:00:14.800
+elephants dream
+
+4
+00:00:26.100 --> 00:00:28.206
+Two people stand on a small bridge.
+
+5
+00:00:30.010 --> 00:00:40.000
+The old man, Proog, shoves the younger and less experienced Emo on the ground to save him from being mowed down by a barrage of jack plugs that whir back and forth between the two massive switch-board-like walls.
+
+6
+00:00:40.000 --> 00:00:47.000
+The plugs are oblivious of the two, endlessly channeling streams of bizarre sounds and data.
+
+7
+00:00:48.494 --> 00:00:51.994
+Emo sits on the bridge and checks his limbs.
+
+8
+00:01:09.150 --> 00:01:16.030
+After the squealing plugs move on, Proog makes sure that Emo is unharmed and urges him onwards through a crack in one of the plug-walls.
+
+9
+00:01:18.050 --> 00:01:24.000
+They walk through the narrow hall into a massive room that fades away into blackness on all sides.
+
+10
+00:01:24.050 --> 00:01:34.200
+Only one path is visible, suspended in mid-air that runs between thousands of dangling electric cables on which sit crowds of robin-like robotic birds.
+
+11
+00:01:36.000 --> 00:01:40.000
+As Proog and Emo enter the room, the birds begin to wake up and notice them.
+
+12
+00:01:42.000 --> 00:01:50.000
+Realizing the danger, Proog grabs Emo by the arm.
+
+13
+00:01:50.050 --> 00:02:00.000
+They run along the increasingly bizarre path as the birds begin to swarm.
+
+14
+00:02:00.050 --> 00:02:11.000
+All sound is blocked out by the birds which are making the same noises as the jack-plugs, garbled screaming and obscure sentences and static.
+
+15
+00:02:12.600 --> 00:02:17.000
+The path dead-ends, stopping in the middle of no-where above the infinite drop.
+
+16
+00:02:17.600 --> 00:02:22.000
+Proog turns around as the birds reach them and begin to dive-bomb at them.
+
+17
+00:02:22.600 --> 00:02:28.000
+At the last moment, Proog takes out an old candlestick phone and the birds dive into the speaker piece.
+
+18
+00:02:28.600 --> 00:02:31.000
+The screen cuts to black.
+
+19
+00:02:31.600 --> 00:02:38.000
+In the next scene, Proog stands at one end of a room, suspiciously watching what is probably the same candlestick phone, which is ringing.
+
+20
+00:02:38.500 --> 00:02:41.000
+Emo watches from the other side of the room.
+
+21
+00:02:41.500 --> 00:02:43.000
+The phone continues to ring.
+
+22
+00:02:43.500 --> 00:02:48.000
+After a while Emo approaches it to answer it, but Proog slaps his hand away.
+
+23
+00:02:57.972 --> 00:02:59.100
+Proog takes the ear-piece off the hook.
+
+24
+00:03:13.500 --> 00:03:18.054
+The phone speaker revealed a mass of clawed, fleshy polyps which scream and gibber obscenely.
+
+25
+00:03:25.000 --> 00:03:33.000
+There is a solemn silence as Emo looks around the room and the technical objects therein.
+
+26
+00:03:38.000 --> 00:03:44.000
+Emo laughs disbelievingly and Proog walks away.
+
+27
+00:03:46.000 --> 00:03:54.000
+In the next scene, the two enter another massive black room.
+
+28
+00:03:54.500 --> 00:04:04.000
+There is no path, the entry platform is the only structure that seems to be there except for another exit, lit distantly at the far side.
+
+29
+00:04:04.500 --> 00:04:14.000
+Proog takes a step forward into the void, and his feet are suddenly caught by giant typewriter arms that rocket up out of the blackness to catch his feet as he dances across mid-air.
+
+30
+00:04:14.500 --> 00:04:22.000
+Emo follows Proog with somewhat less enthusiasm as the older man leads the way.
+
+31
+00:04:52.000 --> 00:04:58.000
+They reach the end of the room and go through a hall into a small compartment.
+
+32
+00:05:02.000 --> 00:05:06.000
+Proog presses a button, and the door shuts.
+
+33
+00:05:06.500 --> 00:05:09.000
+It is an elevator.
+
+34
+00:05:09.500 --> 00:05:24.000
+The elevator lurches suddenly as it is grabbed by a giant mechanical arm and thrown upwards, rushing up through an ever-widening tunnel.
+
+35
+00:05:26.500 --> 00:05:32.000
+When it begins to slow down, another arm grabs the capsule and throws it even further up.
+
+36
+00:05:32.500 --> 00:05:40.000
+As it moves up, the walls unlock and fall away, leaving only the floor with the two on it, rushing higher and higher.
+
+37
+00:05:54.500 --> 00:05:59.000
+They exit the tunnel into a black sky and the platform reaches the peak of its arc.
+
+38
+00:06:19.500 --> 00:06:26.000
+The elevator begins to drop down another shaft, coming to rest as it slams into the floor of another room and bringing the two to a level stop.
+
+39
+00:06:26.500 --> 00:06:28.000
+A camera briefly illumiates.
+
+40
+00:06:28.010 --> 00:06:34.000
+They are in a large, dingy room filled with strange, generator-like devices and dotted with boxy holographic projectors.
+
+41
+00:06:34.500 --> 00:06:38.000
+One of them is projecting a portion of wall with a door in it right beside them.
+
+42
+00:06:38.500 --> 00:06:40.000
+The door seems harmless enough.
+
+43
+00:06:42.800 --> 00:06:45.100
+From behind the door comes light music.
+
+44
+00:06:56.000 --> 00:07:00.100
+Proog presses a button on his cane, which changes the holograph to another wall.
+
+45
+00:07:05.100 --> 00:07:11.000
+Proog finishes the wall, and boxes them into a Safe Room, out of the view of anything outside.
+
+46
+00:07:39.000 --> 00:07:42.500
+Proog slaps him, trying to bring him to his senses.
+
+47
+00:07:45.000 --> 00:07:52.000
+Emo storms away down the length of the room towards a wall he apparently cannot see and the wall begins to move, extending the length of the room.
+
+48
+00:08:00.000 --> 00:08:07.000
+The walls begin to discolour and mechanical roots start tearing through the walls to his left.
+
+49
+00:08:07.010 --> 00:08:09.000
+The roots move forwards toward Proog.
+
+50
+00:08:22.000 --> 00:08:31.000
+The rest of the safety wall crumples away as a pair of massive hands heave out of the ground and begin to attack.
+
+51
+00:08:31.010 --> 00:08:37.000
+Proog is knocked down by the shockwave, while Emo turns and begins to walk away, waving his finger around his temple in the 'crazy' sign.
+
+52
+00:08:37.010 --> 00:08:44.000
+In a last effort, Proog extricates himself from the tentacle roots, and cracks Emo over the back of the head with his cane.
+
+53
+00:08:44.500 --> 00:08:51.000
+As Emo collapses, everything falls away, and Proog and Emo are left in one tiny patch of light in the middle of blackness.
+
+54
+00:09:00.000 --> 00:09:20.000
+The scene fades to black while panning over a pile of tentacle roots lying on the ground.
+
+55
+00:09:26.000 --> 00:09:28.000
+Credits begin:
+
+56
+00:09:28.500 --> 00:09:35.000
+Orange Open Movie Team
+Director: Bassum Kurdali
+Art Director: Andreas Goralczyk
+
+57
+00:09:35.500 --> 00:09:39.000
+Music and Sound Design: Jan Morgenstern
+
+58
+00:09:39.500 --> 00:09:44.000
+Emo: Cas Jansen
+Proog: Tygo Gernandt
+
+59
+00:09:44.500 --> 00:09:50.000
+Screenplay: Pepijn Zwanenberg
+Original Concept & Scenario: Andreas Goralczyk, Bassam Kurdali, Ton Roosendaal
+
+60
+00:09:50.500 --> 00:10:24.000
+More people for
+Additional Artwork and Animation
+Texture Photography
+Software Development
+3D Modelling, Animation, Rendering, Compiling Software
+Special Thanks to Open Source Projects
+Rendering Services Provided
+Hardware Sponsored
+Casting
+Sound FX, Foley, Dialogue Editing, Audio Mix and Post
+Voice Recording
+HDCam conversion
+Netherlands Media Art Institute Staff
+Blender Foundation Staff
+
+61
+00:10:24.500 --> 00:10:30.000
+Many Thanks to our Donation and DVD sponsors
+
+62
+00:10:30.500 --> 00:10:47.000
+Elephants Dream has been realised with financial support from
+The Netherlands Film Fund
+Mondriaan Foundation
+VSBfonds
+Uni-Verse / EU Sixth Framework Programme
+
+63
+00:10:47.500 --> 00:10:53.000
+Produced By
+Ton Roosendaal
+Copyright 2006
+Netherlands Media Art Institute / Montevideo
+Blender Foundation
diff --git a/javascript/videojs/docs/examples/elephantsdream/index.html b/javascript/videojs/docs/examples/elephantsdream/index.html new file mode 100644 index 0000000..8328853 --- /dev/null +++ b/javascript/videojs/docs/examples/elephantsdream/index.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + + <meta charset="utf-8" /> + <title>Video.js Text Descriptions, Chapters & Captions Example</title> + + <link href="https://vjs.zencdn.net/7.0/video-js.min.css" rel="stylesheet"> + <script src="https://vjs.zencdn.net/7.0/video.min.js"></script> + +</head> +<body> + + <!-- NOTE: we have to disable native Text Track support for the HTML5 tech, + since even HTML5 video players with native Text Track support + don't currently support 'description' text tracks in any + useful way! Currently this means that iOS will not display + ANY text tracks --> + <video id="example_video_1" class="video-js" controls preload="none" width="640" height="360" + data-setup='{ "html5" : { "nativeTextTracks" : false } }' + poster="http://d2zihajmogu5jn.cloudfront.net/elephantsdream/poster.png"> + + <source src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.mp4" type="video/mp4"> + <source src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.ogg" type="video/ogg"> + + <track kind="captions" src="captions.en.vtt" srclang="en" label="English" default> + <track kind="captions" src="captions.sv.vtt" srclang="sv" label="Swedish"> + <track kind="captions" src="captions.ru.vtt" srclang="ru" label="Russian"> + <track kind="captions" src="captions.ja.vtt" srclang="ja" label="Japanese"> + <track kind="captions" src="captions.ar.vtt" srclang="ar" label="Arabic"> + + <track kind="descriptions" src="descriptions.en.vtt" srclang="en" label="English"> + + <track kind="chapters" src="chapters.en.vtt" srclang="en" label="English"> + + <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> + </video> + +</body> + +</html> diff --git a/javascript/videojs/docs/examples/index.html b/javascript/videojs/docs/examples/index.html new file mode 100644 index 0000000..84c0bda --- /dev/null +++ b/javascript/videojs/docs/examples/index.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="utf-8" /> + <title>Index of video.js examples</title> +</head> +<body> + + <h1>Index of video.js examples</h1> + <ul> + <li><a href="simple-embed">Video.js HTML5 video player simple example</a></li> + <li><a href="elephantsdream">Elephants Dream video with text descriptions, chapters & captions example</a></li> + </ul> + +</body> + +</html> diff --git a/javascript/videojs/docs/examples/shared/example-captions.vtt b/javascript/videojs/docs/examples/shared/example-captions.vtt new file mode 100644 index 0000000..e598be1 --- /dev/null +++ b/javascript/videojs/docs/examples/shared/example-captions.vtt @@ -0,0 +1,41 @@ +WEBVTT + +00:00.700 --> 00:04.110 +Captions describe all relevant audio for the hearing impaired. +[ Heroic music playing for a seagull ] + +00:04.500 --> 00:05.000 +[ Splash!!! ] + +00:05.100 --> 00:06.000 +[ Sploosh!!! ] + +00:08.000 --> 00:09.225 +[ Splash...splash...splash splash splash ] + +00:10.525 --> 00:11.255 +[ Splash, Sploosh again ] + +00:13.500 --> 00:14.984 +Dolphin: eeeEEEEEeeee! + +00:14.984 --> 00:16.984 +Dolphin: Squawk! eeeEEE? + +00:25.000 --> 00:28.284 +[ A whole ton of splashes ] + +00:29.500 --> 00:31.000 +Mine. Mine. Mine. + +00:34.300 --> 00:36.000 +Shark: Chomp + +00:36.800 --> 00:37.900 +Shark: CHOMP!!! + +00:37.861 --> 00:41.193 +EEEEEEOOOOOOOOOOWHALENOISE + +00:42.593 --> 00:45.611 +[ BIG SPLASH ]
\ No newline at end of file diff --git a/javascript/videojs/docs/examples/simple-embed/index.html b/javascript/videojs/docs/examples/simple-embed/index.html new file mode 100644 index 0000000..e2b44a8 --- /dev/null +++ b/javascript/videojs/docs/examples/simple-embed/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + + <title>Video.js | HTML5 Video Player</title> + <link href="http://vjs.zencdn.net/7.0/video-js.min.css" rel="stylesheet"> + <script src="http://vjs.zencdn.net/7.0/video.min.js"></script> + +</head> +<body> + + <video id="example_video_1" class="video-js" controls preload="none" width="640" height="264" poster="http://vjs.zencdn.net/v/oceans.png" data-setup="{}"> + <source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4"> + <source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm"> + <source src="https://vjs.zencdn.net/v/oceans.ogv" type="video/ogg"> + <track kind="captions" src="../shared/example-captions.vtt" srclang="en" label="English"> + <track kind="subtitles" src="../shared/example-captions.vtt" srclang="en" label="English"> + <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> + </video> + +</body> + +</html> diff --git a/javascript/videojs/docs/index.md b/javascript/videojs/docs/index.md new file mode 100644 index 0000000..7ec0edc --- /dev/null +++ b/javascript/videojs/docs/index.md @@ -0,0 +1,29 @@ +# [Video.js][vjs-website] API Documentation + +## Generated API docs + +These [API docs][api] at [docs.videojs.com][vjs-docs] are automatically generated from the jsdoc comments in the code of the `main` branch of the [Video.js repository][vjs-gh]. You'll find specific details about functions, properties, and events. + +The most useful API doc to start with is usually the [Player][api-player] class. + +## Guides + +More in-depth instructional [guides][vjs-guides] are found on the main [Video.js website][vjs-website]. The guides explain general topics and use cases (e.g. setup). + +The full list of articles is on the [guides page][vjs-guides]. If you are looking for troubleshooting information, try the [FAQ][vjs-faq] and [troubleshooting][vjs-troubleshooting] pages. + +[vjs-website]: https://videojs.com + +[vjs-docs]: https://docs.videojs.com + +[vjs-gh]: https://github.com/videojs/video.js + +[vjs-guides]: https://videojs.com/guides/ + +[vjs-faq]: https://videojs.com/guides/faqs/ + +[vjs-troubleshooting]: https://videojs.com/guides/troubleshooting/ + +[api]: https://docs.videojs.com + +[api-player]: https://docs.videojs.com/Player.html diff --git a/javascript/videojs/docs/legacy-docs/api/assets/api-doc-template-min.html b/javascript/videojs/docs/legacy-docs/api/assets/api-doc-template-min.html new file mode 100644 index 0000000..862ae26 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/assets/api-doc-template-min.html @@ -0,0 +1 @@ +<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script src="//use.edgefonts.net/source-code-pro.js"></script> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> <link rel="stylesheet" type="text/css" href="css/api-docs.css"> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> </head> <body> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> <script src="js/doc-data.js"></script> <script src="js/api-docs.js"></script> </body> </html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/assets/api-doc-template.html b/javascript/videojs/docs/legacy-docs/api/assets/api-doc-template.html new file mode 100644 index 0000000..88f83a9 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/assets/api-doc-template.html @@ -0,0 +1 @@ +<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script src="//use.edgefonts.net/source-code-pro.js"></script> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> <link rel="stylesheet" type="text/css" href="css/api-docs.css"> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> </head> <body> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> <script src="js/doc-data.js"></script> <script src="js/api-docs.js"></script> </body> </html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/assets/create-doc-files-test.html b/javascript/videojs/docs/legacy-docs/api/assets/create-doc-files-test.html new file mode 100644 index 0000000..fca44d9 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/assets/create-doc-files-test.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <style> + + </style> + </head> + <body> + <h4>Check the console for results</h4> + <script src="../js/doc-data.js"></script> + <script src="create-doc-files.js"></script> + + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/assets/create-doc-files.js b/javascript/videojs/docs/legacy-docs/api/assets/create-doc-files.js new file mode 100644 index 0000000..8154a88 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/assets/create-doc-files.js @@ -0,0 +1,68 @@ +/** + * get a subset of objects in array of objects + * based on some property value + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of objects with matching property value + */ +function getSubArray(targetArray, objProperty, value) { + var i, totalItems = targetArray.length, idxArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + idxArr.push(targetArray[i]); + } + } + return idxArr; +} + +/** + * create the HTML files for the classes + * @param {array} filenameArray - array of the filenames + */ +function createFiles(filenameArray) { + var i, + iMax = filenameArray.length, + filename, + contentStr = '<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script src="//use.edgefonts.net/source-code-pro.js"></script> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> <link rel="stylesheet" type="text/css" href="css/api-docs.css"> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> </head> <body> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> <script src="js/doc-data.js"></script> <script src="js/api-docs.js"></script> </body> </html>'; + for (i = 0; i < iMax; i++) { + filename = filenameArray[i]; + // create file with name=filename and contents=contentStr + } +} + +function createFilenameArray(classData) { + var filenameArray = [], + i, + iMax = classData.length, + item, + str; + // extract the filenames from the class items + for (i = 0; i < iMax; i++) { + item = classData[i]; + str = item.meta.filename; + str = str.substr(str.lastIndexOf('/') + 1); + str = str.replace('.js', '.html'); + filenameArray.push(str); + } + // videojs is special case + filenameArray.push('video.html'); + filenameArray = filenameArray.sort(); + console.log('filenameArray', filenameArray); + // now create the files + createFiles(filenameArray); +} +/** + * extracts class items from doc data + * @param {array} docData JSON output from JSDoc + */ +function getClassData(docData) { + var classData = []; + // extract the class items from the doc data + classData = getSubArray(docData, 'kind', 'class'); + // now create the array of filenames + createFilenameArray(classData); +} + +getClassData(docData);
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/audio-track-button.html b/javascript/videojs/docs/legacy-docs/api/audio-track-button.html new file mode 100644 index 0000000..2d78fad --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/audio-track-button.html @@ -0,0 +1,150 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>AudioTrackButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/AudioTrackButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/AudioTrackButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>AudioTrackButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateItems">createItems</a></li></ul><h4>Inherited Methods from MenuButton</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateMenu">createMenu</a></li><li><a href="#Methodsdisable">disable</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#Methodsenable">enable</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#MethodscurrentDimension">currentDimension</a></li><li><a href="#MethodscurrentDimensions">currentDimensions</a></li><li><a href="#MethodscurrentHeight">currentHeight</a></li><li><a href="#MethodscurrentWidth">currentWidth</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>AudioTrackButton</h1><div style="border:none" id="classDescription" class="description"><p>The base class for buttons that toggle specific text track types (e.g. subtitles)</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/audio-track-controls/audio-track-button.js#L9">audio-track-button.js line number: 9</a></p><p>EXTENDS: <a href="track-button.html">track-button.js</a></p><h3>Constructor</h3><pre><code>AudioTrackButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/audio-track-controls/audio-track-button.js#L26">https://github.com/videojs/video.js/blob/master/src/js/control-bar/audio-track-controls/audio-track-button.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateItems"><h3 id="createItemsHeader">createItems()</h3><div id="createItemsDescription" class="description"><p>Create a menu item for each audio track</p></div><p class="vjs-only"><em id="createItemsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/audio-track-controls/audio-track-button.js#L36">https://github.com/videojs/video.js/blob/master/src/js/control-bar/audio-track-controls/audio-track-button.js line number: 36</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L103">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 103</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateMenu"><h3 id="createMenuHeader">createMenu()</h3><div id="createMenuDescription" class="description"><p>Create menu</p></div><p class="vjs-only"><em id="createMenuFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L64">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 64</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdisable"><h3 id="disableHeader">disable()</h3><div id="disableDescription" class="description"><p>Enable the menu button</p></div><p class="vjs-only"><em id="disableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L248">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 248</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>When you click the button it adds focus, which +will show the menu indefinitely. +So we'll remove focus when the mouse leaves the button. +Focus is needed for tab navigation. +Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L134">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 134</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press on menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L155">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 155</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleSubmenuKeyPress"><h3 id="handleSubmenuKeyPressHeader">handleSubmenuKeyPress( event )</h3><div id="handleSubmenuKeyPressDescription" class="description"><p>Handle key press on submenu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleSubmenuKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L183">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 183</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodspressButton"><h3 id="pressButtonHeader">pressButton()</h3><div id="pressButtonDescription" class="description"><p>Makes changes based on button pressed</p></div><p class="vjs-only"><em id="pressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L203">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 203</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsunpressButton"><h3 id="unpressButtonHeader">unpressButton()</h3><div id="unpressButtonDescription" class="description"><p>Makes changes based on button unpressed</p></div><p class="vjs-only"><em id="unpressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L217">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 217</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update menu</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L33">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 33</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L67">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 67</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( text, [el] )</h3><div id="controlTextDescription" class="description"><p>Controls text - both request and localize</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>text</td><td>String</td><td>yes</td><td>Text for element</td></tr><tr><td>el</td><td>Element</td><td>no</td><td>Element to set the title on</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L86">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 86</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsenable"><h3 id="enableHeader">enable()</h3><div id="enableDescription" class="description"><p>Enable the component element</p></div><p class="vjs-only"><em id="enableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L136">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 136</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L191">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 191</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L167">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 167</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L843">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 843</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L863">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 863</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L894">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 894</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L281">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 281</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1358">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1358</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L244">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 244</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentDimension"><h3 id="currentDimensionHeader">currentDimension( widthOrHeight )</h3><div id="currentDimensionDescription" class="description"><p>Get width or height of computed style</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>widthOrHeight</td><td>String</td><td>yes</td><td>'width' or 'height'</td></tr></tbody></table><p class="vjs-only"><em id="currentDimensionFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1093">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1093</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentDimensions"><h3 id="currentDimensionsHeader">currentDimensions()</h3><div id="currentDimensionsDescription" class="description"><p>Get an object which contains width and height values of computed style</p></div><p class="vjs-only"><em id="currentDimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1121">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1121</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentHeight"><h3 id="currentHeightHeader">currentHeight()</h3><div id="currentHeightDescription" class="description"><p>Get height of computed style</p></div><p class="vjs-only"><em id="currentHeightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1142">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1142</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentWidth"><h3 id="currentWidthHeader">currentWidth()</h3><div id="currentWidthDescription" class="description"><p>Get width of computed style</p></div><p class="vjs-only"><em id="currentWidthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1133">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1133</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1017">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1017</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L100">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 100</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L194">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 194</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1237">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1237</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1413">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1413</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L304">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 304</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L294">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 294</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1394">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1394</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L883">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 883</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1000">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1000</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L946">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 946</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L255">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 255</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L457">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 457</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L268">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 268</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L682">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 682</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L607">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 607</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L730">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 730</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L144">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 144</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L134">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 134</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L789">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 789</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1377">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1377</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L417">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 417</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L906">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 906</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1334">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1334</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1290">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1290</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L935">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 935</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L918">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 918</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L770">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 770</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L816">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 816</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L983">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 983</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/big-play-button.html b/javascript/videojs/docs/legacy-docs/api/big-play-button.html new file mode 100644 index 0000000..d1698a2 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/big-play-button.html @@ -0,0 +1,147 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>BigPlayButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/BigPlayButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/BigPlayButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>BigPlayButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodshandleClick">handleClick</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>BigPlayButton</h1><div style="border:none" id="classDescription" class="description"><p>Initial play button. Shows before the video has played. The hiding of the +big play button is done via CSS and player states.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/big-play-button.js#L7">big-play-button.js line number: 7</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>BigPlayButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/big-play-button.js#L22">https://github.com/videojs/video.js/blob/master/src/js/big-play-button.js line number: 22</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handles click for play</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/big-play-button.js#L32">https://github.com/videojs/video.js/blob/master/src/js/big-play-button.js line number: 32</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>An object of properties that should be set on the element</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set on the element</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L26">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/button.html b/javascript/videojs/docs/legacy-docs/api/button.html new file mode 100644 index 0000000..f1cf6a9 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/button.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Button</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Button.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Button.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Button Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Button</h1><div style="border:none" id="classDescription" class="description"><p>Base class for all buttons</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L12">button.js line number: 12</a></p><p>EXTENDS: <a href="clickable-component.html">clickable-component.js</a></p><h3>Constructor</h3><pre><code>Button( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>An object of properties that should be set on the element</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set on the element</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L26">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle Click - Override with specific functionality for component</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L132">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/caption-settings-menu-item.html b/javascript/videojs/docs/legacy-docs/api/caption-settings-menu-item.html new file mode 100644 index 0000000..72fe447 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/caption-settings-menu-item.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>CaptionSettingsMenuItem</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/CaptionSettingsMenuItem.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/CaptionSettingsMenuItem.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>CaptionSettingsMenuItem Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodshandleClick">handleClick</a></li></ul><h4>Inherited Methods from TextTrackMenuItem</h4><ul><li><a href="#MethodshandleTracksChange">handleTracksChange</a></li></ul><h4>Inherited Methods from MenuItem</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsselected">selected</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>CaptionSettingsMenuItem</h1><div style="border:none" id="classDescription" class="description"><p>The menu item for caption track settings menu</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/caption-settings-menu-item.js#L7">caption-settings-menu-item.js line number: 7</a></p><p>EXTENDS: <a href="text-track-menu-item.html">text-track-menu-item.js</a></p><h3>Constructor</h3><pre><code>CaptionSettingsMenuItem( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on menu item</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/caption-settings-menu-item.js#L35">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/caption-settings-menu-item.js line number: 35</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleTracksChange"><h3 id="handleTracksChangeHeader">handleTracksChange()</h3><div id="handleTracksChangeDescription" class="description"><p>Handle text track change</p></div><p class="vjs-only"><em id="handleTracksChangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js#L96">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js line number: 96</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Desc</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>Desc</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L34">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsselected"><h3 id="selectedHeader">selected( selected )</h3><div id="selectedDescription" class="description"><p>Set this menu item as selected or not</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selected</td><td>Boolean</td></tr></tbody></table><p class="vjs-only"><em id="selectedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L59">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/captions-button.html b/javascript/videojs/docs/legacy-docs/api/captions-button.html new file mode 100644 index 0000000..be35fa9 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/captions-button.html @@ -0,0 +1,150 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>CaptionsButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/CaptionsButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/CaptionsButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>CaptionsButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateItems">createItems</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from MenuButton</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateMenu">createMenu</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>CaptionsButton</h1><div style="border:none" id="classDescription" class="description"><p>The button component for toggling and selecting captions</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js#L8">captions-button.js line number: 8</a></p><p>EXTENDS: <a href="text-track-button.html">text-track-button.js</a></p><h3>Constructor</h3><pre><code>CaptionsButton( player,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Player object</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js#L24">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js line number: 24</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateItems"><h3 id="createItemsHeader">createItems()</h3><div id="createItemsDescription" class="description"><p>Create caption menu items</p></div><p class="vjs-only"><em id="createItemsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js#L55">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js line number: 55</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update caption menu items</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js#L34">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/captions-button.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L99">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 99</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateMenu"><h3 id="createMenuHeader">createMenu()</h3><div id="createMenuDescription" class="description"><p>Create menu</p></div><p class="vjs-only"><em id="createMenuFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L62">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 62</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>When you click the button it adds focus, which +will show the menu indefinitely. +So we'll remove focus when the mouse leaves the button. +Focus is needed for tab navigation. +Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L130">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 130</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press on menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L151">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 151</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleSubmenuKeyPress"><h3 id="handleSubmenuKeyPressHeader">handleSubmenuKeyPress( event )</h3><div id="handleSubmenuKeyPressDescription" class="description"><p>Handle key press on submenu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleSubmenuKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L179">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 179</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodspressButton"><h3 id="pressButtonHeader">pressButton()</h3><div id="pressButtonDescription" class="description"><p>Makes changes based on button pressed</p></div><p class="vjs-only"><em id="pressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L199">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 199</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsunpressButton"><h3 id="unpressButtonHeader">unpressButton()</h3><div id="unpressButtonDescription" class="description"><p>Makes changes based on button unpressed</p></div><p class="vjs-only"><em id="unpressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L211">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 211</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/captions-track.html b/javascript/videojs/docs/legacy-docs/api/captions-track.html new file mode 100644 index 0000000..142aec3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/captions-track.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-docs.css"> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> + <link rel="canonical" href="https://docs.videojs.com"> +</head> + <body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/chapters-button.html b/javascript/videojs/docs/legacy-docs/api/chapters-button.html new file mode 100644 index 0000000..a37aaef --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/chapters-button.html @@ -0,0 +1,152 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ChaptersButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ChaptersButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ChaptersButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ChaptersButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateItems">createItems</a></li><li><a href="#MethodscreateMenu">createMenu</a></li></ul><h4>Inherited Methods from MenuButton</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ChaptersButton</h1><div style="border:none" id="classDescription" class="description"><p>The button component for toggling and selecting chapters +Chapters act much differently than other text tracks +Cues are navigation vs. other tracks of alternative languages</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js#L14">chapters-button.js line number: 14</a></p><p>EXTENDS: <a href="text-track-button.html">text-track-button.js</a></p><h3>Constructor</h3><pre><code>ChaptersButton( player,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Player object</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js#L32">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js line number: 32</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateItems"><h3 id="createItemsHeader">createItems()</h3><div id="createItemsDescription" class="description"><p>Create a menu item for each text track</p></div><p class="vjs-only"><em id="createItemsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js#L42">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js line number: 42</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateMenu"><h3 id="createMenuHeader">createMenu()</h3><div id="createMenuDescription" class="description"><p>Create menu from chapter buttons</p></div><p class="vjs-only"><em id="createMenuFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js#L69">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-button.js line number: 69</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L99">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 99</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>When you click the button it adds focus, which +will show the menu indefinitely. +So we'll remove focus when the mouse leaves the button. +Focus is needed for tab navigation. +Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L130">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 130</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press on menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L151">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 151</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleSubmenuKeyPress"><h3 id="handleSubmenuKeyPressHeader">handleSubmenuKeyPress( event )</h3><div id="handleSubmenuKeyPressDescription" class="description"><p>Handle key press on submenu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleSubmenuKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L179">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 179</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodspressButton"><h3 id="pressButtonHeader">pressButton()</h3><div id="pressButtonDescription" class="description"><p>Makes changes based on button pressed</p></div><p class="vjs-only"><em id="pressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L199">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 199</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsunpressButton"><h3 id="unpressButtonHeader">unpressButton()</h3><div id="unpressButtonDescription" class="description"><p>Makes changes based on button unpressed</p></div><p class="vjs-only"><em id="unpressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L211">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 211</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update menu</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L31">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 31</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/chapters-track-menu-item.html b/javascript/videojs/docs/legacy-docs/api/chapters-track-menu-item.html new file mode 100644 index 0000000..3c7562c --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/chapters-track-menu-item.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ChaptersTrackMenuItem</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ChaptersTrackMenuItem.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ChaptersTrackMenuItem.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ChaptersTrackMenuItem Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from MenuItem</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsselected">selected</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ChaptersTrackMenuItem</h1><div style="border:none" id="classDescription" class="description"><p>The chapter track menu item</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-track-menu-item.js#L8">chapters-track-menu-item.js line number: 8</a></p><p>EXTENDS: <a href="menu-item.html">menu-item.js</a></p><h3>Constructor</h3><pre><code>ChaptersTrackMenuItem( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on menu item</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-track-menu-item.js#L33">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-track-menu-item.js line number: 33</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update chapter menu item</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-track-menu-item.js#L44">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/chapters-track-menu-item.js line number: 44</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Desc</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>Desc</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L34">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsselected"><h3 id="selectedHeader">selected( selected )</h3><div id="selectedDescription" class="description"><p>Set this menu item as selected or not</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selected</td><td>Boolean</td></tr></tbody></table><p class="vjs-only"><em id="selectedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L59">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/chapters-track.html b/javascript/videojs/docs/legacy-docs/api/chapters-track.html new file mode 100644 index 0000000..142aec3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/chapters-track.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-docs.css"> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> + <link rel="canonical" href="https://docs.videojs.com"> +</head> + <body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/clickable-component.html b/javascript/videojs/docs/legacy-docs/api/clickable-component.html new file mode 100644 index 0000000..7d30fd8 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/clickable-component.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ClickableComponent</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ClickableComponent.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ClickableComponent.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ClickableComponent Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ClickableComponent</h1><div style="border:none" id="classDescription" class="description"><p>Clickable Component which is clickable or keyboard actionable, but is not a native HTML button</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L12">clickable-component.js line number: 12</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>ClickableComponent( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this clickable-component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L112">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 112</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>An object of properties that should be set on the element</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set on the element</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L33">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 33</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle Click - Override with specific functionality for component</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L132">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L148">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 148</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/close-button.html b/javascript/videojs/docs/legacy-docs/api/close-button.html new file mode 100644 index 0000000..132aee6 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/close-button.html @@ -0,0 +1,11 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>CloseButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/CloseButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/CloseButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>CloseButton</h1><div style="border:none" id="classDescription" class="description"><p>The <code>CloseButton</code> component is a button which fires a "close" event +when it is activated.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/close-button.js#L4">close-button.js line number: 4</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>CloseButton()</code></pre></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/component.html b/javascript/videojs/docs/legacy-docs/api/component.html new file mode 100644 index 0000000..28a6c78 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/component.html @@ -0,0 +1,172 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Component</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Component.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Component.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Component Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul/></div></section><div id="main" class="section"><section id="top" class="section"><h1>Component</h1><div style="border:none" id="classDescription" class="description"><p>Base UI Component class +Components are embeddable UI objects that are represented by both a +javascript object and an element in the DOM. They can be children of other +components, and can have many children themselves.</p> +<pre class="prettyprint source lang-js"><code> // adding a button to the player + var button = player.addChild('button'); + button.el(); // -> button element</code></pre><pre class="prettyprint source lang-html"><code> <div class="video-js"> + <div class="vjs-button">Button</div> + </div></code></pre><p>Components are also event targets.</p> +<pre class="prettyprint source lang-js"><code> button.on('click', function(){ + console.log('Button Clicked!'); + }); + button.trigger('customevent');</code></pre></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L18">component.js line number: 18</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>Component( player,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [tagName], [properties], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tagName</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>properties</td><td>Object</td><td>no</td><td>An object of properties that should be set</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L208">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 208</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle Click - Override with specific functionality for component</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L132">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/control-bar.html b/javascript/videojs/docs/legacy-docs/api/control-bar.html new file mode 100644 index 0000000..8339c3e --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/control-bar.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ControlBar</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ControlBar.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ControlBar.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ControlBar Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ControlBar</h1><div style="border:none" id="classDescription" class="description"><p>Container of main controls</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/control-bar.js#L24">control-bar.js line number: 24</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>ControlBar()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/control-bar.js#L32">https://github.com/videojs/video.js/blob/master/src/js/control-bar/control-bar.js line number: 32</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/css/api-docs.css b/javascript/videojs/docs/legacy-docs/api/css/api-docs.css new file mode 100644 index 0000000..9ee8adc --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/css/api-docs.css @@ -0,0 +1,136 @@ +body { + color: #333; + margin: 6em; + margin-top: 4em; + margin-right: 3em; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +@media (max-width: 700px) { + .member-index { + display: none; + } + .side-nav { + float: none; + } +} + +a { + color: #437ABE; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +h1, h2, h3 { + margin-left: -1em; +} + +h1 { + border-bottom: 1px #CCC solid; + font-size: 2.5em; +} +h2 { + border-bottom: 1px #DDD solid; + font-size: 2em; +} + +h3 { + font-size: 1.5em; +} + +#memberIndex h4 { + font-size: 1em; + font-weight: normal; + font-style: italic; +} + +div { + border-bottom: 1px #DDD solid; + font-size: 1em; +} + +pre { + background-color: #F4F3EC; + font-size: .8em; + margin-bottom: 1.3rem; + padding: .5rem; + padding-left: 1rem; + margin-top: 1rem; + border-left: 5px solid rgb(99,99,99); + -webkit-box-shadow: 5px 5px 10px rgba(192, 192, 192, 1.000); + -moz-box-shadow: 5px 5px 10px rgba(192, 192, 192, 1.000); + box-shadow: 5px 5px 10px rgba(192, 192, 192, 1.000); +} +code { + font-size: 1em; + font-family: source-code-pro, Monaco, Consolas, Menlo, "Lucida Console", monospace; + border: none; +} + +table { + border-collapse: collapse; + border: 1px #CCC solid; + padding: 0; +} + + +th { + background-color: #F4F3EC; + border: 1px #CCC solid; + margin: 0; + padding: .5em; +} + +td { + border: 1px #DDD solid; + margin: 0; + padding: .5em; +} + +.side-nav { + float: right; + width: 15%; + padding-left: 3em; + margin-left: 2em; + margin-right: 1em; + border: none; +} +.side-nav div { + border: none; +} + +.side-nav h2, .side-nav h3 { + margin-left: 0; +} +#main { + width: 70%; +} + +div.section { + border: none; +} +.description { + border: none; +} + +.deprecated { + color: #990000; +} + +.legacydocsnote { + background-color: #ffdddd; + border: 2px solid #ff0000; + text-align: center; + margin: 1em auto; + padding: 1em; + width: 80%; +} + +.legacydocsnote::before { + content: "⚠️"; + font-size: 200%; + vertical-align: middle; +}
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/css/api-index.css b/javascript/videojs/docs/legacy-docs/api/css/api-index.css new file mode 100644 index 0000000..31247d3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/css/api-index.css @@ -0,0 +1,68 @@ +body { + color: #333; + margin: 6em; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +a { + color: #437ABE; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +h1, h2, h3 { + margin-left: -1em; +} + +h1 { + border-bottom: 1px #CCC solid; + font-size: 2.5em; +} +h2 { + font-size: 2em; +} + +h3 { + font-size: 1.5em; +} +#top { + border: none; +} +div.indexColumn { + display: inline-block; + width: 30%; + vertical-align: top; +} + +@media (max-width: 700px) { + div.indexColumn { + display: block; + width: 100%; + vertical-align: top; + } + + +.indexHeader { + padding-left: 3em; +} +div, .section { + border: none; +} + +.legacydocsnote { + background-color: #ffdddd; + border: 2px solid #ff0000; + text-align: center; + margin: 1em auto; + padding: 1em; + width: 80%; +} + +.legacydocsnote::before { + content: "⚠️"; + font-size: 200%; + vertical-align: middle; +}
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/current-time-display.html b/javascript/videojs/docs/legacy-docs/api/current-time-display.html new file mode 100644 index 0000000..00c772f --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/current-time-display.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>CurrentTimeDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/CurrentTimeDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/CurrentTimeDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>CurrentTimeDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodsupdateContent">updateContent</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>CurrentTimeDisplay</h1><div style="border:none" id="classDescription" class="description"><p>Displays the current time</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/current-time-display.js#L8">current-time-display.js line number: 8</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>CurrentTimeDisplay( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/current-time-display.js#L24">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/current-time-display.js line number: 24</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateContent"><h3 id="updateContentHeader">updateContent()</h3><div id="updateContentDescription" class="description"><p>Update current time display</p></div><p class="vjs-only"><em id="updateContentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/current-time-display.js#L48">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/current-time-display.js line number: 48</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/custom-control-spacer.html b/javascript/videojs/docs/legacy-docs/api/custom-control-spacer.html new file mode 100644 index 0000000..e0521aa --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/custom-control-spacer.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>CustomControlSpacer</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/CustomControlSpacer.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/CustomControlSpacer.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>CustomControlSpacer Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Spacer</h4><ul/><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>CustomControlSpacer</h1><div style="border:none" id="classDescription" class="description"><p>Spacer specifically meant to be used as an insertion point for new plugins, etc.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/custom-control-spacer.js#L7">custom-control-spacer.js line number: 7</a></p><p>EXTENDS: <a href="spacer.html">spacer.js</a></p><h3>Constructor</h3><pre><code>CustomControlSpacer()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/custom-control-spacer.js#L15">https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/custom-control-spacer.js line number: 15</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/custom-control-spacer.js#L25">https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/custom-control-spacer.js line number: 25</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/duration-display.html b/javascript/videojs/docs/legacy-docs/api/duration-display.html new file mode 100644 index 0000000..784e426 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/duration-display.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>DurationDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/DurationDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/DurationDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>DurationDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodsupdateContent">updateContent</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>DurationDisplay</h1><div style="border:none" id="classDescription" class="description"><p>Displays the duration</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/duration-display.js#L8">duration-display.js line number: 8</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>DurationDisplay( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/duration-display.js#L30">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/duration-display.js line number: 30</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateContent"><h3 id="updateContentHeader">updateContent()</h3><div id="updateContentDescription" class="description"><p>Update duration time display</p></div><p class="vjs-only"><em id="updateContentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/duration-display.js#L54">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/duration-display.js line number: 54</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/error-display.html b/javascript/videojs/docs/legacy-docs/api/error-display.html new file mode 100644 index 0000000..c4daafe --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/error-display.html @@ -0,0 +1,170 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ErrorDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ErrorDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ErrorDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ErrorDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li></ul><h4>Inherited Methods from ModalDialog</h4><ul><li><a href="#Methodsclose">close</a></li><li><a href="#Methodscloseable">closeable</a></li><li><a href="#Methodscontent">content</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsempty">empty</a></li><li><a href="#Methodsfill">fill</a></li><li><a href="#MethodsfillWith">fillWith</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#Methodsopen">open</a></li><li><a href="#Methodsopened">opened</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ErrorDisplay</h1><div style="border:none" id="classDescription" class="description"><p>Display that an error has occurred making the video unplayable.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/error-display.js#L10">error-display.js line number: 10</a></p><p>EXTENDS: <a href="modal-dialog.html">modal-dialog.js</a></p><h3>Constructor</h3><pre><code>ErrorDisplay()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()<em class="deprecated"> (deprecated)</em></h3><div id="buildCSSClassDescription" class="description"><p>Include the old class for backward-compatibility.</p> +<p>This can be removed in 6.0.</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/error-display.js#L29">https://github.com/videojs/video.js/blob/master/src/js/error-display.js line number: 29</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsclose"><h3 id="closeHeader">close()</h3><div id="closeDescription" class="description"><p>Closes the modal.</p></div><p class="vjs-only"><em id="closeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L206">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 206</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodscloseable"><h3 id="closeableHeader">closeable( [value] )</h3><div id="closeableDescription" class="description"><p>Whether or not the modal is closeable via the UI.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>no</td><td>If given as a Boolean, it will set the <code>closeable</code> option.</td></tr></tbody></table><p class="vjs-only"><em id="closeableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L239">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 239</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodscontent"><h3 id="contentHeader">content( [value] )</h3><div id="contentDescription" class="description"><p>Gets or sets the modal content, which gets normalized before being +rendered into the DOM.</p> +<p>This does not update the DOM or fill the modal, but it is called during +that process.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Mixed</td><td>no</td><td>If defined, sets the internal content value to be used on the + next call(s) to <code>fill</code>. This value is normalized before being + inserted. To "clear" the internal content value, pass <code>null</code>.</td></tr></tbody></table><p class="vjs-only"><em id="contentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L338">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 338</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the modal's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L83">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 83</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsempty"><h3 id="emptyHeader">empty()</h3><div id="emptyDescription" class="description"><p>Empties the content element.</p> +<p>This happens automatically anytime the modal is filled.</p></div><p class="vjs-only"><em id="emptyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L323">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 323</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsfill"><h3 id="fillHeader">fill()</h3><div id="fillDescription" class="description"><p>Fill the modal's content element with the modal's "content" option.</p> +<p>The content element will be emptied before this change takes place.</p></div><p class="vjs-only"><em id="fillFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L275">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 275</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsfillWith"><h3 id="fillWithHeader">fillWith( [content] )</h3><div id="fillWithDescription" class="description"><p>Fill the modal's content element with arbitrary content.</p> +<p>The content element will be emptied before this change takes place.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>content</td><td>Mixed</td><td>no</td><td>The same rules apply to this as apply to the <code>content</code> option.</td></tr></tbody></table><p class="vjs-only"><em id="fillWithFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L287">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 287</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( e )</h3><div id="handleKeyPressDescription" class="description"><p>Handles key presses on the document, looking for ESC, which closes +the modal.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>e</td><td>Event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L111">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsopen"><h3 id="openHeader">open()</h3><div id="openDescription" class="description"><p>Opens the modal.</p></div><p class="vjs-only"><em id="openFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L150">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 150</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsopened"><h3 id="openedHeader">opened( [value] )</h3><div id="openedDescription" class="description"><p>Whether or not the modal is opened currently.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>no</td><td>If given, it will open (<code>true</code>) or close (<code>false</code>) the modal.</td></tr></tbody></table><p class="vjs-only"><em id="openedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L190">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 190</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/flash.html b/javascript/videojs/docs/legacy-docs/api/flash.html new file mode 100644 index 0000000..56e8432 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/flash.html @@ -0,0 +1,172 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Flash</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Flash Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#Methodsbuffered">buffered</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscurrentSrc">currentSrc</a></li><li><a href="#MethodscurrentTime">currentTime</a></li><li><a href="#MethodsenterFullScreen">enterFullScreen</a></li><li><a href="#Methodsload">load</a></li><li><a href="#Methodspause">pause</a></li><li><a href="#Methodsplay">play</a></li><li><a href="#Methodsposter">poster</a></li><li><a href="#Methodsseekable">seekable</a></li><li><a href="#MethodssetCurrentTime">setCurrentTime</a></li><li><a href="#MethodssetPoster">setPoster</a></li><li><a href="#MethodssetSrc">setSrc</a></li><li><a href="#Methodssrc">src</a></li><li><a href="#MethodssupportsFullScreen">supportsFullScreen</a></li></ul><h4>Inherited Methods from Tech</h4><ul><li><a href="#MethodsaddRemoteTextTrack">addRemoteTextTrack</a></li><li><a href="#MethodsaddTextTrack">addTextTrack</a></li><li><a href="#MethodsbufferedPercent">bufferedPercent</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#MethodsemulateTextTracks">emulateTextTracks</a></li><li><a href="#Methodserror">error</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodsinitTextTrackListeners">initTextTrackListeners</a></li><li><a href="#MethodsmanualProgressOff">manualProgressOff</a></li><li><a href="#MethodsmanualProgressOn">manualProgressOn</a></li><li><a href="#MethodsmanualTimeUpdatesOff">manualTimeUpdatesOff</a></li><li><a href="#MethodsmanualTimeUpdatesOn">manualTimeUpdatesOn</a></li><li><a href="#MethodsonDurationChange">onDurationChange</a></li><li><a href="#Methodsplayed">played</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoteTextTrackEls">remoteTextTrackEls</a></li><li><a href="#MethodsremoteTextTracks">remoteTextTracks</a></li><li><a href="#MethodsremoveRemoteTextTrack">removeRemoteTextTrack</a></li><li><a href="#Methodsreset">reset</a></li><li><a href="#MethodsstopTrackingCurrentTime">stopTrackingCurrentTime</a></li><li><a href="#MethodsstopTrackingProgress">stopTrackingProgress</a></li><li><a href="#MethodstextTracks">textTracks</a></li><li><a href="#MethodstrackCurrentTime">trackCurrentTime</a></li><li><a href="#MethodstrackProgress">trackProgress</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Flash</h1><div style="border:none" id="classDescription" class="description"><p>Flash Media Controller - Wrapper for fallback SWF API</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L18">flash.js line number: 18</a></p><p>EXTENDS: <a href="tech.html">tech.js</a></p><h3>Constructor</h3><pre><code>Flash( [options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="Methodsbuffered"><h3 id="bufferedHeader">buffered()</h3><div id="bufferedDescription" class="description"><p>Get buffered time range</p></div><p class="vjs-only"><em id="bufferedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L271">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L63">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 63</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentSrc"><h3 id="currentSrcHeader">currentSrc()</h3><div id="currentSrcDescription" class="description"><p>Get current source</p></div><p class="vjs-only"><em id="currentSrcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L219">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 219</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentTime"><h3 id="currentTimeHeader">currentTime( [time] )</h3><div id="currentTimeDescription" class="description"><p>Get current time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>time</td><td>Number</td><td>no</td><td>Current time of video</td></tr></tbody></table><p class="vjs-only"><em id="currentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L203">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 203</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenterFullScreen"><h3 id="enterFullScreenHeader">enterFullScreen()</h3><div id="enterFullScreenDescription" class="description"><p>Request to enter fullscreen +Flash does not allow fullscreen through javascript +so always returns false</p></div><p class="vjs-only"><em id="enterFullScreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L297">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 297</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsload"><h3 id="loadHeader">load()</h3><div id="loadDescription" class="description"><p>Load media into player</p></div><p class="vjs-only"><em id="loadFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L232">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 232</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspause"><h3 id="pauseHeader">pause()</h3><div id="pauseDescription" class="description"><p>Pause for flash tech</p></div><p class="vjs-only"><em id="pauseFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L130">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 130</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplay"><h3 id="playHeader">play()</h3><div id="playDescription" class="description"><p>Play for flash tech</p></div><p class="vjs-only"><em id="playFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L118">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 118</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsposter"><h3 id="posterHeader">poster()</h3><div id="posterDescription" class="description"><p>Get poster</p></div><p class="vjs-only"><em id="posterFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L241">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 241</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsseekable"><h3 id="seekableHeader">seekable()</h3><div id="seekableDescription" class="description"><p>Determine if can seek in media</p></div><p class="vjs-only"><em id="seekableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L257">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 257</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetCurrentTime"><h3 id="setCurrentTimeHeader">setCurrentTime( time )</h3><div id="setCurrentTimeDescription" class="description"><p>Set current time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>time</td><td>Number</td><td>yes</td><td>Current time of video</td></tr></tbody></table><p class="vjs-only"><em id="setCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L183">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 183</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetPoster"><h3 id="setPosterHeader">setPoster()</h3><div id="setPosterDescription" class="description"><p>Poster images are not handled by the Flash tech so make this a no-op</p></div><p class="vjs-only"><em id="setPosterFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L250">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 250</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetSrc"><h3 id="setSrcHeader">setSrc( [src] )<em class="deprecated"> (deprecated)</em></h3><div id="setSrcDescription" class="description"><p>Set video</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>src</td><td>Object</td><td>no</td><td>Source object</td></tr></tbody></table><p class="vjs-only"><em id="setSrcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L155">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 155</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodssrc"><h3 id="srcHeader">src( [src] )</h3><div id="srcDescription" class="description"><p>Get/set video</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>src</td><td>Object</td><td>no</td><td>Source object</td></tr></tbody></table><p class="vjs-only"><em id="srcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L139">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssupportsFullScreen"><h3 id="supportsFullScreenHeader">supportsFullScreen()</h3><div id="supportsFullScreenDescription" class="description"><p>Get fullscreen support - +Flash does not allow fullscreen through javascript +so always returns false</p></div><p class="vjs-only"><em id="supportsFullScreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js#L285">https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 285</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddRemoteTextTrack"><h3 id="addRemoteTextTrackHeader">addRemoteTextTrack( options )</h3><div id="addRemoteTextTrackDescription" class="description"><p>Creates a remote text track object and returns a emulated html track element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>yes</td><td>The object should contain values for +kind, language, label and src (location of the WebVTT file)</td></tr></tbody></table><p class="vjs-only"><em id="addRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L412">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 412</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddTextTrack"><h3 id="addTextTrackHeader">addTextTrack( kind, [label], [language] )</h3><div id="addTextTrackDescription" class="description"><p>Creates and returns a remote text track object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>kind</td><td>String</td><td>yes</td><td>Text track kind (subtitles, captions, descriptions + chapters and metadata)</td></tr><tr><td>label</td><td>String</td><td>no</td><td>Label to identify the text track</td></tr><tr><td>language</td><td>String</td><td>no</td><td>Two letter language abbreviation</td></tr></tbody></table><p class="vjs-only"><em id="addTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L394">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 394</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbufferedPercent"><h3 id="bufferedPercentHeader">bufferedPercent()</h3><div id="bufferedPercentDescription" class="description"><p>Get buffered percent</p></div><p class="vjs-only"><em id="bufferedPercentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L146">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 146</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Turn off any manual progress or timeupdate tracking</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L215">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 215</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsemulateTextTracks"><h3 id="emulateTextTracksHeader">emulateTextTracks()</h3><div id="emulateTextTracksDescription" class="description"><p>Emulate texttracks</p></div><p class="vjs-only"><em id="emulateTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L316">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 316</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodserror"><h3 id="errorHeader">error( [err] )</h3><div id="errorDescription" class="description"><p>When invoked without an argument, returns a MediaError object +representing the current error state of the player or null if +there is no error. When invoked with an argument, set the current +error state of the player.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>err</td><td>MediaError</td><td>no</td><td>Optional an error object</td></tr></tbody></table><p class="vjs-only"><em id="errorFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L246">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 246</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L509">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 509</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitTextTrackListeners"><h3 id="initTextTrackListenersHeader">initTextTrackListeners()</h3><div id="initTextTrackListenersDescription" class="description"><p>Initialize texttrack listeners</p></div><p class="vjs-only"><em id="initTextTrackListenersFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L293">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 293</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualProgressOff"><h3 id="manualProgressOffHeader">manualProgressOff()</h3><div id="manualProgressOffDescription" class="description"><p>Turn off progress events</p></div><p class="vjs-only"><em id="manualProgressOffFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L91">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 91</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualProgressOn"><h3 id="manualProgressOnHeader">manualProgressOn()</h3><div id="manualProgressOnDescription" class="description"><p>Turn on progress events</p></div><p class="vjs-only"><em id="manualProgressOnFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L77">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 77</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualTimeUpdatesOff"><h3 id="manualTimeUpdatesOffHeader">manualTimeUpdatesOff()</h3><div id="manualTimeUpdatesOffDescription" class="description"><p>Remove event listeners for on play and pause and tracking current time</p></div><p class="vjs-only"><em id="manualTimeUpdatesOffFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L178">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 178</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualTimeUpdatesOn"><h3 id="manualTimeUpdatesOnHeader">manualTimeUpdatesOn()</h3><div id="manualTimeUpdatesOnDescription" class="description"><p>Set event listeners for on play and pause and tracking current time</p></div><p class="vjs-only"><em id="manualTimeUpdatesOnFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L166">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 166</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsonDurationChange"><h3 id="onDurationChangeHeader">onDurationChange()</h3><div id="onDurationChangeDescription" class="description"><p>Update duration</p></div><p class="vjs-only"><em id="onDurationChangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L127">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 127</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayed"><h3 id="playedHeader">played()</h3><div id="playedDescription" class="description"><p>Return the time ranges that have been played through for the +current source. This implementation is incomplete. It does not +track the played time ranges, only whether the source has played +at all or not.</p></div><p class="vjs-only"><em id="playedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L267">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 267</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, tech )</h3><div id="registerComponentDescription" class="description"><p>Registers a Tech</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the Tech to register</td></tr><tr><td>tech</td><td>Object</td><td>yes</td><td>The tech to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L488">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 488</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTrackEls"><h3 id="remoteTextTrackElsHeader">remoteTextTrackEls()</h3><div id="remoteTextTrackElsDescription" class="description"><p>Get remote htmltrackelements</p></div><p class="vjs-only"><em id="remoteTextTrackElsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L383">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 383</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTracks"><h3 id="remoteTextTracksHeader">remoteTextTracks()</h3><div id="remoteTextTracksDescription" class="description"><p>Get remote texttracks</p></div><p class="vjs-only"><em id="remoteTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L372">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 372</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveRemoteTextTrack"><h3 id="removeRemoteTextTrackHeader">removeRemoteTextTrack( track )</h3><div id="removeRemoteTextTrackDescription" class="description"><p>Remove remote texttrack</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>track</td><td>TextTrackObject</td><td>yes</td><td>Texttrack to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L437">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 437</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsreset"><h3 id="resetHeader">reset()</h3><div id="resetDescription" class="description"><p>Reset the tech. Removes all sources and resets readyState.</p></div><p class="vjs-only"><em id="resetFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L239">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 239</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstopTrackingCurrentTime"><h3 id="stopTrackingCurrentTimeHeader">stopTrackingCurrentTime()</h3><div id="stopTrackingCurrentTimeDescription" class="description"><p>Turn off play progress tracking (when paused or dragging)</p></div><p class="vjs-only"><em id="stopTrackingCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L202">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 202</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstopTrackingProgress"><h3 id="stopTrackingProgressHeader">stopTrackingProgress()</h3><div id="stopTrackingProgressDescription" class="description"><p>Stops tracking progress by clearing progress interval</p></div><p class="vjs-only"><em id="stopTrackingProgressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L156">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 156</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstextTracks"><h3 id="textTracksHeader">textTracks()</h3><div id="textTracksDescription" class="description"><p>Get texttracks</p></div><p class="vjs-only"><em id="textTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L361">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 361</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstrackCurrentTime"><h3 id="trackCurrentTimeHeader">trackCurrentTime()</h3><div id="trackCurrentTimeDescription" class="description"><p>Tracks current time</p></div><p class="vjs-only"><em id="trackCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L190">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 190</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstrackProgress"><h3 id="trackProgressHeader">trackProgress()</h3><div id="trackProgressDescription" class="description"><p>Track progress</p></div><p class="vjs-only"><em id="trackProgressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L103">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 103</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/fullscreen-toggle.html b/javascript/videojs/docs/legacy-docs/api/fullscreen-toggle.html new file mode 100644 index 0000000..b838a06 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/fullscreen-toggle.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>FullscreenToggle</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/FullscreenToggle.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/FullscreenToggle.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>FullscreenToggle Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodshandleClick">handleClick</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>FullscreenToggle</h1><div style="border:none" id="classDescription" class="description"><p>Toggle fullscreen video</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js#L7">fullscreen-toggle.js line number: 7</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>FullscreenToggle()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js#L15">https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js line number: 15</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handles click for full screen</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js#L25">https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js line number: 25</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>An object of properties that should be set on the element</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set on the element</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L26">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/fullscreen-toggle.json b/javascript/videojs/docs/legacy-docs/api/fullscreen-toggle.json new file mode 100644 index 0000000..df2dd2a --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/fullscreen-toggle.json @@ -0,0 +1,95 @@ +[ + { + "comment": "/**\n * Toggle fullscreen video\n * @param {Player|Object} player\n * @param {Object=} options\n * @extends Button\n * @class FullScreenToggle\n */", + "meta": { + "range": [ + 0, + 141 + ], + "filename": "fullscreen-toggle.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/jsdoc-tests2", + "code": {} + }, + "description": "<p>Toggle fullscreen video</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "FullScreenToggle", + "longname": "FullScreenToggle", + "scope": "global" + }, + { + "comment": "/**\n * Allows sub components to stack CSS class names\n * @return {String}\n * @method buildCSSClass\n */", + "meta": { + "range": [ + 143, + 249 + ], + "filename": "fullscreen-toggle.js", + "lineno": 9, + "path": "/Users/mboles/git/BCL-LearningSamples/jsdoc-tests2", + "code": {} + }, + "description": "<p>Allows sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n * Handles the click\n * @method handleClick\n */", + "meta": { + "range": [ + 251, + 305 + ], + "filename": "fullscreen-toggle.js", + "lineno": 15, + "path": "/Users/mboles/git/BCL-LearningSamples/jsdoc-tests2", + "code": {} + }, + "description": "<p>Handles the click</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "kind": "package", + "longname": "package:undefined", + "files": [ + "/Users/mboles/git/BCL-LearningSamples/jsdoc-tests2/fullscreen-toggle.js" + ] + } +] diff --git a/javascript/videojs/docs/legacy-docs/api/html-track-element.html b/javascript/videojs/docs/legacy-docs/api/html-track-element.html new file mode 100644 index 0000000..954cb2e --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/html-track-element.html @@ -0,0 +1,23 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>HTMLTrackElement</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/HtmlTrackElement.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/HtmlTrackElement.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>HTMLTrackElement</h1><div style="border:none" id="classDescription" class="description"><p>https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement</p> +<p>interface HTMLTrackElement : HTMLElement { + attribute DOMString kind; + attribute DOMString src; + attribute DOMString srclang; + attribute DOMString label; + attribute boolean default;</p> +<p> const unsigned short NONE = 0; + const unsigned short LOADING = 1; + const unsigned short LOADED = 2; + const unsigned short ERROR = 3; + readonly attribute unsigned short readyState;</p> +<p> readonly attribute TextTrack track; +};</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/html-track-element.js#L15">html-track-element.js line number: 15</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>HTMLTrackElement( options )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>yes</td><td>TextTrack configuration</td></tr></tbody></table></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/html5.html b/javascript/videojs/docs/legacy-docs/api/html5.html new file mode 100644 index 0000000..c95a093 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/html5.html @@ -0,0 +1,177 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Html5</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Html5.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Html5.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Html5 Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddRemoteTextTrack">addRemoteTextTrack</a></li><li><a href="#MethodsaddTextTrack">addTextTrack</a></li><li><a href="#Methodsautoplay">autoplay</a></li><li><a href="#Methodsbuffered">buffered</a></li><li><a href="#Methodscontrols">controls</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscurrentSrc">currentSrc</a></li><li><a href="#MethodscurrentTime">currentTime</a></li><li><a href="#MethodsdefaultMuted">defaultMuted</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsduration">duration</a></li><li><a href="#Methodsended">ended</a></li><li><a href="#MethodsenterFullScreen">enterFullScreen</a></li><li><a href="#Methodserror">error</a></li><li><a href="#MethodsexitFullScreen">exitFullScreen</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodsload">load</a></li><li><a href="#Methodsloop">loop</a></li><li><a href="#Methodsmuted">muted</a></li><li><a href="#MethodsnetworkState">networkState</a></li><li><a href="#Methodspause">pause</a></li><li><a href="#Methodspaused">paused</a></li><li><a href="#Methodsplay">play</a></li><li><a href="#MethodsplaybackRate">playbackRate</a></li><li><a href="#Methodsposter">poster</a></li><li><a href="#Methodspreload">preload</a></li><li><a href="#MethodsreadyState">readyState</a></li><li><a href="#MethodsremoveRemoteTextTrack">removeRemoteTextTrack</a></li><li><a href="#Methodsreset">reset</a></li><li><a href="#Methodsseekable">seekable</a></li><li><a href="#Methodsseeking">seeking</a></li><li><a href="#MethodssetAutoplay">setAutoplay</a></li><li><a href="#MethodssetControls">setControls</a></li><li><a href="#MethodssetCurrentTime">setCurrentTime</a></li><li><a href="#MethodssetLoop">setLoop</a></li><li><a href="#MethodssetMuted">setMuted</a></li><li><a href="#MethodssetPlaybackRate">setPlaybackRate</a></li><li><a href="#MethodssetPreload">setPreload</a></li><li><a href="#MethodssetSrc">setSrc</a></li><li><a href="#MethodssetVolume">setVolume</a></li><li><a href="#Methodssrc">src</a></li><li><a href="#MethodssupportsFullScreen">supportsFullScreen</a></li><li><a href="#MethodstextTracks">textTracks</a></li><li><a href="#MethodsvideoHeight">videoHeight</a></li><li><a href="#MethodsvideoWidth">videoWidth</a></li><li><a href="#Methodsvolume">volume</a></li><li><a href="#Methodswidth">width</a></li></ul><h4>Inherited Methods from Tech</h4><ul><li><a href="#MethodsbufferedPercent">bufferedPercent</a></li><li><a href="#MethodsemulateTextTracks">emulateTextTracks</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodsinitTextTrackListeners">initTextTrackListeners</a></li><li><a href="#MethodsmanualProgressOff">manualProgressOff</a></li><li><a href="#MethodsmanualProgressOn">manualProgressOn</a></li><li><a href="#MethodsmanualTimeUpdatesOff">manualTimeUpdatesOff</a></li><li><a href="#MethodsmanualTimeUpdatesOn">manualTimeUpdatesOn</a></li><li><a href="#MethodsonDurationChange">onDurationChange</a></li><li><a href="#Methodsplayed">played</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoteTextTrackEls">remoteTextTrackEls</a></li><li><a href="#MethodsremoteTextTracks">remoteTextTracks</a></li><li><a href="#MethodssetPoster">setPoster</a></li><li><a href="#MethodsstopTrackingCurrentTime">stopTrackingCurrentTime</a></li><li><a href="#MethodsstopTrackingProgress">stopTrackingProgress</a></li><li><a href="#MethodstrackCurrentTime">trackCurrentTime</a></li><li><a href="#MethodstrackProgress">trackProgress</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Html5</h1><div style="border:none" id="classDescription" class="description"><p>HTML5 Media Controller - Wrapper for HTML5 Media API</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L18">html5.js line number: 18</a></p><p>EXTENDS: <a href="tech.html">tech.js</a></p><h3>Constructor</h3><pre><code>Html5( [options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddRemoteTextTrack"><h3 id="addRemoteTextTrackHeader">addRemoteTextTrack( options )</h3><div id="addRemoteTextTrackDescription" class="description"><p>Creates a remote text track object and returns a html track element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>yes</td><td>The object should contain values for +kind, language, label and src (location of the WebVTT file)</td></tr></tbody></table><p class="vjs-only"><em id="addRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L736">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 736</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddTextTrack"><h3 id="addTextTrackHeader">addTextTrack( kind, [label], [language] )</h3><div id="addTextTrackDescription" class="description"><p>Creates and returns a text track object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>kind</td><td>String</td><td>yes</td><td>Text track kind (subtitles, captions, descriptions + chapters and metadata)</td></tr><tr><td>label</td><td>String</td><td>no</td><td>Label to identify the text track</td></tr><tr><td>language</td><td>String</td><td>no</td><td>Two letter language abbreviation</td></tr></tbody></table><p class="vjs-only"><em id="addTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L718">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 718</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsautoplay"><h3 id="autoplayHeader">autoplay()</h3><div id="autoplayDescription" class="description"><p>Get autoplay attribute</p></div><p class="vjs-only"><em id="autoplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L547">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 547</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsbuffered"><h3 id="bufferedHeader">buffered()</h3><div id="bufferedDescription" class="description"><p>Get a TimeRange object that represents the intersection +of the time ranges for which the user agent has all +relevant media</p></div><p class="vjs-only"><em id="bufferedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L338">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 338</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodscontrols"><h3 id="controlsHeader">controls()</h3><div id="controlsDescription" class="description"><p>Get controls attribute</p></div><p class="vjs-only"><em id="controlsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L563">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 563</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L121">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 121</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentSrc"><h3 id="currentSrcHeader">currentSrc()</h3><div id="currentSrcDescription" class="description"><p>Get current source</p></div><p class="vjs-only"><em id="currentSrcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L501">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 501</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentTime"><h3 id="currentTimeHeader">currentTime()</h3><div id="currentTimeDescription" class="description"><p>Get current time</p></div><p class="vjs-only"><em id="currentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L307">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 307</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsdefaultMuted"><h3 id="defaultMutedHeader">defaultMuted()</h3><div id="defaultMutedDescription" class="description"><p>Get the value of the muted content attribute +This attribute has no dynamic effect, it only +controls the default state of the element</p></div><p class="vjs-only"><em id="defaultMutedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L629">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 629</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of html5 media element</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L93">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 93</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsduration"><h3 id="durationHeader">duration()</h3><div id="durationDescription" class="description"><p>Get duration</p></div><p class="vjs-only"><em id="durationFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L330">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 330</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsended"><h3 id="endedHeader">ended()</h3><div id="endedDescription" class="description"><p>Get if video ended</p></div><p class="vjs-only"><em id="endedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L621">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 621</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenterFullScreen"><h3 id="enterFullScreenHeader">enterFullScreen()</h3><div id="enterFullScreenDescription" class="description"><p>Request to enter fullscreen</p></div><p class="vjs-only"><em id="enterFullScreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L413">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 413</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodserror"><h3 id="errorHeader">error()</h3><div id="errorDescription" class="description"><p>Get error value</p></div><p class="vjs-only"><em id="errorFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L595">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 595</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsexitFullScreen"><h3 id="exitFullScreenHeader">exitFullScreen()</h3><div id="exitFullScreenDescription" class="description"><p>Request to exit fullscreen</p></div><p class="vjs-only"><em id="exitFullScreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L447">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 447</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height()</h3><div id="heightDescription" class="description"><p>Get player height</p></div><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L388">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 388</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsload"><h3 id="loadHeader">load()</h3><div id="loadDescription" class="description"><p>Load media into player</p></div><p class="vjs-only"><em id="loadFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L483">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 483</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsloop"><h3 id="loopHeader">loop()</h3><div id="loopDescription" class="description"><p>Get loop attribute</p></div><p class="vjs-only"><em id="loopFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L579">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 579</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsmuted"><h3 id="mutedHeader">muted()</h3><div id="mutedDescription" class="description"><p>Get if muted</p></div><p class="vjs-only"><em id="mutedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L364">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 364</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsnetworkState"><h3 id="networkStateHeader">networkState()</h3><div id="networkStateDescription" class="description"><p>Get the current state of network activity for the element, from +the list below +NETWORK_EMPTY (numeric value 0) +NETWORK_IDLE (numeric value 1) +NETWORK_LOADING (numeric value 2) +NETWORK_NO_SOURCE (numeric value 3)</p></div><p class="vjs-only"><em id="networkStateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L664">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 664</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspause"><h3 id="pauseHeader">pause()</h3><div id="pauseDescription" class="description"><p>Pause for html5 tech</p></div><p class="vjs-only"><em id="pauseFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L292">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 292</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspaused"><h3 id="pausedHeader">paused()</h3><div id="pausedDescription" class="description"><p>Paused for html5 tech</p></div><p class="vjs-only"><em id="pausedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L299">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 299</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplay"><h3 id="playHeader">play()</h3><div id="playDescription" class="description"><p>Play for html5 tech</p></div><p class="vjs-only"><em id="playFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L285">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 285</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsplaybackRate"><h3 id="playbackRateHeader">playbackRate()</h3><div id="playbackRateDescription" class="description"><p>Get desired speed at which the media resource is to play</p></div><p class="vjs-only"><em id="playbackRateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L639">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 639</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsposter"><h3 id="posterHeader">poster()</h3><div id="posterDescription" class="description"><p>Get poster</p></div><p class="vjs-only"><em id="posterFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L515">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 515</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspreload"><h3 id="preloadHeader">preload()</h3><div id="preloadDescription" class="description"><p>Get preload attribute</p></div><p class="vjs-only"><em id="preloadFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L531">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 531</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsreadyState"><h3 id="readyStateHeader">readyState()</h3><div id="readyStateDescription" class="description"><p>Get a value that expresses the current state of the element +with respect to rendering the current playback position, from +the codes in the list below +HAVE_NOTHING (numeric value 0) +HAVE_METADATA (numeric value 1) +HAVE_CURRENT_DATA (numeric value 2) +HAVE_FUTURE_DATA (numeric value 3) +HAVE_ENOUGH_DATA (numeric value 4)</p></div><p class="vjs-only"><em id="readyStateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L677">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 677</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveRemoteTextTrack"><h3 id="removeRemoteTextTrackHeader">removeRemoteTextTrack( track )</h3><div id="removeRemoteTextTrackDescription" class="description"><p>Remove remote text track from TextTrackList object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>track</td><td>TextTrackObject</td><td>yes</td><td>Texttrack object to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L779">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 779</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsreset"><h3 id="resetHeader">reset()</h3><div id="resetDescription" class="description"><p>Reset the tech. Removes all sources and calls <code>load</code>.</p></div><p class="vjs-only"><em id="resetFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L492">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 492</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsseekable"><h3 id="seekableHeader">seekable()</h3><div id="seekableDescription" class="description"><p>Get a TimeRanges object that represents the +ranges of the media resource to which it is possible +for the user agent to seek.</p></div><p class="vjs-only"><em id="seekableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L611">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 611</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsseeking"><h3 id="seekingHeader">seeking()</h3><div id="seekingDescription" class="description"><p>Get whether or not the player is in the "seeking" state</p></div><p class="vjs-only"><em id="seekingFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L603">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 603</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetAutoplay"><h3 id="setAutoplayHeader">setAutoplay( val )</h3><div id="setAutoplayDescription" class="description"><p>Set autoplay attribute</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>val</td><td>String</td><td>yes</td><td>Value for preload attribute</td></tr></tbody></table><p class="vjs-only"><em id="setAutoplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L555">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 555</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetControls"><h3 id="setControlsHeader">setControls( val )</h3><div id="setControlsDescription" class="description"><p>Set controls attribute</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>val</td><td>String</td><td>yes</td><td>Value for controls attribute</td></tr></tbody></table><p class="vjs-only"><em id="setControlsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L571">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 571</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetCurrentTime"><h3 id="setCurrentTimeHeader">setCurrentTime( seconds )</h3><div id="setCurrentTimeDescription" class="description"><p>Set current time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>seconds</td><td>Number</td><td>yes</td><td>Current time of video</td></tr></tbody></table><p class="vjs-only"><em id="setCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L315">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetLoop"><h3 id="setLoopHeader">setLoop( val )</h3><div id="setLoopDescription" class="description"><p>Set loop attribute</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>val</td><td>String</td><td>yes</td><td>Value for loop attribute</td></tr></tbody></table><p class="vjs-only"><em id="setLoopFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L587">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 587</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetMuted"><h3 id="setMutedHeader">setMuted( If )</h3><div id="setMutedDescription" class="description"><p>Set muted</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>If</td><td>Boolean</td><td>yes</td><td>player is to be muted or note</td></tr></tbody></table><p class="vjs-only"><em id="setMutedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L372">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 372</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetPlaybackRate"><h3 id="setPlaybackRateHeader">setPlaybackRate( val )</h3><div id="setPlaybackRateDescription" class="description"><p>Set desired speed at which the media resource is to play</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>val</td><td>Number</td><td>yes</td><td>Speed at which the media resource is to play</td></tr></tbody></table><p class="vjs-only"><em id="setPlaybackRateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L656">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 656</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetPreload"><h3 id="setPreloadHeader">setPreload( val )</h3><div id="setPreloadDescription" class="description"><p>Set preload attribute</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>val</td><td>String</td><td>yes</td><td>Value for preload attribute</td></tr></tbody></table><p class="vjs-only"><em id="setPreloadFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L539">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 539</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetSrc"><h3 id="setSrcHeader">setSrc( src )<em class="deprecated"> (deprecated)</em></h3><div id="setSrcDescription" class="description"><p>Set video</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>src</td><td>Object</td><td>yes</td><td>Source object</td></tr></tbody></table><p class="vjs-only"><em id="setSrcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L472">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 472</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetVolume"><h3 id="setVolumeHeader">setVolume( percentAsDecimal )</h3><div id="setVolumeDescription" class="description"><p>Set volume level</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>percentAsDecimal</td><td>Number</td><td>yes</td><td>Volume percent as a decimal</td></tr></tbody></table><p class="vjs-only"><em id="setVolumeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L356">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 356</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodssrc"><h3 id="srcHeader">src( [src] )</h3><div id="srcDescription" class="description"><p>Get/set video</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>src</td><td>Object</td><td>no</td><td>Source object</td></tr></tbody></table><p class="vjs-only"><em id="srcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L456">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 456</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssupportsFullScreen"><h3 id="supportsFullScreenHeader">supportsFullScreen()</h3><div id="supportsFullScreenDescription" class="description"><p>Get if there is fullscreen support</p></div><p class="vjs-only"><em id="supportsFullScreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L396">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 396</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstextTracks"><h3 id="textTracksHeader">textTracks()</h3><div id="textTracksDescription" class="description"><p>Get text tracks</p></div><p class="vjs-only"><em id="textTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L708">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 708</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsvideoHeight"><h3 id="videoHeightHeader">videoHeight()</h3><div id="videoHeightDescription" class="description"><p>Get height of video</p></div><p class="vjs-only"><em id="videoHeightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L700">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 700</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsvideoWidth"><h3 id="videoWidthHeader">videoWidth()</h3><div id="videoWidthDescription" class="description"><p>Get width of video</p></div><p class="vjs-only"><em id="videoWidthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L692">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 692</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsvolume"><h3 id="volumeHeader">volume()</h3><div id="volumeDescription" class="description"><p>Get volume level</p></div><p class="vjs-only"><em id="volumeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L348">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 348</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width()</h3><div id="widthDescription" class="description"><p>Get player width</p></div><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L380">https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js line number: 380</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbufferedPercent"><h3 id="bufferedPercentHeader">bufferedPercent()</h3><div id="bufferedPercentDescription" class="description"><p>Get buffered percent</p></div><p class="vjs-only"><em id="bufferedPercentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L146">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 146</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsemulateTextTracks"><h3 id="emulateTextTracksHeader">emulateTextTracks()</h3><div id="emulateTextTracksDescription" class="description"><p>Emulate texttracks</p></div><p class="vjs-only"><em id="emulateTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L316">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 316</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L509">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 509</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitTextTrackListeners"><h3 id="initTextTrackListenersHeader">initTextTrackListeners()</h3><div id="initTextTrackListenersDescription" class="description"><p>Initialize texttrack listeners</p></div><p class="vjs-only"><em id="initTextTrackListenersFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L293">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 293</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualProgressOff"><h3 id="manualProgressOffHeader">manualProgressOff()</h3><div id="manualProgressOffDescription" class="description"><p>Turn off progress events</p></div><p class="vjs-only"><em id="manualProgressOffFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L91">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 91</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualProgressOn"><h3 id="manualProgressOnHeader">manualProgressOn()</h3><div id="manualProgressOnDescription" class="description"><p>Turn on progress events</p></div><p class="vjs-only"><em id="manualProgressOnFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L77">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 77</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualTimeUpdatesOff"><h3 id="manualTimeUpdatesOffHeader">manualTimeUpdatesOff()</h3><div id="manualTimeUpdatesOffDescription" class="description"><p>Remove event listeners for on play and pause and tracking current time</p></div><p class="vjs-only"><em id="manualTimeUpdatesOffFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L178">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 178</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualTimeUpdatesOn"><h3 id="manualTimeUpdatesOnHeader">manualTimeUpdatesOn()</h3><div id="manualTimeUpdatesOnDescription" class="description"><p>Set event listeners for on play and pause and tracking current time</p></div><p class="vjs-only"><em id="manualTimeUpdatesOnFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L166">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 166</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsonDurationChange"><h3 id="onDurationChangeHeader">onDurationChange()</h3><div id="onDurationChangeDescription" class="description"><p>Update duration</p></div><p class="vjs-only"><em id="onDurationChangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L127">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 127</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayed"><h3 id="playedHeader">played()</h3><div id="playedDescription" class="description"><p>Return the time ranges that have been played through for the +current source. This implementation is incomplete. It does not +track the played time ranges, only whether the source has played +at all or not.</p></div><p class="vjs-only"><em id="playedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L267">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 267</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, tech )</h3><div id="registerComponentDescription" class="description"><p>Registers a Tech</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the Tech to register</td></tr><tr><td>tech</td><td>Object</td><td>yes</td><td>The tech to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L488">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 488</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTrackEls"><h3 id="remoteTextTrackElsHeader">remoteTextTrackEls()</h3><div id="remoteTextTrackElsDescription" class="description"><p>Get remote htmltrackelements</p></div><p class="vjs-only"><em id="remoteTextTrackElsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L383">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 383</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTracks"><h3 id="remoteTextTracksHeader">remoteTextTracks()</h3><div id="remoteTextTracksDescription" class="description"><p>Get remote texttracks</p></div><p class="vjs-only"><em id="remoteTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L372">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 372</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetPoster"><h3 id="setPosterHeader">setPoster()</h3><div id="setPosterDescription" class="description"><p>Provide a default setPoster method for techs +Poster support for techs should be optional, so we don't want techs to +break if they don't have a way to set a poster.</p></div><p class="vjs-only"><em id="setPosterFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L453">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 453</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstopTrackingCurrentTime"><h3 id="stopTrackingCurrentTimeHeader">stopTrackingCurrentTime()</h3><div id="stopTrackingCurrentTimeDescription" class="description"><p>Turn off play progress tracking (when paused or dragging)</p></div><p class="vjs-only"><em id="stopTrackingCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L202">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 202</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstopTrackingProgress"><h3 id="stopTrackingProgressHeader">stopTrackingProgress()</h3><div id="stopTrackingProgressDescription" class="description"><p>Stops tracking progress by clearing progress interval</p></div><p class="vjs-only"><em id="stopTrackingProgressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L156">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 156</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstrackCurrentTime"><h3 id="trackCurrentTimeHeader">trackCurrentTime()</h3><div id="trackCurrentTimeDescription" class="description"><p>Tracks current time</p></div><p class="vjs-only"><em id="trackCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L190">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 190</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstrackProgress"><h3 id="trackProgressHeader">trackProgress()</h3><div id="trackProgressDescription" class="description"><p>Track progress</p></div><p class="vjs-only"><em id="trackProgressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L103">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 103</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/index.html b/javascript/videojs/docs/legacy-docs/api/index.html new file mode 100644 index 0000000..7df8108 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/index.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-index.css"> + <link rel="canonical" href="https://docs.videojs.com/Index.html"> +</head> + <body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Index.html">documentation for the current release</a>. + + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + <script src="js/api-index.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/js/api-docs.js b/javascript/videojs/docs/legacy-docs/api/js/api-docs.js new file mode 100644 index 0000000..565ea28 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/js/api-docs.js @@ -0,0 +1,781 @@ +var BCLSVJS = (function (window, document, docData, hljs) { + 'use strict'; + var title = document.getElementsByTagName('title')[0], + // data structures + classes = {thisClass: [], parentClass: []}, + doc_class, + docsPath = 'https://github.com/videojs/video.js/blob/master/src/js/', + doc_data = {}, + // doc path as an array + path = document.location.pathname.split('/'), + // paths + classFilePath, + parentClassFilePath, + // elements + mainContent, + main, + doc_body = document.getElementsByTagName('body')[0], + // functions + isDefined, + isItemInArray, + copyObj, + findObjectInArray, + findObjectsInArray, + getSubArray, + sortArray, + createEl, + bclslog, + findClassObjects, + addHeaderContent, + addIndex, + addMembersContent, + addText, + highlightCode, + init; + /** + * Logging function - safe for IE + * + * @param {string} context - description of the data + * @param {*} message - the data to be logged by the console + */ + bclslog = function (context, message) { + if (window['console'] && console['log']) { + console.log(context, message); + } + }; + /** + * tests for all the ways a variable might be undefined or not have a value + * + * @param {*} x the variable to test + * @return {Boolean} true if variable is defined and has a value + */ + isDefined = function (x) { + if (x === '' || x === null || x === undefined || x === NaN) { + return false; + } + return true; + }; + /** + * determines whether specified item is in an array + * + * @param {array} array to check + * @param {string} item to check for + * @return {boolean} true if item is in the array, else false + */ + isItemInArray = function (arr, item) { + var i, + iMax = arr.length; + for (i = 0; i < iMax; i++) { + if (arr[i] === item) { + return true; + } + } + return false; + }; + /** + * get a copy of (rather than reference to) an object + * + * @param {object} obj - the object you want a copy + * @return {object} the copy + */ + copyObj = function (obj) { + if (isDefined(obj)) { + return JSON.parse(JSON.stringify(obj)); + } + bclslog('no obj passed'); + }; + /** + * find index of an object in array of objects + * based on some property value + * generally useful for finding a unique object + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {integer} index of first instance if found, otherwise returns -1 + */ + findObjectInArray = function (targetArray, objProperty, value) { + var i, totalItems = targetArray.length, objFound = false; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + objFound = true; + return i; + } + } + if (objFound === false) { + return -1; + } + }; + /** + * find indexes of a set of object in array of objects + * based on some property value + * generally useful for finding several objects + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of indexes for matching objects + */ + findObjectsInArray = function (targetArray, objProperty, value) { + var i, totalItems = targetArray.length, newArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + newArr.push(i); + } + } + return newArr; + }; + /** + * get a subset of objects in array of objects + * based on some property value + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of objects with matching property value + */ + getSubArray = function (targetArray, objProperty, value) { + var i, totalItems = targetArray.length, idxArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + idxArr.push(targetArray[i]); + } + } + return idxArr; + }; + /** + * sort an array of objects based on an object property + * + * @param {array} targetArray - array to sort + * @param {string} objProperty - property whose value to sort on + * @return {array} the sorted array + */ + sortArray = function (targetArray, objProperty) { + targetArray.sort(function (a, b) { + var propA = a[objProperty].toLowerCase(), propB = b[objProperty].toLowerCase(); + // sort ascending; reverse propA and propB to sort descending + if (propA < propB) { + return -1; + } else if (propA > propB) { + return 1; + } + return 0; + }); + return targetArray; + }; + /** + * create an element + * + * @param {string} type - the element type + * @param {object} attributes - attributes to add to the element + * @return {object} the HTML element + */ + createEl = function (type, attributes) { + var el; + if (isDefined(type)) { + el = document.createElement(type); + if (isDefined(attributes)) { + var attr; + for (attr in attributes) { + el.setAttribute(attr, attributes[attr]); + } + } + return el; + } + }; + /** + * creates a text node and adds it to an element + * @param {object|node} el - the node (element) to add the text to + * @param {string} str - the text to add + */ + addText = function (el, str) { + var text = document.createTextNode(str); + el.appendChild(text); + }; + /** + * finds the objects in the doc data for a fileName + * + * @param {array} arr - the array of objects to search + * @param {string} filename - the filename to look for in the meta object + * @return {array} - array of the objects found + */ + findClassObjects = function (arr, filename) { + var i, totalItems = arr.length, newArr = []; + for (i = 0; i < totalItems; i++) { + if (isDefined(arr[i].meta)) { + if (arr[i].meta.filename === filename) { + newArr.push(arr[i]); + } + } + + } + return newArr; + + }; + /** + * add the class header content + */ + addHeaderContent = function () { + var topSection = createEl('section', {id: 'top', class: 'section'}), + headerData = doc_data.thisClass.headerInfo, + header = createEl('h1'), + extendsNode = createEl('p'), + extendsLink, + definedIn = createEl('p'), + definedInLink = createEl('a', {href: docsPath + classFilePath + '#L' + headerData.meta.lineno}), + description = createEl('div', {style: 'border:none', id: 'classDescription'}), + descriptionEl, + constructorHeader = createEl('h3'), + constructorPre = createEl('pre'), + constructorCode = createEl('code'), + constructorParamsHeader = createEl('h4'), + constructorParams = [], + text; + // add main content wrapper + doc_body.appendChild(mainContent); + main = document.getElementById('main'); + // add elements + topSection.appendChild(header); + topSection.appendChild(description); + // source file + topSection.appendChild(definedIn); + addText(definedIn, 'DEFINED IN: '); + definedIn.appendChild(definedInLink); + addText(definedInLink, headerData.meta.filename + ' line number: ' + headerData.meta.lineno); + mainContent.appendChild(topSection); + // page header + addText(header, headerData.name); + // parent info if this class extends another + if (isDefined(doc_data.parentClasses)) { + topSection.appendChild(extendsNode); + addText(extendsNode, 'EXTENDS: '); + extendsLink = createEl('a', {href: parentClassFilePath + doc_data.parentClasses[0].headerInfo.meta.filename}); + extendsNode.appendChild(extendsLink); + addText(extendsLink, doc_data.parentClasses[0].headerInfo.meta.filename); + } + // constructor info - don't add for video.js + if (doc_data.thisClass.headerInfo.name !== 'videojs') { + topSection.appendChild(constructorHeader); + topSection.appendChild(constructorPre); + constructorPre.appendChild(constructorCode); + // create the constructor info + addText(constructorHeader, 'Constructor'); + + // get constructor params if any + if (isDefined(headerData.params)) { + var paramTableHeaders = ['name', 'Type', 'Required', 'Description'], + paramTable = createEl('table'), + paramThead = createEl('thead'), + paramTbody = createEl('tbody'), + paramTheadRow = createEl('tr'), + paramTbodyRow = createEl('tr'), + paramTH, + paramTD, + k, + kMax; + + addText(constructorParamsHeader, 'Parameters'); + paramTable.appendChild(paramThead); + paramTable.appendChild(paramTbody); + paramThead.appendChild(paramTheadRow); + // set the table headers + kMax = paramTableHeaders.length; + for (k = 0; k < kMax; k++) { + paramTH = createEl('th'); + paramTheadRow.appendChild(paramTH); + addText(paramTH, paramTableHeaders[k]); + } + // now the table info + kMax = headerData.params.length; + for (k = 0; k < kMax; k++) { + paramTbodyRow = createEl('tr'); + paramTbody.appendChild(paramTbodyRow); + paramTD = createEl('td'); + addText(paramTD, headerData.params[k].name); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, headerData.params[k].type.names.join('|')); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + if (headerData.params[k].optional) { + text = document.createTextNode('no'); + constructorParams.push('[' + headerData.params[k].name + ']'); + } else { + text = document.createTextNode('yes'); + constructorParams.push(headerData.params[k].name); + } + paramTD.appendChild(text); + if (isDefined(headerData.params[k].description)) { + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, headerData.params[k].description.slice(3, headerData.params[k].description.indexOf('</p>'))); + paramTbodyRow.appendChild(paramTD); + } + paramTbody.appendChild(paramTbodyRow); + } + topSection.appendChild(constructorParamsHeader); + topSection.appendChild(paramTable); + } + } + // add constructor params to signature if any + if (constructorParams.length > 0) { + text = document.createTextNode(headerData.name + '( ' + constructorParams.join(',') + ' )'); + } else { + text = document.createTextNode(headerData.name + '()'); + } + constructorCode.appendChild(text); + descriptionEl = document.getElementById('classDescription'); + descriptionEl.innerHTML = headerData.description; + }; + /** + * add the side nav + */ + addIndex = function () { + var section = createEl('section', {id: 'index', class: 'side-nav'}), + navHeader = createEl('h2', {class: 'sideNavHeader'}), + navHeaderLink = createEl('a', {href: 'index.html'}), + memberIndex = createEl('div', {id: 'memberIndex', class: 'member-index'}), + thisMember, + addedMembers = {}, + item, + thisParent, + parentList, + header, + listItem, + listLink, + classHeader, + parentHeader, + i, + iMax, + j, + jMax, + // helper functions + classHasMembers = function (member) { + if (doc_data.thisClass[member].length > 0) { + return true; + } + return false; + }, + parentsHaveMembers = function () { + if (doc_data.parentClasses.length > 0) { + for (i = 0; i < doc_data.parentClasses.length; i++) { + if (doc_data.parentClasses[i][thisMember].length > 0) { + return true; + } + } + return false; + } + }, + makeList = function (classArr, parentArr, member, list) { + thisMember = member.toLowerCase(); + if (classArr.length > 0 || (isDefined(doc_data.parentClass) && parentArr.length > 0)) { + // add member list header + if (classHasMembers(thisMember) || parentsHaveMembers(thisMember)) { + header = createEl('h3'); + addText(header, doc_data.thisClass.headerInfo.name + ' ' + member); + } else { + return; + } + if (classHasMembers(thisMember)) { + classHeader = createEl('h4'); + addText(classHeader, 'Class ' + member); + memberIndex.appendChild(header); + memberIndex.appendChild(classHeader); + // add the list & items + list = createEl('ul', {id: list}); + memberIndex.appendChild(list); + iMax = classArr.length; + for (i = 0; i < iMax; i++) { + item = classArr[i].name; + if (!isItemInArray(addedMembers[member], item)) { + // keep track of added members to remove overridden ones + addedMembers[member].push(item); + listItem = createEl('li'); + listLink = createEl('a', {href: '#' + member + item}); + addText(listLink, item); + listItem.appendChild(listLink); + list.appendChild(listItem); + } + } + } + + // add inherited items if any + if (isDefined(parentArr) && parentArr.length > 0) { + jMax = parentArr.length; + for (j = 0; j < jMax; j++) { + thisParent = parentArr[j]; + if (thisParent[thisMember].length > 0) { + parentHeader = createEl('h4'); + addText(parentHeader, 'Inherited ' + member + ' from ' + thisParent.headerInfo.name); + memberIndex.appendChild(parentHeader); + parentList = createEl('ul'); + memberIndex.appendChild(parentList); + iMax = thisParent[thisMember].length; + for (i = 0; i < iMax; i++) { + item = thisParent[thisMember][i].name; + if (!isItemInArray(addedMembers[member], item)) { + addedMembers[member].push(item); + listItem = createEl('li'); + listLink = createEl('a', {href: '#' + member + item}); + listItem.appendChild(listLink); + addText(listLink, item); + parentList.appendChild(listItem); + } + + } + } + + } + + } + } + }; + // data structure to track members already added + addedMembers.Methods = []; + addedMembers.Properties = []; + addedMembers.Events = []; + + navHeader.appendChild(navHeaderLink); + addText(navHeaderLink, 'API Index'); + // add parent class members if any + if (isDefined(doc_data.parentClasses)) { + makeList(doc_data.thisClass.properties, doc_data.parentClasses, 'Properties', 'propertiesList'); + makeList(doc_data.thisClass.methods, doc_data.parentClasses, 'Methods', 'methodsList'); + makeList(doc_data.thisClass.events, doc_data.parentClasses, 'Events', 'eventsList'); + } else { + makeList(doc_data.thisClass.properties, [], 'Properties', 'propertiesList'); + makeList(doc_data.thisClass.methods, [], 'Methods', 'methodsList'); + makeList(doc_data.thisClass.events, [], 'Events', 'eventsList'); + } + section.appendChild(navHeader); + section.appendChild(memberIndex); + doc_body.appendChild(section); + + }; + /** + * add the member content + */ + addMembersContent = function () { + var members = [{name: 'Properties', data: 'properties'}, {name: 'Methods', data: 'methods'}, {name: 'Events', data: 'events'}], + member, + addedMembers = {}, + section, + header, + headerSuffix, + item, + itemWrapper, + itemHeader, + itemHeaderStr, + itemParams = [], + itemParamsHeader, + itemDescription, + itemDescriptionEl, + itemFooter, + itemFooterLink, + itemFooterContent, + paramTable, + paramThead, + paramTbody, + paramTheadRow, + paramTbodyRow, + paramTH, + paramTD, + paramTableHeaders = ['name', 'Type', 'Required', 'Description'], + text, + i, + iMax, + j, + jMax, + k, + kMax, + m, + mMax, + topLinkP, + topLinkA, + // helper function + createMemberItem = function (classData, member) { + bclslog('member', member); + // create the class member items + jMax = classData[member.data].length; + for (j = 0; j < jMax; j++) { + item = classData[member.data][j]; + if (!isItemInArray(addedMembers[member.name], item.name)) { + addedMembers[member.name].push(item.name); + itemWrapper = createEl('div', {id: member.name + item.name}); + section.appendChild(itemWrapper); + itemHeader = createEl('h3', {id: item.name + 'Header'}); + itemHeaderStr = item.name; + itemWrapper.appendChild(itemHeader); + itemDescription = createEl('div', {id: item.name + 'Description', class: 'description'}); + itemWrapper.appendChild(itemDescription); + itemFooter = createEl('p', {class: 'vjs-only'}); + itemFooterLink = createEl('a', {href: docsPath + item.meta.filename + '#L' + item.meta.lineno}); + itemFooterContent = createEl('em', {id: item.name + 'Footer'}); + itemFooter.appendChild(itemFooterContent); + topLinkP = createEl('p'); + topLinkA = createEl('a', {href: '#top'}); + addText(topLinkA, '[back to top]'); + topLinkP.appendChild(topLinkA); + // for methods only handle params if any + if (member.name === 'Methods' && isDefined(item.params)) { + itemParams = []; + itemParamsHeader = createEl('h4'); + addText(itemParamsHeader, 'Parameters'); + paramTable = createEl('table'); + paramThead = createEl('thead'); + paramTbody = createEl('tbody'); + paramTable.appendChild(paramThead); + paramTable.appendChild(paramTbody); + paramTheadRow = createEl('tr'); + paramThead.appendChild(paramTheadRow); + // set the table headers + kMax = paramTableHeaders.length; + for (k = 0; k < kMax; k++) { + paramTH = createEl('th'); + paramTheadRow.appendChild(paramTH); + addText(paramTH, paramTableHeaders[k]); + } + // now the table info + kMax = item.params.length; + for (k = 0; k < kMax; k++) { + paramTbodyRow = createEl('tr'); + paramTbody.appendChild(paramTbodyRow); + paramTD = createEl('td'); + addText(paramTD, item.params[k].name); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, item.params[k].type.names.join('|')); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + if (item.params[k].optional) { + text = document.createTextNode('no'); + itemParams.push('[' + item.params[k].name + ']'); + } else { + text = document.createTextNode('yes'); + itemParams.push(item.params[k].name); + } + paramTD.appendChild(text); + if (isDefined(item.params[k].description)) { + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, item.params[k].description.slice(3, item.params[k].description.indexOf('</p>'))); + paramTbodyRow.appendChild(paramTD); + } + paramTbody.appendChild(paramTbodyRow); + } + itemHeaderStr += '( ' + itemParams.join(', ') + ' )'; + if (item.scope === 'static') { + itemHeaderStr = 'static ' + itemHeaderStr; + } + itemWrapper.appendChild(itemParamsHeader); + itemWrapper.appendChild(paramTable); + } else if (member.name === 'Methods') { + itemHeaderStr += '()'; + } + itemWrapper.appendChild(itemFooter); + itemWrapper.appendChild(topLinkP); + addText(itemHeader, itemHeaderStr); + if (isDefined(item.deprecated)) { + headerSuffix = createEl('em', {class: 'deprecated'}); + text = document.createTextNode(); + addText(headerSuffix, ' (deprecated)'); + itemHeader.appendChild(headerSuffix); + } + itemDescriptionEl = document.getElementById(item.name + 'Description'); + itemDescriptionEl.innerHTML = item.description; + addText(itemFooterContent, 'Defined in '); + itemFooterContent.appendChild(itemFooterLink); + addText(itemFooterLink, 'src/js/' + item.meta.filename + ' line number: ' + item.meta.lineno); + } + } + }; + // data structure to track members already added + addedMembers.Methods = []; + addedMembers.Properties = []; + addedMembers.Events = []; + iMax = members.length; + for (i = 0; i < iMax; i++) { + member = members[i]; + if (doc_data.thisClass[member.data].length > 0) { + // create the member section + section = createEl('section', {id: member.name.toLowerCase(), class: 'section'}); + main.appendChild(section); + header = createEl('h2'); + addText(header, member.name); + section.appendChild(header); + // create the member items + createMemberItem(doc_data.thisClass, member); + if (isDefined(doc_data.parentClasses)) { + mMax = doc_data.parentClasses.length; + for (m = 0; m < mMax; m++) { + if (doc_data.parentClasses[m][member.data].length > 0) { + createMemberItem(doc_data.parentClasses[m], member); + } + } + } + } + } + }; + /** + * use hljs to highlight the syntax in code blocks + */ + highlightCode = function () { + var codeBlocks = document.querySelectorAll('pre code'), + i, + iMax; + if (isDefined(codeBlocks)) { + iMax = codeBlocks.length; + for (i = 0; i < iMax; i++) { + hljs.highlightBlock(codeBlocks[i]); + } + } + }; + /** + * init gets things going + */ + init = function () { + var fileName, + srcFileName, + parent_class_name, + privateItems = [], + idx, + text, + j, + parentCounter = 0, + // helper function to get the chain of parent classes + getAncestorData = function (parent_class) { + // get data objects for the class + classes.parentClasses[parentCounter] = findClassObjects(docData, parent_class + '.js'); + // check to see if there are any parent class items + if (classes.parentClasses[parentCounter].length > 0) { + doc_data.parentClasses[parentCounter] = {}; + // get parent header info + idx = findObjectInArray(classes.parentClasses[parentCounter], 'kind', 'class'); + doc_data.parentClasses[parentCounter].headerInfo = copyObj(classes.parentClasses[parentCounter][idx]); + // get parent class path + idx = findObjectInArray(classes.parentClasses[parentCounter], 'kind', 'file'); + if (idx > -1) { + parentClassFilePath = classes.parentClasses[parentCounter][idx].name; + } else { + parentClassFilePath = doc_data.parentClasses[parentCounter].headerInfo.meta.filename; + } + // remove any private items + privateItems = findObjectsInArray(classes.parentClasses[parentCounter], 'access', 'private'); + j = privateItems.length; + while (j > 0) { + j--; + classes.parentClasses[parentCounter].splice(privateItems[j], 1); + } + // now get the member arrays + doc_data.parentClasses[parentCounter].methods = getSubArray(classes.parentClasses[parentCounter], 'kind', 'function'); + doc_data.parentClasses[parentCounter].methods = sortArray(doc_data.parentClasses[parentCounter].methods, 'name'); + doc_data.parentClasses[parentCounter].events = getSubArray(classes.parentClasses[parentCounter], 'kind', 'event'); + doc_data.parentClasses[parentCounter].events = sortArray(doc_data.parentClasses[parentCounter].events, 'name'); + doc_data.parentClasses[parentCounter].properties = getSubArray(classes.parentClasses[parentCounter], 'kind', 'property'); + doc_data.parentClasses[parentCounter].properties = sortArray(doc_data.parentClasses[parentCounter].properties, 'name'); + } + // get parent class, if any, and anything it inherits + if (isDefined(doc_data.parentClasses[parentCounter].headerInfo.augments)) { + idx = findObjectInArray(docData, 'name', doc_data.parentClasses[parentCounter].headerInfo.augments[0]); + parent_class_name = docData[idx].meta.filename.replace('.js', ''); + parentCounter++; + getAncestorData(parent_class_name); + } + }; + // content wrapper + mainContent = createEl('div', {id: 'main', class: 'section'}); + // get the class name from the file name + fileName = path[path.length - 1]; + doc_class = fileName.substring(0, fileName.indexOf('.')); + srcFileName = doc_class + '.js'; + bclslog('srcFileName', srcFileName); + // video.js is a special case - all others will be the same + if (srcFileName === 'video.js') { + // for doc purposes, treat video like a class, though it's not + // get the data objects for this class + classes.thisClass = findClassObjects(docData, srcFileName); + bclslog('classes', classes); + idx = findObjectInArray(classes.thisClass, 'name', 'videojs'); + doc_data.thisClass = {}; + // get the class overview object + doc_data.thisClass.headerInfo = copyObj(classes.thisClass[idx]); + doc_data.thisClass.headerInfo.name = 'videojs'; + idx = findObjectInArray(classes.thisClass, 'kind', 'file'); + if (idx > -1) { + classFilePath = classes.thisClass[idx].name; + } else { + classFilePath = doc_data.thisClass.headerInfo.meta.filename; + } + // set the doc title + text = document.createTextNode(doc_data.thisClass.headerInfo.name); + title.appendChild(text); + // remove any private items + privateItems = findObjectsInArray(classes.thisClass, 'access', 'private'); + j = privateItems.length; + while (j > 0) { + j--; + classes.thisClass.splice(privateItems[j], 1); + } + // now get the member arrays + doc_data.thisClass.methods = getSubArray(classes.thisClass, 'kind', 'function'); + doc_data.thisClass.methods = sortArray(doc_data.thisClass.methods, 'name'); + doc_data.thisClass.events = getSubArray(classes.thisClass, 'kind', 'event'); + doc_data.thisClass.events = sortArray(doc_data.thisClass.events, 'name'); + doc_data.thisClass.properties = getSubArray(classes.thisClass, 'kind', 'property'); + doc_data.thisClass.properties = sortArray(doc_data.thisClass.properties, 'name'); + bclslog('thisClass', doc_data.thisClass); + } else { + // get the data objects for this class + classes.thisClass = findClassObjects(docData, srcFileName); + bclslog('classes', classes); + idx = findObjectInArray(classes.thisClass, 'kind', 'class'); + doc_data.thisClass = {}; + doc_data.thisClass.headerInfo = copyObj(classes.thisClass[idx]); + // get the file path from @file object + idx = findObjectInArray(classes.thisClass, 'kind', 'file'); + if (idx > -1) { + classFilePath = classes.thisClass[idx].name; + } else { + classFilePath = doc_data.thisClass.headerInfo.meta.filename; + } + // set the doc title + text = document.createTextNode(doc_data.thisClass.headerInfo.name); + title.appendChild(text); + // remove any private items + privateItems = findObjectsInArray(classes.thisClass, 'access', 'private'); + j = privateItems.length; + while (j > 0) { + j--; + classes.thisClass.splice(privateItems[j], 1); + } + // now get the member arrays + doc_data.thisClass.methods = getSubArray(classes.thisClass, 'kind', 'function'); + doc_data.thisClass.methods = sortArray(doc_data.thisClass.methods, 'name'); + doc_data.thisClass.events = getSubArray(classes.thisClass, 'kind', 'event'); + doc_data.thisClass.events = sortArray(doc_data.thisClass.events, 'name'); + doc_data.thisClass.properties = getSubArray(classes.thisClass, 'kind', 'property'); + doc_data.thisClass.properties = sortArray(doc_data.thisClass.properties, 'name'); + bclslog('thisClass', doc_data.thisClass); + // get parent class, if any, and anything it inherits + if (isDefined(doc_data.thisClass.headerInfo.augments)) { + doc_data.parentClass = {}; + doc_data.parentClasses = []; + classes.parentClasses = []; + idx = findObjectInArray(docData, 'name', doc_data.thisClass.headerInfo.augments[0]); + parent_class_name = docData[idx].meta.filename.replace('.js', ''); + getAncestorData(parent_class_name); + } + bclslog('parentClasses', doc_data.parentClasses); + } + // now we're ready to roll + addIndex(); + addHeaderContent(); + addMembersContent(); + highlightCode(); + }; + // initialize + init(); + return { + + }; +})(window, document, docData, hljs); diff --git a/javascript/videojs/docs/legacy-docs/api/js/api-index.js b/javascript/videojs/docs/legacy-docs/api/js/api-index.js new file mode 100644 index 0000000..c55bcb6 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/js/api-index.js @@ -0,0 +1,281 @@ +var BCLSVJS = (function (window, document, docData) { + 'use strict'; + var title = document.getElementsByTagName('title')[0], + // data structures + classes = [], + // elements + main, + doc_body = document.getElementsByTagName('body')[0], + // functions + isDefined, + findObjectsInArray, + getSubArray, + sortArray, + createEl, + bclslog, + addHeaderContent, + addIndex, + init; + /** + * Logging function - safe for IE + * @param {string} context - description of the data + * @param {*} message - the data to be logged by the console + * @return {} + */ + bclslog = function (context, message) { + if (window['console'] && console['log']) { + console.log(context, message); + } + return; + }; + /** + * tests for all the ways a variable might be undefined or not have a value + * @param {*} x the variable to test + * @return {Boolean} true if variable is defined and has a value + */ + isDefined = function (x) { + if (x !== '' && x !== null && x !== undefined && x !== NaN) { + return true; + } + return false; + }; + /** + * find indexes of a set of object in array of objects + * based on some property value + * generally useful for finding several objects + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of indexes for matching objects + */ + findObjectsInArray = function (targetArray, objProperty, value) { + var i, totalItems = targetArray.length, newArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + newArr.push(i); + } + } + return newArr; + }; + /** + * get a subset of objects in array of objects + * based on some property value + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of objects with matching property value + */ + getSubArray = function (targetArray, objProperty, value) { + var i, totalItems = targetArray.length, idxArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + idxArr.push(targetArray[i]); + } + } + return idxArr; + }; + /** + * sort an array of objects based on an object property + * @param {array} targetArray - array to sort + * @param {string} objProperty - property whose value to sort on + * @return {array} the sorted array + */ + sortArray = function (targetArray, objProperty) { + targetArray.sort(function (a, b) { + var propA = a[objProperty].toLowerCase(), propB = b[objProperty].toLowerCase(); + // sort ascending; reverse propA and propB to sort descending + if (propA < propB) { + return -1; + } else if (propA > propB) { + return 1; + } + return 0; + }); + return targetArray; + }; + /** + * create an element + * @param {string} type - the element type + * @param {object} attributes - attributes to add to the element + * @return {object} the HTML element + */ + createEl = function (type, attributes) { + var el; + if (isDefined(type)) { + el = document.createElement(type); + if (isDefined(attributes)) { + var attr; + for (attr in attributes) { + el.setAttribute(attr, attributes[attr]); + } + } + return el; + } + }; + /** + * add the class header content + */ + addHeaderContent = function () { + var doc_body = document.getElementsByTagName('body')[0], + mainContent = createEl('div', {id: 'main'}), + topSection = createEl('section', {id: 'top', class: 'section'}), + mainLink = createEl('a', {href: '//docs.videojs.com/', style: 'float:right;font-weight:bold;margin-top:-3em;background-color:#ECEEF1;padding:2px 4px;'}), + header = createEl('h1'), + text = document.createTextNode('video.js API Documentation Index'), + topP, + topPtext, + topLink, + topLinkStrong; + // add elements + mainLink.appendChild(document.createTextNode('Documentation Home')); + topSection.appendChild(mainLink); + header.appendChild(text); + topSection.appendChild(header); + // add paragraph for videojs function + topP = createEl('p'); + topPtext = document.createTextNode('If you are new to video.js, look first at '); + topP.appendChild(topPtext); + topLink = createEl('a', {href: 'video.html'}); + topP.appendChild(topLink); + topPtext = document.createTextNode('videojs'); + topLinkStrong = createEl('strong'); + topLink.appendChild(topLinkStrong); + topLinkStrong.appendChild(topPtext); + topPtext = document.createTextNode(', which Doubles as the main function for users to create a player instance and also the main library object.'); + topP.appendChild(topPtext); + topSection.appendChild(topP); + // add paragraph for the player class + topP = createEl('p'); + topPtext = document.createTextNode('Next, look at the '); + topP.appendChild(topPtext); + topLink = createEl('a', {href: 'player.html'}); + topP.appendChild(topLink); + topPtext = document.createTextNode('player'); + topLinkStrong = createEl('strong'); + topLink.appendChild(topLinkStrong); + topLinkStrong.appendChild(topPtext); + topPtext = document.createTextNode(' class. An instance of the Player class is created when any of the Video.js setup methods are used to initialize a video. The methods and events of the player object are the most commonly used for managing the player and playback.'); + topP.appendChild(topPtext); + topSection.appendChild(topP); + // add the top section to the document + mainContent.appendChild(topSection); + doc_body.appendChild(mainContent); + main = document.getElementById('main'); + }; + /** + * add the side nav + */ + addIndex = function () { + var section = createEl('section', {id: 'index', class: 'section'}), + sectionHeader = createEl('h2'), + classlists = {}, + alphaArr = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'], + firstLetter, + numberAlphaItems = 0, + itemsPerColumn, + columnDiv, + item, + indexEls = [], + indexListHolder, + indexList, + indexListHeader, + listItem, + listLink, + listText, + text, + i, + iMax, + j, + jMax, + counter = 0; + text = document.createTextNode('Index of classes'); + sectionHeader.appendChild(text); + // create alpha arrays + iMax = classes.length; + for (i = 0; i < iMax; i++) { + item = classes[i]; + firstLetter = item.name.charAt(0).toLowerCase(); + // create alpha array if non-existent, push item + if (isDefined(classlists[firstLetter]) === false) { + classlists[firstLetter] = []; + numberAlphaItems++; + } + classlists[firstLetter].push({name: item.name, filename: item.meta.filename}); + } + itemsPerColumn = Math.ceil(numberAlphaItems / 3); + bclslog('classlists', classlists); + iMax = alphaArr.length; + for (i = 0; i < iMax; i++) { + if (isDefined(classlists[alphaArr[i]])) { + indexListHolder = createEl('div'); + indexListHeader = createEl('h4', {class: 'indexHeader'}); + text = document.createTextNode('~' + alphaArr[i].toUpperCase() + '~'); + indexListHeader.appendChild(text); + indexListHolder.appendChild(indexListHeader); + indexList = createEl('ul'); + indexListHolder.appendChild(indexList); + jMax = classlists[alphaArr[i]].length; + bclslog('jMax', jMax); + for (j = 0; j < jMax; j++) { + bclslog('classlists[alphaArr[i]', classlists[alphaArr[i]]); + listItem = createEl('li'); + indexList.appendChild(listItem); + listLink = createEl('a', {href: classlists[alphaArr[i]][j].filename.replace('.js', '.html')}); + listItem.appendChild(listLink); + listText = document.createTextNode(classlists[alphaArr[i]][j].name); + listLink.appendChild(listText); + } + indexEls.push(indexListHolder); + } + } + section.appendChild(sectionHeader); + iMax = indexEls.length; + for (i = 0; i < iMax; i++) { + if (counter > itemsPerColumn) { + counter = 0; + } + if (counter === 0) { + columnDiv = createEl('div', {class: 'indexColumn'}); + section.appendChild(columnDiv); + } + columnDiv.appendChild(indexEls[i]); + } + main.appendChild(section); + }; + /** + * init gets things going + */ + init = function () { + var privateItems = [], + videojs = {name: 'videojs', meta: {filename: 'video.js'}}, + j; + // get the data objects for all classes + classes = getSubArray(docData, 'kind', 'class'); + // videojs is a special case + classes.push(videojs); + bclslog('classes', classes); + // set the doc title + title.innerHTML = 'API Documentation Index'; + // remove any private items + privateItems = findObjectsInArray(classes, 'access', 'private'); + bclslog('privateItems', privateItems); + j = privateItems.length; + bclslog('j', j); + while (j > 0) { + j--; + classes.splice(privateItems[j], 1); + } + // sort the array + classes = sortArray(classes, 'name'); + bclslog('classes', classes); + // now we're ready to roll + addHeaderContent(); + addIndex(); + }; + init(); + return { + + }; +})(window, document, docData);
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/js/doc-data-full.js b/javascript/videojs/docs/legacy-docs/api/js/doc-data-full.js new file mode 100644 index 0000000..4946885 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/js/doc-data-full.js @@ -0,0 +1,15068 @@ +var docData = +[ + { + "comment": "/**\n* @file base-styles.js\n*\n* This code injects the required base styles in the head of the document.\n*/", + "meta": { + "range": [ + 0, + 105 + ], + "filename": "base-styles.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "base-styles.js", + "kind": "file", + "description": "<p>base-styles.js</p>\n<p>This code injects the required base styles in the head of the document.</p>", + "preserveName": true, + "longname": "base-styles.js", + "scope": "global" + }, + { + "comment": "/**\n* @file big-play-button.js\n*/", + "meta": { + "range": [ + 0, + 33 + ], + "filename": "big-play-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "big-play-button.js", + "kind": "file", + "description": "<p>big-play-button.js</p>", + "preserveName": true, + "longname": "big-play-button.js", + "scope": "global" + }, + { + "comment": "/**\n* Initial play button. Shows before the video has played. The hiding of the\n* big play button is done via CSS and player states.\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Button\n* @class BigPlayButton\n*/", + "meta": { + "range": [ + 146, + 423 + ], + "filename": "big-play-button.js", + "lineno": 9, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Initial play button. Shows before the video has played. The hiding of the\nbig play button is done via CSS and player states.</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "BigPlayButton", + "longname": "BigPlayButton", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 442, + 568 + ], + "filename": "big-play-button.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Handles click for play \n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 581, + 637 + ], + "filename": "big-play-button.js", + "lineno": 34, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handles click for play</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* @file button.js\n*/", + "meta": { + "range": [ + 0, + 24 + ], + "filename": "button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "button.js", + "kind": "file", + "description": "<p>button.js</p>", + "preserveName": true, + "longname": "button.js", + "scope": "global" + }, + { + "comment": "/**\n* Base class for all buttons\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Component\n* @class Button\n*/", + "meta": { + "range": [ + 169, + 342 + ], + "filename": "button.js", + "lineno": 13, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Base class for all buttons</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "Button", + "longname": "Button", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @param {String=} type Element's node type. e.g. 'div'\n* @param {Object=} props An object of element attributes that should be set on the element Tag name \n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 382, + 623 + ], + "filename": "button.js", + "lineno": 34, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Element's node type. e.g. 'div'</p>", + "name": "type" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>An object of element attributes that should be set on the element Tag name</p>", + "name": "props" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Controls text - both request and localize \n*\n* @param {String} text Text for button\n* @return {String}\n* @method controlText\n*/", + "meta": { + "range": [ + 690, + 823 + ], + "filename": "button.js", + "lineno": 64, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Controls text - both request and localize</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Text for button</p>", + "name": "text" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "controlText", + "longname": "controlText", + "scope": "global" + }, + { + "comment": "/**\n* Allows sub components to stack CSS class names\n*\n* @return {String}\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 851, + 951 + ], + "filename": "button.js", + "lineno": 80, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Allows sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Handle Click - Override with specific functionality for button\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 964, + 1059 + ], + "filename": "button.js", + "lineno": 90, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle Click - Override with specific functionality for button</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Handle Focus - Add keyboard functionality to element\n*\n* @method handleFocus\n*/", + "meta": { + "range": [ + 1066, + 1151 + ], + "filename": "button.js", + "lineno": 97, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle Focus - Add keyboard functionality to element</p>", + "kind": "function", + "name": "handleFocus", + "longname": "handleFocus", + "scope": "global" + }, + { + "comment": "/**\n* Handle KeyPress (document level) - Trigger click when keys are pressed\n*\n* @method handleKeyPress\n*/", + "meta": { + "range": [ + 1164, + 1270 + ], + "filename": "button.js", + "lineno": 106, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle KeyPress (document level) - Trigger click when keys are pressed</p>", + "kind": "function", + "name": "handleKeyPress", + "longname": "handleKeyPress", + "scope": "global" + }, + { + "comment": "/**\n* Handle Blur - Remove keyboard triggers\n*\n* @method handleBlur\n*/", + "meta": { + "range": [ + 1295, + 1365 + ], + "filename": "button.js", + "lineno": 119, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle Blur - Remove keyboard triggers</p>", + "kind": "function", + "name": "handleBlur", + "longname": "handleBlur", + "scope": "global" + }, + { + "comment": "/**\n* @file component.js\n*\n*Player Component - Base class for all UI objects\n*/", + "meta": { + "range": [ + 0, + 79 + ], + "filename": "component.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "component.js", + "kind": "file", + "description": "<p>component.js</p>\n<p>Player Component - Base class for all UI objects</p>", + "preserveName": true, + "longname": "component.js", + "scope": "global" + }, + { + "comment": "/**\n* Base UI Component class\n* Components are embeddable UI objects that are represented by both a\n* javascript object and an element in the DOM. They can be children of other\n* components, and can have many children themselves.\n* ```js\n* // adding a button to the player\n* var button = player.addChild('button');\n* button.el(); // -> button element\n* ```\n* ```html\n* <div class=\"video-js\">\n* <div class=\"vjs-button\">Button</div>\n* </div>\n* ```\n* Components are also event emitters.\n* ```js\n* button.on('click', function(){\n* console.log('Button Clicked!');\n* });\n* button.trigger('customevent');\n* ```\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @class Component\n*/", + "meta": { + "range": [ + 116, + 940 + ], + "filename": "component.js", + "lineno": 18, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Base UI Component class\nComponents are embeddable UI objects that are represented by both a\njavascript object and an element in the DOM. They can be children of other\ncomponents, and can have many children themselves.</p>\n<pre class=\"prettyprint source lang-js\"><code> // adding a button to the player\n var button = player.addChild('button');\n button.el(); // -> button element</code></pre><pre class=\"prettyprint source lang-html\"><code> <div class="video-js">\n <div class="vjs-button">Button</div>\n </div></code></pre><p>Components are also event emitters.</p>\n<pre class=\"prettyprint source lang-js\"><code> button.on('click', function(){\n console.log('Button Clicked!');\n });\n button.trigger('customevent');</code></pre>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "kind": "class", + "name": "Component", + "longname": "Component", + "scope": "global" + }, + { + "comment": "/**\n* Dispose of the component and all child components\n*\n* @method dispose\n*/", + "meta": { + "range": [ + 1124, + 1202 + ], + "filename": "component.js", + "lineno": 107, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Dispose of the component and all child components</p>", + "kind": "function", + "name": "dispose", + "longname": "dispose", + "scope": "global" + }, + { + "comment": "/**\n* Return the component's player\n*\n* @return {Player}\n* @method player\n*/", + "meta": { + "range": [ + 1290, + 1366 + ], + "filename": "component.js", + "lineno": 141, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Return the component's player</p>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + } + } + ], + "kind": "function", + "name": "player", + "longname": "player", + "scope": "global" + }, + { + "comment": "/**\n* Deep merge of options objects\n* Whenever a property is an object on both options objects\n* the two properties will be merged using mergeOptions.\n* This is used for merging options for child components. We\n* want it to be easy to override individual options on a child\n* component without having to rewrite all the other default options.\n* ```js\n* Parent.prototype.options_ = {\n* children: {\n* 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },\n* 'childTwo': {},\n* 'childThree': {}\n* }\n* }\n* newOptions = {\n* children: {\n* 'childOne': { 'foo': 'baz', 'abc': '123' }\n* 'childTwo': null,\n* 'childFour': {}\n* }\n* }\n*\n* this.options(newOptions);\n* ```\n* RESULT\n*```js\n* {\n* children: {\n* 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },\n* 'childTwo': null, // Disabled. Won't be initialized.\n* 'childThree': {},\n* 'childFour': {}\n* }\n* }\n* ```\n*\n* @param {Object} obj Object of new option values\n* @return {Object} A NEW object of this.options_ and obj merged\n* @method options\n*/", + "meta": { + "range": [ + 1379, + 2515 + ], + "filename": "component.js", + "lineno": 151, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Deep merge of options objects\nWhenever a property is an object on both options objects\nthe two properties will be merged using mergeOptions.\nThis is used for merging options for child components. We\nwant it to be easy to override individual options on a child\ncomponent without having to rewrite all the other default options.</p>\n<pre class=\"prettyprint source lang-js\"><code> Parent.prototype.options_ = {\n children: {\n 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },\n 'childTwo': {},\n 'childThree': {}\n }\n }\n newOptions = {\n children: {\n 'childOne': { 'foo': 'baz', 'abc': '123' }\n 'childTwo': null,\n 'childFour': {}\n }\n }\n\n this.options(newOptions);</code></pre><p>RESULT</p>\n<pre class=\"prettyprint source lang-js\"><code> {\n children: {\n 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },\n 'childTwo': null, // Disabled. Won't be initialized.\n 'childThree': {},\n 'childFour': {}\n }\n }</code></pre>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Object of new option values</p>", + "name": "obj" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>A NEW object of this.options_ and obj merged</p>" + } + ], + "kind": "function", + "name": "options", + "longname": "options", + "scope": "global" + }, + { + "comment": "/**\n* Get the component's DOM element\n* ```js\n* var domEl = myComponent.el();\n* ```\n*\n* @return {Element}\n* @method el\n*/", + "meta": { + "range": [ + 2549, + 2674 + ], + "filename": "component.js", + "lineno": 203, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the component's DOM element</p>\n<pre class=\"prettyprint source lang-js\"><code> var domEl = myComponent.el();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "el", + "longname": "el", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @param {String=} tagName Element's node type. e.g. 'div'\n* @param {Object=} attributes An object of element attributes that should be set on the element\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 2687, + 2929 + ], + "filename": "component.js", + "lineno": 216, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Element's node type. e.g. 'div'</p>", + "name": "tagName" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>An object of element attributes that should be set on the element</p>", + "name": "attributes" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Return the component's DOM element where children are inserted.\n* Will either be the same as el() or a new element defined in createEl().\n*\n* @return {Element}\n* @method contentEl\n*/", + "meta": { + "range": [ + 3014, + 3202 + ], + "filename": "component.js", + "lineno": 252, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Return the component's DOM element where children are inserted.\nWill either be the same as el() or a new element defined in createEl().</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "contentEl", + "longname": "contentEl", + "scope": "global" + }, + { + "comment": "/**\n* Get the component's ID\n* ```js\n* var id = myComponent.id();\n* ```\n*\n* @return {String}\n* @method id\n*/", + "meta": { + "range": [ + 3215, + 3327 + ], + "filename": "component.js", + "lineno": 263, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the component's ID</p>\n<pre class=\"prettyprint source lang-js\"><code> var id = myComponent.id();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "id", + "longname": "id", + "scope": "global" + }, + { + "comment": "/**\n* Get the component's name. The name is often used to reference the component.\n* ```js\n* var name = myComponent.name();\n* ```\n*\n* @return {String}\n* @method name\n*/", + "meta": { + "range": [ + 3340, + 3512 + ], + "filename": "component.js", + "lineno": 276, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the component's name. The name is often used to reference the component.</p>\n<pre class=\"prettyprint source lang-js\"><code> var name = myComponent.name();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "name", + "longname": "name", + "scope": "global" + }, + { + "comment": "/**\n* Get an array of all child components\n* ```js\n* var kids = myComponent.children();\n* ```\n*\n* @return {Array} The children\n* @method children\n*/", + "meta": { + "range": [ + 3525, + 3677 + ], + "filename": "component.js", + "lineno": 289, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get an array of all child components</p>\n<pre class=\"prettyprint source lang-js\"><code> var kids = myComponent.children();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>The children</p>" + } + ], + "kind": "function", + "name": "children", + "longname": "children", + "scope": "global" + }, + { + "comment": "/**\n* Returns a child component with the provided ID\n*\n* @return {Component}\n* @method getChildById\n*/", + "meta": { + "range": [ + 3690, + 3792 + ], + "filename": "component.js", + "lineno": 302, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns a child component with the provided ID</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "getChildById", + "longname": "getChildById", + "scope": "global" + }, + { + "comment": "/**\n* Returns a child component with the provided name\n*\n* @return {Component}\n* @method getChild\n*/", + "meta": { + "range": [ + 3805, + 3905 + ], + "filename": "component.js", + "lineno": 312, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns a child component with the provided name</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "getChild", + "longname": "getChild", + "scope": "global" + }, + { + "comment": "/**\n* Adds a child component inside this component\n* ```js\n* myComponent.el();\n* // -> <div class='my-component'></div>\n* myComponent.children();\n* // [empty array]\n*\n* var myButton = myComponent.addChild('MyButton');\n* // -> <div class='my-component'><div class=\"my-button\">myButton<div></div>\n* // -> myButton === myComonent.children()[0];\n* ```\n* Pass in options for child constructors and options for children of the child\n* ```js\n* var myButton = myComponent.addChild('MyButton', {\n* text: 'Press Me',\n* children: {\n* buttonChildExample: {\n* buttonChildOption: true\n* }\n* }\n* });\n* ```\n*\n* @param {String|Component} child The class name or instance of a child to add\n* @param {Object=} options Options, including options to be passed to children of the child.\n* @return {Component} The child component (created by this process if a string was used)\n* @method addChild\n*/", + "meta": { + "range": [ + 3918, + 4873 + ], + "filename": "component.js", + "lineno": 322, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Adds a child component inside this component</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.el();\n // -> <div class='my-component'></div>\n myComponent.children();\n // [empty array]\n\n var myButton = myComponent.addChild('MyButton');\n // -> <div class='my-component'><div class="my-button">myButton<div></div>\n // -> myButton === myComonent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p>\n<pre class=\"prettyprint source lang-js\"><code> var myButton = myComponent.addChild('MyButton', {\n text: 'Press Me',\n children: {\n buttonChildExample: {\n buttonChildOption: true\n }\n }\n });</code></pre>", + "params": [ + { + "type": { + "names": [ + "String", + "Component" + ] + }, + "description": "<p>The class name or instance of a child to add</p>", + "name": "child" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Options, including options to be passed to children of the child.</p>", + "name": "options" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>The child component (created by this process if a string was used)</p>" + } + ], + "kind": "function", + "name": "addChild", + "longname": "addChild", + "scope": "global" + }, + { + "comment": "/**\n* Remove a child component from this component's list of children, and the\n* child component's element from this component's element\n*\n* @param {Component} component Component to remove\n* @method removeChild\n*/", + "meta": { + "range": [ + 5057, + 5272 + ], + "filename": "component.js", + "lineno": 412, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Remove a child component from this component's list of children, and the\nchild component's element from this component's element</p>", + "params": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>Component to remove</p>", + "name": "component" + } + ], + "kind": "function", + "name": "removeChild", + "longname": "removeChild", + "scope": "global" + }, + { + "comment": "/**\n* Add and initialize default child components from options\n* ```js\n* // when an instance of MyComponent is created, all children in options\n* // will be added to the instance by their name strings and options\n* MyComponent.prototype.options_.children = {\n* myChildComponent: {\n* myChildOption: true\n* }\n* }\n* ```\n* // Or when creating the component\n* ```js\n* var myComp = new MyComponent(player, {\n* children: {\n* myChildComponent: {\n* myChildOption: true\n* }\n* }\n* });\n* ```\n* The children option can also be an Array of child names or\n* child options objects (that also include a 'name' key).\n* ```js\n* var myComp = new MyComponent(player, {\n* children: [\n* 'button',\n* {\n* name: 'button',\n* someOtherOption: true\n* }\n* ]\n* });\n* ```\n*\n* @method initChildren\n*/", + "meta": { + "range": [ + 5372, + 6289 + ], + "filename": "component.js", + "lineno": 452, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add and initialize default child components from options</p>\n<pre class=\"prettyprint source lang-js\"><code> // when an instance of MyComponent is created, all children in options\n // will be added to the instance by their name strings and options\n MyComponent.prototype.options_.children = {\n myChildComponent: {\n myChildOption: true\n }\n }</code></pre><pre class=\"prettyprint source\"><code>// Or when creating the component</code></pre><pre class=\"prettyprint source lang-js\"><code> var myComp = new MyComponent(player, {\n children: {\n myChildComponent: {\n myChildOption: true\n }\n }\n });</code></pre><p>The children option can also be an Array of child names or\nchild options objects (that also include a 'name' key).</p>\n<pre class=\"prettyprint source lang-js\"><code> var myComp = new MyComponent(player, {\n children: [\n 'button',\n {\n name: 'button',\n someOtherOption: true\n }\n ]\n });</code></pre>", + "kind": "function", + "name": "initChildren", + "longname": "initChildren", + "scope": "global" + }, + { + "comment": "/**\n* Allows sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 6467, + 6594 + ], + "filename": "component.js", + "lineno": 548, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Allows sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Add an event listener to this component's element\n* ```js\n* var myFunc = function(){\n* var myComponent = this;\n* // Do something when the event is fired\n* };\n*\n* myComponent.on('eventType', myFunc);\n* ```\n* The context of myFunc will be myComponent unless previously bound.\n* Alternatively, you can add a listener to another element or component.\n* ```js\n* myComponent.on(otherElement, 'eventName', myFunc);\n* myComponent.on(otherComponent, 'eventName', myFunc);\n* ```\n* The benefit of using this over `VjsEvents.on(otherElement, 'eventName', myFunc)`\n* and `otherComponent.on('eventName', myFunc)` is that this way the listeners\n* will be automatically cleaned up when either component is disposed.\n* It will also bind myComponent as the context of myFunc.\n* **NOTE**: When using this on elements in the page other than window\n* and document (both permanent), if you remove the element from the DOM\n* you need to call `myComponent.trigger(el, 'dispose')` on it to clean up\n* references to it and allow the browser to garbage collect it.\n*\n* @param {String|Component} first The event type or other component\n* @param {Function|String} second The event handler or event type\n* @param {Function} third The event handler\n* @return {Component} \n* @method on\n*/", + "meta": { + "range": [ + 6613, + 7932 + ], + "filename": "component.js", + "lineno": 560, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add an event listener to this component's element</p>\n<pre class=\"prettyprint source lang-js\"><code> var myFunc = function(){\n var myComponent = this;\n // Do something when the event is fired\n };\n\n myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound.\nAlternatively, you can add a listener to another element or component.</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.on(otherElement, 'eventName', myFunc);\n myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code>\nand <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners\nwill be automatically cleaned up when either component is disposed.\nIt will also bind myComponent as the context of myFunc.\n<strong>NOTE</strong>: When using this on elements in the page other than window\nand document (both permanent), if you remove the element from the DOM\nyou need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up\nreferences to it and allow the browser to garbage collect it.</p>", + "params": [ + { + "type": { + "names": [ + "String", + "Component" + ] + }, + "description": "<p>The event type or other component</p>", + "name": "first" + }, + { + "type": { + "names": [ + "function", + "String" + ] + }, + "description": "<p>The event handler or event type</p>", + "name": "second" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The event handler</p>", + "name": "third" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "on", + "longname": "on", + "scope": "global" + }, + { + "comment": "/**\n* Remove an event listener from this component's element\n* ```js\n* myComponent.off('eventType', myFunc);\n* ```\n* If myFunc is excluded, ALL listeners for the event type will be removed.\n* If eventType is excluded, ALL listeners will be removed from the component.\n* Alternatively you can use `off` to remove listeners that were added to other\n* elements or components using `myComponent.on(otherComponent...`.\n* In this case both the event type and listener function are REQUIRED.\n* ```js\n* myComponent.off(otherElement, 'eventType', myFunc);\n* myComponent.off(otherComponent, 'eventType', myFunc);\n* ```\n*\n* @param {String=|Component} first The event type or other component\n* @param {Function=|String} second The listener function or event type\n* @param {Function=} third The listener for other component\n* @return {Component}\n* @method off\n*/", + "meta": { + "range": [ + 8065, + 8951 + ], + "filename": "component.js", + "lineno": 635, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Remove an event listener from this component's element</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed.\nIf eventType is excluded, ALL listeners will be removed from the component.\nAlternatively you can use <code>off</code> to remove listeners that were added to other\nelements or components using <code>myComponent.on(otherComponent...</code>.\nIn this case both the event type and listener function are REQUIRED.</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.off(otherElement, 'eventType', myFunc);\n myComponent.off(otherComponent, 'eventType', myFunc);</code></pre>", + "params": [ + { + "type": { + "names": [ + "String", + "Component" + ] + }, + "description": "<p>The event type or other component</p>", + "name": "first" + }, + { + "type": { + "names": [ + "function", + "String" + ] + }, + "description": "<p>The listener function or event type</p>", + "name": "second" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>The listener for other component</p>", + "name": "third" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "off", + "longname": "off", + "scope": "global" + }, + { + "comment": "/**\n* Add an event listener to be triggered only once and then removed\n* ```js\n* myComponent.one('eventName', myFunc);\n* ```\n* Alternatively you can add a listener to another element or component\n* that will be triggered only once.\n* ```js\n* myComponent.one(otherElement, 'eventName', myFunc);\n* myComponent.one(otherComponent, 'eventName', myFunc);\n* ```\n*\n* @param {String|Component} first The event type or other component\n* @param {Function|String} second The listener function or event type\n* @param {Function=} third The listener function for other component\n* @return {Component}\n* @method one\n*/", + "meta": { + "range": [ + 9033, + 9675 + ], + "filename": "component.js", + "lineno": 683, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add an event listener to be triggered only once and then removed</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component\nthat will be triggered only once.</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.one(otherElement, 'eventName', myFunc);\n myComponent.one(otherComponent, 'eventName', myFunc);</code></pre>", + "params": [ + { + "type": { + "names": [ + "String", + "Component" + ] + }, + "description": "<p>The event type or other component</p>", + "name": "first" + }, + { + "type": { + "names": [ + "function", + "String" + ] + }, + "description": "<p>The listener function or event type</p>", + "name": "second" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>The listener function for other component</p>", + "name": "third" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "one", + "longname": "one", + "scope": "global" + }, + { + "comment": "/**\n* Trigger an event on an element\n* ```js\n* myComponent.trigger('eventName');\n* myComponent.trigger({'type':'eventName'});\n* myComponent.trigger('eventName', {data: 'some data'});\n* myComponent.trigger({'type':'eventName'}, {data: 'some data'});\n* ```\n*\n* @param {Event|Object|String} event A string (the type) or an event object with a type attribute\n* @param {Object} [hash] data hash to pass along with the event\n* @return {Component} self\n* @method trigger\n*/", + "meta": { + "range": [ + 9742, + 10233 + ], + "filename": "component.js", + "lineno": 723, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Trigger an event on an element</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.trigger('eventName');\n myComponent.trigger({'type':'eventName'});\n myComponent.trigger('eventName', {data: 'some data'});\n myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre>", + "params": [ + { + "type": { + "names": [ + "Event", + "Object", + "String" + ] + }, + "description": "<p>A string (the type) or an event object with a type attribute</p>", + "name": "event" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>data hash to pass along with the event</p>", + "name": "hash" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>self</p>" + } + ], + "kind": "function", + "name": "trigger", + "longname": "trigger", + "scope": "global" + }, + { + "comment": "/**\n* Bind a listener to the component's ready state.\n* Different from event listeners in that if the ready event has already happened\n* it will trigger the function immediately.\n*\n* @param {Function} fn Ready listener\n* @return {Component}\n* @method ready\n*/", + "meta": { + "range": [ + 10249, + 10509 + ], + "filename": "component.js", + "lineno": 742, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Bind a listener to the component's ready state.\nDifferent from event listeners in that if the ready event has already happened\nit will trigger the function immediately.</p>", + "params": [ + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>Ready listener</p>", + "name": "fn" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "ready", + "longname": "ready", + "scope": "global" + }, + { + "comment": "/**\n* Trigger the ready listeners\n*\n* @return {Component}\n* @method triggerReady\n*/", + "meta": { + "range": [ + 10549, + 10632 + ], + "filename": "component.js", + "lineno": 764, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Trigger the ready listeners</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "triggerReady", + "longname": "triggerReady", + "scope": "global" + }, + { + "comment": "/**\n* Check if a component's element has a CSS class name\n*\n* @param {String} classToCheck Classname to check\n* @return {Component}\n* @method hasClass\n*/", + "meta": { + "range": [ + 10696, + 10849 + ], + "filename": "component.js", + "lineno": 791, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Check if a component's element has a CSS class name</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Classname to check</p>", + "name": "classToCheck" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "hasClass", + "longname": "hasClass", + "scope": "global" + }, + { + "comment": "/**\n* Add a CSS class name to the component's element\n*\n* @param {String} classToAdd Classname to add\n* @return {Component}\n* @method addClass\n*/", + "meta": { + "range": [ + 10862, + 11007 + ], + "filename": "component.js", + "lineno": 802, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add a CSS class name to the component's element</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Classname to add</p>", + "name": "classToAdd" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "addClass", + "longname": "addClass", + "scope": "global" + }, + { + "comment": "/**\n* Remove and return a CSS class name from the component's element\n*\n* @param {String} classToRemove Classname to remove\n* @return {Component}\n* @method removeClass\n*/", + "meta": { + "range": [ + 11023, + 11193 + ], + "filename": "component.js", + "lineno": 814, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Remove and return a CSS class name from the component's element</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Classname to remove</p>", + "name": "classToRemove" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "removeClass", + "longname": "removeClass", + "scope": "global" + }, + { + "comment": "/**\n* Show the component element if hidden\n*\n* @return {Component}\n* @method show\n*/", + "meta": { + "range": [ + 11209, + 11293 + ], + "filename": "component.js", + "lineno": 826, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Show the component element if hidden</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "show", + "longname": "show", + "scope": "global" + }, + { + "comment": "/**\n* Hide the component element if currently showing\n*\n* @return {Component}\n* @method hide\n*/", + "meta": { + "range": [ + 11309, + 11404 + ], + "filename": "component.js", + "lineno": 837, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Hide the component element if currently showing</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "hide", + "longname": "hide", + "scope": "global" + }, + { + "comment": "/**\n* Lock an item in its visible state\n* To be used with fadeIn/fadeOut.\n*\n* @return {Component}\n* @private\n* @method lockShowing\n*/", + "meta": { + "range": [ + 11420, + 11553 + ], + "filename": "component.js", + "lineno": 848, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Lock an item in its visible state\nTo be used with fadeIn/fadeOut.</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "access": "private", + "kind": "function", + "name": "lockShowing", + "longname": "lockShowing", + "scope": "global" + }, + { + "comment": "/**\n* Unlock an item to be hidden\n* To be used with fadeIn/fadeOut.\n*\n* @return {Component}\n* @private\n* @method unlockShowing\n*/", + "meta": { + "range": [ + 11569, + 11698 + ], + "filename": "component.js", + "lineno": 861, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Unlock an item to be hidden\nTo be used with fadeIn/fadeOut.</p>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "access": "private", + "kind": "function", + "name": "unlockShowing", + "longname": "unlockShowing", + "scope": "global" + }, + { + "comment": "/**\n* Set or get the width of the component (CSS values)\n* Setting the video tag dimension values only works with values in pixels.\n* Percent values will not work.\n* Some percents can be used, but width()/height() will return the number + %,\n* not the actual computed width/height.\n*\n* @param {Number|String=} num Optional width number\n* @param {Boolean} skipListeners Skip the 'resize' event trigger\n* @return {Component} This component, when setting the width\n* @return {Number|String} The width, when getting\n* @method width\n*/", + "meta": { + "range": [ + 11714, + 12248 + ], + "filename": "component.js", + "lineno": 874, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Set or get the width of the component (CSS values)\nSetting the video tag dimension values only works with values in pixels.\nPercent values will not work.\nSome percents can be used, but width()/height() will return the number + %,\nnot the actual computed width/height.</p>", + "params": [ + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>Optional width number</p>", + "name": "num" + }, + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Skip the 'resize' event trigger</p>", + "name": "skipListeners" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>This component, when setting the width</p>" + }, + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>The width, when getting</p>" + } + ], + "kind": "function", + "name": "width", + "longname": "width", + "scope": "global" + }, + { + "comment": "/**\n* Get or set the height of the component (CSS values)\n* Setting the video tag dimension values only works with values in pixels.\n* Percent values will not work.\n* Some percents can be used, but width()/height() will return the number + %,\n* not the actual computed width/height.\n*\n* @param {Number|String=} num New component height\n* @param {Boolean=} skipListeners Skip the resize event trigger\n* @return {Component} This component, when setting the height\n* @return {Number|String} The height, when getting\n* @method height\n*/", + "meta": { + "range": [ + 12261, + 12799 + ], + "filename": "component.js", + "lineno": 891, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set the height of the component (CSS values)\nSetting the video tag dimension values only works with values in pixels.\nPercent values will not work.\nSome percents can be used, but width()/height() will return the number + %,\nnot the actual computed width/height.</p>", + "params": [ + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>New component height</p>", + "name": "num" + }, + { + "type": { + "names": [ + "Boolean" + ] + }, + "optional": true, + "description": "<p>Skip the resize event trigger</p>", + "name": "skipListeners" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>This component, when setting the height</p>" + }, + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>The height, when getting</p>" + } + ], + "kind": "function", + "name": "height", + "longname": "height", + "scope": "global" + }, + { + "comment": "/**\n* Set both width and height at the same time\n*\n* @param {Number|String} width Width of player\n* @param {Number|String} height Height of player\n* @return {Component} The component\n* @method dimensions\n*/", + "meta": { + "range": [ + 12812, + 13020 + ], + "filename": "component.js", + "lineno": 908, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Set both width and height at the same time</p>", + "params": [ + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>Width of player</p>", + "name": "width" + }, + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>Height of player</p>", + "name": "height" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>The component</p>" + } + ], + "kind": "function", + "name": "dimensions", + "longname": "dimensions", + "scope": "global" + }, + { + "comment": "/**\n* Get or set width or height\n* This is the shared code for the width() and height() methods.\n* All for an integer, integer + 'px' or integer + '%';\n* Known issue: Hidden elements officially have a width of 0. We're defaulting\n* to the style.width value and falling back to computedStyle which has the\n* hidden element issue. Info, but probably not an efficient fix:\n* http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/\n*\n* @param {String} widthOrHeight 'width' or 'height'\n* @param {Number|String=} num New dimension\n* @param {Boolean=} skipListeners Skip resize event trigger\n* @return {Component} The component if a dimension was set\n* @return {Number|String} The dimension if nothing was set\n* @private\n* @method dimension\n*/", + "meta": { + "range": [ + 13036, + 13820 + ], + "filename": "component.js", + "lineno": 921, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set width or height\nThis is the shared code for the width() and height() methods.\nAll for an integer, integer + 'px' or integer + '%';\nKnown issue: Hidden elements officially have a width of 0. We're defaulting\nto the style.width value and falling back to computedStyle which has the\nhidden element issue. Info, but probably not an efficient fix:\nhttp://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>'width' or 'height'</p>", + "name": "widthOrHeight" + }, + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>New dimension</p>", + "name": "num" + }, + { + "type": { + "names": [ + "Boolean" + ] + }, + "optional": true, + "description": "<p>Skip resize event trigger</p>", + "name": "skipListeners" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>The component if a dimension was set</p>" + }, + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>The dimension if nothing was set</p>" + } + ], + "access": "private", + "kind": "function", + "name": "dimension", + "longname": "dimension", + "scope": "global" + }, + { + "comment": "/**\n* Emit 'tap' events when touch events are supported\n* This is used to support toggling the controls through a tap on the video.\n* We're requiring them to be enabled because otherwise every component would\n* have this extra overhead unnecessarily, on mobile devices where extra\n* overhead is especially bad.\n*\n* @private\n* @method emitTapEvents\n*/", + "meta": { + "range": [ + 13959, + 14309 + ], + "filename": "component.js", + "lineno": 984, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Emit 'tap' events when touch events are supported\nThis is used to support toggling the controls through a tap on the video.\nWe're requiring them to be enabled because otherwise every component would\nhave this extra overhead unnecessarily, on mobile devices where extra\noverhead is especially bad.</p>", + "access": "private", + "kind": "function", + "name": "emitTapEvents", + "longname": "emitTapEvents", + "scope": "global" + }, + { + "comment": "/**\n* Report user touch activity when touch events occur\n* User activity is used to determine when controls should show/hide. It's\n* relatively simple when it comes to mouse events, because any mouse event\n* should show the controls. So we capture mouse events that bubble up to the\n* player and report activity when that happens.\n* With touch events it isn't as easy. We can't rely on touch events at the\n* player level, because a tap (touchstart + touchend) on the video itself on\n* mobile devices is meant to turn controls off (and on). User activity is\n* checked asynchronously, so what could happen is a tap event on the video\n* turns the controls off, then the touchend event bubbles up to the player,\n* which if it reported user activity, would turn the controls right back on.\n* (We also don't want to completely block touch events from bubbling up)\n* Also a touchmove, touch+hold, and anything other than a tap is not supposed\n* to turn the controls back on on a mobile device.\n* Here we're setting the default component behavior to report user activity\n* whenever touch events happen, and this can be turned off by components that\n* want touch events to act differently.\n*\n* @method enableTouchActivity\n*/", + "meta": { + "range": [ + 14529, + 15744 + ], + "filename": "component.js", + "lineno": 1067, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Report user touch activity when touch events occur\nUser activity is used to determine when controls should show/hide. It's\nrelatively simple when it comes to mouse events, because any mouse event\nshould show the controls. So we capture mouse events that bubble up to the\nplayer and report activity when that happens.\nWith touch events it isn't as easy. We can't rely on touch events at the\nplayer level, because a tap (touchstart + touchend) on the video itself on\nmobile devices is meant to turn controls off (and on). User activity is\nchecked asynchronously, so what could happen is a tap event on the video\nturns the controls off, then the touchend event bubbles up to the player,\nwhich if it reported user activity, would turn the controls right back on.\n(We also don't want to completely block touch events from bubbling up)\nAlso a touchmove, touch+hold, and anything other than a tap is not supposed\nto turn the controls back on on a mobile device.\nHere we're setting the default component behavior to report user activity\nwhenever touch events happen, and this can be turned off by components that\nwant touch events to act differently.</p>", + "kind": "function", + "name": "enableTouchActivity", + "longname": "enableTouchActivity", + "scope": "global" + }, + { + "comment": "/**\n* Creates timeout and sets up disposal automatically.\n*\n* @param {Function} fn The function to run after the timeout.\n* @param {Number} timeout Number of ms to delay before executing specified function.\n* @return {Number} Returns the timeout ID\n* @method setTimeout\n*/", + "meta": { + "range": [ + 15841, + 16113 + ], + "filename": "component.js", + "lineno": 1120, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Creates timeout and sets up disposal automatically.</p>", + "params": [ + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The function to run after the timeout.</p>", + "name": "fn" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Number of ms to delay before executing specified function.</p>", + "name": "timeout" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Returns the timeout ID</p>" + } + ], + "kind": "function", + "name": "setTimeout", + "longname": "setTimeout", + "scope": "global" + }, + { + "comment": "/**\n* Clears a timeout and removes the associated dispose listener\n*\n* @param {Number} timeoutId The id of the timeout to clear\n* @return {Number} Returns the timeout ID\n* @method clearTimeout\n*/", + "meta": { + "range": [ + 16165, + 16360 + ], + "filename": "component.js", + "lineno": 1145, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Clears a timeout and removes the associated dispose listener</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The id of the timeout to clear</p>", + "name": "timeoutId" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Returns the timeout ID</p>" + } + ], + "kind": "function", + "name": "clearTimeout", + "longname": "clearTimeout", + "scope": "global" + }, + { + "comment": "/**\n* Creates an interval and sets up disposal automatically.\n*\n* @param {Function} fn The function to run every N seconds.\n* @param {Number} interval Number of ms to delay before executing specified function.\n* @return {Number} Returns the interval ID\n* @method setInterval\n*/", + "meta": { + "range": [ + 16397, + 16674 + ], + "filename": "component.js", + "lineno": 1164, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Creates an interval and sets up disposal automatically.</p>", + "params": [ + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The function to run every N seconds.</p>", + "name": "fn" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Number of ms to delay before executing specified function.</p>", + "name": "interval" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Returns the interval ID</p>" + } + ], + "kind": "function", + "name": "setInterval", + "longname": "setInterval", + "scope": "global" + }, + { + "comment": "/**\n* Clears an interval and removes the associated dispose listener\n*\n* @param {Number} intervalId The id of the interval to clear\n* @return {Number} Returns the interval ID\n* @method clearInterval\n*/", + "meta": { + "range": [ + 16723, + 16924 + ], + "filename": "component.js", + "lineno": 1188, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Clears an interval and removes the associated dispose listener</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The id of the interval to clear</p>", + "name": "intervalId" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Returns the interval ID</p>" + } + ], + "kind": "function", + "name": "clearInterval", + "longname": "clearInterval", + "scope": "global" + }, + { + "comment": "/**\n* Registers a component\n*\n* @param {String} name Name of the component to register\n* @param {Object} comp The component to register \n* @static\n* @method registerComponent\n*/", + "meta": { + "range": [ + 16961, + 17139 + ], + "filename": "component.js", + "lineno": 1207, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Registers a component</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Name of the component to register</p>", + "name": "name" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The component to register</p>", + "name": "comp" + } + ], + "scope": "static", + "kind": "function", + "name": "registerComponent", + "longname": "registerComponent" + }, + { + "comment": "/**\n* Gets a component by name\n*\n* @param {String} name Name of the component to get\n* @return {Component}\n* @static\n* @method getComponent\n*/", + "meta": { + "range": [ + 17167, + 17309 + ], + "filename": "component.js", + "lineno": 1224, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Gets a component by name</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Name of the component to get</p>", + "name": "name" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "scope": "static", + "kind": "function", + "name": "getComponent", + "longname": "getComponent" + }, + { + "comment": "/**\n* Sets up the constructor using the supplied init method\n* or uses the init of the parent object\n*\n* @param {Object} props An object of properties \n* @static\n* @method extend\n*/", + "meta": { + "range": [ + 17343, + 17525 + ], + "filename": "component.js", + "lineno": 1243, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Sets up the constructor using the supplied init method\nor uses the init of the parent object</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>An object of properties</p>", + "name": "props" + } + ], + "scope": "static", + "kind": "function", + "name": "extend", + "longname": "extend" + }, + { + "comment": "/**\n* @file control-bar.js\n*/", + "meta": { + "range": [ + 0, + 29 + ], + "filename": "control-bar.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "name": "control-bar/control-bar.js", + "kind": "file", + "description": "<p>control-bar.js</p>", + "preserveName": true, + "longname": "control-bar/control-bar.js", + "scope": "global" + }, + { + "comment": "/**\n* Container of main controls\n*\n* @extends Component\n* @class ControlBar\n*/", + "meta": { + "range": [ + 90, + 168 + ], + "filename": "control-bar.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Container of main controls</p>", + "augments": [ + "Component" + ], + "kind": "class", + "name": "ControlBar", + "longname": "ControlBar", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 175, + 259 + ], + "filename": "control-bar.js", + "lineno": 32, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file fullscreen-toggle.js\n*/", + "meta": { + "range": [ + 0, + 35 + ], + "filename": "fullscreen-toggle.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "name": "control-bar/fullscreen-toggle.js", + "kind": "file", + "description": "<p>fullscreen-toggle.js</p>", + "preserveName": true, + "longname": "control-bar/fullscreen-toggle.js", + "scope": "global" + }, + { + "comment": "/**\n* Toggle fullscreen video\n*\n* @extends Button\n* @class FullscreenToggle\n*/", + "meta": { + "range": [ + 45, + 123 + ], + "filename": "fullscreen-toggle.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Toggle fullscreen video</p>", + "augments": [ + "Button" + ], + "kind": "class", + "name": "FullscreenToggle", + "longname": "FullscreenToggle", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 130, + 256 + ], + "filename": "fullscreen-toggle.js", + "lineno": 15, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Handles click for full screen\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 269, + 331 + ], + "filename": "fullscreen-toggle.js", + "lineno": 25, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Handles click for full screen</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* @file live-display.js\n*/", + "meta": { + "range": [ + 0, + 30 + ], + "filename": "live-display.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "name": "control-bar/live-display.js", + "kind": "file", + "description": "<p>live-display.js</p>", + "preserveName": true, + "longname": "control-bar/live-display.js", + "scope": "global" + }, + { + "comment": "/**\n* Displays the live indicator\n* TODO - Future make it click to snap to live\n* \n* @extends Component\n* @class LiveDisplay\n*/", + "meta": { + "range": [ + 40, + 167 + ], + "filename": "live-display.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Displays the live indicator\nTODO - Future make it click to snap to live</p>", + "augments": [ + "Component" + ], + "kind": "class", + "name": "LiveDisplay", + "longname": "LiveDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 174, + 258 + ], + "filename": "live-display.js", + "lineno": 16, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file mute-toggle.js\n*/", + "meta": { + "range": [ + 0, + 29 + ], + "filename": "mute-toggle.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "name": "control-bar/mute-toggle.js", + "kind": "file", + "description": "<p>mute-toggle.js</p>", + "preserveName": true, + "longname": "control-bar/mute-toggle.js", + "scope": "global" + }, + { + "comment": "/**\n* A button component for muting the audio\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class MuteToggle\n*/", + "meta": { + "range": [ + 42, + 189 + ], + "filename": "mute-toggle.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>A button component for muting the audio</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "MuteToggle", + "longname": "MuteToggle", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 253, + 379 + ], + "filename": "mute-toggle.js", + "lineno": 37, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Handle click on mute\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 392, + 445 + ], + "filename": "mute-toggle.js", + "lineno": 47, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Handle click on mute</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Update volume\n*\n* @method update\n*/", + "meta": { + "range": [ + 458, + 499 + ], + "filename": "mute-toggle.js", + "lineno": 56, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Update volume</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* @file play-toggle.js\n*/", + "meta": { + "range": [ + 0, + 29 + ], + "filename": "play-toggle.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "name": "control-bar/play-toggle.js", + "kind": "file", + "description": "<p>play-toggle.js</p>", + "preserveName": true, + "longname": "control-bar/play-toggle.js", + "scope": "global" + }, + { + "comment": "/**\n* Button to toggle between play and pause\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class PlayToggle\n*/", + "meta": { + "range": [ + 39, + 186 + ], + "filename": "play-toggle.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Button to toggle between play and pause</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "PlayToggle", + "longname": "PlayToggle", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 214, + 340 + ], + "filename": "play-toggle.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Handle click to toggle between play and pause\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 353, + 431 + ], + "filename": "play-toggle.js", + "lineno": 34, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Handle click to toggle between play and pause</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Add the vjs-playing class to the element so it can change appearance\n*\n* @method handlePlay\n*/", + "meta": { + "range": [ + 456, + 556 + ], + "filename": "play-toggle.js", + "lineno": 47, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Add the vjs-playing class to the element so it can change appearance</p>", + "kind": "function", + "name": "handlePlay", + "longname": "handlePlay", + "scope": "global" + }, + { + "comment": "/**\n* Add the vjs-paused class to the element so it can change appearance\n*\n* @method handlePause\n*/", + "meta": { + "range": [ + 575, + 675 + ], + "filename": "play-toggle.js", + "lineno": 58, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Add the vjs-paused class to the element so it can change appearance</p>", + "kind": "function", + "name": "handlePause", + "longname": "handlePause", + "scope": "global" + }, + { + "comment": "/**\n* @file playback-rate-menu-button.js\n*/", + "meta": { + "range": [ + 0, + 43 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "name": "control-bar/playback-rate-menu/playback-rate-menu-button.js", + "kind": "file", + "description": "<p>playback-rate-menu-button.js</p>", + "preserveName": true, + "longname": "control-bar/playback-rate-menu/playback-rate-menu-button.js", + "scope": "global" + }, + { + "comment": "/**\n* The component for controlling the playback rate\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuButton\n* @class PlaybackRateMenuButton\n*/", + "meta": { + "range": [ + 62, + 233 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 10, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>The component for controlling the playback rate</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "MenuButton" + ], + "kind": "class", + "name": "PlaybackRateMenuButton", + "longname": "PlaybackRateMenuButton", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 270, + 354 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 30, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 394, + 520 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 49, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Create the playback rate menu\n*\n* @return {Menu} Menu object populated with items\n* @method createMenu\n*/", + "meta": { + "range": [ + 533, + 644 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 59, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Create the playback rate menu</p>", + "returns": [ + { + "type": { + "names": [ + "Menu" + ] + }, + "description": "<p>Menu object populated with items</p>" + } + ], + "kind": "function", + "name": "createMenu", + "longname": "createMenu", + "scope": "global" + }, + { + "comment": "/**\n* Updates ARIA accessibility attributes\n*\n* @method updateARIAAttributes\n*/", + "meta": { + "range": [ + 690, + 769 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 80, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Updates ARIA accessibility attributes</p>", + "kind": "function", + "name": "updateARIAAttributes", + "longname": "updateARIAAttributes", + "scope": "global" + }, + { + "comment": "/**\n* Handle menu item click\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 785, + 840 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 90, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Handle menu item click</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Get possible playback rates\n*\n* @return {Array} Possible playback rates\n* @method playbackRates\n*/", + "meta": { + "range": [ + 889, + 993 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 111, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Get possible playback rates</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Possible playback rates</p>" + } + ], + "kind": "function", + "name": "playbackRates", + "longname": "playbackRates", + "scope": "global" + }, + { + "comment": "/**\n* Get supported playback rates\n*\n* @return {Array} Supported playback rates\n* @method playbackRateSupported\n*/", + "meta": { + "range": [ + 1006, + 1120 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 121, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Get supported playback rates</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Supported playback rates</p>" + } + ], + "kind": "function", + "name": "playbackRateSupported", + "longname": "playbackRateSupported", + "scope": "global" + }, + { + "comment": "/**\n* Hide playback rate controls when they're no playback rate options to select\n*\n* @method updateVisibility\n*/", + "meta": { + "range": [ + 1145, + 1258 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 135, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Hide playback rate controls when they're no playback rate options to select</p>", + "kind": "function", + "name": "updateVisibility", + "longname": "updateVisibility", + "scope": "global" + }, + { + "comment": "/**\n* Update button label when rate changed\n*\n* @method updateLabel\n*/", + "meta": { + "range": [ + 1283, + 1353 + ], + "filename": "playback-rate-menu-button.js", + "lineno": 148, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Update button label when rate changed</p>", + "kind": "function", + "name": "updateLabel", + "longname": "updateLabel", + "scope": "global" + }, + { + "comment": "/**\n* @file playback-rate-menu-item.js\n*/", + "meta": { + "range": [ + 0, + 41 + ], + "filename": "playback-rate-menu-item.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "name": "control-bar/playback-rate-menu/playback-rate-menu-item.js", + "kind": "file", + "description": "<p>playback-rate-menu-item.js</p>", + "preserveName": true, + "longname": "control-bar/playback-rate-menu/playback-rate-menu-item.js", + "scope": "global" + }, + { + "comment": "/**\n* The specific menu item type for selecting a playback rate\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class PlaybackRateMenuItem\n*/", + "meta": { + "range": [ + 51, + 228 + ], + "filename": "playback-rate-menu-item.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>The specific menu item type for selecting a playback rate</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "MenuItem" + ], + "kind": "class", + "name": "PlaybackRateMenuItem", + "longname": "PlaybackRateMenuItem", + "scope": "global" + }, + { + "comment": "/**\n* Handle click on menu item\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 280, + 338 + ], + "filename": "playback-rate-menu-item.js", + "lineno": 32, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Handle click on menu item</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Update playback rate with selected rate\n*\n* @method update\n*/", + "meta": { + "range": [ + 354, + 421 + ], + "filename": "playback-rate-menu-item.js", + "lineno": 42, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu", + "code": {} + }, + "description": "<p>Update playback rate with selected rate</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* @file load-progress-bar.js\n*/", + "meta": { + "range": [ + 0, + 35 + ], + "filename": "load-progress-bar.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "name": "control-bar/progress-control/load-progress-bar.js", + "kind": "file", + "description": "<p>load-progress-bar.js</p>", + "preserveName": true, + "longname": "control-bar/progress-control/load-progress-bar.js", + "scope": "global" + }, + { + "comment": "/**\n* Shows load progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class LoadProgressBar\n*/", + "meta": { + "range": [ + 45, + 180 + ], + "filename": "load-progress-bar.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Shows load progress</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "LoadProgressBar", + "longname": "LoadProgressBar", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 202, + 286 + ], + "filename": "load-progress-bar.js", + "lineno": 22, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Update progress bar\n*\n* @method update\n*/", + "meta": { + "range": [ + 308, + 355 + ], + "filename": "load-progress-bar.js", + "lineno": 35, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Update progress bar</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* @file play-progress-bar.js\n*/", + "meta": { + "range": [ + 0, + 35 + ], + "filename": "play-progress-bar.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "name": "control-bar/progress-control/play-progress-bar.js", + "kind": "file", + "description": "<p>play-progress-bar.js</p>", + "preserveName": true, + "longname": "control-bar/progress-control/play-progress-bar.js", + "scope": "global" + }, + { + "comment": "/**\n* Shows play progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class PlayProgressBar\n*/", + "meta": { + "range": [ + 42, + 177 + ], + "filename": "play-progress-bar.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Shows play progress</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "PlayProgressBar", + "longname": "PlayProgressBar", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 184, + 268 + ], + "filename": "play-progress-bar.js", + "lineno": 16, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file progress-control.js\n*/", + "meta": { + "range": [ + 0, + 34 + ], + "filename": "progress-control.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "name": "control-bar/progress-control/progress-control.js", + "kind": "file", + "description": "<p>progress-control.js</p>", + "preserveName": true, + "longname": "control-bar/progress-control/progress-control.js", + "scope": "global" + }, + { + "comment": "/**\n* The Progress Control component contains the seek bar, load progress,\n* and play progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class ProgressControl\n*/", + "meta": { + "range": [ + 44, + 248 + ], + "filename": "progress-control.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>The Progress Control component contains the seek bar, load progress,\nand play progress</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "ProgressControl", + "longname": "ProgressControl", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 255, + 339 + ], + "filename": "progress-control.js", + "lineno": 18, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file seek-bar.js\n*/", + "meta": { + "range": [ + 0, + 26 + ], + "filename": "seek-bar.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "name": "control-bar/progress-control/seek-bar.js", + "kind": "file", + "description": "<p>seek-bar.js</p>", + "preserveName": true, + "longname": "control-bar/progress-control/seek-bar.js", + "scope": "global" + }, + { + "comment": "/**\n* Seek Bar and holder for the progress bars\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Slider\n* @class SeekBar\n*/", + "meta": { + "range": [ + 51, + 197 + ], + "filename": "seek-bar.js", + "lineno": 12, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Seek Bar and holder for the progress bars</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Slider" + ], + "kind": "class", + "name": "SeekBar", + "longname": "SeekBar", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 222, + 306 + ], + "filename": "seek-bar.js", + "lineno": 28, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Update ARIA accessibility attributes\n*\n* @method updateARIAAttributes\n*/", + "meta": { + "range": [ + 328, + 406 + ], + "filename": "seek-bar.js", + "lineno": 41, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Update ARIA accessibility attributes</p>", + "kind": "function", + "name": "updateARIAAttributes", + "longname": "updateARIAAttributes", + "scope": "global" + }, + { + "comment": "/**\n* Get percentage of video played\n*\n* @return {Number} Percentage played\n* @method getPercent\n*/", + "meta": { + "range": [ + 428, + 527 + ], + "filename": "seek-bar.js", + "lineno": 53, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Get percentage of video played</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Percentage played</p>" + } + ], + "kind": "function", + "name": "getPercent", + "longname": "getPercent", + "scope": "global" + }, + { + "comment": "/**\n* Handle mouse down on seek bar\n*\n* @method handleMouseDown\n*/", + "meta": { + "range": [ + 543, + 609 + ], + "filename": "seek-bar.js", + "lineno": 64, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Handle mouse down on seek bar</p>", + "kind": "function", + "name": "handleMouseDown", + "longname": "handleMouseDown", + "scope": "global" + }, + { + "comment": "/**\n* Handle mouse move on seek bar\n*\n* @method handleMouseMove\n*/", + "meta": { + "range": [ + 637, + 703 + ], + "filename": "seek-bar.js", + "lineno": 78, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Handle mouse move on seek bar</p>", + "kind": "function", + "name": "handleMouseMove", + "longname": "handleMouseMove", + "scope": "global" + }, + { + "comment": "/**\n* Handle mouse up on seek bar\n*\n* @method handleMouseUp\n*/", + "meta": { + "range": [ + 734, + 796 + ], + "filename": "seek-bar.js", + "lineno": 93, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Handle mouse up on seek bar</p>", + "kind": "function", + "name": "handleMouseUp", + "longname": "handleMouseUp", + "scope": "global" + }, + { + "comment": "/**\n* Move more quickly fast forward for keyboard-only users\n*\n* @method stepForward\n*/", + "meta": { + "range": [ + 824, + 911 + ], + "filename": "seek-bar.js", + "lineno": 107, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Move more quickly fast forward for keyboard-only users</p>", + "kind": "function", + "name": "stepForward", + "longname": "stepForward", + "scope": "global" + }, + { + "comment": "/**\n* Move more quickly rewind for keyboard-only users\n*\n* @method stepBack\n*/", + "meta": { + "range": [ + 924, + 1002 + ], + "filename": "seek-bar.js", + "lineno": 116, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control", + "code": {} + }, + "description": "<p>Move more quickly rewind for keyboard-only users</p>", + "kind": "function", + "name": "stepBack", + "longname": "stepBack", + "scope": "global" + }, + { + "comment": "/**\n* @file custom-control-spacer.js\n*/", + "meta": { + "range": [ + 0, + 39 + ], + "filename": "custom-control-spacer.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "name": "control-bar/spacer-controls/custom-control-spacer.js", + "kind": "file", + "description": "<p>custom-control-spacer.js</p>", + "preserveName": true, + "longname": "control-bar/spacer-controls/custom-control-spacer.js", + "scope": "global" + }, + { + "comment": "/**\n* Spacer specifically meant to be used as an insertion point for new plugins, etc.\n*\n* @extends Spacer\n* @class CustomControlSpacer\n*/", + "meta": { + "range": [ + 49, + 187 + ], + "filename": "custom-control-spacer.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "description": "<p>Spacer specifically meant to be used as an insertion point for new plugins, etc.</p>", + "augments": [ + "Spacer" + ], + "kind": "class", + "name": "CustomControlSpacer", + "longname": "CustomControlSpacer", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 194, + 320 + ], + "filename": "custom-control-spacer.js", + "lineno": 15, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 333, + 417 + ], + "filename": "custom-control-spacer.js", + "lineno": 25, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file spacer.js\n*/", + "meta": { + "range": [ + 0, + 24 + ], + "filename": "spacer.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "name": "control-bar/spacer-controls/spacer.js", + "kind": "file", + "description": "<p>spacer.js</p>", + "preserveName": true, + "longname": "control-bar/spacer-controls/spacer.js", + "scope": "global" + }, + { + "comment": "/**\n* Just an empty spacer element that can be used as an append point for plugins, etc.\n* Also can be used to create space between elements when necessary.\n*\n* @extends Component\n* @class Spacer\n*/", + "meta": { + "range": [ + 31, + 229 + ], + "filename": "spacer.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "description": "<p>Just an empty spacer element that can be used as an append point for plugins, etc.\nAlso can be used to create space between elements when necessary.</p>", + "augments": [ + "Component" + ], + "kind": "class", + "name": "Spacer", + "longname": "Spacer", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 236, + 362 + ], + "filename": "spacer.js", + "lineno": 15, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @param {Object} props An object of properties \n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 375, + 509 + ], + "filename": "spacer.js", + "lineno": 25, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>An object of properties</p>", + "name": "props" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file caption-settings-menu-item.js\n*/", + "meta": { + "range": [ + 0, + 44 + ], + "filename": "caption-settings-menu-item.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/caption-settings-menu-item.js", + "kind": "file", + "description": "<p>caption-settings-menu-item.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/caption-settings-menu-item.js", + "scope": "global" + }, + { + "comment": "/**\n* The menu item for caption track settings menu\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends TextTrackMenuItem\n* @class CaptionSettingsMenuItem\n*/", + "meta": { + "range": [ + 54, + 231 + ], + "filename": "caption-settings-menu-item.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The menu item for caption track settings menu</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "TextTrackMenuItem" + ], + "kind": "class", + "name": "CaptionSettingsMenuItem", + "longname": "CaptionSettingsMenuItem", + "scope": "global" + }, + { + "comment": "/**\n* Handle click on menu item\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 277, + 335 + ], + "filename": "caption-settings-menu-item.js", + "lineno": 30, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Handle click on menu item</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* @file captions-button.js\n*/", + "meta": { + "range": [ + 0, + 33 + ], + "filename": "captions-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/captions-button.js", + "kind": "file", + "description": "<p>captions-button.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/captions-button.js", + "scope": "global" + }, + { + "comment": "/**\n* The button component for toggling and selecting captions\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class CaptionsButton\n*/", + "meta": { + "range": [ + 46, + 319 + ], + "filename": "captions-button.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The button component for toggling and selecting captions</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Player object</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "TextTrackButton" + ], + "kind": "class", + "name": "CaptionsButton", + "longname": "CaptionsButton", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 341, + 467 + ], + "filename": "captions-button.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Update caption menu items\n*\n* @method update\n*/", + "meta": { + "range": [ + 480, + 533 + ], + "filename": "captions-button.js", + "lineno": 34, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Update caption menu items</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* Create caption menu items\n*\n* @return {Array} Array of menu items\n* @method createItems\n*/", + "meta": { + "range": [ + 582, + 678 + ], + "filename": "captions-button.js", + "lineno": 55, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Create caption menu items</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Array of menu items</p>" + } + ], + "kind": "function", + "name": "createItems", + "longname": "createItems", + "scope": "global" + }, + { + "comment": "/**\n* @file chapters-button.js\n*/", + "meta": { + "range": [ + 0, + 33 + ], + "filename": "chapters-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/chapters-button.js", + "kind": "file", + "description": "<p>chapters-button.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/chapters-button.js", + "scope": "global" + }, + { + "comment": "/**\n* The button component for toggling and selecting chapters\n* Chapters act much differently than other text tracks\n* Cues are navigation vs. other tracks of alternative languages\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class ChaptersButton\n*/", + "meta": { + "range": [ + 64, + 456 + ], + "filename": "chapters-button.js", + "lineno": 14, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The button component for toggling and selecting chapters\nChapters act much differently than other text tracks\nCues are navigation vs. other tracks of alternative languages</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Player object</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "TextTrackButton" + ], + "kind": "class", + "name": "ChaptersButton", + "longname": "ChaptersButton", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 478, + 604 + ], + "filename": "chapters-button.js", + "lineno": 32, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Create a menu item for each text track\n*\n* @return {Array} Array of menu items\n* @method createItems\n*/", + "meta": { + "range": [ + 617, + 726 + ], + "filename": "chapters-button.js", + "lineno": 42, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Create a menu item for each text track</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Array of menu items</p>" + } + ], + "kind": "function", + "name": "createItems", + "longname": "createItems", + "scope": "global" + }, + { + "comment": "/**\n* Create menu from chapter buttons\n*\n* @return {Menu} Menu of chapter buttons\n* @method createMenu\n*/", + "meta": { + "range": [ + 790, + 895 + ], + "filename": "chapters-button.js", + "lineno": 69, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Create menu from chapter buttons</p>", + "returns": [ + { + "type": { + "names": [ + "Menu" + ] + }, + "description": "<p>Menu of chapter buttons</p>" + } + ], + "kind": "function", + "name": "createMenu", + "longname": "createMenu", + "scope": "global" + }, + { + "comment": "/**\n* @file chapters-track-menu-item.js\n*/", + "meta": { + "range": [ + 0, + 42 + ], + "filename": "chapters-track-menu-item.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/chapters-track-menu-item.js", + "kind": "file", + "description": "<p>chapters-track-menu-item.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/chapters-track-menu-item.js", + "scope": "global" + }, + { + "comment": "/**\n* The chapter track menu item\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class ChaptersTrackMenuItem\n*/", + "meta": { + "range": [ + 55, + 203 + ], + "filename": "chapters-track-menu-item.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The chapter track menu item</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "MenuItem" + ], + "kind": "class", + "name": "ChaptersTrackMenuItem", + "longname": "ChaptersTrackMenuItem", + "scope": "global" + }, + { + "comment": "/**\n* Handle click on menu item\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 255, + 313 + ], + "filename": "chapters-track-menu-item.js", + "lineno": 33, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Handle click on menu item</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Update chapter menu item\n*\n* @method update\n*/", + "meta": { + "range": [ + 332, + 384 + ], + "filename": "chapters-track-menu-item.js", + "lineno": 44, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Update chapter menu item</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* @file off-text-track-menu-item.js\n*/", + "meta": { + "range": [ + 0, + 42 + ], + "filename": "off-text-track-menu-item.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/off-text-track-menu-item.js", + "kind": "file", + "description": "<p>off-text-track-menu-item.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/off-text-track-menu-item.js", + "scope": "global" + }, + { + "comment": "/**\n* A special menu item for turning of a specific type of text track\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends TextTrackMenuItem\n* @class OffTextTrackMenuItem\n*/", + "meta": { + "range": [ + 52, + 245 + ], + "filename": "off-text-track-menu-item.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>A special menu item for turning of a specific type of text track</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "TextTrackMenuItem" + ], + "kind": "class", + "name": "OffTextTrackMenuItem", + "longname": "OffTextTrackMenuItem", + "scope": "global" + }, + { + "comment": "/**\n* Handle text track change\n*\n* @param {Object} event Event object\n* @method handleTracksChange\n*/", + "meta": { + "range": [ + 297, + 398 + ], + "filename": "off-text-track-menu-item.js", + "lineno": 32, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Handle text track change</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "handleTracksChange", + "longname": "handleTracksChange", + "scope": "global" + }, + { + "comment": "/**\n* @file subtitles-button.js\n*/", + "meta": { + "range": [ + 0, + 34 + ], + "filename": "subtitles-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/subtitles-button.js", + "kind": "file", + "description": "<p>subtitles-button.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/subtitles-button.js", + "scope": "global" + }, + { + "comment": "/**\n* The button component for toggling and selecting subtitles\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class SubtitlesButton\n*/", + "meta": { + "range": [ + 44, + 319 + ], + "filename": "subtitles-button.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The button component for toggling and selecting subtitles</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Player object</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "TextTrackButton" + ], + "kind": "class", + "name": "SubtitlesButton", + "longname": "SubtitlesButton", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 341, + 467 + ], + "filename": "subtitles-button.js", + "lineno": 23, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-button.js\n*/", + "meta": { + "range": [ + 0, + 35 + ], + "filename": "text-track-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/text-track-button.js", + "kind": "file", + "description": "<p>text-track-button.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/text-track-button.js", + "scope": "global" + }, + { + "comment": "/**\n* The base class for buttons that toggle specific text track types (e.g. subtitles)\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuButton\n* @class TextTrackButton\n*/", + "meta": { + "range": [ + 54, + 252 + ], + "filename": "text-track-button.js", + "lineno": 10, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The base class for buttons that toggle specific text track types (e.g. subtitles)</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "MenuButton" + ], + "kind": "class", + "name": "TextTrackButton", + "longname": "TextTrackButton", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-menu-item.js\n*/", + "meta": { + "range": [ + 0, + 38 + ], + "filename": "text-track-menu-item.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "name": "control-bar/text-track-controls/text-track-menu-item.js", + "kind": "file", + "description": "<p>text-track-menu-item.js</p>", + "preserveName": true, + "longname": "control-bar/text-track-controls/text-track-menu-item.js", + "scope": "global" + }, + { + "comment": "/**\n* The specific menu item type for selecting a language within a text track kind\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class TextTrackMenuItem\n*/", + "meta": { + "range": [ + 57, + 251 + ], + "filename": "text-track-menu-item.js", + "lineno": 10, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>The specific menu item type for selecting a language within a text track kind</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "MenuItem" + ], + "kind": "class", + "name": "TextTrackMenuItem", + "longname": "TextTrackMenuItem", + "scope": "global" + }, + { + "comment": "/**\n* Handle click on text track\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 399, + 458 + ], + "filename": "text-track-menu-item.js", + "lineno": 67, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Handle click on text track</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Handle text track change\n*\n* @method handleTracksChange\n*/", + "meta": { + "range": [ + 528, + 592 + ], + "filename": "text-track-menu-item.js", + "lineno": 95, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls", + "code": {} + }, + "description": "<p>Handle text track change</p>", + "kind": "function", + "name": "handleTracksChange", + "longname": "handleTracksChange", + "scope": "global" + }, + { + "comment": "/**\n* @file current-time-display.js\n*/", + "meta": { + "range": [ + 0, + 38 + ], + "filename": "current-time-display.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "name": "control-bar/time-controls/current-time-display.js", + "kind": "file", + "description": "<p>current-time-display.js</p>", + "preserveName": true, + "longname": "control-bar/time-controls/current-time-display.js", + "scope": "global" + }, + { + "comment": "/**\n* Displays the current time\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class CurrentTimeDisplay\n*/", + "meta": { + "range": [ + 51, + 195 + ], + "filename": "current-time-display.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Displays the current time</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "CurrentTimeDisplay", + "longname": "CurrentTimeDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 220, + 304 + ], + "filename": "current-time-display.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Update current time display \n*\n* @method updateContent\n*/", + "meta": { + "range": [ + 350, + 413 + ], + "filename": "current-time-display.js", + "lineno": 45, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Update current time display</p>", + "kind": "function", + "name": "updateContent", + "longname": "updateContent", + "scope": "global" + }, + { + "comment": "/**\n* @file duration-display.js\n*/", + "meta": { + "range": [ + 0, + 34 + ], + "filename": "duration-display.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "name": "control-bar/time-controls/duration-display.js", + "kind": "file", + "description": "<p>duration-display.js</p>", + "preserveName": true, + "longname": "control-bar/time-controls/duration-display.js", + "scope": "global" + }, + { + "comment": "/**\n* Displays the duration\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class DurationDisplay\n*/", + "meta": { + "range": [ + 47, + 184 + ], + "filename": "duration-display.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Displays the duration</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "DurationDisplay", + "longname": "DurationDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 227, + 311 + ], + "filename": "duration-display.js", + "lineno": 30, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Update duration time display \n*\n* @method updateContent\n*/", + "meta": { + "range": [ + 357, + 421 + ], + "filename": "duration-display.js", + "lineno": 51, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Update duration time display</p>", + "kind": "function", + "name": "updateContent", + "longname": "updateContent", + "scope": "global" + }, + { + "comment": "/**\n* @file remaining-time-display.js\n*/", + "meta": { + "range": [ + 0, + 40 + ], + "filename": "remaining-time-display.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "name": "control-bar/time-controls/remaining-time-display.js", + "kind": "file", + "description": "<p>remaining-time-display.js</p>", + "preserveName": true, + "longname": "control-bar/time-controls/remaining-time-display.js", + "scope": "global" + }, + { + "comment": "/**\n* Displays the time left in the video\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class RemainingTimeDisplay\n*/", + "meta": { + "range": [ + 53, + 209 + ], + "filename": "remaining-time-display.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Displays the time left in the video</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "RemainingTimeDisplay", + "longname": "RemainingTimeDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 234, + 318 + ], + "filename": "remaining-time-display.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Update remaining time display \n*\n* @method updateContent\n*/", + "meta": { + "range": [ + 364, + 429 + ], + "filename": "remaining-time-display.js", + "lineno": 45, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Update remaining time display</p>", + "kind": "function", + "name": "updateContent", + "longname": "updateContent", + "scope": "global" + }, + { + "comment": "/**\n* @file time-divider.js\n*/", + "meta": { + "range": [ + 0, + 30 + ], + "filename": "time-divider.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "name": "control-bar/time-controls/time-divider.js", + "kind": "file", + "description": "<p>time-divider.js</p>", + "preserveName": true, + "longname": "control-bar/time-controls/time-divider.js", + "scope": "global" + }, + { + "comment": "/**\n* The separator between the current time and duration.\n* Can be hidden if it's not needed in the design.\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class TimeDivider\n*/", + "meta": { + "range": [ + 37, + 251 + ], + "filename": "time-divider.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>The separator between the current time and duration.\nCan be hidden if it's not needed in the design.</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "TimeDivider", + "longname": "TimeDivider", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 258, + 342 + ], + "filename": "time-divider.js", + "lineno": 17, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* The bar that contains the volume level and can be clicked on to adjust the level\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Slider\n* @class VolumeBar\n*/", + "meta": { + "range": [ + 24, + 211 + ], + "filename": "volume-bar.js", + "lineno": 9, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>The bar that contains the volume level and can be clicked on to adjust the level</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Slider" + ], + "kind": "class", + "name": "VolumeBar", + "longname": "VolumeBar", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 236, + 320 + ], + "filename": "volume-bar.js", + "lineno": 25, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Handle mouse move on volume bar\n*\n* @method handleMouseMove\n*/", + "meta": { + "range": [ + 342, + 410 + ], + "filename": "volume-bar.js", + "lineno": 38, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Handle mouse move on volume bar</p>", + "kind": "function", + "name": "handleMouseMove", + "longname": "handleMouseMove", + "scope": "global" + }, + { + "comment": "/**\n* Get percent of volume level\n*\n* @retun {Number} Volume level percent\n* @method getPercent\n*/", + "meta": { + "range": [ + 435, + 533 + ], + "filename": "volume-bar.js", + "lineno": 51, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Get percent of volume level</p>", + "tags": [ + { + "originalTitle": "retun", + "title": "retun", + "text": "{Number} Volume level percent", + "value": "{Number} Volume level percent" + } + ], + "kind": "function", + "name": "getPercent", + "longname": "getPercent", + "scope": "global" + }, + { + "comment": "/**\n* Increase volume level for keyboard users\n*\n* @method stepForward\n*/", + "meta": { + "range": [ + 558, + 631 + ], + "filename": "volume-bar.js", + "lineno": 65, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Increase volume level for keyboard users</p>", + "kind": "function", + "name": "stepForward", + "longname": "stepForward", + "scope": "global" + }, + { + "comment": "/**\n* Decrease volume level for keyboard users\n*\n* @method stepBack\n*/", + "meta": { + "range": [ + 644, + 714 + ], + "filename": "volume-bar.js", + "lineno": 74, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Decrease volume level for keyboard users</p>", + "kind": "function", + "name": "stepBack", + "longname": "stepBack", + "scope": "global" + }, + { + "comment": "/**\n* Update ARIA accessibility attributes\n*\n* @method updateARIAAttributes\n*/", + "meta": { + "range": [ + 727, + 805 + ], + "filename": "volume-bar.js", + "lineno": 83, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Update ARIA accessibility attributes</p>", + "kind": "function", + "name": "updateARIAAttributes", + "longname": "updateARIAAttributes", + "scope": "global" + }, + { + "comment": "/**\n* The component for controlling the volume level\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class VolumeControl\n*/", + "meta": { + "range": [ + 15, + 175 + ], + "filename": "volume-control.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>The component for controlling the volume level</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "VolumeControl", + "longname": "VolumeControl", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 230, + 314 + ], + "filename": "volume-control.js", + "lineno": 32, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Shows volume level\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class VolumeLevel\n*/", + "meta": { + "range": [ + 6, + 136 + ], + "filename": "volume-level.js", + "lineno": 3, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Shows volume level</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "VolumeLevel", + "longname": "VolumeLevel", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 143, + 227 + ], + "filename": "volume-level.js", + "lineno": 13, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file volume-menu-button.js\n*/", + "meta": { + "range": [ + 0, + 36 + ], + "filename": "volume-menu-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "name": "control-bar/volume-menu-button.js", + "kind": "file", + "description": "<p>volume-menu-button.js</p>", + "preserveName": true, + "longname": "control-bar/volume-menu-button.js", + "scope": "global" + }, + { + "comment": "/**\n* Button for volume menu\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuButton\n* @class VolumeMenuButton\n*/", + "meta": { + "range": [ + 58, + 198 + ], + "filename": "volume-menu-button.js", + "lineno": 11, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Button for volume menu</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "MenuButton" + ], + "kind": "class", + "name": "VolumeMenuButton", + "longname": "VolumeMenuButton", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 265, + 391 + ], + "filename": "volume-menu-button.js", + "lineno": 41, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {Menu} The volume menu button\n* @method createMenu\n*/", + "meta": { + "range": [ + 404, + 521 + ], + "filename": "volume-menu-button.js", + "lineno": 51, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "Menu" + ] + }, + "description": "<p>The volume menu button</p>" + } + ], + "kind": "function", + "name": "createMenu", + "longname": "createMenu", + "scope": "global" + }, + { + "comment": "/**\n* Handle click on volume menu and calls super\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 585, + 661 + ], + "filename": "volume-menu-button.js", + "lineno": 78, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar", + "code": {} + }, + "description": "<p>Handle click on volume menu and calls super</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* @file error-display.js\n*/", + "meta": { + "range": [ + 0, + 31 + ], + "filename": "error-display.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "error-display.js", + "kind": "file", + "description": "<p>error-display.js</p>", + "preserveName": true, + "longname": "error-display.js", + "scope": "global" + }, + { + "comment": "/**\n* Display that an error has occurred making the video unplayable\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Component\n* @class ErrorDisplay\n*/", + "meta": { + "range": [ + 41, + 256 + ], + "filename": "error-display.js", + "lineno": 7, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Display that an error has occurred making the video unplayable</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "ErrorDisplay", + "longname": "ErrorDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 284, + 368 + ], + "filename": "error-display.js", + "lineno": 24, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Update the error message in localized language\n*\n* @method update\n*/", + "meta": { + "range": [ + 402, + 476 + ], + "filename": "error-display.js", + "lineno": 41, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Update the error message in localized language</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* @file event-emitter.js\n*/", + "meta": { + "range": [ + 0, + 31 + ], + "filename": "event-emitter.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "event-emitter.js", + "kind": "file", + "description": "<p>event-emitter.js</p>", + "preserveName": true, + "longname": "event-emitter.js", + "scope": "global" + }, + { + "comment": "/**\n* @file fullscreen-api.js\n*/", + "meta": { + "range": [ + 0, + 32 + ], + "filename": "fullscreen-api.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "fullscreen-api.js", + "kind": "file", + "description": "<p>fullscreen-api.js</p>", + "preserveName": true, + "longname": "fullscreen-api.js", + "scope": "global" + }, + { + "comment": "/**\n* @file global-options.js\n*/", + "meta": { + "range": [ + 0, + 32 + ], + "filename": "global-options.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "global-options.js", + "kind": "file", + "description": "<p>global-options.js</p>", + "preserveName": true, + "longname": "global-options.js", + "scope": "global" + }, + { + "comment": "/**\n* @file loading-spinner.js\n*/", + "meta": { + "range": [ + 0, + 33 + ], + "filename": "loading-spinner.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "loading-spinner.js", + "kind": "file", + "description": "<p>loading-spinner.js</p>", + "preserveName": true, + "longname": "loading-spinner.js", + "scope": "global" + }, + { + "comment": "/**\n* Loading spinner for waiting events\n*\n* @extends Component\n* @class LoadingSpinner\n*/", + "meta": { + "range": [ + 143, + 233 + ], + "filename": "loading-spinner.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Loading spinner for waiting events</p>", + "augments": [ + "Component" + ], + "kind": "class", + "name": "LoadingSpinner", + "longname": "LoadingSpinner", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @method createEl\n*/", + "meta": { + "range": [ + 240, + 304 + ], + "filename": "loading-spinner.js", + "lineno": 16, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file media-error.js\n*/", + "meta": { + "range": [ + 0, + 29 + ], + "filename": "media-error.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "media-error.js", + "kind": "file", + "description": "<p>media-error.js</p>", + "preserveName": true, + "longname": "media-error.js", + "scope": "global" + }, + { + "comment": "/**\n* @file menu-button.js\n*/", + "meta": { + "range": [ + 0, + 29 + ], + "filename": "menu-button.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "name": "menu/menu-button.js", + "kind": "file", + "description": "<p>menu-button.js</p>", + "preserveName": true, + "longname": "menu/menu-button.js", + "scope": "global" + }, + { + "comment": "/**\n* A button class with a popup menu\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class MenuButton\n*/", + "meta": { + "range": [ + 51, + 191 + ], + "filename": "menu-button.js", + "lineno": 11, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>A button class with a popup menu</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "MenuButton", + "longname": "MenuButton", + "scope": "global" + }, + { + "comment": "/**\n* Update menu\n*\n* @method update\n*/", + "meta": { + "range": [ + 228, + 267 + ], + "filename": "menu-button.js", + "lineno": 31, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Update menu</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* Create menu\n*\n* @return {Menu} The constructed menu\n* @method createMenu\n*/", + "meta": { + "range": [ + 400, + 481 + ], + "filename": "menu-button.js", + "lineno": 61, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Create menu</p>", + "returns": [ + { + "type": { + "names": [ + "Menu" + ] + }, + "description": "<p>The constructed menu</p>" + } + ], + "kind": "function", + "name": "createMenu", + "longname": "createMenu", + "scope": "global" + }, + { + "comment": "/**\n* Create the list of menu items. Specific to each subclass.\n*\n* @method createItems\n*/", + "meta": { + "range": [ + 554, + 644 + ], + "filename": "menu-button.js", + "lineno": 91, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Create the list of menu items. Specific to each subclass.</p>", + "kind": "function", + "name": "createItems", + "longname": "createItems", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 651, + 735 + ], + "filename": "menu-button.js", + "lineno": 98, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/", + "meta": { + "range": [ + 754, + 880 + ], + "filename": "menu-button.js", + "lineno": 110, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Allow sub components to stack CSS class names</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The constructed class name</p>" + } + ], + "kind": "function", + "name": "buildCSSClass", + "longname": "buildCSSClass", + "scope": "global" + }, + { + "comment": "/**\n* Focus - Add keyboard functionality to element\n* This function is not needed anymore. Instead, the \n* keyboard functionality is handled by\n* treating the button as triggering a submenu. \n* When the button is pressed, the submenu\n* appears. Pressing the button again makes \n* the submenu disappear.\n*\n* @method handleFocus\n*/", + "meta": { + "range": [ + 893, + 1222 + ], + "filename": "menu-button.js", + "lineno": 120, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Focus - Add keyboard functionality to element\nThis function is not needed anymore. Instead, the \nkeyboard functionality is handled by\ntreating the button as triggering a submenu. \nWhen the button is pressed, the submenu\nappears. Pressing the button again makes \nthe submenu disappear.</p>", + "kind": "function", + "name": "handleFocus", + "longname": "handleFocus", + "scope": "global" + }, + { + "comment": "/**\n* Can't turn off list display that we turned\n* on with focus, because list would go away.\n*\n* @method handleBlur\n*/", + "meta": { + "range": [ + 1229, + 1348 + ], + "filename": "menu-button.js", + "lineno": 133, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Can't turn off list display that we turned\non with focus, because list would go away.</p>", + "kind": "function", + "name": "handleBlur", + "longname": "handleBlur", + "scope": "global" + }, + { + "comment": "/**\n* When you click the button it adds focus, which \n* will show the menu indefinitely.\n* So we'll remove focus when the mouse leaves the button.\n* Focus is needed for tab navigation.\n* Allow sub components to stack CSS class names\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 1355, + 1614 + ], + "filename": "menu-button.js", + "lineno": 141, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>When you click the button it adds focus, which \nwill show the menu indefinitely.\nSo we'll remove focus when the mouse leaves the button.\nFocus is needed for tab navigation.\nAllow sub components to stack CSS class names</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Handle key press on menu\n*\n* @param {Object} Key press event\n* @method handleKeyPress\n*/", + "meta": { + "range": [ + 1651, + 1745 + ], + "filename": "menu-button.js", + "lineno": 162, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Handle key press on menu</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>press event</p>", + "name": "Key" + } + ], + "kind": "function", + "name": "handleKeyPress", + "longname": "handleKeyPress", + "scope": "global" + }, + { + "comment": "/**\n* Makes changes based on button pressed\n*\n* @method pressButton\n*/", + "meta": { + "range": [ + 1803, + 1873 + ], + "filename": "menu-button.js", + "lineno": 187, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Makes changes based on button pressed</p>", + "kind": "function", + "name": "pressButton", + "longname": "pressButton", + "scope": "global" + }, + { + "comment": "/**\n* Makes changes based on button unpressed\n*\n* @method unpressButton\n*/", + "meta": { + "range": [ + 1901, + 1975 + ], + "filename": "menu-button.js", + "lineno": 201, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Makes changes based on button unpressed</p>", + "kind": "function", + "name": "unpressButton", + "longname": "unpressButton", + "scope": "global" + }, + { + "comment": "/**\n* @file menu-item.js\n*/", + "meta": { + "range": [ + 0, + 27 + ], + "filename": "menu-item.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "name": "menu/menu-item.js", + "kind": "file", + "description": "<p>menu-item.js</p>", + "preserveName": true, + "longname": "menu/menu-item.js", + "scope": "global" + }, + { + "comment": "/**\n* The component for a menu item. `<li>`\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class MenuItem\n*/", + "meta": { + "range": [ + 40, + 183 + ], + "filename": "menu-item.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>The component for a menu item. <code><li></code></p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "MenuItem", + "longname": "MenuItem", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @param {String=} type Desc\n* @param {Object=} props Desc \n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 205, + 349 + ], + "filename": "menu-item.js", + "lineno": 23, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Desc</p>", + "name": "type" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Desc</p>", + "name": "props" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Handle a click on the menu item, and set it to selected\n*\n* @method handleClick\n*/", + "meta": { + "range": [ + 371, + 459 + ], + "filename": "menu-item.js", + "lineno": 38, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Handle a click on the menu item, and set it to selected</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Set this menu item as selected or not\n*\n* @param {Boolean} selected\n* @method selected\n*/", + "meta": { + "range": [ + 472, + 568 + ], + "filename": "menu-item.js", + "lineno": 47, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Set this menu item as selected or not</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "name": "selected" + } + ], + "kind": "function", + "name": "selected", + "longname": "selected", + "scope": "global" + }, + { + "comment": "/**\n* @file menu.js\n*/", + "meta": { + "range": [ + 0, + 22 + ], + "filename": "menu.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "name": "menu/menu.js", + "kind": "file", + "description": "<p>menu.js</p>", + "preserveName": true, + "longname": "menu/menu.js", + "scope": "global" + }, + { + "comment": "/**\n* The Menu component is used to build pop up menus, including subtitle and\n* captions selection menus.\n*\n* @extends Component\n* @class Menu\n*/", + "meta": { + "range": [ + 38, + 184 + ], + "filename": "menu.js", + "lineno": 9, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>The Menu component is used to build pop up menus, including subtitle and\ncaptions selection menus.</p>", + "augments": [ + "Component" + ], + "kind": "class", + "name": "Menu", + "longname": "Menu", + "scope": "global" + }, + { + "comment": "/**\n* Add a menu item to the menu\n*\n* @param {Object|String} component Component or component type to add\n* @method addItem\n*/", + "meta": { + "range": [ + 191, + 317 + ], + "filename": "menu.js", + "lineno": 18, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Add a menu item to the menu</p>", + "params": [ + { + "type": { + "names": [ + "Object", + "String" + ] + }, + "description": "<p>Component or component type to add</p>", + "name": "component" + } + ], + "kind": "function", + "name": "addItem", + "longname": "addItem", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 339, + 423 + ], + "filename": "menu.js", + "lineno": 31, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* @file player.js\n*/", + "meta": { + "range": [ + 0, + 24 + ], + "filename": "player.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "player.js", + "kind": "file", + "description": "<p>player.js</p>", + "preserveName": true, + "longname": "player.js", + "scope": "global" + }, + { + "comment": "/**\n* An instance of the `Player` class is created when any of the Video.js setup methods are used to initialize a video.\n* ```js\n* var myPlayer = videojs('example_video_1');\n* ```\n* In the following example, the `data-setup` attribute tells the Video.js library to create a player instance when the library is ready.\n* ```html\n* <video id=\"example_video_1\" data-setup='{}' controls>\n* <source src=\"my-source.mp4\" type=\"video/mp4\">\n* </video>\n* ```\n* After an instance has been created it can be accessed globally using `Video('example_video_1')`.\n*\n* @param {Element} tag The original video tag used for configuring options\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class Player\n*/", + "meta": { + "range": [ + 127, + 918 + ], + "filename": "player.js", + "lineno": 38, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>An instance of the <code>Player</code> class is created when any of the Video.js setup methods are used to initialize a video.</p>\n<pre class=\"prettyprint source lang-js\"><code>var myPlayer = videojs('example_video_1');</code></pre><p>In the following example, the <code>data-setup</code> attribute tells the Video.js library to create a player instance when the library is ready.</p>\n<pre class=\"prettyprint source lang-html\"><code><video id="example_video_1" data-setup='{}' controls>\n <source src="my-source.mp4" type="video/mp4">\n</video></code></pre><p>After an instance has been created it can be accessed globally using <code>Video('example_video_1')</code>.</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>The original video tag used for configuring options</p>", + "name": "tag" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "Player", + "longname": "Player", + "scope": "global" + }, + { + "comment": "/**\n* player's constructor function\n*\n* @constructs\n* @method init\n* @param {Element} tag The original video tag used for configuring options\n* @param {Object=} options Player options\n* @param {Function=} ready Ready callback function\n*/", + "meta": { + "range": [ + 925, + 1175 + ], + "filename": "player.js", + "lineno": 59, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>player's constructor function</p>", + "alias": "{@thisClass}", + "kind": "function", + "name": "init", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>The original video tag used for configuring options</p>", + "name": "tag" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Player options</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "longname": "init", + "scope": "global" + }, + { + "comment": "/**\n* Destroys the video player and does any necessary cleanup\n* ```js\n* myPlayer.dispose();\n* ```\n* This is especially helpful if you are dynamically adding and removing videos\n* to/from the DOM.\n*\n* @method dispose\n*/", + "meta": { + "range": [ + 1679, + 1902 + ], + "filename": "player.js", + "lineno": 205, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Destroys the video player and does any necessary cleanup</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.dispose();</code></pre><p>This is especially helpful if you are dynamically adding and removing videos\nto/from the DOM.</p>", + "kind": "function", + "name": "dispose", + "longname": "dispose", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 1948, + 2032 + ], + "filename": "player.js", + "lineno": 230, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Get/set player width\n*\n* @param {Number=} value Value for width\n* @return {Number} Width when getting\n* @method width\n*/", + "meta": { + "range": [ + 2213, + 2339 + ], + "filename": "player.js", + "lineno": 296, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get/set player width</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "optional": true, + "description": "<p>Value for width</p>", + "name": "value" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Width when getting</p>" + } + ], + "kind": "function", + "name": "width", + "longname": "width", + "scope": "global" + }, + { + "comment": "/**\n* Get/set player height\n*\n* @param {Number=} value Value for height\n* @return {Number} Height when getting\n* @method height\n*/", + "meta": { + "range": [ + 2352, + 2482 + ], + "filename": "player.js", + "lineno": 307, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get/set player height</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "optional": true, + "description": "<p>Value for height</p>", + "name": "value" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Height when getting</p>" + } + ], + "kind": "function", + "name": "height", + "longname": "height", + "scope": "global" + }, + { + "comment": "/**\n* Get/set dimension for player\n*\n* @param {String} dimension Either width or height\n* @param {Number=} value Value for dimension\n* @return {Component}\n* @method dimension\n*/", + "meta": { + "range": [ + 2495, + 2672 + ], + "filename": "player.js", + "lineno": 318, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get/set dimension for player</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Either width or height</p>", + "name": "dimension" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "optional": true, + "description": "<p>Value for dimension</p>", + "name": "value" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + } + } + ], + "kind": "function", + "name": "dimension", + "longname": "dimension", + "scope": "global" + }, + { + "comment": "/**\n* Add/remove the vjs-fluid class\n*\n* @param {Boolean} bool Value of true adds the class, value of false removes the class \n* @method fluid\n*/", + "meta": { + "range": [ + 2748, + 2893 + ], + "filename": "player.js", + "lineno": 351, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add/remove the vjs-fluid class</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Value of true adds the class, value of false removes the class</p>", + "name": "bool" + } + ], + "kind": "function", + "name": "fluid", + "longname": "fluid", + "scope": "global" + }, + { + "comment": "/**\n* Get/Set the aspect ratio\n*\n* @param {String=} ratio Aspect ratio for player\n* @return aspectRatio\n* @method aspectRatio\n*/", + "meta": { + "range": [ + 2936, + 3064 + ], + "filename": "player.js", + "lineno": 371, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get/Set the aspect ratio</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Aspect ratio for player</p>", + "name": "ratio" + } + ], + "returns": [ + { + "description": "<p>aspectRatio</p>" + } + ], + "kind": "function", + "name": "aspectRatio", + "longname": "aspectRatio", + "scope": "global" + }, + { + "comment": "/**\n* Update styles of the player element (height, width and aspect ratio)\n*\n* @method updateStyleEl_\n*/", + "meta": { + "range": [ + 3119, + 3223 + ], + "filename": "player.js", + "lineno": 396, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Update styles of the player element (height, width and aspect ratio)</p>", + "kind": "function", + "name": "updateStyleEl_", + "longname": "updateStyleEl_", + "scope": "global" + }, + { + "comment": "/**\n* Load the Media Playback Technology (tech)\n* Load/Create an instance of playback technology including element and API methods\n* And append playback element in player div.\n*\n* @param {String} techName Name of the playback technology\n* @param {String} source Video source\n* @method loadTech\n*/", + "meta": { + "range": [ + 3398, + 3694 + ], + "filename": "player.js", + "lineno": 459, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Load the Media Playback Technology (tech)\nLoad/Create an instance of playback technology including element and API methods\nAnd append playback element in player div.</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Name of the playback technology</p>", + "name": "techName" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Video source</p>", + "name": "source" + } + ], + "kind": "function", + "name": "loadTech", + "longname": "loadTech", + "scope": "global" + }, + { + "comment": "/**\n* Unload playback technology\n*\n* @method unloadTech\n*/", + "meta": { + "range": [ + 4001, + 4059 + ], + "filename": "player.js", + "lineno": 570, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Unload playback technology</p>", + "kind": "function", + "name": "unloadTech", + "longname": "unloadTech", + "scope": "global" + }, + { + "comment": "/**\n* Add playback technology listeners\n*\n* @method addTechControlsListeners\n*/", + "meta": { + "range": [ + 4093, + 4172 + ], + "filename": "player.js", + "lineno": 586, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add playback technology listeners</p>", + "kind": "function", + "name": "addTechControlsListeners", + "longname": "addTechControlsListeners", + "scope": "global" + }, + { + "comment": "/**\n* Remove the listeners used for click and tap controls. This is needed for\n* toggling to controls disabled, where a tap/touch should do nothing.\n*\n* @method removeTechControlsListeners\n*/", + "meta": { + "range": [ + 4230, + 4421 + ], + "filename": "player.js", + "lineno": 610, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Remove the listeners used for click and tap controls. This is needed for\ntoggling to controls disabled, where a tap/touch should do nothing.</p>", + "kind": "function", + "name": "removeTechControlsListeners", + "longname": "removeTechControlsListeners", + "scope": "global" + }, + { + "comment": "/**\n* Player waits for the tech to be ready\n*\n* @private\n* @method handleTechReady\n*/", + "meta": { + "range": [ + 4452, + 4537 + ], + "filename": "player.js", + "lineno": 626, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Player waits for the tech to be ready</p>", + "access": "private", + "kind": "function", + "name": "handleTechReady", + "longname": "handleTechReady", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the native controls are used\n*\n* @private\n* @method handleTechUseNativeControls\n*/", + "meta": { + "range": [ + 4577, + 4676 + ], + "filename": "player.js", + "lineno": 645, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the native controls are used</p>", + "access": "private", + "kind": "function", + "name": "handleTechUseNativeControls", + "longname": "handleTechUseNativeControls", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the user agent begins looking for media data\n*\n* @event loadstart\n*/", + "meta": { + "range": [ + 4689, + 4774 + ], + "filename": "player.js", + "lineno": 655, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the user agent begins looking for media data</p>", + "kind": "event", + "name": "loadstart", + "longname": "event:loadstart", + "scope": "global" + }, + { + "comment": "/**\n* Add/remove the vjs-has-started class\n*\n* @param {Boolean} hasStarted The value of true adds the class the value of false remove the class\n* @return {Boolean} Boolean value if has started\n* @method hasStarted\n*/", + "meta": { + "range": [ + 4838, + 5054 + ], + "filename": "player.js", + "lineno": 681, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add/remove the vjs-has-started class</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>The value of true adds the class the value of false remove the class</p>", + "name": "hasStarted" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Boolean value if has started</p>" + } + ], + "kind": "function", + "name": "hasStarted", + "longname": "hasStarted", + "scope": "global" + }, + { + "comment": "/**\n* Fired whenever the media begins or resumes playback\n*\n* @event play\n*/", + "meta": { + "range": [ + 5109, + 5185 + ], + "filename": "player.js", + "lineno": 706, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired whenever the media begins or resumes playback</p>", + "kind": "event", + "name": "play", + "longname": "event:play", + "scope": "global" + }, + { + "comment": "/**\n* Fired whenever the media begins waiting\n*\n* @event waiting\n*/", + "meta": { + "range": [ + 5222, + 5289 + ], + "filename": "player.js", + "lineno": 723, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired whenever the media begins waiting</p>", + "kind": "event", + "name": "waiting", + "longname": "event:waiting", + "scope": "global" + }, + { + "comment": "/**\n* A handler for events that signal that waiting has ended\n* which is not consistent between browsers. See #1351\n*\n* @event canplay\n*/", + "meta": { + "range": [ + 5305, + 5442 + ], + "filename": "player.js", + "lineno": 733, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>A handler for events that signal that waiting has ended\nwhich is not consistent between browsers. See #1351</p>", + "kind": "event", + "name": "canplay", + "longname": "event:canplay", + "scope": "global" + }, + { + "comment": "/**\n* A handler for events that signal that waiting has ended\n* which is not consistent between browsers. See #1351\n*\n* @event canplaythrough\n*/", + "meta": { + "range": [ + 5458, + 5602 + ], + "filename": "player.js", + "lineno": 744, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>A handler for events that signal that waiting has ended\nwhich is not consistent between browsers. See #1351</p>", + "kind": "event", + "name": "canplaythrough", + "longname": "event:canplaythrough", + "scope": "global" + }, + { + "comment": "/**\n* A handler for events that signal that waiting has ended\n* which is not consistent between browsers. See #1351\n*\n* @event playing\n*/", + "meta": { + "range": [ + 5618, + 5755 + ], + "filename": "player.js", + "lineno": 755, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>A handler for events that signal that waiting has ended\nwhich is not consistent between browsers. See #1351</p>", + "kind": "event", + "name": "playing", + "longname": "event:playing", + "scope": "global" + }, + { + "comment": "/**\n* Fired whenever the player is jumping to a new time\n*\n* @event seeking\n*/", + "meta": { + "range": [ + 5771, + 5849 + ], + "filename": "player.js", + "lineno": 766, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired whenever the player is jumping to a new time</p>", + "kind": "event", + "name": "seeking", + "longname": "event:seeking", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the player has finished jumping to a new time\n*\n* @event seeked\n*/", + "meta": { + "range": [ + 5865, + 5948 + ], + "filename": "player.js", + "lineno": 776, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the player has finished jumping to a new time</p>", + "kind": "event", + "name": "seeked", + "longname": "event:seeked", + "scope": "global" + }, + { + "comment": "/**\n* Fired the first time a video is played\n* Not part of the HLS spec, and we're not sure if this is the best\n* implementation yet, so use sparingly. If you don't have a reason to\n* prevent playback, use `myPlayer.one('play');` instead.\n*\n* @event firstplay\n*/", + "meta": { + "range": [ + 5964, + 6226 + ], + "filename": "player.js", + "lineno": 786, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired the first time a video is played\nNot part of the HLS spec, and we're not sure if this is the best\nimplementation yet, so use sparingly. If you don't have a reason to\nprevent playback, use <code>myPlayer.one('play');</code> instead.</p>", + "kind": "event", + "name": "firstplay", + "longname": "event:firstplay", + "scope": "global" + }, + { + "comment": "/**\n* Fired whenever the media has been paused\n*\n* @event pause\n*/", + "meta": { + "range": [ + 6260, + 6326 + ], + "filename": "player.js", + "lineno": 805, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired whenever the media has been paused</p>", + "kind": "event", + "name": "pause", + "longname": "event:pause", + "scope": "global" + }, + { + "comment": "/**\n* Fired while the user agent is downloading media data\n*\n* @event progress\n*/", + "meta": { + "range": [ + 6345, + 6426 + ], + "filename": "player.js", + "lineno": 816, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired while the user agent is downloading media data</p>", + "kind": "event", + "name": "progress", + "longname": "event:progress", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the end of the media resource is reached (currentTime == duration)\n*\n* @event ended\n*/", + "meta": { + "range": [ + 6454, + 6557 + ], + "filename": "player.js", + "lineno": 830, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the end of the media resource is reached (currentTime == duration)</p>", + "kind": "event", + "name": "ended", + "longname": "event:ended", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the duration of the media resource is first known or changed\n*\n* @event durationchange\n*/", + "meta": { + "range": [ + 6594, + 6700 + ], + "filename": "player.js", + "lineno": 847, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the duration of the media resource is first known or changed</p>", + "kind": "event", + "name": "durationchange", + "longname": "event:durationchange", + "scope": "global" + }, + { + "comment": "/**\n* Handle a click on the media element to play/pause\n*\n* @param {Object=} event Event object \n* @method handleTechClick\n*/", + "meta": { + "range": [ + 6716, + 6841 + ], + "filename": "player.js", + "lineno": 857, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle a click on the media element to play/pause</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "handleTechClick", + "longname": "handleTechClick", + "scope": "global" + }, + { + "comment": "/**\n* Handle a tap on the media element. It will toggle the user\n* activity state, which hides and shows the controls.\n*\n* @method handleTechTap\n*/", + "meta": { + "range": [ + 6890, + 7037 + ], + "filename": "player.js", + "lineno": 879, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle a tap on the media element. It will toggle the user\nactivity state, which hides and shows the controls.</p>", + "kind": "function", + "name": "handleTechTap", + "longname": "handleTechTap", + "scope": "global" + }, + { + "comment": "/**\n* Handle touch to start\n*\n* @method handleTechTouchStart\n*/", + "meta": { + "range": [ + 7050, + 7113 + ], + "filename": "player.js", + "lineno": 889, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle touch to start</p>", + "kind": "function", + "name": "handleTechTouchStart", + "longname": "handleTechTouchStart", + "scope": "global" + }, + { + "comment": "/**\n* Handle touch to move\n*\n* @method handleTechTouchMove\n*/", + "meta": { + "range": [ + 7126, + 7187 + ], + "filename": "player.js", + "lineno": 898, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle touch to move</p>", + "kind": "function", + "name": "handleTechTouchMove", + "longname": "handleTechTouchMove", + "scope": "global" + }, + { + "comment": "/**\n* Handle touch to end\n*\n* @method handleTechTouchEnd\n*/", + "meta": { + "range": [ + 7206, + 7265 + ], + "filename": "player.js", + "lineno": 909, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle touch to end</p>", + "kind": "function", + "name": "handleTechTouchEnd", + "longname": "handleTechTouchEnd", + "scope": "global" + }, + { + "comment": "/**\n* Update the duration of the player using the tech\n*\n* @private\n* @method updateDuration\n*/", + "meta": { + "range": [ + 7281, + 7376 + ], + "filename": "player.js", + "lineno": 919, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Update the duration of the player using the tech</p>", + "access": "private", + "kind": "function", + "name": "updateDuration", + "longname": "updateDuration", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the player switches in or out of fullscreen mode\n*\n* @event fullscreenchange\n*/", + "meta": { + "range": [ + 7434, + 7530 + ], + "filename": "player.js", + "lineno": 944, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the player switches in or out of fullscreen mode</p>", + "kind": "event", + "name": "fullscreenchange", + "longname": "event:fullscreenchange", + "scope": "global" + }, + { + "comment": "/**\n* native click events on the SWF aren't triggered on IE11, Win8.1RT\n* use stageclick events triggered from inside the SWF instead\n*\n* @private\n* @method handleStageClick\n*/", + "meta": { + "range": [ + 7555, + 7731 + ], + "filename": "player.js", + "lineno": 957, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>native click events on the SWF aren't triggered on IE11, Win8.1RT\nuse stageclick events triggered from inside the SWF instead</p>", + "access": "private", + "kind": "function", + "name": "handleStageClick", + "longname": "handleStageClick", + "scope": "global" + }, + { + "comment": "/**\n* Handle Tech Fullscreen Change\n*\n* @method handleTechFullscreenChange\n*/", + "meta": { + "range": [ + 7744, + 7821 + ], + "filename": "player.js", + "lineno": 968, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle Tech Fullscreen Change</p>", + "kind": "function", + "name": "handleTechFullscreenChange", + "longname": "handleTechFullscreenChange", + "scope": "global" + }, + { + "comment": "/**\n* Fires when an error occurred during the loading of an audio/video\n*\n* @event error\n*/", + "meta": { + "range": [ + 7834, + 7925 + ], + "filename": "player.js", + "lineno": 977, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when an error occurred during the loading of an audio/video</p>", + "kind": "event", + "name": "error", + "longname": "event:error", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the browser is intentionally not getting media data\n*\n* @event suspend\n*/", + "meta": { + "range": [ + 7938, + 8028 + ], + "filename": "player.js", + "lineno": 986, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the browser is intentionally not getting media data</p>", + "kind": "event", + "name": "suspend", + "longname": "event:suspend", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the loading of an audio/video is aborted\n*\n* @event abort\n*/", + "meta": { + "range": [ + 8041, + 8118 + ], + "filename": "player.js", + "lineno": 995, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the loading of an audio/video is aborted</p>", + "kind": "event", + "name": "abort", + "longname": "event:abort", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the current playlist is empty\n*\n* @event emptied\n*/", + "meta": { + "range": [ + 8131, + 8199 + ], + "filename": "player.js", + "lineno": 1004, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the current playlist is empty</p>", + "kind": "event", + "name": "emptied", + "longname": "event:emptied", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the browser is trying to get media data, but data is not available\n*\n* @event stalled\n*/", + "meta": { + "range": [ + 8212, + 8317 + ], + "filename": "player.js", + "lineno": 1013, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the browser is trying to get media data, but data is not available</p>", + "kind": "event", + "name": "stalled", + "longname": "event:stalled", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the browser has loaded meta data for the audio/video\n*\n* @event loadedmetadata\n*/", + "meta": { + "range": [ + 8330, + 8428 + ], + "filename": "player.js", + "lineno": 1022, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the browser has loaded meta data for the audio/video</p>", + "kind": "event", + "name": "loadedmetadata", + "longname": "event:loadedmetadata", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the browser has loaded the current frame of the audio/video\n*\n* @event loaddata\n*/", + "meta": { + "range": [ + 8441, + 8540 + ], + "filename": "player.js", + "lineno": 1031, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the browser has loaded the current frame of the audio/video</p>", + "kind": "event", + "name": "loaddata", + "longname": "event:loaddata", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the current playback position has changed\n*\n* @event timeupdate\n*/", + "meta": { + "range": [ + 8553, + 8636 + ], + "filename": "player.js", + "lineno": 1040, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the current playback position has changed</p>", + "kind": "event", + "name": "timeupdate", + "longname": "event:timeupdate", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the playing speed of the audio/video is changed\n*\n* @event ratechange\n*/", + "meta": { + "range": [ + 8649, + 8738 + ], + "filename": "player.js", + "lineno": 1049, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the playing speed of the audio/video is changed</p>", + "kind": "event", + "name": "ratechange", + "longname": "event:ratechange", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the volume has been changed\n*\n* @event volumechange\n*/", + "meta": { + "range": [ + 8751, + 8822 + ], + "filename": "player.js", + "lineno": 1058, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the volume has been changed</p>", + "kind": "event", + "name": "volumechange", + "longname": "event:volumechange", + "scope": "global" + }, + { + "comment": "/**\n* Fires when the text track has been changed\n*\n* @event texttrackchange\n*/", + "meta": { + "range": [ + 8835, + 8913 + ], + "filename": "player.js", + "lineno": 1067, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fires when the text track has been changed</p>", + "kind": "event", + "name": "texttrackchange", + "longname": "event:texttrackchange", + "scope": "global" + }, + { + "comment": "/**\n* Get object for cached values.\n*\n* @return {Object} \n* @method getCache\n*/", + "meta": { + "range": [ + 8926, + 9005 + ], + "filename": "player.js", + "lineno": 1076, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get object for cached values.</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "kind": "function", + "name": "getCache", + "longname": "getCache", + "scope": "global" + }, + { + "comment": "/**\n* Pass values to the playback tech\n*\n* @param {String=} method Method \n* @param {Object=} arg Argument \n* @method techCall\n*/", + "meta": { + "range": [ + 9018, + 9147 + ], + "filename": "player.js", + "lineno": 1086, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Pass values to the playback tech</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Method</p>", + "name": "method" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Argument</p>", + "name": "arg" + } + ], + "kind": "function", + "name": "techCall", + "longname": "techCall", + "scope": "global" + }, + { + "comment": "/**\n* Get calls can't wait for the tech, and sometimes don't need to.\n*\n* @param {String} method Tech method\n* @return {Method}\n* @method techGet\n*/", + "meta": { + "range": [ + 9202, + 9350 + ], + "filename": "player.js", + "lineno": 1111, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get calls can't wait for the tech, and sometimes don't need to.</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Tech method</p>", + "name": "method" + } + ], + "returns": [ + { + "type": { + "names": [ + "Method" + ] + } + } + ], + "kind": "function", + "name": "techGet", + "longname": "techGet", + "scope": "global" + }, + { + "comment": "/**\n* start media playback\n* ```js\n* myPlayer.play();\n* ```\n*\n* @return {Player} self\n* @method play\n*/", + "meta": { + "range": [ + 9435, + 9542 + ], + "filename": "player.js", + "lineno": 1146, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>start media playback</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.play();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self</p>" + } + ], + "kind": "function", + "name": "play", + "longname": "play", + "scope": "global" + }, + { + "comment": "/**\n* Pause the video playback\n* ```js\n* myPlayer.pause();\n* ```\n*\n* @return {Player} self\n* @method pause\n*/", + "meta": { + "range": [ + 9558, + 9671 + ], + "filename": "player.js", + "lineno": 1160, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Pause the video playback</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.pause();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self</p>" + } + ], + "kind": "function", + "name": "pause", + "longname": "pause", + "scope": "global" + }, + { + "comment": "/**\n* Check if the player is paused\n* ```js\n* var isPaused = myPlayer.paused();\n* var isPlaying = !myPlayer.paused();\n* ```\n*\n* @return {Boolean} false if the media is currently playing, or true otherwise\n* @method paused\n*/", + "meta": { + "range": [ + 9687, + 9919 + ], + "filename": "player.js", + "lineno": 1174, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Check if the player is paused</p>\n<pre class=\"prettyprint source lang-js\"><code> var isPaused = myPlayer.paused();\n var isPlaying = !myPlayer.paused();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>false if the media is currently playing, or true otherwise</p>" + } + ], + "kind": "function", + "name": "paused", + "longname": "paused", + "scope": "global" + }, + { + "comment": "/**\n* Returns whether or not the user is \"scrubbing\". Scrubbing is when the user\n* has clicked the progress bar handle and is dragging it along the progress bar.\n*\n* @param {Boolean} isScrubbing True/false the user is scrubbing\n* @return {Boolean} The scrubbing status when getting\n* @return {Object} The player when setting\n* @method scrubbing\n*/", + "meta": { + "range": [ + 9935, + 10314 + ], + "filename": "player.js", + "lineno": 1189, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns whether or not the user is "scrubbing". Scrubbing is when the user\nhas clicked the progress bar handle and is dragging it along the progress bar.</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True/false the user is scrubbing</p>", + "name": "isScrubbing" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>The scrubbing status when getting</p>" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The player when setting</p>" + } + ], + "kind": "function", + "name": "scrubbing", + "longname": "scrubbing", + "scope": "global" + }, + { + "comment": "/**\n* Get or set the current time (in seconds)\n* ```js\n* // get\n* var whereYouAt = myPlayer.currentTime();\n* // set\n* myPlayer.currentTime(120); // 2 minutes into the video\n* ```\n*\n* @param {Number|String=} seconds The time to seek to\n* @return {Number} The time in seconds, when not setting\n* @return {Player} self, when the current time is set\n* @method currentTime\n*/", + "meta": { + "range": [ + 10363, + 10760 + ], + "filename": "player.js", + "lineno": 1214, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set the current time (in seconds)</p>\n<pre class=\"prettyprint source lang-js\"><code> // get\n var whereYouAt = myPlayer.currentTime();\n // set\n myPlayer.currentTime(120); // 2 minutes into the video</code></pre>", + "params": [ + { + "type": { + "names": [ + "Number", + "String" + ] + }, + "description": "<p>The time to seek to</p>", + "name": "seconds" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The time in seconds, when not setting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self, when the current time is set</p>" + } + ], + "kind": "function", + "name": "currentTime", + "longname": "currentTime", + "scope": "global" + }, + { + "comment": "/**\n* Get the length in time of the video in seconds\n* ```js\n* var lengthOfVideo = myPlayer.duration();\n* ```\n* **NOTE**: The video must have started loading before the duration can be\n* known, and in the case of Flash, may not be known until the video starts\n* playing.\n*\n* @param {Number} seconds Duration when setting\n* @return {Number} The duration of the video in seconds when getting\n* @method duration\n*/", + "meta": { + "range": [ + 10812, + 11227 + ], + "filename": "player.js", + "lineno": 1245, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the length in time of the video in seconds</p>\n<pre class=\"prettyprint source lang-js\"><code> var lengthOfVideo = myPlayer.duration();</code></pre><p><strong>NOTE</strong>: The video must have started loading before the duration can be\nknown, and in the case of Flash, may not be known until the video starts\nplaying.</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Duration when setting</p>", + "name": "seconds" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The duration of the video in seconds when getting</p>" + } + ], + "kind": "function", + "name": "duration", + "longname": "duration", + "scope": "global" + }, + { + "comment": "/**\n* Calculates how much time is left.\n* ```js\n* var timeLeft = myPlayer.remainingTime();\n* ```\n* Not a native video element function, but useful\n*\n* @return {Number} The time remaining in seconds\n* @method remainingTime\n*/", + "meta": { + "range": [ + 11276, + 11504 + ], + "filename": "player.js", + "lineno": 1274, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Calculates how much time is left.</p>\n<pre class=\"prettyprint source lang-js\"><code> var timeLeft = myPlayer.remainingTime();</code></pre><p>Not a native video element function, but useful</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The time remaining in seconds</p>" + } + ], + "kind": "function", + "name": "remainingTime", + "longname": "remainingTime", + "scope": "global" + }, + { + "comment": "/**\n* Get a TimeRange object with the times of the video that have been downloaded\n*\n* If you just want the percent of the video that's been downloaded,\n* use bufferedPercent.\n* ```js\n* // Number of different ranges of time have been buffered. Usually 1.\n* numberOfRanges = bufferedTimeRange.length,\n* // Time in seconds when the first range starts. Usually 0.\n* firstRangeStart = bufferedTimeRange.start(0),\n* // Time in seconds when the first range ends\n* firstRangeEnd = bufferedTimeRange.end(0),\n* // Length in seconds of the first time range\n* firstRangeLength = firstRangeEnd - firstRangeStart;\n* ```\n*\n* @return {Object} A mock TimeRange object (following HTML spec)\n* @method buffered\n*/", + "meta": { + "range": [ + 11529, + 12256 + ], + "filename": "player.js", + "lineno": 1292, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get a TimeRange object with the times of the video that have been downloaded</p>\n<p>If you just want the percent of the video that's been downloaded,\nuse bufferedPercent.</p>\n<pre class=\"prettyprint source lang-js\"><code> // Number of different ranges of time have been buffered. Usually 1.\n numberOfRanges = bufferedTimeRange.length,\n // Time in seconds when the first range starts. Usually 0.\n firstRangeStart = bufferedTimeRange.start(0),\n // Time in seconds when the first range ends\n firstRangeEnd = bufferedTimeRange.end(0),\n // Length in seconds of the first time range\n firstRangeLength = firstRangeEnd - firstRangeStart;</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>A mock TimeRange object (following HTML spec)</p>" + } + ], + "kind": "function", + "name": "buffered", + "longname": "buffered", + "scope": "global" + }, + { + "comment": "/**\n* Get the percent (as a decimal) of the video that's been downloaded\n* ```js\n* var howMuchIsDownloaded = myPlayer.bufferedPercent();\n* ```\n* 0 means none, 1 means all.\n* (This method isn't in the HTML5 spec, but it's very convenient)\n*\n* @return {Number} A decimal between 0 and 1 representing the percent\n* @method bufferedPercent\n*/", + "meta": { + "range": [ + 12287, + 12629 + ], + "filename": "player.js", + "lineno": 1321, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the percent (as a decimal) of the video that's been downloaded</p>\n<pre class=\"prettyprint source lang-js\"><code> var howMuchIsDownloaded = myPlayer.bufferedPercent();</code></pre><p>0 means none, 1 means all.\n(This method isn't in the HTML5 spec, but it's very convenient)</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>A decimal between 0 and 1 representing the percent</p>" + } + ], + "kind": "function", + "name": "bufferedPercent", + "longname": "bufferedPercent", + "scope": "global" + }, + { + "comment": "/**\n* Get the ending time of the last buffered time range\n* This is used in the progress bar to encapsulate all time ranges.\n*\n* @return {Number} The end of the last buffered time range\n* @method bufferedEnd\n*/", + "meta": { + "range": [ + 12642, + 12852 + ], + "filename": "player.js", + "lineno": 1336, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the ending time of the last buffered time range\nThis is used in the progress bar to encapsulate all time ranges.</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The end of the last buffered time range</p>" + } + ], + "kind": "function", + "name": "bufferedEnd", + "longname": "bufferedEnd", + "scope": "global" + }, + { + "comment": "/**\n* Get or set the current volume of the media\n* ```js\n* // get\n* var howLoudIsIt = myPlayer.volume();\n* // set\n* myPlayer.volume(0.5); // Set volume to half\n* ```\n* 0 is off (muted), 1.0 is all the way up, 0.5 is half way.\n*\n* @param {Number} percentAsDecimal The new volume as a decimal percent\n* @return {Number} The current volume when getting\n* @return {Player} self when setting\n* @method volume\n*/", + "meta": { + "range": [ + 12889, + 13338 + ], + "filename": "player.js", + "lineno": 1355, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set the current volume of the media</p>\n<pre class=\"prettyprint source lang-js\"><code> // get\n var howLoudIsIt = myPlayer.volume();\n // set\n myPlayer.volume(0.5); // Set volume to half</code></pre><p>0 is off (muted), 1.0 is all the way up, 0.5 is half way.</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The new volume as a decimal percent</p>", + "name": "percentAsDecimal" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>The current volume when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self when setting</p>" + } + ], + "kind": "function", + "name": "volume", + "longname": "volume", + "scope": "global" + }, + { + "comment": "/**\n* Get the current muted state, or turn mute on or off\n* ```js\n* // get\n* var isVolumeMuted = myPlayer.muted();\n* // set\n* myPlayer.muted(true); // mute the volume\n* ```\n*\n* @param {Boolean=} muted True to mute, false to unmute\n* @return {Boolean} True if mute is on, false if not when getting\n* @return {Player} self when setting mute\n* @method muted\n*/", + "meta": { + "range": [ + 13390, + 13764 + ], + "filename": "player.js", + "lineno": 1387, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the current muted state, or turn mute on or off</p>\n<pre class=\"prettyprint source lang-js\"><code> // get\n var isVolumeMuted = myPlayer.muted();\n // set\n myPlayer.muted(true); // mute the volume</code></pre>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "optional": true, + "description": "<p>True to mute, false to unmute</p>", + "name": "muted" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True if mute is on, false if not when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self when setting mute</p>" + } + ], + "kind": "function", + "name": "muted", + "longname": "muted", + "scope": "global" + }, + { + "comment": "/**\n* Check to see if fullscreen is supported\n*\n* @return {Boolean} \n* @method supportsFullScreen\n*/", + "meta": { + "range": [ + 13795, + 13895 + ], + "filename": "player.js", + "lineno": 1411, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Check to see if fullscreen is supported</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "supportsFullScreen", + "longname": "supportsFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Check if the player is in fullscreen mode\n* ```js\n* // get\n* var fullscreenOrNot = myPlayer.isFullscreen();\n* // set\n* myPlayer.isFullscreen(true); // tell the player it's in fullscreen\n* ```\n* NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official\n* property and instead document.fullscreenElement is used. But isFullscreen is\n* still a valuable property for internal player workings.\n*\n* @param {Boolean=} isFS Update the player's fullscreen state\n* @return {Boolean} true if fullscreen false if not when getting\n* @return {Player} self when setting\n* @method isFullscreen\n*/", + "meta": { + "range": [ + 13908, + 14526 + ], + "filename": "player.js", + "lineno": 1421, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Check if the player is in fullscreen mode</p>\n<pre class=\"prettyprint source lang-js\"><code> // get\n var fullscreenOrNot = myPlayer.isFullscreen();\n // set\n myPlayer.isFullscreen(true); // tell the player it's in fullscreen</code></pre><p>NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official\nproperty and instead document.fullscreenElement is used. But isFullscreen is\nstill a valuable property for internal player workings.</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "optional": true, + "description": "<p>Update the player's fullscreen state</p>", + "name": "isFS" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>true if fullscreen false if not when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self when setting</p>" + } + ], + "kind": "function", + "name": "isFullscreen", + "longname": "isFullscreen", + "scope": "global" + }, + { + "comment": "/**\n* Old naming for isFullscreen()\n*\n* @param {Boolean=} isFS Update the player's fullscreen state\n* @return {Boolean} true if fullscreen false if not when getting\n* @return {Player} self when setting\n* @deprecated\n* @method isFullScreen\n*/", + "meta": { + "range": [ + 14551, + 14793 + ], + "filename": "player.js", + "lineno": 1446, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Old naming for isFullscreen()</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "optional": true, + "description": "<p>Update the player's fullscreen state</p>", + "name": "isFS" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>true if fullscreen false if not when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self when setting</p>" + } + ], + "deprecated": true, + "kind": "function", + "name": "isFullScreen", + "longname": "isFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Increase the size of the video to full screen\n* ```js\n* myPlayer.requestFullscreen();\n* ```\n* In some browsers, full screen is not supported natively, so it enters\n* \"full window mode\", where the video fills the browser window.\n* In browsers and devices that support native full screen, sometimes the\n* browser's default controls will be shown, and not the Video.js custom skin.\n* This includes most mobile devices (iOS, Android) and older versions of\n* Safari.\n*\n* @return {Player} self\n* @method requestFullscreen\n*/", + "meta": { + "range": [ + 14809, + 15337 + ], + "filename": "player.js", + "lineno": 1460, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Increase the size of the video to full screen</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.requestFullscreen();</code></pre><p>In some browsers, full screen is not supported natively, so it enters\n"full window mode", where the video fills the browser window.\nIn browsers and devices that support native full screen, sometimes the\nbrowser's default controls will be shown, and not the Video.js custom skin.\nThis includes most mobile devices (iOS, Android) and older versions of\nSafari.</p>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self</p>" + } + ], + "kind": "function", + "name": "requestFullscreen", + "longname": "requestFullscreen", + "scope": "global" + }, + { + "comment": "/**\n* Old naming for requestFullscreen\n*\n* @return {Boolean} true if fullscreen false if not when getting\n* @deprecated\n* @method requestFullScreen\n*/", + "meta": { + "range": [ + 15461, + 15611 + ], + "filename": "player.js", + "lineno": 1516, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Old naming for requestFullscreen</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>true if fullscreen false if not when getting</p>" + } + ], + "deprecated": true, + "kind": "function", + "name": "requestFullScreen", + "longname": "requestFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Return the video to its normal size after having been in full screen mode\n* ```js\n* myPlayer.exitFullscreen();\n* ```\n*\n* @return {Player} self\n* @method exitFullscreen\n*/", + "meta": { + "range": [ + 15627, + 15807 + ], + "filename": "player.js", + "lineno": 1528, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Return the video to its normal size after having been in full screen mode</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.exitFullscreen();</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self</p>" + } + ], + "kind": "function", + "name": "exitFullscreen", + "longname": "exitFullscreen", + "scope": "global" + }, + { + "comment": "/**\n* Old naming for exitFullscreen\n*\n* @return {Player} self\n* @deprecated\n* @method cancelFullScreen\n*/", + "meta": { + "range": [ + 15859, + 15964 + ], + "filename": "player.js", + "lineno": 1554, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Old naming for exitFullscreen</p>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self</p>" + } + ], + "deprecated": true, + "kind": "function", + "name": "cancelFullScreen", + "longname": "cancelFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.\n*\n* @method enterFullWindow\n*/", + "meta": { + "range": [ + 15980, + 16122 + ], + "filename": "player.js", + "lineno": 1566, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.</p>", + "kind": "function", + "name": "enterFullWindow", + "longname": "enterFullWindow", + "scope": "global" + }, + { + "comment": "/**\n* Check for call to either exit full window or full screen on ESC key\n*\n* @param {String} event Event to check for key press\n* @method fullWindowOnEscKey\n*/", + "meta": { + "range": [ + 16177, + 16337 + ], + "filename": "player.js", + "lineno": 1589, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Check for call to either exit full window or full screen on ESC key</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Event to check for key press</p>", + "name": "event" + } + ], + "kind": "function", + "name": "fullWindowOnEscKey", + "longname": "fullWindowOnEscKey", + "scope": "global" + }, + { + "comment": "/**\n* Exit full window \n*\n* @method exitFullWindow\n*/", + "meta": { + "range": [ + 16368, + 16421 + ], + "filename": "player.js", + "lineno": 1605, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Exit full window</p>", + "kind": "function", + "name": "exitFullWindow", + "longname": "exitFullWindow", + "scope": "global" + }, + { + "comment": "/**\n* Select source based on tech order\n*\n* @param {Array} sources The sources for a media asset\n* @return {Object|Boolean} Object of source and tech order, otherwise false\n* @method selectSource\n*/", + "meta": { + "range": [ + 16467, + 16665 + ], + "filename": "player.js", + "lineno": 1625, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Select source based on tech order</p>", + "params": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>The sources for a media asset</p>", + "name": "sources" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object", + "Boolean" + ] + }, + "description": "<p>Object of source and tech order, otherwise false</p>" + } + ], + "kind": "function", + "name": "selectSource", + "longname": "selectSource", + "scope": "global" + }, + { + "comment": "/**\n* The source function updates the video source\n* There are three types of variables you can pass as the argument.\n* **URL String**: A URL to the the video file. Use this method if you are sure\n* the current playback technology (HTML5/Flash) can support the source you\n* provide. Currently only MP4 files can be used in both HTML5 and Flash.\n* ```js\n* myPlayer.src(\"http://www.example.com/path/to/video.mp4\");\n* ```\n* **Source Object (or element):** A javascript object containing information\n* about the source file. Use this method if you want the player to determine if\n* it can support the file using the type information.\n* ```js\n* myPlayer.src({ type: \"video/mp4\", src: \"http://www.example.com/path/to/video.mp4\" });\n* ```\n* **Array of Source Objects:** To provide multiple versions of the source so\n* that it can be played using HTML5 across browsers you can use an array of\n* source objects. Video.js will detect which version is supported and load that\n* file.\n* ```js\n* myPlayer.src([\n* { type: \"video/mp4\", src: \"http://www.example.com/path/to/video.mp4\" },\n* { type: \"video/webm\", src: \"http://www.example.com/path/to/video.webm\" },\n* { type: \"video/ogg\", src: \"http://www.example.com/path/to/video.ogv\" }\n* ]);\n* ```\n*\n* @param {String|Object|Array=} source The source URL, object, or array of sources\n* @return {String} The current video source when getting\n* @return {String} The player when setting\n* @method src\n*/", + "meta": { + "range": [ + 16753, + 18222 + ], + "filename": "player.js", + "lineno": 1661, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>The source function updates the video source\nThere are three types of variables you can pass as the argument.\n<strong>URL String</strong>: A URL to the the video file. Use this method if you are sure\nthe current playback technology (HTML5/Flash) can support the source you\nprovide. Currently only MP4 files can be used in both HTML5 and Flash.</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.src("http://www.example.com/path/to/video.mp4");</code></pre><p><strong>Source Object (or element):</strong> A javascript object containing information\nabout the source file. Use this method if you want the player to determine if\nit can support the file using the type information.</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.src({ type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" });</code></pre><p><strong>Array of Source Objects:</strong> To provide multiple versions of the source so\nthat it can be played using HTML5 across browsers you can use an array of\nsource objects. Video.js will detect which version is supported and load that\nfile.</p>\n<pre class=\"prettyprint source lang-js\"><code> myPlayer.src([\n { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" },\n { type: "video/webm", src: "http://www.example.com/path/to/video.webm" },\n { type: "video/ogg", src: "http://www.example.com/path/to/video.ogv" }\n ]);</code></pre>", + "params": [ + { + "type": { + "names": [ + "String", + "Object", + "Array" + ] + }, + "description": "<p>The source URL, object, or array of sources</p>", + "name": "source" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The current video source when getting</p>" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The player when setting</p>" + } + ], + "kind": "function", + "name": "src", + "longname": "src", + "scope": "global" + }, + { + "comment": "/**\n* Handle an array of source objects\n*\n* @param {Array} sources Array of source objects\n* @private\n* @method sourceList_\n*/", + "meta": { + "range": [ + 18388, + 18515 + ], + "filename": "player.js", + "lineno": 1748, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Handle an array of source objects</p>", + "params": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Array of source objects</p>", + "name": "sources" + } + ], + "access": "private", + "kind": "function", + "name": "sourceList_", + "longname": "sourceList_", + "scope": "global" + }, + { + "comment": "/**\n* Begin loading the src data.\n*\n* @return {Player} Returns the player\n* @method load\n*/", + "meta": { + "range": [ + 18585, + 18676 + ], + "filename": "player.js", + "lineno": 1778, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Begin loading the src data.</p>", + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>Returns the player</p>" + } + ], + "kind": "function", + "name": "load", + "longname": "load", + "scope": "global" + }, + { + "comment": "/**\n* Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4\n* Can be used in conjuction with `currentType` to assist in rebuilding the current source object.\n*\n* @return {String} The current source\n* @method currentSrc\n*/", + "meta": { + "range": [ + 18692, + 18952 + ], + "filename": "player.js", + "lineno": 1789, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4\nCan be used in conjuction with <code>currentType</code> to assist in rebuilding the current source object.</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The current source</p>" + } + ], + "kind": "function", + "name": "currentSrc", + "longname": "currentSrc", + "scope": "global" + }, + { + "comment": "/**\n* Get the current source type e.g. video/mp4\n* This can allow you rebuild the current source object so that you could load the same\n* source and tech later\n*\n* @return {String} The source MIME type\n* @method currentType\n*/", + "meta": { + "range": [ + 18965, + 19191 + ], + "filename": "player.js", + "lineno": 1800, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the current source type e.g. video/mp4\nThis can allow you rebuild the current source object so that you could load the same\nsource and tech later</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The source MIME type</p>" + } + ], + "kind": "function", + "name": "currentType", + "longname": "currentType", + "scope": "global" + }, + { + "comment": "/**\n* Get or set the preload attribute\n*\n* @param {Boolean} value Boolean to determine if preload should be used\n* @return {String} The preload attribute value when getting\n* @return {Player} Returns the player when setting\n* @method preload\n*/", + "meta": { + "range": [ + 19204, + 19448 + ], + "filename": "player.js", + "lineno": 1812, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set the preload attribute</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Boolean to determine if preload should be used</p>", + "name": "value" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The preload attribute value when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>Returns the player when setting</p>" + } + ], + "kind": "function", + "name": "preload", + "longname": "preload", + "scope": "global" + }, + { + "comment": "/**\n* Get or set the autoplay attribute.\n*\n* @param {Boolean} value Boolean to determine if preload should be used\n* @return {String} The autoplay attribute value when getting\n* @return {Player} Returns the player when setting\n* @method autoplay\n*/", + "meta": { + "range": [ + 19476, + 19724 + ], + "filename": "player.js", + "lineno": 1829, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set the autoplay attribute.</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Boolean to determine if preload should be used</p>", + "name": "value" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The autoplay attribute value when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>Returns the player when setting</p>" + } + ], + "kind": "function", + "name": "autoplay", + "longname": "autoplay", + "scope": "global" + }, + { + "comment": "/**\n* Get or set the loop attribute on the video element.\n*\n* @param {Boolean} value Boolean to determine if preload should be used\n* @return {String} The loop attribute value when getting\n* @return {Player} Returns the player when setting\n* @method loop\n*/", + "meta": { + "range": [ + 19752, + 20009 + ], + "filename": "player.js", + "lineno": 1846, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set the loop attribute on the video element.</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Boolean to determine if preload should be used</p>", + "name": "value" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The loop attribute value when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>Returns the player when setting</p>" + } + ], + "kind": "function", + "name": "loop", + "longname": "loop", + "scope": "global" + }, + { + "comment": "/**\n* get or set the poster image source url\n* ##### EXAMPLE:\n* ```js\n* // get\n* var currentPoster = myPlayer.poster();\n* // set\n* myPlayer.poster('http://example.com/myImage.jpg');\n* ```\n*\n* @param {String=} src Poster image source URL\n* @return {String} poster URL when getting\n* @return {Player} self when setting\n* @method poster\n*/", + "meta": { + "range": [ + 20037, + 20390 + ], + "filename": "player.js", + "lineno": 1863, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>get or set the poster image source url</p>\n<h5>EXAMPLE:</h5><pre class=\"prettyprint source lang-js\"><code> // get\n var currentPoster = myPlayer.poster();\n // set\n myPlayer.poster('http://example.com/myImage.jpg');</code></pre>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Poster image source URL</p>", + "name": "src" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>poster URL when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self when setting</p>" + } + ], + "kind": "function", + "name": "poster", + "longname": "poster", + "scope": "global" + }, + { + "comment": "/**\n* Get or set whether or not the controls are showing.\n*\n* @param {Boolean} bool Set controls to showing or not\n* @return {Boolean} Controls are showing\n* @method controls\n*/", + "meta": { + "range": [ + 20460, + 20641 + ], + "filename": "player.js", + "lineno": 1901, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get or set whether or not the controls are showing.</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Set controls to showing or not</p>", + "name": "bool" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Controls are showing</p>" + } + ], + "kind": "function", + "name": "controls", + "longname": "controls", + "scope": "global" + }, + { + "comment": "/**\n* Toggle native controls on/off. Native controls are the controls built into\n* devices (e.g. default iPhone controls), Flash, or other techs\n* (e.g. Vimeo Controls)\n* **This should only be set by the current tech, because only the tech knows\n* if it can support native controls**\n*\n* @param {Boolean} bool True signals that native controls are on\n* @return {Player} Returns the player\n* @private\n* @method usingNativeControls\n*/", + "meta": { + "range": [ + 20744, + 21185 + ], + "filename": "player.js", + "lineno": 1942, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Toggle native controls on/off. Native controls are the controls built into\ndevices (e.g. default iPhone controls), Flash, or other techs\n(e.g. Vimeo Controls)\n<strong>This should only be set by the current tech, because only the tech knows\nif it can support native controls</strong></p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True signals that native controls are on</p>", + "name": "bool" + } + ], + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>Returns the player</p>" + } + ], + "access": "private", + "kind": "function", + "name": "usingNativeControls", + "longname": "usingNativeControls", + "scope": "global" + }, + { + "comment": "/**\n* player is using the native device controls\n*\n* @event usingnativecontrols\n* @memberof Player\n* @instance\n* @private\n*/", + "meta": { + "range": [ + 21213, + 21337 + ], + "filename": "player.js", + "lineno": 1963, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>player is using the native device controls</p>", + "kind": "event", + "name": "usingnativecontrols", + "memberof": "Player", + "scope": "instance", + "access": "private", + "longname": "Player#event:usingnativecontrols" + }, + { + "comment": "/**\n* player is using the custom HTML controls\n*\n* @event usingcustomcontrols\n* @memberof Player\n* @instance\n* @private\n*/", + "meta": { + "range": [ + 21350, + 21472 + ], + "filename": "player.js", + "lineno": 1975, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>player is using the custom HTML controls</p>", + "kind": "event", + "name": "usingcustomcontrols", + "memberof": "Player", + "scope": "instance", + "access": "private", + "longname": "Player#event:usingcustomcontrols" + }, + { + "comment": "/**\n* Set or get the current MediaError\n*\n* @param {*} err A MediaError or a String/Number to be turned into a MediaError\n* @return {MediaError|null} when getting\n* @return {Player} when setting\n* @method error\n*/", + "meta": { + "range": [ + 21497, + 21728 + ], + "filename": "player.js", + "lineno": 1991, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Set or get the current MediaError</p>", + "params": [ + { + "type": { + "names": [ + "*" + ] + }, + "description": "<p>A MediaError or a String/Number to be turned into a MediaError</p>", + "name": "err" + } + ], + "returns": [ + { + "type": { + "names": [ + "MediaError", + "null" + ] + }, + "description": "<p>when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>when setting</p>" + } + ], + "kind": "function", + "name": "error", + "longname": "error", + "scope": "global" + }, + { + "comment": "/**\n* Returns whether or not the player is in the \"ended\" state.\n*\n* @return {Boolean} True if the player is in the ended state, false if not.\n* @method ended\n*/", + "meta": { + "range": [ + 21825, + 21986 + ], + "filename": "player.js", + "lineno": 2031, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns whether or not the player is in the "ended" state.</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True if the player is in the ended state, false if not.</p>" + } + ], + "kind": "function", + "name": "ended", + "longname": "ended", + "scope": "global" + }, + { + "comment": "/**\n* Returns whether or not the player is in the \"seeking\" state.\n*\n* @return {Boolean} True if the player is in the seeking state, false if not.\n* @method seeking\n*/", + "meta": { + "range": [ + 21993, + 22160 + ], + "filename": "player.js", + "lineno": 2039, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns whether or not the player is in the "seeking" state.</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True if the player is in the seeking state, false if not.</p>" + } + ], + "kind": "function", + "name": "seeking", + "longname": "seeking", + "scope": "global" + }, + { + "comment": "/**\n* Returns the TimeRanges of the media that are currently available\n* for seeking to.\n*\n* @return {TimeRanges} the seekable intervals of the media timeline\n* @method seekable\n*/", + "meta": { + "range": [ + 22167, + 22347 + ], + "filename": "player.js", + "lineno": 2047, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns the TimeRanges of the media that are currently available\nfor seeking to.</p>", + "returns": [ + { + "type": { + "names": [ + "TimeRanges" + ] + }, + "description": "<p>the seekable intervals of the media timeline</p>" + } + ], + "kind": "function", + "name": "seekable", + "longname": "seekable", + "scope": "global" + }, + { + "comment": "/**\n* Report user activity \n*\n* @param {Object} event Event object\n* @method reportUserActivity\n*/", + "meta": { + "range": [ + 22354, + 22452 + ], + "filename": "player.js", + "lineno": 2056, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Report user activity</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "reportUserActivity", + "longname": "reportUserActivity", + "scope": "global" + }, + { + "comment": "/**\n* Get/set if user is active\n*\n* @param {Boolean} bool Value when setting\n* @return {Boolean} Value if user is active user when getting\n* @method userActive\n*/", + "meta": { + "range": [ + 22465, + 22627 + ], + "filename": "player.js", + "lineno": 2066, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get/set if user is active</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Value when setting</p>", + "name": "bool" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Value if user is active user when getting</p>" + } + ], + "kind": "function", + "name": "userActive", + "longname": "userActive", + "scope": "global" + }, + { + "comment": "/**\n* Listen for user activity based on timeout value\n*\n* @method listenForUserActivity\n*/", + "meta": { + "range": [ + 22754, + 22844 + ], + "filename": "player.js", + "lineno": 2115, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Listen for user activity based on timeout value</p>", + "kind": "function", + "name": "listenForUserActivity", + "longname": "listenForUserActivity", + "scope": "global" + }, + { + "comment": "/**\n* Gets or sets the current playback rate. A playback rate of\n* 1.0 represents normal speed and 0.5 would indicate half-speed\n* playback, for instance.\n* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-playbackrate\n*\n* @param {Number} rate New playback rate to set.\n* @return {Number} Returns the new playback rate when setting\n* @return {Number} Returns the current playback rate when getting\n* @method playbackRate\n*/", + "meta": { + "range": [ + 23082, + 23553 + ], + "filename": "player.js", + "lineno": 2199, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Gets or sets the current playback rate. A playback rate of\n1.0 represents normal speed and 0.5 would indicate half-speed\nplayback, for instance.</p>", + "see": [ + "https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-playbackrate" + ], + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>New playback rate to set.</p>", + "name": "rate" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Returns the new playback rate when setting</p>" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Returns the current playback rate when getting</p>" + } + ], + "kind": "function", + "name": "playbackRate", + "longname": "playbackRate", + "scope": "global" + }, + { + "comment": "/**\n* Gets or sets the audio flag\n*\n* @param {Boolean} bool True signals that this is an audio player.\n* @return {Boolean} Returns true if player is audio, false if not when getting\n* @return {Player} Returns the player if setting\n* @private\n* @method isAudio\n*/", + "meta": { + "range": [ + 23593, + 23872 + ], + "filename": "player.js", + "lineno": 2223, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Gets or sets the audio flag</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True signals that this is an audio player.</p>", + "name": "bool" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>Returns true if player is audio, false if not when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>Returns the player if setting</p>" + } + ], + "access": "private", + "kind": "function", + "name": "isAudio", + "longname": "isAudio", + "scope": "global" + }, + { + "comment": "/**\n* Returns the current state of network activity for the element, from\n* the codes in the list below.\n* - NETWORK_EMPTY (numeric value 0)\n* The element has not yet been initialised. All attributes are in\n* their initial states.\n* - NETWORK_IDLE (numeric value 1)\n* The element's resource selection algorithm is active and has\n* selected a resource, but it is not actually using the network at\n* this time.\n* - NETWORK_LOADING (numeric value 2)\n* The user agent is actively trying to download data.\n* - NETWORK_NO_SOURCE (numeric value 3)\n* The element's resource selection algorithm is active, but it has\n* not yet found a resource to use.\n*\n* @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states\n* @return {Number} the current network activity state\n* @method networkState\n*/", + "meta": { + "range": [ + 23900, + 24723 + ], + "filename": "player.js", + "lineno": 2241, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns the current state of network activity for the element, from\nthe codes in the list below.</p>\n<ul>\n<li>NETWORK_EMPTY (numeric value 0)\nThe element has not yet been initialised. All attributes are in\ntheir initial states.</li>\n<li>NETWORK_IDLE (numeric value 1)\nThe element's resource selection algorithm is active and has\nselected a resource, but it is not actually using the network at\nthis time.</li>\n<li>NETWORK_LOADING (numeric value 2)\nThe user agent is actively trying to download data.</li>\n<li>NETWORK_NO_SOURCE (numeric value 3)\nThe element's resource selection algorithm is active, but it has\nnot yet found a resource to use.</li>\n</ul>", + "see": [ + "https://html.spec.whatwg.org/multipage/embedded-content.html#network-states" + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>the current network activity state</p>" + } + ], + "kind": "function", + "name": "networkState", + "longname": "networkState", + "scope": "global" + }, + { + "comment": "/**\n* Returns a value that expresses the current state of the element\n* with respect to rendering the current playback position, from the\n* codes in the list below.\n* - HAVE_NOTHING (numeric value 0)\n* No information regarding the media resource is available.\n* - HAVE_METADATA (numeric value 1)\n* Enough of the resource has been obtained that the duration of the\n* resource is available.\n* - HAVE_CURRENT_DATA (numeric value 2)\n* Data for the immediate current playback position is available.\n* - HAVE_FUTURE_DATA (numeric value 3)\n* Data for the immediate current playback position is available, as\n* well as enough data for the user agent to advance the current\n* playback position in the direction of playback.\n* - HAVE_ENOUGH_DATA (numeric value 4)\n* The user agent estimates that enough data is available for\n* playback to proceed uninterrupted.\n*\n* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate\n* @return {Number} the current playback rendering state\n* @method readyState\n*/", + "meta": { + "range": [ + 24736, + 25776 + ], + "filename": "player.js", + "lineno": 2265, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Returns a value that expresses the current state of the element\nwith respect to rendering the current playback position, from the\ncodes in the list below.</p>\n<ul>\n<li>HAVE_NOTHING (numeric value 0)\nNo information regarding the media resource is available.</li>\n<li>HAVE_METADATA (numeric value 1)\nEnough of the resource has been obtained that the duration of the\nresource is available.</li>\n<li>HAVE_CURRENT_DATA (numeric value 2)\nData for the immediate current playback position is available.</li>\n<li>HAVE_FUTURE_DATA (numeric value 3)\nData for the immediate current playback position is available, as\nwell as enough data for the user agent to advance the current\nplayback position in the direction of playback.</li>\n<li>HAVE_ENOUGH_DATA (numeric value 4)\nThe user agent estimates that enough data is available for\nplayback to proceed uninterrupted.</li>\n</ul>", + "see": [ + "https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate" + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>the current playback rendering state</p>" + } + ], + "kind": "function", + "name": "readyState", + "longname": "readyState", + "scope": "global" + }, + { + "comment": "/**\n* Get an array of associated text tracks. captions, subtitles, chapters, descriptions\n* http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks\n*\n* @return {Array} Array of track objects\n* @method textTracks\n*/", + "meta": { + "range": [ + 26233, + 26491 + ], + "filename": "player.js", + "lineno": 2300, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get an array of associated text tracks. captions, subtitles, chapters, descriptions\nhttp://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Array of track objects</p>" + } + ], + "kind": "function", + "name": "textTracks", + "longname": "textTracks", + "scope": "global" + }, + { + "comment": "/**\n* Get an array of remote text tracks\n*\n* @return {Array}\n* @method remoteTextTracks\n*/", + "meta": { + "range": [ + 26510, + 26600 + ], + "filename": "player.js", + "lineno": 2313, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get an array of remote text tracks</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + } + } + ], + "kind": "function", + "name": "remoteTextTracks", + "longname": "remoteTextTracks", + "scope": "global" + }, + { + "comment": "/**\n* Add a text track\n* In addition to the W3C settings we allow adding additional info through options.\n* http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack\n*\n* @param {String} kind Captions, subtitles, chapters, descriptions, or metadata\n* @param {String=} label Optional label\n* @param {String=} language Optional language\n* @method addTextTrack\n*/", + "meta": { + "range": [ + 26613, + 27023 + ], + "filename": "player.js", + "lineno": 2323, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add a text track\nIn addition to the W3C settings we allow adding additional info through options.\nhttp://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Captions, subtitles, chapters, descriptions, or metadata</p>", + "name": "kind" + }, + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Optional label</p>", + "name": "label" + }, + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Optional language</p>", + "name": "language" + } + ], + "kind": "function", + "name": "addTextTrack", + "longname": "addTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Add a remote text track\n*\n* @param {Object} options Options for remote text track\n* @method addRemoteTextTrack\n*/", + "meta": { + "range": [ + 27036, + 27158 + ], + "filename": "player.js", + "lineno": 2337, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Add a remote text track</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Options for remote text track</p>", + "name": "options" + } + ], + "kind": "function", + "name": "addRemoteTextTrack", + "longname": "addRemoteTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Remove a remote text track\n*\n* @param {Object} track Remote text track to remove\n* @method removeRemoteTextTrack\n*/", + "meta": { + "range": [ + 27171, + 27295 + ], + "filename": "player.js", + "lineno": 2347, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Remove a remote text track</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Remote text track to remove</p>", + "name": "track" + } + ], + "kind": "function", + "name": "removeRemoteTextTrack", + "longname": "removeRemoteTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Get video width\n*\n* @return {Number} Video width\n* @method videoWidth\n*/", + "meta": { + "range": [ + 27308, + 27386 + ], + "filename": "player.js", + "lineno": 2357, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get video width</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Video width</p>" + } + ], + "kind": "function", + "name": "videoWidth", + "longname": "videoWidth", + "scope": "global" + }, + { + "comment": "/**\n* Get video height\n*\n* @return {Number} Video height\n* @method videoHeight\n*/", + "meta": { + "range": [ + 27399, + 27480 + ], + "filename": "player.js", + "lineno": 2367, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get video height</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Video height</p>" + } + ], + "kind": "function", + "name": "videoHeight", + "longname": "videoHeight", + "scope": "global" + }, + { + "comment": "/**\n* The player's language code\n* NOTE: The language should be set in the player options if you want the\n* the controls to be built with a specific language. Changing the lanugage\n* later will not update controls text.\n*\n* @param {String} code The locale string\n* @return {String} The locale string when getting\n* @return {Player} self when setting\n* @method language\n*/", + "meta": { + "range": [ + 27541, + 27923 + ], + "filename": "player.js", + "lineno": 2393, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>The player's language code\nNOTE: The language should be set in the player options if you want the\nthe controls to be built with a specific language. Changing the lanugage\nlater will not update controls text.</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The locale string</p>", + "name": "code" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The locale string when getting</p>" + }, + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>self when setting</p>" + } + ], + "kind": "function", + "name": "language", + "longname": "language", + "scope": "global" + }, + { + "comment": "/**\n* Get the player's language dictionary\n* Merge every time, because a newly added plugin might call videojs.addLanguage() at any time\n* Languages specified directly in the player options have precedence\n*\n* @return {Array} Array of languages\n* @method languages\n*/", + "meta": { + "range": [ + 27951, + 28218 + ], + "filename": "player.js", + "lineno": 2413, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the player's language dictionary\nMerge every time, because a newly added plugin might call videojs.addLanguage() at any time\nLanguages specified directly in the player options have precedence</p>", + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>Array of languages</p>" + } + ], + "kind": "function", + "name": "languages", + "longname": "languages", + "scope": "global" + }, + { + "comment": "/**\n* Converts track info to JSON\n*\n* @return {Object} JSON object of options\n* @method toJSON\n*/", + "meta": { + "range": [ + 28231, + 28328 + ], + "filename": "player.js", + "lineno": 2425, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Converts track info to JSON</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>JSON object of options</p>" + } + ], + "kind": "function", + "name": "toJSON", + "longname": "toJSON", + "scope": "global" + }, + { + "comment": "/**\n* Gets tag settings\n*\n* @param {Element} tag The player tag\n* @return {Array} An array of sources and track objects\n* @static\n* @method getTagSettings\n*/", + "meta": { + "range": [ + 28383, + 28540 + ], + "filename": "player.js", + "lineno": 2449, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Gets tag settings</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>The player tag</p>", + "name": "tag" + } + ], + "returns": [ + { + "type": { + "names": [ + "Array" + ] + }, + "description": "<p>An array of sources and track objects</p>" + } + ], + "scope": "static", + "kind": "function", + "name": "getTagSettings", + "longname": "getTagSettings" + }, + { + "comment": "/**\n* Fired when the player has initial duration and dimension information\n*\n* @event loadedmetadata\n*/", + "meta": { + "range": [ + 28971, + 29074 + ], + "filename": "player.js", + "lineno": 2519, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the player has initial duration and dimension information</p>", + "kind": "event", + "name": "loadedmetadata", + "longname": "event:loadedmetadata", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the player has downloaded data at the current playback position\n*\n* @event loadeddata\n*/", + "meta": { + "range": [ + 29081, + 29186 + ], + "filename": "player.js", + "lineno": 2526, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the player has downloaded data at the current playback position</p>", + "kind": "event", + "name": "loadeddata", + "longname": "event:loadeddata", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the player has finished downloading the source data\n*\n* @event loadedalldata\n*/", + "meta": { + "range": [ + 29193, + 29289 + ], + "filename": "player.js", + "lineno": 2533, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the player has finished downloading the source data</p>", + "kind": "event", + "name": "loadedalldata", + "longname": "event:loadedalldata", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the user is active, e.g. moves the mouse over the player\n*\n* @event useractive\n*/", + "meta": { + "range": [ + 29296, + 29394 + ], + "filename": "player.js", + "lineno": 2540, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the user is active, e.g. moves the mouse over the player</p>", + "kind": "event", + "name": "useractive", + "longname": "event:useractive", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the user is inactive, e.g. a short delay after the last mouse move or control interaction\n*\n* @event userinactive\n*/", + "meta": { + "range": [ + 29401, + 29534 + ], + "filename": "player.js", + "lineno": 2547, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the user is inactive, e.g. a short delay after the last mouse move or control interaction</p>", + "kind": "event", + "name": "userinactive", + "longname": "event:userinactive", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the current playback position has changed *\n* During playback this is fired every 15-250 milliseconds, depending on the\n* playback technology in use.\n*\n* @event timeupdate\n*/", + "meta": { + "range": [ + 29541, + 29732 + ], + "filename": "player.js", + "lineno": 2554, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the current playback position has changed *\nDuring playback this is fired every 15-250 milliseconds, depending on the\nplayback technology in use.</p>", + "kind": "event", + "name": "timeupdate", + "longname": "event:timeupdate", + "scope": "global" + }, + { + "comment": "/**\n* Fired when the volume changes\n*\n* @event volumechange\n*/", + "meta": { + "range": [ + 29739, + 29801 + ], + "filename": "player.js", + "lineno": 2563, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when the volume changes</p>", + "kind": "event", + "name": "volumechange", + "longname": "event:volumechange", + "scope": "global" + }, + { + "comment": "/**\n* Fired when an error occurs\n*\n* @event error\n*/", + "meta": { + "range": [ + 29808, + 29860 + ], + "filename": "player.js", + "lineno": 2570, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Fired when an error occurs</p>", + "kind": "event", + "name": "error", + "longname": "event:error", + "scope": "global" + }, + { + "comment": "/**\n* @file plugins.js\n*/", + "meta": { + "range": [ + 0, + 25 + ], + "filename": "plugins.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "plugins.js", + "kind": "file", + "description": "<p>plugins.js</p>", + "preserveName": true, + "longname": "plugins.js", + "scope": "global" + }, + { + "comment": "/**\n* The method for registering a video.js plugin\n*\n* @param {String} name The name of the plugin\n* @param {Function} init The function that is run when the player inits\n* @method plugin\n*/", + "meta": { + "range": [ + 32, + 224 + ], + "filename": "plugins.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>The method for registering a video.js plugin</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The name of the plugin</p>", + "name": "name" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The function that is run when the player inits</p>", + "name": "init" + } + ], + "kind": "function", + "name": "plugin", + "longname": "plugin", + "scope": "global" + }, + { + "comment": "/**\n* @file poster-image.js\n*/", + "meta": { + "range": [ + 0, + 30 + ], + "filename": "poster-image.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "poster-image.js", + "kind": "file", + "description": "<p>poster-image.js</p>", + "preserveName": true, + "longname": "poster-image.js", + "scope": "global" + }, + { + "comment": "/**\n* The component that handles showing the poster image.\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class PosterImage\n*/", + "meta": { + "range": [ + 149, + 310 + ], + "filename": "poster-image.js", + "lineno": 12, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>The component that handles showing the poster image.</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Button" + ], + "kind": "class", + "name": "PosterImage", + "longname": "PosterImage", + "scope": "global" + }, + { + "comment": "/**\n* Clean up the poster image\n*\n* @method dispose\n*/", + "meta": { + "range": [ + 338, + 392 + ], + "filename": "poster-image.js", + "lineno": 29, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Clean up the poster image</p>", + "kind": "function", + "name": "dispose", + "longname": "dispose", + "scope": "global" + }, + { + "comment": "/**\n* Create the poster's image element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 408, + 491 + ], + "filename": "poster-image.js", + "lineno": 39, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create the poster's image element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Event handler for updates to the player's poster source\n*\n* @method update\n*/", + "meta": { + "range": [ + 552, + 635 + ], + "filename": "poster-image.js", + "lineno": 65, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Event handler for updates to the player's poster source</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* Set the poster source depending on the display method\n*\n* @param {String} url The URL to the poster source\n* @method setSrc\n*/", + "meta": { + "range": [ + 678, + 810 + ], + "filename": "poster-image.js", + "lineno": 84, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Set the poster source depending on the display method</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The URL to the poster source</p>", + "name": "url" + } + ], + "kind": "function", + "name": "setSrc", + "longname": "setSrc", + "scope": "global" + }, + { + "comment": "/**\n* Event handler for clicks on the poster image\n* \n* @method handleClick\n*/", + "meta": { + "range": [ + 856, + 934 + ], + "filename": "poster-image.js", + "lineno": 105, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Event handler for clicks on the poster image</p>", + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* @file setup.js\n*\n* Functions for automatically setting up a player\n* based on the data-setup attribute of the video tag\n*/", + "meta": { + "range": [ + 0, + 128 + ], + "filename": "setup.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "setup.js", + "kind": "file", + "description": "<p>setup.js</p>\n<p>Functions for automatically setting up a player\nbased on the data-setup attribute of the video tag</p>", + "preserveName": true, + "longname": "setup.js", + "scope": "global" + }, + { + "comment": "/**\n* @file slider.js\n*/", + "meta": { + "range": [ + 0, + 24 + ], + "filename": "slider.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "name": "slider/slider.js", + "kind": "file", + "description": "<p>slider.js</p>", + "preserveName": true, + "longname": "slider/slider.js", + "scope": "global" + }, + { + "comment": "/**\n* The base functionality for sliders like the volume bar and seek bar\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class Slider\n*/", + "meta": { + "range": [ + 43, + 217 + ], + "filename": "slider.js", + "lineno": 10, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>The base functionality for sliders like the volume bar and seek bar</p>", + "params": [ + { + "type": { + "names": [ + "Player", + "Object" + ] + }, + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "Slider", + "longname": "Slider", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @param {String} type Type of element to create\n* @param {Object=} props List of properties in Object form \n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 284, + 477 + ], + "filename": "slider.js", + "lineno": 40, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Type of element to create</p>", + "name": "type" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>List of properties in Object form</p>", + "name": "props" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Handle mouse down on slider\n*\n* @param {Object} event Mouse down event object\n* @method handleMouseDown\n*/", + "meta": { + "range": [ + 520, + 632 + ], + "filename": "slider.js", + "lineno": 62, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Handle mouse down on slider</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Mouse down event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "handleMouseDown", + "longname": "handleMouseDown", + "scope": "global" + }, + { + "comment": "/**\n* To be overridden by a subclass\n*\n* @method handleMouseMove\n*/", + "meta": { + "range": [ + 672, + 739 + ], + "filename": "slider.js", + "lineno": 81, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>To be overridden by a subclass</p>", + "kind": "function", + "name": "handleMouseMove", + "longname": "handleMouseMove", + "scope": "global" + }, + { + "comment": "/**\n* Handle mouse up on Slider \n*\n* @method handleMouseUp\n*/", + "meta": { + "range": [ + 746, + 807 + ], + "filename": "slider.js", + "lineno": 88, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Handle mouse up on Slider</p>", + "kind": "function", + "name": "handleMouseUp", + "longname": "handleMouseUp", + "scope": "global" + }, + { + "comment": "/**\n* Update slider\n*\n* @method update\n*/", + "meta": { + "range": [ + 844, + 885 + ], + "filename": "slider.js", + "lineno": 105, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Update slider</p>", + "kind": "function", + "name": "update", + "longname": "update", + "scope": "global" + }, + { + "comment": "/**\n* Calculate distance for slider\n*\n* @param {Object} event Event object\n* @method calculateDistance\n*/", + "meta": { + "range": [ + 985, + 1090 + ], + "filename": "slider.js", + "lineno": 143, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Calculate distance for slider</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "calculateDistance", + "longname": "calculateDistance", + "scope": "global" + }, + { + "comment": "/**\n* Handle on focus for slider\n*\n* @method handleFocus\n*/", + "meta": { + "range": [ + 1241, + 1300 + ], + "filename": "slider.js", + "lineno": 199, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Handle on focus for slider</p>", + "kind": "function", + "name": "handleFocus", + "longname": "handleFocus", + "scope": "global" + }, + { + "comment": "/**\n* Handle key press for slider\n*\n* @param {Object} event Event object\n* @method handleKeyPress\n*/", + "meta": { + "range": [ + 1313, + 1413 + ], + "filename": "slider.js", + "lineno": 208, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Handle key press for slider</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "handleKeyPress", + "longname": "handleKeyPress", + "scope": "global" + }, + { + "comment": "/**\n* Handle on blur for slider\n*\n* @method handleBlur\n*/", + "meta": { + "range": [ + 1444, + 1501 + ], + "filename": "slider.js", + "lineno": 224, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Handle on blur for slider</p>", + "kind": "function", + "name": "handleBlur", + "longname": "handleBlur", + "scope": "global" + }, + { + "comment": "/**\n* Listener for click events on slider, used to prevent clicks\n* from bubbling up to parent elements like button menus.\n*\n* @param {Object} event Event object\n* @method handleClick\n*/", + "meta": { + "range": [ + 1514, + 1702 + ], + "filename": "slider.js", + "lineno": 233, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Listener for click events on slider, used to prevent clicks\n from bubbling up to parent elements like button menus.</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Event object</p>", + "name": "event" + } + ], + "kind": "function", + "name": "handleClick", + "longname": "handleClick", + "scope": "global" + }, + { + "comment": "/**\n* Get/set if slider is horizontal for vertical\n*\n* @param {Boolean} bool True if slider is vertical, false is horizontal\n* @return {Boolean} True if slider is vertical, false is horizontal\n* @method vertical\n*/", + "meta": { + "range": [ + 1718, + 1932 + ], + "filename": "slider.js", + "lineno": 245, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider", + "code": {} + }, + "description": "<p>Get/set if slider is horizontal for vertical</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True if slider is vertical, false is horizontal</p>", + "name": "bool" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>True if slider is vertical, false is horizontal</p>" + } + ], + "kind": "function", + "name": "vertical", + "longname": "vertical", + "scope": "global" + }, + { + "comment": "/**\n* @file flash-rtmp.js\n*/", + "meta": { + "range": [ + 0, + 28 + ], + "filename": "flash-rtmp.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "name": "tech/flash-rtmp.js", + "kind": "file", + "description": "<p>flash-rtmp.js</p>", + "preserveName": true, + "longname": "tech/flash-rtmp.js", + "scope": "global" + }, + { + "comment": "/**\n* @file flash.js \n* VideoJS-SWF - Custom Flash Player with HTML5-ish API\n* https://github.com/zencoder/video-js-swf\n* Not using setupTriggers. Using global onEvent func to distribute events\n*/", + "meta": { + "range": [ + 0, + 196 + ], + "filename": "flash.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "name": "tech/flash.js", + "kind": "file", + "description": "<p>flash.js \nVideoJS-SWF - Custom Flash Player with HTML5-ish API\nhttps://github.com/zencoder/video-js-swf\nNot using setupTriggers. Using global onEvent func to distribute events</p>", + "preserveName": true, + "longname": "tech/flash.js", + "scope": "global" + }, + { + "comment": "/**\n* Flash Media Controller - Wrapper for fallback SWF API\n*\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Tech\n* @class Flash\n*/", + "meta": { + "range": [ + 230, + 437 + ], + "filename": "flash.js", + "lineno": 18, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Flash Media Controller - Wrapper for fallback SWF API</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "Tech" + ], + "kind": "class", + "name": "Flash", + "longname": "Flash", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 537, + 621 + ], + "filename": "flash.js", + "lineno": 59, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Play for flash tech\n*\n* @method play\n*/", + "meta": { + "range": [ + 745, + 790 + ], + "filename": "flash.js", + "lineno": 106, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Play for flash tech</p>", + "kind": "function", + "name": "play", + "longname": "play", + "scope": "global" + }, + { + "comment": "/**\n* Pause for flash tech\n*\n* @method pause\n*/", + "meta": { + "range": [ + 803, + 850 + ], + "filename": "flash.js", + "lineno": 115, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Pause for flash tech</p>", + "kind": "function", + "name": "pause", + "longname": "pause", + "scope": "global" + }, + { + "comment": "/**\n* Get/set video\n*\n* @param {Object=} src Source object \n* @return {Object} \n* @method src\n*/", + "meta": { + "range": [ + 863, + 959 + ], + "filename": "flash.js", + "lineno": 124, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get/set video</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Source object</p>", + "name": "src" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "kind": "function", + "name": "src", + "longname": "src", + "scope": "global" + }, + { + "comment": "/**\n* Set video\n*\n* @param {Object=} src Source object \n* @deprecated\n* @method setSrc\n*/", + "meta": { + "range": [ + 987, + 1076 + ], + "filename": "flash.js", + "lineno": 140, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set video</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Source object</p>", + "name": "src" + } + ], + "deprecated": true, + "kind": "function", + "name": "setSrc", + "longname": "setSrc", + "scope": "global" + }, + { + "comment": "/**\n* Set current time\n*\n* @param {Number} time Current time of video \n* @method setCurrentTime\n*/", + "meta": { + "range": [ + 1116, + 1214 + ], + "filename": "flash.js", + "lineno": 160, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set current time</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Current time of video</p>", + "name": "time" + } + ], + "kind": "function", + "name": "setCurrentTime", + "longname": "setCurrentTime", + "scope": "global" + }, + { + "comment": "/**\n* Get current time\n*\n* @param {Number=} time Current time of video \n* @return {Number} Current time\n* @method currentTime\n*/", + "meta": { + "range": [ + 1233, + 1361 + ], + "filename": "flash.js", + "lineno": 172, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get current time</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "optional": true, + "description": "<p>Current time of video</p>", + "name": "time" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Current time</p>" + } + ], + "kind": "function", + "name": "currentTime", + "longname": "currentTime", + "scope": "global" + }, + { + "comment": "/**\n* Get current source\n*\n* @method currentSrc\n*/", + "meta": { + "range": [ + 1389, + 1439 + ], + "filename": "flash.js", + "lineno": 188, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get current source</p>", + "kind": "function", + "name": "currentSrc", + "longname": "currentSrc", + "scope": "global" + }, + { + "comment": "/**\n* Load media into player\n*\n* @method load\n*/", + "meta": { + "range": [ + 1464, + 1512 + ], + "filename": "flash.js", + "lineno": 201, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Load media into player</p>", + "kind": "function", + "name": "load", + "longname": "load", + "scope": "global" + }, + { + "comment": "/**\n* Get poster\n*\n* @method poster\n*/", + "meta": { + "range": [ + 1525, + 1563 + ], + "filename": "flash.js", + "lineno": 210, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get poster</p>", + "kind": "function", + "name": "poster", + "longname": "poster", + "scope": "global" + }, + { + "comment": "/**\n* Poster images are not handled by the Flash tech so make this a no-op\n*\n* @method setPoster\n*/", + "meta": { + "range": [ + 1576, + 1675 + ], + "filename": "flash.js", + "lineno": 219, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Poster images are not handled by the Flash tech so make this a no-op</p>", + "kind": "function", + "name": "setPoster", + "longname": "setPoster", + "scope": "global" + }, + { + "comment": "/**\n* Determine if can seek in media\n*\n* @return {TimeRangeObject}\n* @method seekable\n*/", + "meta": { + "range": [ + 1682, + 1770 + ], + "filename": "flash.js", + "lineno": 226, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Determine if can seek in media</p>", + "returns": [ + { + "type": { + "names": [ + "TimeRangeObject" + ] + } + } + ], + "kind": "function", + "name": "seekable", + "longname": "seekable", + "scope": "global" + }, + { + "comment": "/**\n* Get buffered time range\n*\n* @return {TimeRangeObject} \n* @method buffered\n*/", + "meta": { + "range": [ + 1795, + 1877 + ], + "filename": "flash.js", + "lineno": 240, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get buffered time range</p>", + "returns": [ + { + "type": { + "names": [ + "TimeRangeObject" + ] + } + } + ], + "kind": "function", + "name": "buffered", + "longname": "buffered", + "scope": "global" + }, + { + "comment": "/**\n* Get fullscreen support - \n* Flash does not allow fullscreen through javascript\n* so always returns false\n*\n* @return {Boolean} false \n* @method supportsFullScreen\n*/", + "meta": { + "range": [ + 1890, + 2061 + ], + "filename": "flash.js", + "lineno": 250, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get fullscreen support - \nFlash does not allow fullscreen through javascript\nso always returns false</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>false</p>" + } + ], + "kind": "function", + "name": "supportsFullScreen", + "longname": "supportsFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Request to enter fullscreen\n* Flash does not allow fullscreen through javascript\n* so always returns false\n*\n* @return {Boolean} false \n* @method enterFullScreen\n*/", + "meta": { + "range": [ + 2074, + 2244 + ], + "filename": "flash.js", + "lineno": 262, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Request to enter fullscreen\nFlash does not allow fullscreen through javascript\nso always returns false</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>false</p>" + } + ], + "kind": "function", + "name": "enterFullScreen", + "longname": "enterFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* @file html5.js \n* HTML5 Media Controller - Wrapper for HTML5 Media API\n*/", + "meta": { + "range": [ + 0, + 79 + ], + "filename": "html5.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "name": "tech/html5.js", + "kind": "file", + "description": "<p>html5.js \nHTML5 Media Controller - Wrapper for HTML5 Media API</p>", + "preserveName": true, + "longname": "tech/html5.js", + "scope": "global" + }, + { + "comment": "/**\n* HTML5 Media Controller - Wrapper for HTML5 Media API\n*\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Tech\n* @class Html5\n*/", + "meta": { + "range": [ + 119, + 325 + ], + "filename": "html5.js", + "lineno": 18, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>HTML5 Media Controller - Wrapper for HTML5 Media API</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "Tech" + ], + "kind": "class", + "name": "Html5", + "longname": "Html5", + "scope": "global" + }, + { + "comment": "/**\n* Dispose of html5 media element\n*\n* @method dispose\n*/", + "meta": { + "range": [ + 497, + 556 + ], + "filename": "html5.js", + "lineno": 83, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Dispose of html5 media element</p>", + "kind": "function", + "name": "dispose", + "longname": "dispose", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 572, + 656 + ], + "filename": "html5.js", + "lineno": 93, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Hide captions from text track\n*\n* @method hideCaptions\n*/", + "meta": { + "range": [ + 846, + 909 + ], + "filename": "html5.js", + "lineno": 162, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Hide captions from text track</p>", + "kind": "function", + "name": "hideCaptions", + "longname": "hideCaptions", + "scope": "global" + }, + { + "comment": "/**\n* Play for html5 tech\n*\n* @method play\n*/", + "meta": { + "range": [ + 961, + 1006 + ], + "filename": "html5.js", + "lineno": 184, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Play for html5 tech</p>", + "kind": "function", + "name": "play", + "longname": "play", + "scope": "global" + }, + { + "comment": "/**\n* Pause for html5 tech\n*\n* @method pause\n*/", + "meta": { + "range": [ + 1013, + 1060 + ], + "filename": "html5.js", + "lineno": 191, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Pause for html5 tech</p>", + "kind": "function", + "name": "pause", + "longname": "pause", + "scope": "global" + }, + { + "comment": "/**\n* Paused for html5 tech\n*\n* @return {Boolean} \n* @method paused\n*/", + "meta": { + "range": [ + 1067, + 1137 + ], + "filename": "html5.js", + "lineno": 198, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Paused for html5 tech</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "paused", + "longname": "paused", + "scope": "global" + }, + { + "comment": "/**\n* Get current time\n*\n* @return {Number} \n* @method currentTime\n*/", + "meta": { + "range": [ + 1144, + 1213 + ], + "filename": "html5.js", + "lineno": 206, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get current time</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "currentTime", + "longname": "currentTime", + "scope": "global" + }, + { + "comment": "/**\n* Set current time\n*\n* @param {Number} seconds Current time of video \n* @method setCurrentTime\n*/", + "meta": { + "range": [ + 1220, + 1321 + ], + "filename": "html5.js", + "lineno": 214, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set current time</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Current time of video</p>", + "name": "seconds" + } + ], + "kind": "function", + "name": "setCurrentTime", + "longname": "setCurrentTime", + "scope": "global" + }, + { + "comment": "/**\n* Get duration\n*\n* @return {Number}\n* @method duration\n*/", + "meta": { + "range": [ + 1349, + 1410 + ], + "filename": "html5.js", + "lineno": 229, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get duration</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "duration", + "longname": "duration", + "scope": "global" + }, + { + "comment": "/**\n* Get a TimeRange object that represents the intersection\n* of the time ranges for which the user agent has all\n* relevant media\n*\n* @return {TimeRangeObject}\n* @method buffered\n*/", + "meta": { + "range": [ + 1417, + 1601 + ], + "filename": "html5.js", + "lineno": 237, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get a TimeRange object that represents the intersection\nof the time ranges for which the user agent has all\nrelevant media</p>", + "returns": [ + { + "type": { + "names": [ + "TimeRangeObject" + ] + } + } + ], + "kind": "function", + "name": "buffered", + "longname": "buffered", + "scope": "global" + }, + { + "comment": "/**\n* Get volume level \n*\n* @return {Number}\n* @method volume\n*/", + "meta": { + "range": [ + 1608, + 1672 + ], + "filename": "html5.js", + "lineno": 247, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get volume level</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "volume", + "longname": "volume", + "scope": "global" + }, + { + "comment": "/**\n* Set volume level \n*\n* @param {Number} percentAsDecimal Volume percent as a decimal\n* @method setVolume\n*/", + "meta": { + "range": [ + 1679, + 1790 + ], + "filename": "html5.js", + "lineno": 255, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set volume level</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Volume percent as a decimal</p>", + "name": "percentAsDecimal" + } + ], + "kind": "function", + "name": "setVolume", + "longname": "setVolume", + "scope": "global" + }, + { + "comment": "/**\n* Get if muted \n*\n* @return {Boolean}\n* @method muted\n*/", + "meta": { + "range": [ + 1797, + 1857 + ], + "filename": "html5.js", + "lineno": 263, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get if muted</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "muted", + "longname": "muted", + "scope": "global" + }, + { + "comment": "/**\n* Set muted \n*\n* @param {Boolean} If player is to be muted or note\n* @method setMuted\n*/", + "meta": { + "range": [ + 1864, + 1956 + ], + "filename": "html5.js", + "lineno": 271, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set muted</p>", + "params": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "description": "<p>player is to be muted or note</p>", + "name": "If" + } + ], + "kind": "function", + "name": "setMuted", + "longname": "setMuted", + "scope": "global" + }, + { + "comment": "/**\n* Get player width \n*\n* @return {Number}\n* @method width\n*/", + "meta": { + "range": [ + 1963, + 2026 + ], + "filename": "html5.js", + "lineno": 279, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get player width</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "width", + "longname": "width", + "scope": "global" + }, + { + "comment": "/**\n* Get player height \n*\n* @return {Number}\n* @method height\n*/", + "meta": { + "range": [ + 2033, + 2098 + ], + "filename": "html5.js", + "lineno": 287, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get player height</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "height", + "longname": "height", + "scope": "global" + }, + { + "comment": "/**\n* Get if there is fullscreen support \n*\n* @return {Boolean} \n* @method supportsFullScreen\n*/", + "meta": { + "range": [ + 2105, + 2201 + ], + "filename": "html5.js", + "lineno": 295, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get if there is fullscreen support</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "supportsFullScreen", + "longname": "supportsFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Request to enter fullscreen\n*\n* @method enterFullScreen\n*/", + "meta": { + "range": [ + 2235, + 2299 + ], + "filename": "html5.js", + "lineno": 312, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Request to enter fullscreen</p>", + "kind": "function", + "name": "enterFullScreen", + "longname": "enterFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Request to exit fullscreen\n*\n* @method exitFullScreen\n*/", + "meta": { + "range": [ + 2387, + 2449 + ], + "filename": "html5.js", + "lineno": 346, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Request to exit fullscreen</p>", + "kind": "function", + "name": "exitFullScreen", + "longname": "exitFullScreen", + "scope": "global" + }, + { + "comment": "/**\n* Get/set video\n*\n* @param {Object=} src Source object \n* @return {Object} \n* @method src\n*/", + "meta": { + "range": [ + 2462, + 2558 + ], + "filename": "html5.js", + "lineno": 355, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get/set video</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Source object</p>", + "name": "src" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "kind": "function", + "name": "src", + "longname": "src", + "scope": "global" + }, + { + "comment": "/**\n* Set video\n*\n* @param {Object} src Source object \n* @deprecated\n* @method setSrc\n*/", + "meta": { + "range": [ + 2586, + 2674 + ], + "filename": "html5.js", + "lineno": 371, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set video</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Source object</p>", + "name": "src" + } + ], + "deprecated": true, + "kind": "function", + "name": "setSrc", + "longname": "setSrc", + "scope": "global" + }, + { + "comment": "/**\n* Load media into player\n*\n* @method load\n*/", + "meta": { + "range": [ + 2681, + 2729 + ], + "filename": "html5.js", + "lineno": 380, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Load media into player</p>", + "kind": "function", + "name": "load", + "longname": "load", + "scope": "global" + }, + { + "comment": "/**\n* Get current source \n*\n* @return {Object} \n* @method currentSrc\n*/", + "meta": { + "range": [ + 2736, + 2807 + ], + "filename": "html5.js", + "lineno": 387, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get current source</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "kind": "function", + "name": "currentSrc", + "longname": "currentSrc", + "scope": "global" + }, + { + "comment": "/**\n* Get poster \n*\n* @return {String} \n* @method poster\n*/", + "meta": { + "range": [ + 2814, + 2873 + ], + "filename": "html5.js", + "lineno": 395, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get poster</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "poster", + "longname": "poster", + "scope": "global" + }, + { + "comment": "/**\n* Get preload attribute \n*\n* @return {String} \n* @method preload\n*/", + "meta": { + "range": [ + 2962, + 3033 + ], + "filename": "html5.js", + "lineno": 411, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get preload attribute</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "preload", + "longname": "preload", + "scope": "global" + }, + { + "comment": "/**\n* Set preload attribute \n*\n* @param {String} val Value for preload attribute \n* @method setPreload\n*/", + "meta": { + "range": [ + 3040, + 3145 + ], + "filename": "html5.js", + "lineno": 419, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set preload attribute</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Value for preload attribute</p>", + "name": "val" + } + ], + "kind": "function", + "name": "setPreload", + "longname": "setPreload", + "scope": "global" + }, + { + "comment": "/**\n* Get autoplay attribute \n*\n* @return {String} \n* @method autoplay\n*/", + "meta": { + "range": [ + 3152, + 3225 + ], + "filename": "html5.js", + "lineno": 427, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get autoplay attribute</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "autoplay", + "longname": "autoplay", + "scope": "global" + }, + { + "comment": "/**\n* Set autoplay attribute \n*\n* @param {String} val Value for preload attribute \n* @method setAutoplay\n*/", + "meta": { + "range": [ + 3232, + 3339 + ], + "filename": "html5.js", + "lineno": 435, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set autoplay attribute</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Value for preload attribute</p>", + "name": "val" + } + ], + "kind": "function", + "name": "setAutoplay", + "longname": "setAutoplay", + "scope": "global" + }, + { + "comment": "/**\n* Get controls attribute \n*\n* @return {String} \n* @method controls\n*/", + "meta": { + "range": [ + 3346, + 3419 + ], + "filename": "html5.js", + "lineno": 443, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get controls attribute</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "controls", + "longname": "controls", + "scope": "global" + }, + { + "comment": "/**\n* Set controls attribute \n*\n* @param {String} val Value for controls attribute \n* @method setControls\n*/", + "meta": { + "range": [ + 3426, + 3534 + ], + "filename": "html5.js", + "lineno": 451, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set controls attribute</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Value for controls attribute</p>", + "name": "val" + } + ], + "kind": "function", + "name": "setControls", + "longname": "setControls", + "scope": "global" + }, + { + "comment": "/**\n* Get loop attribute \n*\n* @return {String} \n* @method loop\n*/", + "meta": { + "range": [ + 3541, + 3606 + ], + "filename": "html5.js", + "lineno": 459, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get loop attribute</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "loop", + "longname": "loop", + "scope": "global" + }, + { + "comment": "/**\n* Set loop attribute \n*\n* @param {String} val Value for loop attribute \n* @method setLoop\n*/", + "meta": { + "range": [ + 3613, + 3709 + ], + "filename": "html5.js", + "lineno": 467, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set loop attribute</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Value for loop attribute</p>", + "name": "val" + } + ], + "kind": "function", + "name": "setLoop", + "longname": "setLoop", + "scope": "global" + }, + { + "comment": "/**\n* Get error value \n*\n* @return {String} \n* @method error\n*/", + "meta": { + "range": [ + 3716, + 3779 + ], + "filename": "html5.js", + "lineno": 475, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get error value</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "error", + "longname": "error", + "scope": "global" + }, + { + "comment": "/**\n* Get whether or not the player is in the \"seeking\" state\n*\n* @return {Boolean} \n* @method seeking\n*/", + "meta": { + "range": [ + 3786, + 3891 + ], + "filename": "html5.js", + "lineno": 483, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get whether or not the player is in the "seeking" state</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "seeking", + "longname": "seeking", + "scope": "global" + }, + { + "comment": "/**\n* Get a TimeRanges object that represents the \n* ranges of the media resource to which it is possible \n* for the user agent to seek. \n*\n* @return {TimeRangeObject} \n* @method seekable\n*/", + "meta": { + "range": [ + 3898, + 4088 + ], + "filename": "html5.js", + "lineno": 491, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get a TimeRanges object that represents the \nranges of the media resource to which it is possible \nfor the user agent to seek.</p>", + "returns": [ + { + "type": { + "names": [ + "TimeRangeObject" + ] + } + } + ], + "kind": "function", + "name": "seekable", + "longname": "seekable", + "scope": "global" + }, + { + "comment": "/**\n* Get if video ended \n*\n* @return {Boolean} \n* @method ended\n*/", + "meta": { + "range": [ + 4095, + 4162 + ], + "filename": "html5.js", + "lineno": 501, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get if video ended</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "ended", + "longname": "ended", + "scope": "global" + }, + { + "comment": "/**\n* Get the value of the muted content attribute\n* This attribute has no dynamic effect, it only \n* controls the default state of the element\n*\n* @return {Boolean} \n* @method defaultMuted\n*/", + "meta": { + "range": [ + 4169, + 4361 + ], + "filename": "html5.js", + "lineno": 509, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get the value of the muted content attribute\nThis attribute has no dynamic effect, it only \ncontrols the default state of the element</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "defaultMuted", + "longname": "defaultMuted", + "scope": "global" + }, + { + "comment": "/**\n* Get desired speed at which the media resource is to play \n*\n* @return {Number}\n* @method playbackRate\n*/", + "meta": { + "range": [ + 4368, + 4478 + ], + "filename": "html5.js", + "lineno": 519, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get desired speed at which the media resource is to play</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "playbackRate", + "longname": "playbackRate", + "scope": "global" + }, + { + "comment": "/**\n* Set desired speed at which the media resource is to play \n*\n* @param {Number} val Speed at which the media resource is to play\n* @method setPlaybackRate\n*/", + "meta": { + "range": [ + 4485, + 4646 + ], + "filename": "html5.js", + "lineno": 527, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set desired speed at which the media resource is to play</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Speed at which the media resource is to play</p>", + "name": "val" + } + ], + "kind": "function", + "name": "setPlaybackRate", + "longname": "setPlaybackRate", + "scope": "global" + }, + { + "comment": "/**\n* Get the current state of network activity for the element, from\n* the list below\n* NETWORK_EMPTY (numeric value 0)\n* NETWORK_IDLE (numeric value 1)\n* NETWORK_LOADING (numeric value 2)\n* NETWORK_NO_SOURCE (numeric value 3)\n*\n* @return {Number}\n* @method networkState\n*/", + "meta": { + "range": [ + 4653, + 4927 + ], + "filename": "html5.js", + "lineno": 535, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get the current state of network activity for the element, from\nthe list below\nNETWORK_EMPTY (numeric value 0)\nNETWORK_IDLE (numeric value 1)\nNETWORK_LOADING (numeric value 2)\nNETWORK_NO_SOURCE (numeric value 3)</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "networkState", + "longname": "networkState", + "scope": "global" + }, + { + "comment": "/**\n* Get a value that expresses the current state of the element \n* with respect to rendering the current playback position, from \n* the codes in the list below\n* HAVE_NOTHING (numeric value 0)\n* HAVE_METADATA (numeric value 1)\n* HAVE_CURRENT_DATA (numeric value 2)\n* HAVE_FUTURE_DATA (numeric value 3)\n* HAVE_ENOUGH_DATA (numeric value 4)\n* \n* @return {Number}\n* @method readyState\n*/", + "meta": { + "range": [ + 4934, + 5320 + ], + "filename": "html5.js", + "lineno": 548, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get a value that expresses the current state of the element \nwith respect to rendering the current playback position, from \nthe codes in the list below\nHAVE_NOTHING (numeric value 0)\nHAVE_METADATA (numeric value 1)\nHAVE_CURRENT_DATA (numeric value 2)\nHAVE_FUTURE_DATA (numeric value 3)\nHAVE_ENOUGH_DATA (numeric value 4)</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "readyState", + "longname": "readyState", + "scope": "global" + }, + { + "comment": "/**\n* Get width of video \n*\n* @return {Number}\n* @method videoWidth\n*/", + "meta": { + "range": [ + 5327, + 5397 + ], + "filename": "html5.js", + "lineno": 563, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get width of video</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "videoWidth", + "longname": "videoWidth", + "scope": "global" + }, + { + "comment": "/**\n* Get height of video \n*\n* @return {Number}\n* @method videoHeight\n*/", + "meta": { + "range": [ + 5404, + 5476 + ], + "filename": "html5.js", + "lineno": 571, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get height of video</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "videoHeight", + "longname": "videoHeight", + "scope": "global" + }, + { + "comment": "/**\n* Get text tracks \n*\n* @return {TextTrackList} \n* @method textTracks\n*/", + "meta": { + "range": [ + 5483, + 5558 + ], + "filename": "html5.js", + "lineno": 579, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get text tracks</p>", + "returns": [ + { + "type": { + "names": [ + "TextTrackList" + ] + } + } + ], + "kind": "function", + "name": "textTracks", + "longname": "textTracks", + "scope": "global" + }, + { + "comment": "/**\n* Creates and returns a text track object \n*\n* @param {String} kind Text track kind (subtitles, captions, descriptions\n* chapters and metadata)\n* @param {String=} label Label to identify the text track\n* @param {String=} language Two letter language abbreviation\n* @return {TextTrackObject}\n* @method addTextTrack\n*/", + "meta": { + "range": [ + 5583, + 5941 + ], + "filename": "html5.js", + "lineno": 593, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Creates and returns a text track object</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Text track kind (subtitles, captions, descriptions\n chapters and metadata)</p>", + "name": "kind" + }, + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Label to identify the text track</p>", + "name": "label" + }, + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Two letter language abbreviation</p>", + "name": "language" + } + ], + "returns": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + } + } + ], + "kind": "function", + "name": "addTextTrack", + "longname": "addTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Creates and returns a remote text track object \n*\n* @param {Object} options The object should contain values for\n* kind, language, label and src (location of the WebVTT file)\n* @return {TextTrackObject}\n* @method addRemoteTextTrack\n*/", + "meta": { + "range": [ + 5966, + 6206 + ], + "filename": "html5.js", + "lineno": 611, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Creates and returns a remote text track object</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The object should contain values for\nkind, language, label and src (location of the WebVTT file)</p>", + "name": "options" + } + ], + "returns": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + } + } + ], + "kind": "function", + "name": "addRemoteTextTrack", + "longname": "addRemoteTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Remove remote text track from TextTrackList object \n*\n* @param {TextTrackObject} track Texttrack object to remove\n* @method removeRemoteTextTrack\n*/", + "meta": { + "range": [ + 6360, + 6514 + ], + "filename": "html5.js", + "lineno": 670, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Remove remote text track from TextTrackList object</p>", + "params": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + }, + "description": "<p>Texttrack object to remove</p>", + "name": "track" + } + ], + "kind": "function", + "name": "removeRemoteTextTrack", + "longname": "removeRemoteTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* @file loader.js\n*/", + "meta": { + "range": [ + 0, + 24 + ], + "filename": "loader.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "name": "tech/loader.js", + "kind": "file", + "description": "<p>loader.js</p>", + "preserveName": true, + "longname": "tech/loader.js", + "scope": "global" + }, + { + "comment": "/**\n* The Media Loader is the component that decides which playback technology to load\n* when the player is initialized.\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class MediaLoader\n*/", + "meta": { + "range": [ + 37, + 357 + ], + "filename": "loader.js", + "lineno": 8, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>The Media Loader is the component that decides which playback technology to load\nwhen the player is initialized.</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "MediaLoader", + "longname": "MediaLoader", + "scope": "global" + }, + { + "comment": "/**\n* @file tech.js\n* Media Technology Controller - Base class for media playback\n* technology controllers like Flash and HTML5\n*/", + "meta": { + "range": [ + 0, + 130 + ], + "filename": "tech.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "name": "tech/tech.js", + "kind": "file", + "description": "<p>tech.js\nMedia Technology Controller - Base class for media playback\ntechnology controllers like Flash and HTML5</p>", + "preserveName": true, + "longname": "tech/tech.js", + "scope": "global" + }, + { + "comment": "/**\n* Base class for media (HTML5 Video, Flash) controllers\n*\n* @param {Object=} options Options object\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class Tech\n*/", + "meta": { + "range": [ + 164, + 356 + ], + "filename": "tech.js", + "lineno": 17, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Base class for media (HTML5 Video, Flash) controllers</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Options object</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "Tech", + "longname": "Tech", + "scope": "global" + }, + { + "comment": "/**\n* Set up click and touch listeners for the playback element\n* On desktops, a click on the video itself will toggle playback,\n* on a mobile device a click on the video toggles controls.\n* (toggling controls is done by toggling the user state between active and\n* inactive)\n* A tap can signal that a user has become active, or has become inactive\n* e.g. a quick tap on an iPhone movie should reveal the controls. Another\n* quick tap should hide them again (signaling the user is in an inactive\n* viewing state)\n* In addition to this, we still want the user to be considered inactive after\n* a few seconds of inactivity.\n* Note: the only part of iOS interaction we can't mimic with this setup\n* is a touch and hold on the video element counting as activity in order to\n* keep the controls showing, but that shouldn't be an issue. A touch and hold on\n* any controls will still keep the user active\n*\n* @method initControlsListeners\n*/", + "meta": { + "range": [ + 465, + 1399 + ], + "filename": "tech.js", + "lineno": 61, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set up click and touch listeners for the playback element\nOn desktops, a click on the video itself will toggle playback,\non a mobile device a click on the video toggles controls.\n(toggling controls is done by toggling the user state between active and\ninactive)\nA tap can signal that a user has become active, or has become inactive\ne.g. a quick tap on an iPhone movie should reveal the controls. Another\nquick tap should hide them again (signaling the user is in an inactive\nviewing state)\nIn addition to this, we still want the user to be considered inactive after\na few seconds of inactivity.\nNote: the only part of iOS interaction we can't mimic with this setup\nis a touch and hold on the video element counting as activity in order to\nkeep the controls showing, but that shouldn't be an issue. A touch and hold on\nany controls will still keep the user active</p>", + "kind": "function", + "name": "initControlsListeners", + "longname": "initControlsListeners", + "scope": "global" + }, + { + "comment": "/**\n* Turn on progress events \n*\n* @method manualProgressOn\n*/", + "meta": { + "range": [ + 1570, + 1632 + ], + "filename": "tech.js", + "lineno": 97, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Turn on progress events</p>", + "kind": "function", + "name": "manualProgressOn", + "longname": "manualProgressOn", + "scope": "global" + }, + { + "comment": "/**\n* Turn off progress events \n*\n* @method manualProgressOff\n*/", + "meta": { + "range": [ + 1660, + 1724 + ], + "filename": "tech.js", + "lineno": 111, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Turn off progress events</p>", + "kind": "function", + "name": "manualProgressOff", + "longname": "manualProgressOff", + "scope": "global" + }, + { + "comment": "/**\n* Track progress \n*\n* @method trackProgress\n*/", + "meta": { + "range": [ + 1746, + 1796 + ], + "filename": "tech.js", + "lineno": 123, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Track progress</p>", + "kind": "function", + "name": "trackProgress", + "longname": "trackProgress", + "scope": "global" + }, + { + "comment": "/**\n* Update duration \n*\n* @method onDurationChange\n*/", + "meta": { + "range": [ + 1851, + 1905 + ], + "filename": "tech.js", + "lineno": 146, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Update duration</p>", + "kind": "function", + "name": "onDurationChange", + "longname": "onDurationChange", + "scope": "global" + }, + { + "comment": "/**\n* Create and get TimeRange object for buffering \n*\n* @return {TimeRangeObject}\n* @method buffered\n*/", + "meta": { + "range": [ + 1918, + 2022 + ], + "filename": "tech.js", + "lineno": 155, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Create and get TimeRange object for buffering</p>", + "returns": [ + { + "type": { + "names": [ + "TimeRangeObject" + ] + } + } + ], + "kind": "function", + "name": "buffered", + "longname": "buffered", + "scope": "global" + }, + { + "comment": "/**\n* Get buffered percent\n*\n* @return {Number}\n* @method bufferedPercent\n*/", + "meta": { + "range": [ + 2035, + 2111 + ], + "filename": "tech.js", + "lineno": 165, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get buffered percent</p>", + "returns": [ + { + "type": { + "names": [ + "Number" + ] + } + } + ], + "kind": "function", + "name": "bufferedPercent", + "longname": "bufferedPercent", + "scope": "global" + }, + { + "comment": "/**\n* Stops tracking progress by clearing progress interval \n*\n* @method stopTrackingProgress\n*/", + "meta": { + "range": [ + 2124, + 2220 + ], + "filename": "tech.js", + "lineno": 175, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Stops tracking progress by clearing progress interval</p>", + "kind": "function", + "name": "stopTrackingProgress", + "longname": "stopTrackingProgress", + "scope": "global" + }, + { + "comment": "/**\n* Set event listeners for on play and pause and tracking current time\n*\n* @method manualTimeUpdatesOn\n*/", + "meta": { + "range": [ + 2317, + 2425 + ], + "filename": "tech.js", + "lineno": 185, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set event listeners for on play and pause and tracking current time</p>", + "kind": "function", + "name": "manualTimeUpdatesOn", + "longname": "manualTimeUpdatesOn", + "scope": "global" + }, + { + "comment": "/**\n* Remove event listeners for on play and pause and tracking current time\n*\n* @method manualTimeUpdatesOff\n*/", + "meta": { + "range": [ + 2447, + 2559 + ], + "filename": "tech.js", + "lineno": 197, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Remove event listeners for on play and pause and tracking current time</p>", + "kind": "function", + "name": "manualTimeUpdatesOff", + "longname": "manualTimeUpdatesOff", + "scope": "global" + }, + { + "comment": "/**\n* Tracks current time\n*\n* @method trackCurrentTime\n*/", + "meta": { + "range": [ + 2581, + 2638 + ], + "filename": "tech.js", + "lineno": 209, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Tracks current time</p>", + "kind": "function", + "name": "trackCurrentTime", + "longname": "trackCurrentTime", + "scope": "global" + }, + { + "comment": "/**\n* Turn off play progress tracking (when paused or dragging)\n*\n* @method stopTrackingCurrentTime\n*/", + "meta": { + "range": [ + 2660, + 2762 + ], + "filename": "tech.js", + "lineno": 221, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Turn off play progress tracking (when paused or dragging)</p>", + "kind": "function", + "name": "stopTrackingCurrentTime", + "longname": "stopTrackingCurrentTime", + "scope": "global" + }, + { + "comment": "/**\n* Turn off any manual progress or timeupdate tracking\n*\n* @method dispose\n*/", + "meta": { + "range": [ + 2787, + 2867 + ], + "filename": "tech.js", + "lineno": 234, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Turn off any manual progress or timeupdate tracking</p>", + "kind": "function", + "name": "dispose", + "longname": "dispose", + "scope": "global" + }, + { + "comment": "/**\n* Set current time \n*\n* @method setCurrentTime\n*/", + "meta": { + "range": [ + 2895, + 2948 + ], + "filename": "tech.js", + "lineno": 248, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Set current time</p>", + "kind": "function", + "name": "setCurrentTime", + "longname": "setCurrentTime", + "scope": "global" + }, + { + "comment": "/**\n* Initialize texttrack listeners \n*\n* @method initTextTrackListeners\n*/", + "meta": { + "range": [ + 2964, + 3039 + ], + "filename": "tech.js", + "lineno": 258, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Initialize texttrack listeners</p>", + "kind": "function", + "name": "initTextTrackListeners", + "longname": "initTextTrackListeners", + "scope": "global" + }, + { + "comment": "/**\n* Emulate texttracks \n*\n* @method emulateTextTracks\n*/", + "meta": { + "range": [ + 3094, + 3152 + ], + "filename": "tech.js", + "lineno": 281, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Emulate texttracks</p>", + "kind": "function", + "name": "emulateTextTracks", + "longname": "emulateTextTracks", + "scope": "global" + }, + { + "comment": "/**\n* Get texttracks \n*\n* @returns {TextTrackList}\n* @method textTracks\n*/", + "meta": { + "range": [ + 3345, + 3419 + ], + "filename": "tech.js", + "lineno": 328, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get texttracks</p>", + "returns": [ + { + "type": { + "names": [ + "TextTrackList" + ] + } + } + ], + "kind": "function", + "name": "textTracks", + "longname": "textTracks", + "scope": "global" + }, + { + "comment": "/**\n* Get remote texttracks \n*\n* @returns {TextTrackList}\n* @method remoteTextTracks\n*/", + "meta": { + "range": [ + 3435, + 3522 + ], + "filename": "tech.js", + "lineno": 339, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Get remote texttracks</p>", + "returns": [ + { + "type": { + "names": [ + "TextTrackList" + ] + } + } + ], + "kind": "function", + "name": "remoteTextTracks", + "longname": "remoteTextTracks", + "scope": "global" + }, + { + "comment": "/**\n* Creates and returns a remote text track object \n*\n* @param {String} kind Text track kind (subtitles, captions, descriptions\n* chapters and metadata)\n* @param {String=} label Label to identify the text track\n* @param {String=} language Two letter language abbreviation\n* @return {TextTrackObject}\n* @method addTextTrack\n*/", + "meta": { + "range": [ + 3538, + 3903 + ], + "filename": "tech.js", + "lineno": 350, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Creates and returns a remote text track object</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Text track kind (subtitles, captions, descriptions\n chapters and metadata)</p>", + "name": "kind" + }, + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Label to identify the text track</p>", + "name": "label" + }, + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Two letter language abbreviation</p>", + "name": "language" + } + ], + "returns": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + } + } + ], + "kind": "function", + "name": "addTextTrack", + "longname": "addTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Creates and returns a remote text track object \n*\n* @param {Object} options The object should contain values for\n* kind, language, label and src (location of the WebVTT file)\n* @return {TextTrackObject}\n* @method addRemoteTextTrack\n*/", + "meta": { + "range": [ + 3928, + 4168 + ], + "filename": "tech.js", + "lineno": 368, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Creates and returns a remote text track object</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The object should contain values for\nkind, language, label and src (location of the WebVTT file)</p>", + "name": "options" + } + ], + "returns": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + } + } + ], + "kind": "function", + "name": "addRemoteTextTrack", + "longname": "addRemoteTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Remove remote texttrack \n*\n* @param {TextTrackObject} track Texttrack to remove\n* @method removeRemoteTextTrack\n*/", + "meta": { + "range": [ + 4193, + 4313 + ], + "filename": "tech.js", + "lineno": 384, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Remove remote texttrack</p>", + "params": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + }, + "description": "<p>Texttrack to remove</p>", + "name": "track" + } + ], + "kind": "function", + "name": "removeRemoteTextTrack", + "longname": "removeRemoteTextTrack", + "scope": "global" + }, + { + "comment": "/**\n* Provide a default setPoster method for techs\n* Poster support for techs should be optional, so we don't want techs to\n* break if they don't have a way to set a poster.\n*\n* @method setPoster\n*/", + "meta": { + "range": [ + 4329, + 4527 + ], + "filename": "tech.js", + "lineno": 395, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech", + "code": {} + }, + "description": "<p>Provide a default setPoster method for techs\nPoster support for techs should be optional, so we don't want techs to\nbreak if they don't have a way to set a poster.</p>", + "kind": "function", + "name": "setPoster", + "longname": "setPoster", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-cue-list.js\n*/", + "meta": { + "range": [ + 0, + 37 + ], + "filename": "text-track-cue-list.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "name": "tracks/text-track-cue-list.js", + "kind": "file", + "description": "<p>text-track-cue-list.js</p>", + "preserveName": true, + "longname": "tracks/text-track-cue-list.js", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-display.js\n*/", + "meta": { + "range": [ + 0, + 36 + ], + "filename": "text-track-display.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "name": "tracks/text-track-display.js", + "kind": "file", + "description": "<p>text-track-display.js</p>", + "preserveName": true, + "longname": "tracks/text-track-display.js", + "scope": "global" + }, + { + "comment": "/**\n* The component for displaying text track cues\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class TextTrackDisplay\n*/", + "meta": { + "range": [ + 106, + 361 + ], + "filename": "text-track-display.js", + "lineno": 27, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>The component for displaying text track cues</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Ready callback function</p>", + "name": "ready" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "TextTrackDisplay", + "longname": "TextTrackDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Toggle display texttracks \n*\n* @method toggleDisplay\n*/", + "meta": { + "range": [ + 446, + 507 + ], + "filename": "text-track-display.js", + "lineno": 64, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Toggle display texttracks</p>", + "kind": "function", + "name": "toggleDisplay", + "longname": "toggleDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 532, + 616 + ], + "filename": "text-track-display.js", + "lineno": 77, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Clear display texttracks \n*\n* @method clearDisplay\n*/", + "meta": { + "range": [ + 635, + 694 + ], + "filename": "text-track-display.js", + "lineno": 89, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Clear display texttracks</p>", + "kind": "function", + "name": "clearDisplay", + "longname": "clearDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Update display texttracks \n*\n* @method updateDisplay\n*/", + "meta": { + "range": [ + 713, + 774 + ], + "filename": "text-track-display.js", + "lineno": 100, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Update display texttracks</p>", + "kind": "function", + "name": "updateDisplay", + "longname": "updateDisplay", + "scope": "global" + }, + { + "comment": "/**\n* Add texttrack to texttrack list \n*\n* @param {TextTrackObject} track Texttrack object to be added to list\n* @method updateForTrack\n*/", + "meta": { + "range": [ + 826, + 964 + ], + "filename": "text-track-display.js", + "lineno": 122, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Add texttrack to texttrack list</p>", + "params": [ + { + "type": { + "names": [ + "TextTrackObject" + ] + }, + "description": "<p>Texttrack object to be added to list</p>", + "name": "track" + } + ], + "kind": "function", + "name": "updateForTrack", + "longname": "updateForTrack", + "scope": "global" + }, + { + "comment": "/**\n* Add cue HTML to display\n*\n* @param {Number} color Hex number for color, like #f0e\n* @param {Number} opacity Value for opacity,0.0 - 1.0\n* @return {RGBAColor} In the form 'rgba(255, 0, 0, 0.3)'\n* @method constructColor\n*/", + "meta": { + "range": [ + 1187, + 1413 + ], + "filename": "text-track-display.js", + "lineno": 202, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Add cue HTML to display</p>", + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Hex number for color, like #f0e</p>", + "name": "color" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Value for opacity,0.0 - 1.0</p>", + "name": "opacity" + } + ], + "returns": [ + { + "type": { + "names": [ + "RGBAColor" + ] + }, + "description": "<p>In the form 'rgba(255, 0, 0, 0.3)'</p>" + } + ], + "kind": "function", + "name": "constructColor", + "longname": "constructColor", + "scope": "global" + }, + { + "comment": "/**\n* Try to update style\n* Some style changes will throw an error, particularly in IE8. Those should be noops.\n*\n* @param {Element} el The element to be styles\n* @param {CSSProperty} style The CSS property to be styled\n* @param {CSSStyle} rule The actual style to be applied to the property\n* @method tryUpdateStyle\n*/", + "meta": { + "range": [ + 1441, + 1760 + ], + "filename": "text-track-display.js", + "lineno": 219, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Try to update style\nSome style changes will throw an error, particularly in IE8. Those should be noops.</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>The element to be styles</p>", + "name": "el" + }, + { + "type": { + "names": [ + "CSSProperty" + ] + }, + "description": "<p>The CSS property to be styled</p>", + "name": "style" + }, + { + "type": { + "names": [ + "CSSStyle" + ] + }, + "description": "<p>The actual style to be applied to the property</p>", + "name": "rule" + } + ], + "kind": "function", + "name": "tryUpdateStyle", + "longname": "tryUpdateStyle", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-enums.js\n*\n* https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackmode\n*\n* enum TextTrackMode { \"disabled\", \"hidden\", \"showing\" };\n*/", + "meta": { + "range": [ + 0, + 175 + ], + "filename": "text-track-enums.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "name": "tracks/text-track-enums.js", + "kind": "file", + "description": "<p>text-track-enums.js</p>\n<p>https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackmode</p>\n<p>enum TextTrackMode { "disabled", "hidden", "showing" };</p>", + "preserveName": true, + "longname": "tracks/text-track-enums.js", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-list.js\n*/", + "meta": { + "range": [ + 0, + 33 + ], + "filename": "text-track-list.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "name": "tracks/text-track-list.js", + "kind": "file", + "description": "<p>text-track-list.js</p>", + "preserveName": true, + "longname": "tracks/text-track-list.js", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track-settings.js\n*/", + "meta": { + "range": [ + 0, + 37 + ], + "filename": "text-track-settings.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "name": "tracks/text-track-settings.js", + "kind": "file", + "description": "<p>text-track-settings.js</p>", + "preserveName": true, + "longname": "tracks/text-track-settings.js", + "scope": "global" + }, + { + "comment": "/**\n* Manipulate settings of texttracks\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Component\n* @class TextTrackSettings\n*/", + "meta": { + "range": [ + 59, + 250 + ], + "filename": "text-track-settings.js", + "lineno": 11, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Manipulate settings of texttracks</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Main Player</p>", + "name": "player" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Object of option names and values</p>", + "name": "options" + } + ], + "augments": [ + "Component" + ], + "kind": "class", + "name": "TextTrackSettings", + "longname": "TextTrackSettings", + "scope": "global" + }, + { + "comment": "/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/", + "meta": { + "range": [ + 383, + 467 + ], + "filename": "text-track-settings.js", + "lineno": 63, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Create the component's DOM element</p>", + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Get texttrack settings \n* Settings are\n* .vjs-edge-style\n* .vjs-font-family\n* .vjs-fg-color\n* .vjs-text-opacity\n* .vjs-bg-color\n* .vjs-bg-opacity\n* .window-color\n* .vjs-window-opacity \n*\n* @return {Object} \n* @method getValues\n*/", + "meta": { + "range": [ + 489, + 724 + ], + "filename": "text-track-settings.js", + "lineno": 76, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Get texttrack settings \nSettings are\n.vjs-edge-style\n.vjs-font-family\n.vjs-fg-color\n.vjs-text-opacity\n.vjs-bg-color\n.vjs-bg-opacity\n.window-color\n.vjs-window-opacity</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "kind": "function", + "name": "getValues", + "longname": "getValues", + "scope": "global" + }, + { + "comment": "/**\n* Set texttrack settings \n* Settings are\n* .vjs-edge-style\n* .vjs-font-family\n* .vjs-fg-color\n* .vjs-text-opacity\n* .vjs-bg-color\n* .vjs-bg-opacity\n* .window-color\n* .vjs-window-opacity \n*\n* @param {Object} values Object with texttrack setting values\n* @method setValues\n*/", + "meta": { + "range": [ + 821, + 1098 + ], + "filename": "text-track-settings.js", + "lineno": 123, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Set texttrack settings \nSettings are\n.vjs-edge-style\n.vjs-font-family\n.vjs-fg-color\n.vjs-text-opacity\n.vjs-bg-color\n.vjs-bg-opacity\n.window-color\n.vjs-window-opacity</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Object with texttrack setting values</p>", + "name": "values" + } + ], + "kind": "function", + "name": "setValues", + "longname": "setValues", + "scope": "global" + }, + { + "comment": "/**\n* Restore texttrack settings \n*\n* @method restoreSettings\n*/", + "meta": { + "range": [ + 1162, + 1226 + ], + "filename": "text-track-settings.js", + "lineno": 159, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Restore texttrack settings</p>", + "kind": "function", + "name": "restoreSettings", + "longname": "restoreSettings", + "scope": "global" + }, + { + "comment": "/**\n* Save texttrack settings to local storage \n*\n* @method saveSettings\n*/", + "meta": { + "range": [ + 1263, + 1338 + ], + "filename": "text-track-settings.js", + "lineno": 176, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Save texttrack settings to local storage</p>", + "kind": "function", + "name": "saveSettings", + "longname": "saveSettings", + "scope": "global" + }, + { + "comment": "/**\n* Update display of texttrack settings \n*\n* @method updateDisplay\n*/", + "meta": { + "range": [ + 1384, + 1457 + ], + "filename": "text-track-settings.js", + "lineno": 196, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "description": "<p>Update display of texttrack settings</p>", + "kind": "function", + "name": "updateDisplay", + "longname": "updateDisplay", + "scope": "global" + }, + { + "comment": "/**\n* @file text-track.js\n*/", + "meta": { + "range": [ + 0, + 28 + ], + "filename": "text-track.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks", + "code": {} + }, + "name": "tracks/text-track.js", + "kind": "file", + "description": "<p>text-track.js</p>", + "preserveName": true, + "longname": "tracks/text-track.js", + "scope": "global" + }, + { + "comment": "/**\n* @file browser.js\n*/", + "meta": { + "range": [ + 0, + 25 + ], + "filename": "browser.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/browser.js", + "kind": "file", + "description": "<p>browser.js</p>", + "preserveName": true, + "longname": "utils/browser.js", + "scope": "global" + }, + { + "comment": "/**\n* @file buffer.js\n*/", + "meta": { + "range": [ + 0, + 24 + ], + "filename": "buffer.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/buffer.js", + "kind": "file", + "description": "<p>buffer.js</p>", + "preserveName": true, + "longname": "utils/buffer.js", + "scope": "global" + }, + { + "comment": "/**\n* Compute how much your video has been buffered\n*\n* @param {Object} Buffered object\n* @param {Number} Total duration\n* @return {Number} Percent buffered of the total duration\n* @private\n* @function bufferedPercent\n*/", + "meta": { + "range": [ + 31, + 253 + ], + "filename": "buffer.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Compute how much your video has been buffered</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>object</p>", + "name": "Buffered" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>duration</p>", + "name": "Total" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Percent buffered of the total duration</p>" + } + ], + "access": "private", + "kind": "function", + "name": "bufferedPercent", + "longname": "bufferedPercent", + "scope": "global" + }, + { + "comment": "/**\n* @file dom.js\n*/", + "meta": { + "range": [ + 0, + 21 + ], + "filename": "dom.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/dom.js", + "kind": "file", + "description": "<p>dom.js</p>", + "preserveName": true, + "longname": "utils/dom.js", + "scope": "global" + }, + { + "comment": "/**\n* Shorthand for document.getElementById()\n* Also allows for CSS (jQuery) ID syntax. But nothing other than IDs.\n*\n* @param {String} id Element ID\n* @return {Element} Element with supplied ID\n* @function getEl\n*/", + "meta": { + "range": [ + 37, + 257 + ], + "filename": "dom.js", + "lineno": 9, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Shorthand for document.getElementById()\nAlso allows for CSS (jQuery) ID syntax. But nothing other than IDs.</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Element ID</p>", + "name": "id" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element with supplied ID</p>" + } + ], + "kind": "function", + "name": "getEl", + "longname": "getEl", + "scope": "global" + }, + { + "comment": "/**\n* Creates an element and applies properties.\n*\n* @param {String=} tagName Name of tag to be created.\n* @param {Object=} properties Element properties to be applied.\n* @return {Element}\n* @function createEl\n*/", + "meta": { + "range": [ + 282, + 499 + ], + "filename": "dom.js", + "lineno": 25, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Creates an element and applies properties.</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "optional": true, + "description": "<p>Name of tag to be created.</p>", + "name": "tagName" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Element properties to be applied.</p>", + "name": "properties" + } + ], + "returns": [ + { + "type": { + "names": [ + "Element" + ] + } + } + ], + "kind": "function", + "name": "createEl", + "longname": "createEl", + "scope": "global" + }, + { + "comment": "/**\n* Insert an element as the first child node of another\n* \n* @param {Element} child Element to insert\n* @param {Element} parent Element to insert child into\n* @private\n* @function insertElFirst\n*/", + "meta": { + "range": [ + 572, + 775 + ], + "filename": "dom.js", + "lineno": 57, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Insert an element as the first child node of another</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element to insert</p>", + "name": "child" + }, + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element to insert child into</p>", + "name": "parent" + } + ], + "access": "private", + "kind": "function", + "name": "insertElFirst", + "longname": "insertElFirst", + "scope": "global" + }, + { + "comment": "/**\n* Returns the cache object where data for an element is stored\n*\n* @param {Element} el Element to store data for.\n* @return {Object}\n* @function getElData\n*/", + "meta": { + "range": [ + 1172, + 1334 + ], + "filename": "dom.js", + "lineno": 92, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Returns the cache object where data for an element is stored</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element to store data for.</p>", + "name": "el" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "kind": "function", + "name": "getElData", + "longname": "getElData", + "scope": "global" + }, + { + "comment": "/**\n* Returns whether or not an element has cached data\n*\n* @param {Element} el A dom element\n* @return {Boolean}\n* @private\n* @function hasElData\n*/", + "meta": { + "range": [ + 1377, + 1527 + ], + "filename": "dom.js", + "lineno": 113, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Returns whether or not an element has cached data</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>A dom element</p>", + "name": "el" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "access": "private", + "kind": "function", + "name": "hasElData", + "longname": "hasElData", + "scope": "global" + }, + { + "comment": "/**\n* Delete data for the element from the cache and the guid attr from getElementById\n*\n* @param {Element} el Remove data for an element\n* @private\n* @function removeElData\n*/", + "meta": { + "range": [ + 1558, + 1735 + ], + "filename": "dom.js", + "lineno": 131, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Delete data for the element from the cache and the guid attr from getElementById</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Remove data for an element</p>", + "name": "el" + } + ], + "access": "private", + "kind": "function", + "name": "removeElData", + "longname": "removeElData", + "scope": "global" + }, + { + "comment": "/**\n* Check if an element has a CSS class\n*\n* @param {Element} element Element to check\n* @param {String} classToCheck Classname to check\n* @function hasElClass\n*/", + "meta": { + "range": [ + 1805, + 1968 + ], + "filename": "dom.js", + "lineno": 161, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Check if an element has a CSS class</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element to check</p>", + "name": "element" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Classname to check</p>", + "name": "classToCheck" + } + ], + "kind": "function", + "name": "hasElClass", + "longname": "hasElClass", + "scope": "global" + }, + { + "comment": "/**\n* Add a CSS class name to an element\n*\n* @param {Element} element Element to add class name to\n* @param {String} classToAdd Classname to add\n* @function addElClass\n*/", + "meta": { + "range": [ + 1981, + 2154 + ], + "filename": "dom.js", + "lineno": 172, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Add a CSS class name to an element</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element to add class name to</p>", + "name": "element" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Classname to add</p>", + "name": "classToAdd" + } + ], + "kind": "function", + "name": "addElClass", + "longname": "addElClass", + "scope": "global" + }, + { + "comment": "/**\n* Remove a CSS class name from an element\n*\n* @param {Element} element Element to remove from class name\n* @param {String} classToRemove Classname to remove\n* @function removeElClass\n*/", + "meta": { + "range": [ + 2173, + 2365 + ], + "filename": "dom.js", + "lineno": 185, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Remove a CSS class name from an element</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element to remove from class name</p>", + "name": "element" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Classname to remove</p>", + "name": "classToRemove" + } + ], + "kind": "function", + "name": "removeElClass", + "longname": "removeElClass", + "scope": "global" + }, + { + "comment": "/**\n* Apply attributes to an HTML element.\n*\n* @param {Element} el Target element.\n* @param {Object=} attributes Element attributes to be applied.\n* @private\n* @function setElAttributes\n*/", + "meta": { + "range": [ + 2411, + 2609 + ], + "filename": "dom.js", + "lineno": 207, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Apply attributes to an HTML element.</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Target element.</p>", + "name": "el" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Element attributes to be applied.</p>", + "name": "attributes" + } + ], + "access": "private", + "kind": "function", + "name": "setElAttributes", + "longname": "setElAttributes", + "scope": "global" + }, + { + "comment": "/**\n* Get an element's attribute values, as defined on the HTML tag\n* Attributes are not the same as properties. They're defined on the tag\n* or with setAttribute (which shouldn't be used with HTML)\n* This will return true or false for boolean attributes.\n*\n* @param {Element} tag Element from which to get tag attributes\n* @return {Object}\n* @private\n* @function getElAttributes\n*/", + "meta": { + "range": [ + 2646, + 3029 + ], + "filename": "dom.js", + "lineno": 227, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Get an element's attribute values, as defined on the HTML tag\nAttributes are not the same as properties. They're defined on the tag\nor with setAttribute (which shouldn't be used with HTML)\nThis will return true or false for boolean attributes.</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element from which to get tag attributes</p>", + "name": "tag" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "access": "private", + "kind": "function", + "name": "getElAttributes", + "longname": "getElAttributes", + "scope": "global" + }, + { + "comment": "/**\n* Attempt to block the ability to select text while dragging controls\n*\n* @return {Boolean} \n* @method blockTextSelection\n*/", + "meta": { + "range": [ + 3129, + 3257 + ], + "filename": "dom.js", + "lineno": 271, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Attempt to block the ability to select text while dragging controls</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "blockTextSelection", + "longname": "blockTextSelection", + "scope": "global" + }, + { + "comment": "/**\n* Turn off text selection blocking\n*\n* @return {Boolean} \n* @method unblockTextSelection\n*/", + "meta": { + "range": [ + 3279, + 3374 + ], + "filename": "dom.js", + "lineno": 284, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Turn off text selection blocking</p>", + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + } + } + ], + "kind": "function", + "name": "unblockTextSelection", + "longname": "unblockTextSelection", + "scope": "global" + }, + { + "comment": "/**\n* Offset Left\n* getBoundingClientRect technique from \n* John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/\n*\n* @param {Element} el Element from which to get offset\n* @return {Object=} \n* @method findElPosition\n*/", + "meta": { + "range": [ + 3393, + 3625 + ], + "filename": "dom.js", + "lineno": 296, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Offset Left\ngetBoundingClientRect technique from \nJohn Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/</p>", + "params": [ + { + "type": { + "names": [ + "Element" + ] + }, + "description": "<p>Element from which to get offset</p>", + "name": "el" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true + } + ], + "kind": "function", + "name": "findElPosition", + "longname": "findElPosition", + "scope": "global" + }, + { + "comment": "/**\n* @file events.js\n*\n* Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)\n* (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)\n* This should work very similarly to jQuery's events, however it's based off the book version which isn't as\n* robust as jquery's, so there's probably some differences.\n*/", + "meta": { + "range": [ + 0, + 377 + ], + "filename": "events.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/events.js", + "kind": "file", + "description": "<p>events.js</p>\n<p>Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)\n(Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)\nThis should work very similarly to jQuery's events, however it's based off the book version which isn't as\nrobust as jquery's, so there's probably some differences.</p>", + "preserveName": true, + "longname": "utils/events.js", + "scope": "global" + }, + { + "comment": "/**\n* Add an event listener to element\n* It stores the handler function in a separate cache object\n* and adds a generic handler to the element's event,\n* along with a unique id (guid) to the element.\n* \n* @param {Element|Object} elem Element or object to bind listeners to\n* @param {String|Array} type Type of event to bind to.\n* @param {Function} fn Event listener.\n* @method on\n*/", + "meta": { + "range": [ + 396, + 787 + ], + "filename": "events.js", + "lineno": 15, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Add an event listener to element\nIt stores the handler function in a separate cache object\nand adds a generic handler to the element's event,\nalong with a unique id (guid) to the element.</p>", + "params": [ + { + "type": { + "names": [ + "Element", + "Object" + ] + }, + "description": "<p>Element or object to bind listeners to</p>", + "name": "elem" + }, + { + "type": { + "names": [ + "String", + "Array" + ] + }, + "description": "<p>Type of event to bind to.</p>", + "name": "type" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>Event listener.</p>", + "name": "fn" + } + ], + "kind": "function", + "name": "on", + "longname": "on", + "scope": "global" + }, + { + "comment": "/**\n* Removes event listeners from an element\n*\n* @param {Element|Object} elem Object to remove listeners from\n* @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.\n* @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.\n* @method off\n*/", + "meta": { + "range": [ + 938, + 1286 + ], + "filename": "events.js", + "lineno": 76, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Removes event listeners from an element</p>", + "params": [ + { + "type": { + "names": [ + "Element", + "Object" + ] + }, + "description": "<p>Object to remove listeners from</p>", + "name": "elem" + }, + { + "type": { + "names": [ + "String", + "Array" + ] + }, + "description": "<p>Type of listener to remove. Don't include to remove all events from element.</p>", + "name": "type" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>Specific listener to remove. Don't include to remove listeners for an event type.</p>", + "name": "fn" + } + ], + "kind": "function", + "name": "off", + "longname": "off", + "scope": "global" + }, + { + "comment": "/**\n* Trigger an event for an element\n*\n* @param {Element|Object} elem Element to trigger an event on\n* @param {Event|Object|String} event A string (the type) or an event object with a type attribute\n* @param {Object} [hash] data hash to pass along with the event\n* @return {Boolean=} Returned only if default was prevented\n* @method trigger\n*/", + "meta": { + "range": [ + 1431, + 1784 + ], + "filename": "events.js", + "lineno": 132, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Trigger an event for an element</p>", + "params": [ + { + "type": { + "names": [ + "Element", + "Object" + ] + }, + "description": "<p>Element to trigger an event on</p>", + "name": "elem" + }, + { + "type": { + "names": [ + "Event", + "Object", + "String" + ] + }, + "description": "<p>A string (the type) or an event object with a type attribute</p>", + "name": "event" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>data hash to pass along with the event</p>", + "name": "hash" + } + ], + "returns": [ + { + "type": { + "names": [ + "Boolean" + ] + }, + "optional": true, + "description": "<p>Returned only if default was prevented</p>" + } + ], + "kind": "function", + "name": "trigger", + "longname": "trigger", + "scope": "global" + }, + { + "comment": "/**\n* Trigger a listener only once for an event\n*\n* @param {Element|Object} elem Element or object to\n* @param {String|Array} type Name/type of event\n* @param {Function} fn Event handler function\n* @method one\n*/", + "meta": { + "range": [ + 1926, + 2145 + ], + "filename": "events.js", + "lineno": 188, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Trigger a listener only once for an event</p>", + "params": [ + { + "type": { + "names": [ + "Element", + "Object" + ] + }, + "description": "<p>Element or object to</p>", + "name": "elem" + }, + { + "type": { + "names": [ + "String", + "Array" + ] + }, + "description": "<p>Name/type of event</p>", + "name": "type" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>Event handler function</p>", + "name": "fn" + } + ], + "kind": "function", + "name": "one", + "longname": "one", + "scope": "global" + }, + { + "comment": "/**\n* Fix a native event to have standard property values\n* \n* @param {Object} event Event object to fix\n* @return {Object}\n* @private\n* @method fixEvent\n*/", + "meta": { + "range": [ + 2185, + 2342 + ], + "filename": "events.js", + "lineno": 209, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Fix a native event to have standard property values</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Event object to fix</p>", + "name": "event" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + } + } + ], + "access": "private", + "kind": "function", + "name": "fixEvent", + "longname": "fixEvent", + "scope": "global" + }, + { + "comment": "/**\n* Clean up the listener cache and dispatchers\n*\n* @param {Element|Object} elem Element to clean up\n* @param {String} type Type of event to clean up\n* @private\n* @method _cleanUpEvents\n*/", + "meta": { + "range": [ + 2649, + 2841 + ], + "filename": "events.js", + "lineno": 319, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Clean up the listener cache and dispatchers</p>", + "params": [ + { + "type": { + "names": [ + "Element", + "Object" + ] + }, + "description": "<p>Element to clean up</p>", + "name": "elem" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Type of event to clean up</p>", + "name": "type" + } + ], + "access": "private", + "kind": "function", + "name": "_cleanUpEvents", + "longname": "_cleanUpEvents", + "scope": "global" + }, + { + "comment": "/**\n* Loops through an array of event types and calls the requested method for each type.\n*\n* @param {Function} fn The event method we want to use.\n* @param {Element|Object} elem Element or object to bind listeners to\n* @param {String} type Type of event to bind to.\n* @param {Function} callback Event listener.\n* @private\n* @function _handleMultipleEvents\n*/", + "meta": { + "range": [ + 2932, + 3301 + ], + "filename": "events.js", + "lineno": 357, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Loops through an array of event types and calls the requested method for each type.</p>", + "params": [ + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The event method we want to use.</p>", + "name": "fn" + }, + { + "type": { + "names": [ + "Element", + "Object" + ] + }, + "description": "<p>Element or object to bind listeners to</p>", + "name": "elem" + }, + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Type of event to bind to.</p>", + "name": "type" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>Event listener.</p>", + "name": "callback" + } + ], + "access": "private", + "kind": "function", + "name": "_handleMultipleEvents", + "longname": "_handleMultipleEvents", + "scope": "global" + }, + { + "comment": "/**\n* @file fn.js\n*/", + "meta": { + "range": [ + 0, + 20 + ], + "filename": "fn.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/fn.js", + "kind": "file", + "description": "<p>fn.js</p>", + "preserveName": true, + "longname": "utils/fn.js", + "scope": "global" + }, + { + "comment": "/**\n* Bind (a.k.a proxy or Context). A simple method for changing the context of a function\n* It also stores a unique id on the function so it can be easily removed from events\n*\n* @param {*} context The object to bind as scope\n* @param {Function} fn The function to be bound to a scope\n* @param {Number=} uid An optional unique ID for the function to be set\n* @return {Function}\n* @private\n* @method bind\n*/", + "meta": { + "range": [ + 27, + 451 + ], + "filename": "fn.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Bind (a.k.a proxy or Context). A simple method for changing the context of a function\nIt also stores a unique id on the function so it can be easily removed from events</p>", + "params": [ + { + "type": { + "names": [ + "*" + ] + }, + "description": "<p>The object to bind as scope</p>", + "name": "context" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The function to be bound to a scope</p>", + "name": "fn" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "optional": true, + "description": "<p>An optional unique ID for the function to be set</p>", + "name": "uid" + } + ], + "returns": [ + { + "type": { + "names": [ + "function" + ] + } + } + ], + "access": "private", + "kind": "function", + "name": "bind", + "longname": "bind", + "scope": "global" + }, + { + "comment": "/**\n* @file format-time.js\n*\n* Format seconds as a time string, H:MM:SS or M:SS\n* Supplying a guide (in seconds) will force a number of leading zeros\n* to cover the length of the guide\n*\n* @param {Number} seconds Number of seconds to be turned into a string\n* @param {Number} guide Number (in seconds) to model the string after\n* @return {String} Time formatted as H:MM:SS or M:SS\n* @private\n* @function formatTime\n*/", + "meta": { + "range": [ + 0, + 429 + ], + "filename": "format-time.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "formatTime", + "kind": "function", + "description": "<p>format-time.js</p>\n<p>Format seconds as a time string, H:MM:SS or M:SS\nSupplying a guide (in seconds) will force a number of leading zeros\nto cover the length of the guide</p>", + "preserveName": true, + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Number of seconds to be turned into a string</p>", + "name": "seconds" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Number (in seconds) to model the string after</p>", + "name": "guide" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Time formatted as H:MM:SS or M:SS</p>" + } + ], + "access": "private", + "longname": "formatTime", + "scope": "global" + }, + { + "comment": "/**\n* @file guid.js\n*\n* Unique ID for an element or function\n* @type {Number}\n* @private\n*/", + "meta": { + "range": [ + 0, + 91 + ], + "filename": "guid.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/guid.js", + "kind": "file", + "description": "<p>guid.js</p>\n<p>Unique ID for an element or function</p>", + "preserveName": true, + "type": { + "names": [ + "Number" + ] + }, + "access": "private", + "longname": "utils/guid.js", + "scope": "global" + }, + { + "comment": "/**\n* Get the next unique ID\n*\n* @return {String} \n* @function newGUID\n*/", + "meta": { + "range": [ + 98, + 171 + ], + "filename": "guid.js", + "lineno": 10, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Get the next unique ID</p>", + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "kind": "function", + "name": "newGUID", + "longname": "newGUID", + "scope": "global" + }, + { + "comment": "/**\n* @file log.js\n*/", + "meta": { + "range": [ + 0, + 21 + ], + "filename": "log.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/log.js", + "kind": "file", + "description": "<p>log.js</p>", + "preserveName": true, + "longname": "utils/log.js", + "scope": "global" + }, + { + "comment": "/**\n* Log messages to the console and history based on the type of message\n*\n* @param {String} type The type of message, or `null` for `log`\n* @param {Object} args The args to be passed to the log\n* @private\n* @method _logType\n*/", + "meta": { + "range": [ + 218, + 449 + ], + "filename": "log.js", + "lineno": 33, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Log messages to the console and history based on the type of message</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The type of message, or <code>null</code> for <code>log</code></p>", + "name": "type" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The args to be passed to the log</p>", + "name": "args" + } + ], + "access": "private", + "kind": "function", + "name": "_logType", + "longname": "_logType", + "scope": "global" + }, + { + "comment": "/**\n* @file merge-options.js\n*/", + "meta": { + "range": [ + 0, + 31 + ], + "filename": "merge-options.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/merge-options.js", + "kind": "file", + "description": "<p>merge-options.js</p>", + "preserveName": true, + "longname": "utils/merge-options.js", + "scope": "global" + }, + { + "comment": "/**\n* Merge two options objects, recursively merging **only** plain object\n* properties. Previously `deepMerge`.\n*\n* @param {Object} object The destination object\n* @param {...Object} source One or more objects to merge into the first\n* @returns {Object} The updated first object\n* @function mergeOptions\n*/", + "meta": { + "range": [ + 59, + 381 + ], + "filename": "merge-options.js", + "lineno": 13, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Merge two options objects, recursively merging <strong>only</strong> plain object\nproperties. Previously <code>deepMerge</code>.</p>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The destination object</p>", + "name": "object" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "variable": true, + "description": "<p>One or more objects to merge into the first</p>", + "name": "source" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The updated first object</p>" + } + ], + "kind": "function", + "name": "mergeOptions", + "longname": "mergeOptions", + "scope": "global" + }, + { + "comment": "/**\n* @file round-float.js\n*\n* Should round off a number to a decimal place\n*\n* @param {Number} num Number to round\n* @param {Number} dec Number of decimal places to round to\n* @return {Number} Rounded number\n* @private\n* @method roundFloat\n*/", + "meta": { + "range": [ + 0, + 249 + ], + "filename": "round-float.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "roundFloat", + "kind": "function", + "description": "<p>round-float.js</p>\n<p>Should round off a number to a decimal place</p>", + "preserveName": true, + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Number to round</p>", + "name": "num" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Number of decimal places to round to</p>", + "name": "dec" + } + ], + "returns": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Rounded number</p>" + } + ], + "access": "private", + "longname": "roundFloat", + "scope": "global" + }, + { + "comment": "/**\n* @file time-ranges.js\n*\n* Should create a fake TimeRange object\n* Mimics an HTML5 time range instance, which has functions that\n* return the start and end times for a range\n* TimeRanges are returned by the buffered() method\n*\n* @param {Number} start Start time in seconds\n* @param {Number} end End time in seconds\n* @return {Object} Fake TimeRange object\n* @private\n* @method createTimeRange\n*/", + "meta": { + "range": [ + 0, + 409 + ], + "filename": "time-ranges.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "createTimeRange", + "kind": "function", + "description": "<p>time-ranges.js</p>\n<p>Should create a fake TimeRange object\nMimics an HTML5 time range instance, which has functions that\nreturn the start and end times for a range\nTimeRanges are returned by the buffered() method</p>", + "preserveName": true, + "params": [ + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>Start time in seconds</p>", + "name": "start" + }, + { + "type": { + "names": [ + "Number" + ] + }, + "description": "<p>End time in seconds</p>", + "name": "end" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>Fake TimeRange object</p>" + } + ], + "access": "private", + "longname": "createTimeRange", + "scope": "global" + }, + { + "comment": "/**\n* @file to-title-case.js\n*\n* Uppercase the first letter of a string\n*\n* @param {String} string String to be uppercased\n* @return {String}\n* @private\n* @method toTitleCase\n*/", + "meta": { + "range": [ + 0, + 178 + ], + "filename": "to-title-case.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "toTitleCase", + "kind": "function", + "description": "<p>to-title-case.js</p>\n<p>Uppercase the first letter of a string</p>", + "preserveName": true, + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>String to be uppercased</p>", + "name": "string" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + } + } + ], + "access": "private", + "longname": "toTitleCase", + "scope": "global" + }, + { + "comment": "/**\n* @file url.js\n*/", + "meta": { + "range": [ + 0, + 21 + ], + "filename": "url.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "name": "utils/url.js", + "kind": "file", + "description": "<p>url.js</p>", + "preserveName": true, + "longname": "utils/url.js", + "scope": "global" + }, + { + "comment": "/**\n* Resolve and parse the elements of a URL\n*\n* @param {String} url The url to parse\n* @return {Object} An object of url details\n* @method parseUrl\n*/", + "meta": { + "range": [ + 28, + 185 + ], + "filename": "url.js", + "lineno": 6, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Resolve and parse the elements of a URL</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The url to parse</p>", + "name": "url" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>An object of url details</p>" + } + ], + "kind": "function", + "name": "parseUrl", + "longname": "parseUrl", + "scope": "global" + }, + { + "comment": "/**\n* Get absolute version of relative URL. Used to tell flash correct URL.\n* http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue\n*\n* @param {String} url URL to make absolute\n* @return {String} Absolute URL\n* @private\n* @method getAbsoluteURL\n*/", + "meta": { + "range": [ + 321, + 615 + ], + "filename": "url.js", + "lineno": 58, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Get absolute version of relative URL. Used to tell flash correct URL.\nhttp://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>URL to make absolute</p>", + "name": "url" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>Absolute URL</p>" + } + ], + "access": "private", + "kind": "function", + "name": "getAbsoluteURL", + "longname": "getAbsoluteURL", + "scope": "global" + }, + { + "comment": "/**\n* Returns the extension of the passed file name. It will return an empty string if you pass an invalid path\n*\n* @param {String} path The fileName path like '/path/to/file.mp4'\n* @returns {String} The extension in lower case or an empty string if no extension could be found.\n* @method getFileExtension\n*/", + "meta": { + "range": [ + 652, + 975 + ], + "filename": "url.js", + "lineno": 79, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils", + "code": {} + }, + "description": "<p>Returns the extension of the passed file name. It will return an empty string if you pass an invalid path</p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The fileName path like '/path/to/file.mp4'</p>", + "name": "path" + } + ], + "returns": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The extension in lower case or an empty string if no extension could be found.</p>" + } + ], + "kind": "function", + "name": "getFileExtension", + "longname": "getFileExtension", + "scope": "global" + }, + { + "comment": "/**\n* @file video.js\n*/", + "meta": { + "range": [ + 0, + 23 + ], + "filename": "video.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "video.js", + "kind": "file", + "description": "<p>video.js</p>", + "preserveName": true, + "longname": "video.js", + "scope": "global" + }, + { + "comment": "/**\n* Doubles as the main function for users to create a player instance and also\n* the main library object.\n* The `videojs` function can be used to initialize or retrieve a player.\n* ```js\n* var myPlayer = videojs('my_video_id');\n* ```\n*\n* @param {String|Element} id Video element or video element ID\n* @param {Object=} options Optional options object for config/settings\n* @param {Function=} ready Optional ready callback\n* @return {Player} A player instance\n* @mixes videojs\n* @method videojs\n*/", + "meta": { + "range": [ + 102, + 642 + ], + "filename": "video.js", + "lineno": 30, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Doubles as the main function for users to create a player instance and also\nthe main library object.\nThe <code>videojs</code> function can be used to initialize or retrieve a player.</p>\n<pre class=\"prettyprint source lang-js\"><code> var myPlayer = videojs('my_video_id');</code></pre>", + "params": [ + { + "type": { + "names": [ + "String", + "Element" + ] + }, + "description": "<p>Video element or video element ID</p>", + "name": "id" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "optional": true, + "description": "<p>Optional options object for config/settings</p>", + "name": "options" + }, + { + "type": { + "names": [ + "function" + ] + }, + "optional": true, + "description": "<p>Optional ready callback</p>", + "name": "ready" + } + ], + "returns": [ + { + "type": { + "names": [ + "Player" + ] + }, + "description": "<p>A player instance</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "videojs", + "longname": "videojs", + "scope": "global" + }, + { + "comment": "/**\n* Get the global options object\n*\n* @return {Object} The global options object\n* @mixes videojs\n* @method getGlobalOptions\n*/", + "meta": { + "range": [ + 860, + 989 + ], + "filename": "video.js", + "lineno": 102, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get the global options object</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The global options object</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "getGlobalOptions", + "longname": "getGlobalOptions", + "scope": "global" + }, + { + "comment": "/**\n* Set options that will apply to every player\n* ```js\n* videojs.setGlobalOptions({\n* autoplay: true\n* });\n* // -> all players will autoplay by default\n* ```\n* NOTE: This will do a deep merge with the new options,\n* not overwrite the entire global options object.\n*\n* @return {Object} The updated global options object\n* @mixes videojs\n* @method setGlobalOptions\n*/", + "meta": { + "range": [ + 996, + 1382 + ], + "filename": "video.js", + "lineno": 111, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Set options that will apply to every player</p>\n<pre class=\"prettyprint source lang-js\"><code> videojs.setGlobalOptions({\n autoplay: true\n });\n // -> all players will autoplay by default</code></pre><p>NOTE: This will do a deep merge with the new options,\nnot overwrite the entire global options object.</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The updated global options object</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "setGlobalOptions", + "longname": "setGlobalOptions", + "scope": "global" + }, + { + "comment": "/**\n* Get an object with the currently created players, keyed by player ID\n*\n* @return {Object} The created players\n* @mixes videojs\n* @method getPlayers\n*/", + "meta": { + "range": [ + 1395, + 1551 + ], + "filename": "video.js", + "lineno": 130, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get an object with the currently created players, keyed by player ID</p>", + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The created players</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "getPlayers", + "longname": "getPlayers", + "scope": "global" + }, + { + "comment": "/**\n* Get a component class object by name\n* ```js\n* var VjsButton = videojs.getComponent('Button');\n* // Create a new instance of the component\n* var myButton = new VjsButton(myPlayer);\n* ```\n*\n* @return {Component} Component identified by name\n* @mixes videojs\n* @method getComponent\n*/", + "meta": { + "range": [ + 1564, + 1864 + ], + "filename": "video.js", + "lineno": 141, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Get a component class object by name</p>\n<pre class=\"prettyprint source lang-js\"><code> var VjsButton = videojs.getComponent('Button');\n // Create a new instance of the component\n var myButton = new VjsButton(myPlayer);</code></pre>", + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>Component identified by name</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "getComponent", + "longname": "getComponent", + "scope": "global" + }, + { + "comment": "/**\n* Register a component so it can referred to by name\n* Used when adding to other\n* components, either through addChild\n* `component.addChild('myComponent')`\n* or through default children options\n* `{ children: ['myComponent'] }`.\n* ```js\n* // Get a component to subclass\n* var VjsButton = videojs.getComponent('Button');\n* // Subclass the component (see 'extends' doc for more info)\n* var MySpecialButton = videojs.extends(VjsButton, {});\n* // Register the new component\n* VjsButton.registerComponent('MySepcialButton', MySepcialButton);\n* // (optionally) add the new component as a default player child\n* myPlayer.addChild('MySepcialButton');\n* ```\n* NOTE: You could also just initialize the component before adding.\n* `component.addChild(new MyComponent());`\n*\n* @param {String} The class name of the component\n* @param {Component} The component class\n* @return {Component} The newly registered component\n* @mixes videojs\n* @method registerComponent\n*/", + "meta": { + "range": [ + 1871, + 2861 + ], + "filename": "video.js", + "lineno": 155, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Register a component so it can referred to by name\nUsed when adding to other\ncomponents, either through addChild\n<code>component.addChild('myComponent')</code>\nor through default children options\n<code>{ children: ['myComponent'] }</code>.</p>\n<pre class=\"prettyprint source lang-js\"><code> // Get a component to subclass\n var VjsButton = videojs.getComponent('Button');\n // Subclass the component (see 'extends' doc for more info)\n var MySpecialButton = videojs.extends(VjsButton, {});\n // Register the new component\n VjsButton.registerComponent('MySepcialButton', MySepcialButton);\n // (optionally) add the new component as a default player child\n myPlayer.addChild('MySepcialButton');</code></pre><p>NOTE: You could also just initialize the component before adding.\n<code>component.addChild(new MyComponent());</code></p>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>class name of the component</p>", + "name": "The" + }, + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>component class</p>", + "name": "The" + } + ], + "returns": [ + { + "type": { + "names": [ + "Component" + ] + }, + "description": "<p>The newly registered component</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "registerComponent", + "longname": "registerComponent", + "scope": "global" + }, + { + "comment": "/**\n* Subclass an existing class\n* Mimics ES6 subclassing with the `extends` keyword\n* ```js\n* // Create a basic javascript 'class'\n* function MyClass(name){\n* // Set a property at initialization\n* this.myName = name;\n* }\n* // Create an instance method\n* MyClass.prototype.sayMyName = function(){\n* alert(this.myName);\n* };\n* // Subclass the exisitng class and change the name\n* // when initializing\n* var MySubClass = videojs.extends(MyClass, {\n* constructor: function(name) {\n* // Call the super class constructor for the subclass\n* MyClass.call(this, name)\n* }\n* });\n* // Create an instance of the new sub class\n* var myInstance = new MySubClass('John');\n* myInstance.sayMyName(); // -> should alert \"John\"\n* ```\n*\n* @param {Function} The Class to subclass\n* @param {Object} An object including instace methods for the new class\n* Optionally including a `constructor` function\n* @return {Function} The newly created subclass\n* @mixes videojs\n* @method extends\n*/", + "meta": { + "range": [ + 2937, + 4018 + ], + "filename": "video.js", + "lineno": 190, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Subclass an existing class\nMimics ES6 subclassing with the <code>extends</code> keyword</p>\n<pre class=\"prettyprint source lang-js\"><code> // Create a basic javascript 'class'\n function MyClass(name){\n // Set a property at initialization\n this.myName = name;\n }\n // Create an instance method\n MyClass.prototype.sayMyName = function(){\n alert(this.myName);\n };\n // Subclass the exisitng class and change the name\n // when initializing\n var MySubClass = videojs.extends(MyClass, {\n constructor: function(name) {\n // Call the super class constructor for the subclass\n MyClass.call(this, name)\n }\n });\n // Create an instance of the new sub class\n var myInstance = new MySubClass('John');\n myInstance.sayMyName(); // -> should alert "John"</code></pre>", + "params": [ + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>Class to subclass</p>", + "name": "The" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>object including instace methods for the new class\n Optionally including a <code>constructor</code> function</p>", + "name": "An" + } + ], + "returns": [ + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>The newly created subclass</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "extends", + "longname": "extends", + "scope": "global" + }, + { + "comment": "/**\n* Merge two options objects recursively\n* Performs a deep merge like lodash.merge but **only merges plain objects**\n* (not arrays, elements, anything else)\n* Other values will be copied directly from the second object.\n* ```js\n* var defaultOptions = {\n* foo: true,\n* bar: {\n* a: true,\n* b: [1,2,3]\n* }\n* };\n* var newOptions = {\n* foo: false,\n* bar: {\n* b: [4,5,6]\n* }\n* };\n* var result = videojs.mergeOptions(defaultOptions, newOptions);\n* // result.foo = false;\n* // result.bar.a = true;\n* // result.bar.b = [4,5,6];\n* ```\n*\n* @param {Object} The options object whose values will be overriden\n* @param {Object} The options object with values to override the first\n* @param {Object} Any number of additional options objects\n*\n* @return {Object} a new object with the merged values\n* @mixes videojs\n* @method mergeOptions\n*/", + "meta": { + "range": [ + 4025, + 4944 + ], + "filename": "video.js", + "lineno": 225, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Merge two options objects recursively\nPerforms a deep merge like lodash.merge but <strong>only merges plain objects</strong>\n(not arrays, elements, anything else)\nOther values will be copied directly from the second object.</p>\n<pre class=\"prettyprint source lang-js\"><code> var defaultOptions = {\n foo: true,\n bar: {\n a: true,\n b: [1,2,3]\n }\n };\n var newOptions = {\n foo: false,\n bar: {\n b: [4,5,6]\n }\n };\n var result = videojs.mergeOptions(defaultOptions, newOptions);\n // result.foo = false;\n // result.bar.a = true;\n // result.bar.b = [4,5,6];</code></pre>", + "params": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>options object whose values will be overriden</p>", + "name": "The" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>options object with values to override the first</p>", + "name": "The" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>number of additional options objects</p>", + "name": "Any" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>a new object with the merged values</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "mergeOptions", + "longname": "mergeOptions", + "scope": "global" + }, + { + "comment": "/**\n* Create a Video.js player plugin\n* Plugins are only initialized when options for the plugin are included\n* in the player options, or the plugin function on the player instance is\n* called.\n* **See the plugin guide in the docs for a more detailed example**\n* ```js\n* // Make a plugin that alerts when the player plays\n* videojs.plugin('myPlugin', function(myPluginOptions) {\n* myPluginOptions = myPluginOptions || {};\n*\n* var player = this;\n* var alertText = myPluginOptions.text || 'Player is playing!'\n*\n* player.on('play', function(){\n* alert(alertText);\n* });\n* });\n* // USAGE EXAMPLES\n* // EXAMPLE 1: New player with plugin options, call plugin immediately\n* var player1 = videojs('idOne', {\n* myPlugin: {\n* text: 'Custom text!'\n* }\n* });\n* // Click play\n* // --> Should alert 'Custom text!'\n* // EXAMPLE 3: New player, initialize plugin later\n* var player3 = videojs('idThree');\n* // Click play\n* // --> NO ALERT\n* // Click pause\n* // Initialize plugin using the plugin function on the player instance\n* player3.myPlugin({\n* text: 'Plugin added later!'\n* });\n* // Click play\n* // --> Should alert 'Plugin added later!'\n* ```\n*\n* @param {String} The plugin name\n* @param {Function} The plugin function that will be called with options\n* @mixes videojs\n* @method plugin\n*/", + "meta": { + "range": [ + 4951, + 6371 + ], + "filename": "video.js", + "lineno": 260, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Create a Video.js player plugin\nPlugins are only initialized when options for the plugin are included\nin the player options, or the plugin function on the player instance is\ncalled.\n<strong>See the plugin guide in the docs for a more detailed example</strong></p>\n<pre class=\"prettyprint source lang-js\"><code> // Make a plugin that alerts when the player plays\n videojs.plugin('myPlugin', function(myPluginOptions) {\n myPluginOptions = myPluginOptions || {};\n\n var player = this;\n var alertText = myPluginOptions.text || 'Player is playing!'\n\n player.on('play', function(){\n alert(alertText);\n });\n });\n // USAGE EXAMPLES\n // EXAMPLE 1: New player with plugin options, call plugin immediately\n var player1 = videojs('idOne', {\n myPlugin: {\n text: 'Custom text!'\n }\n });\n // Click play\n // --> Should alert 'Custom text!'\n // EXAMPLE 3: New player, initialize plugin later\n var player3 = videojs('idThree');\n // Click play\n // --> NO ALERT\n // Click pause\n // Initialize plugin using the plugin function on the player instance\n player3.myPlugin({\n text: 'Plugin added later!'\n });\n // Click play\n // --> Should alert 'Plugin added later!'</code></pre>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>plugin name</p>", + "name": "The" + }, + { + "type": { + "names": [ + "function" + ] + }, + "description": "<p>plugin function that will be called with options</p>", + "name": "The" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "plugin", + "longname": "plugin", + "scope": "global" + }, + { + "comment": "/**\n* Adding languages so that they're available to all players.\n* ```js\n* videojs.addLanguage('es', { 'Hello': 'Hola' });\n* ```\n*\n* @param {String} code The language code or dictionary property\n* @param {Object} data The data values to be translated\n* @return {Object} The resulting language dictionary object\n* @mixes videojs\n* @method addLanguage\n*/", + "meta": { + "range": [ + 6378, + 6736 + ], + "filename": "video.js", + "lineno": 307, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "description": "<p>Adding languages so that they're available to all players.</p>\n<pre class=\"prettyprint source lang-js\"><code> videojs.addLanguage('es', { 'Hello': 'Hola' });</code></pre>", + "params": [ + { + "type": { + "names": [ + "String" + ] + }, + "description": "<p>The language code or dictionary property</p>", + "name": "code" + }, + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The data values to be translated</p>", + "name": "data" + } + ], + "returns": [ + { + "type": { + "names": [ + "Object" + ] + }, + "description": "<p>The resulting language dictionary object</p>" + } + ], + "mixes": [ + "videojs" + ], + "kind": "function", + "name": "addLanguage", + "longname": "addLanguage", + "scope": "global" + }, + { + "comment": "/**\n* @file xhr.js\n*/", + "meta": { + "range": [ + 0, + 21 + ], + "filename": "xhr.js", + "lineno": 1, + "path": "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src", + "code": {} + }, + "name": "xhr.js", + "kind": "file", + "description": "<p>xhr.js</p>", + "preserveName": true, + "longname": "xhr.js", + "scope": "global" + }, + { + "kind": "package", + "longname": "package:undefined", + "files": [ + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/base-styles.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/big-play-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/component.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/control-bar.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/fullscreen-toggle.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/live-display.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/mute-toggle.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/play-toggle.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu/playback-rate-menu-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/playback-rate-menu/playback-rate-menu-item.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control/load-progress-bar.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control/play-progress-bar.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control/progress-control.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/progress-control/seek-bar.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls/custom-control-spacer.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/spacer-controls/spacer.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/caption-settings-menu-item.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/captions-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/chapters-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/chapters-track-menu-item.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/off-text-track-menu-item.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/subtitles-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/text-track-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/text-track-controls/text-track-menu-item.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls/current-time-display.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls/duration-display.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls/remaining-time-display.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/time-controls/time-divider.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control/volume-bar.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control/volume-control.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-control/volume-level.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/control-bar/volume-menu-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/error-display.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/event-emitter.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/extends.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/fullscreen-api.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/global-options.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/loading-spinner.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/media-error.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu/menu-button.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu/menu-item.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/menu/menu.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/player.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/plugins.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/poster-image.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/setup.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/slider/slider.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech/flash-rtmp.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech/flash.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech/html5.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech/loader.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tech/tech.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks/text-track-cue-list.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks/text-track-display.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks/text-track-enums.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks/text-track-list.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks/text-track-settings.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/tracks/text-track.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/browser.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/buffer.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/dom.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/events.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/fn.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/format-time.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/guid.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/log.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/merge-options.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/round-float.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/time-ranges.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/to-title-case.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/utils/url.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/video.js", + "/Users/mboles/git/BCL-LearningSamples/grunt-shell/videojs-src/xhr.js" + ] + } +] + +;
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/js/doc-data.js b/javascript/videojs/docs/legacy-docs/api/js/doc-data.js new file mode 100644 index 0000000..df176ba --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/js/doc-data.js @@ -0,0 +1,13 @@ +var docData=[{comment:"/**\n* @file base-styles.js\n*\n* This code injects the required base styles in the head of the document.\n*/",meta:{range:[0,105],filename:"base-styles.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"base-styles.js",kind:"file",description:"<p>base-styles.js</p>\n<p>This code injects the required base styles in the head of the document.</p>",preserveName:!0,longname:"base-styles.js",scope:"global"},{comment:"/**\n* @file big-play-button.js\n*/",meta:{range:[0,33],filename:"big-play-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"big-play-button.js",kind:"file",description:"<p>big-play-button.js</p>",preserveName:!0,longname:"big-play-button.js",scope:"global"},{comment:"/**\n* Initial play button. Shows before the video has played. The hiding of the\n* big play button is done via CSS and player states.\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Button\n* @class BigPlayButton\n*/",meta:{range:[43,320],filename:"big-play-button.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Initial play button. Shows before the video has played. The hiding of the\nbig play button is done via CSS and player states.</p>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],augments:["Button"],kind:"class",name:"BigPlayButton",longname:"BigPlayButton",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[339,465],filename:"big-play-button.js",lineno:22,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Handles click for play\n*\n* @method handleClick\n*/",meta:{range:[478,533],filename:"big-play-button.js",lineno:32,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handles click for play</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* @file button.js\n*/",meta:{range:[0,24],filename:"button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"button.js",kind:"file",description:"<p>button.js</p>",preserveName:!0,longname:"button.js",scope:"global"},{comment:"/**\n* Base class for all buttons\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends ClickableComponent\n* @class Button\n*/",meta:{range:[49,231],filename:"button.js",lineno:12,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Base class for all buttons</p>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],augments:["ClickableComponent"],kind:"class",name:"Button",longname:"Button",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @param {String=} type Element's node type. e.g. 'div'\n* @param {Object=} props An object of properties that should be set on the element\n* @param {Object=} attributes An object of attributes that should be set on the element\n* @return {Element}\n* @method createEl\n*/",meta:{range:[250,561],filename:"button.js",lineno:26,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the component's DOM element</p>",params:[{type:{names:["String"]},optional:!0,description:"<p>Element's node type. e.g. 'div'</p>",name:"type"},{type:{names:["Object"]},optional:!0,description:"<p>An object of properties that should be set on the element</p>",name:"props"},{type:{names:["Object"]},optional:!0,description:"<p>An object of attributes that should be set on the element</p>",name:"attributes"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Adds a child component inside this button\n*\n* @param {String|Component} child The class name or instance of a child to add\n* @param {Object=} options Options, including options to be passed to children of the child.\n* @return {Component} The child component (created by this process if a string was used)\n* @deprecated\n* @method addChild\n*/",meta:{range:[658,1004],filename:"button.js",lineno:67,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Adds a child component inside this button</p>",params:[{type:{names:["String","Component"]},description:"<p>The class name or instance of a child to add</p>",name:"child"},{type:{names:["Object"]},optional:!0,description:"<p>Options, including options to be passed to children of the child.</p>",name:"options"}],returns:[{type:{names:["Component"]},description:"<p>The child component (created by this process if a string was used)</p>"}],deprecated:!0,kind:"function",name:"addChild",longname:"addChild",scope:"global"},{comment:"/**\n* Handle KeyPress (document level) - Extend with specific functionality for button\n*\n* @method handleKeyPress\n*/",meta:{range:[1029,1145],filename:"button.js",lineno:84,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle KeyPress (document level) - Extend with specific functionality for button</p>",kind:"function",name:"handleKeyPress",longname:"handleKeyPress",scope:"global"},{comment:"/**\n* @file button.js\n*/",meta:{range:[0,24],filename:"clickable-component.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"clickable-component.js",kind:"file",description:"<p>button.js</p>",preserveName:!0,longname:"clickable-component.js",scope:"global"},{comment:"/**\n* Clickable Component which is clickable or keyboard actionable, but is not a native HTML button\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Component\n* @class ClickableComponent\n*/",meta:{range:[49,302],filename:"clickable-component.js",lineno:12,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Clickable Component which is clickable or keyboard actionable, but is not a native HTML button</p>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],augments:["Component"],kind:"class",name:"ClickableComponent",longname:"ClickableComponent",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @param {String=} type Element's node type. e.g. 'div'\n* @param {Object=} props An object of properties that should be set on the element\n* @param {Object=} attributes An object of attributes that should be set on the element\n* @return {Element}\n* @method createEl\n*/",meta:{range:[342,653],filename:"clickable-component.js",lineno:33,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the component's DOM element</p>",params:[{type:{names:["String"]},optional:!0,description:"<p>Element's node type. e.g. 'div'</p>",name:"type"},{type:{names:["Object"]},optional:!0,description:"<p>An object of properties that should be set on the element</p>",name:"props"},{type:{names:["Object"]},optional:!0,description:"<p>An object of attributes that should be set on the element</p>",name:"attributes"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* create control text\n*\n* @param {Element} el Parent element for the control text\n* @return {Element}\n* @method controlText\n*/",meta:{range:[723,853],filename:"clickable-component.js",lineno:65,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>create control text</p>",params:[{type:{names:["Element"]},description:"<p>Parent element for the control text</p>",name:"el"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"controlText",longname:"controlText",scope:"global"},{comment:"/**\n* Controls text - both request and localize\n*\n* @param {String} text Text for element\n* @param {Element=} el Element to set the title on\n* @return {String}\n* @method controlText\n*/",meta:{range:[896,1081],filename:"clickable-component.js",lineno:86,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Controls text - both request and localize</p>",params:[{type:{names:["String"]},description:"<p>Text for element</p>",name:"text"},{type:{names:["Element"]},optional:!0,description:"<p>Element to set the title on</p>",name:"el"}],returns:[{type:{names:["String"]}}],kind:"function",name:"controlText",longname:"controlText",scope:"global"},{comment:"/**\n* Allows sub components to stack CSS class names\n*\n* @return {String}\n* @method buildCSSClass\n*/",meta:{range:[1118,1218],filename:"clickable-component.js",lineno:106,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Allows sub components to stack CSS class names</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Adds a child component inside this clickable-component\n*\n* @param {String|Component} child The class name or instance of a child to add\n* @param {Object=} options Options, including options to be passed to children of the child.\n* @return {Component} The child component (created by this process if a string was used)\n* @method addChild\n*/",meta:{range:[1231,1576],filename:"clickable-component.js",lineno:116,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Adds a child component inside this clickable-component</p>",params:[{type:{names:["String","Component"]},description:"<p>The class name or instance of a child to add</p>",name:"child"},{type:{names:["Object"]},optional:!0,description:"<p>Options, including options to be passed to children of the child.</p>",name:"options"}],returns:[{type:{names:["Component"]},description:"<p>The child component (created by this process if a string was used)</p>"}],kind:"function",name:"addChild",longname:"addChild",scope:"global"},{comment:"/**\n* Enable the component element\n*\n* @return {Component}\n* @method enable\n*/",meta:{range:[1613,1691],filename:"clickable-component.js",lineno:136,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Enable the component element</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"enable",longname:"enable",scope:"global"},{comment:"/**\n* Disable the component element\n*\n* @return {Component}\n* @method disable\n*/",meta:{range:[1710,1790],filename:"clickable-component.js",lineno:148,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Disable the component element</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"disable",longname:"disable",scope:"global"},{comment:"/**\n* Handle Click - Override with specific functionality for component\n*\n* @method handleClick\n*/",meta:{range:[1809,1907],filename:"clickable-component.js",lineno:160,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle Click - Override with specific functionality for component</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Handle Focus - Add keyboard functionality to element\n*\n* @method handleFocus\n*/",meta:{range:[1914,1999],filename:"clickable-component.js",lineno:167,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle Focus - Add keyboard functionality to element</p>",kind:"function",name:"handleFocus",longname:"handleFocus",scope:"global"},{comment:"/**\n* Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed\n*\n* @method handleKeyPress\n*/",meta:{range:[2012,2131],filename:"clickable-component.js",lineno:176,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed</p>",kind:"function",name:"handleKeyPress",longname:"handleKeyPress",scope:"global"},{comment:"/**\n* Handle Blur - Remove keyboard triggers\n*\n* @method handleBlur\n*/",meta:{range:[2162,2232],filename:"clickable-component.js",lineno:191,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle Blur - Remove keyboard triggers</p>",kind:"function",name:"handleBlur",longname:"handleBlur",scope:"global"},{comment:'/**\n* The `CloseButton` component is a button which fires a "close" event\n* when it is activated.\n*\n* @extends Button\n* @class CloseButton\n*/',meta:{range:[9,150],filename:"close-button.js",lineno:4,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>The <code>CloseButton</code> component is a button which fires a "close" event\nwhen it is activated.</p>",augments:["Button"],kind:"class",name:"CloseButton",longname:"CloseButton",scope:"global"},{comment:"/**\n* @file component.js\n*\n* Player Component - Base class for all UI objects\n*/",meta:{range:[0,80],filename:"component.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"component.js",kind:"file",description:"<p>component.js</p>\n<p>Player Component - Base class for all UI objects</p>",preserveName:!0,longname:"component.js",scope:"global"},{comment:"/**\n* Base UI Component class\n* Components are embeddable UI objects that are represented by both a\n* javascript object and an element in the DOM. They can be children of other\n* components, and can have many children themselves.\n* ```js\n* // adding a button to the player\n* var button = player.addChild('button');\n* button.el(); // -> button element\n* ```\n* ```html\n* <div class=\"video-js\">\n* <div class=\"vjs-button\">Button</div>\n* </div>\n* ```\n* Components are also event targets.\n* ```js\n* button.on('click', function(){\n* console.log('Button Clicked!');\n* });\n* button.trigger('customevent');\n* ```\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @class Component\n*/",meta:{range:[114,937],filename:"component.js",lineno:17,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Base UI Component class\nComponents are embeddable UI objects that are represented by both a\njavascript object and an element in the DOM. They can be children of other\ncomponents, and can have many children themselves.</p>\n<pre class=\"prettyprint source lang-js\"><code> // adding a button to the player\n var button = player.addChild('button');\n button.el(); // -> button element</code></pre><pre class=\"prettyprint source lang-html\"><code> <div class="video-js">\n <div class="vjs-button">Button</div>\n </div></code></pre><p>Components are also event targets.</p>\n<pre class=\"prettyprint source lang-js\"><code> button.on('click', function(){\n console.log('Button Clicked!');\n });\n button.trigger('customevent');</code></pre>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],kind:"class",name:"Component",longname:"Component",scope:"global"},{comment:"/**\n* Dispose of the component and all child components\n*\n* @method dispose\n*/",meta:{range:[1103,1181],filename:"component.js",lineno:100,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Dispose of the component and all child components</p>",kind:"function",name:"dispose",longname:"dispose",scope:"global"},{comment:"/**\n* Return the component's player\n*\n* @return {Player}\n* @method player\n*/",meta:{range:[1269,1345],filename:"component.js",lineno:134,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Return the component's player</p>",returns:[{type:{names:["Player"]}}],kind:"function",name:"player",longname:"player",scope:"global"},{comment:"/**\n* Deep merge of options objects\n* Whenever a property is an object on both options objects\n* the two properties will be merged using mergeOptions.\n*\n* ```js\n* Parent.prototype.options_ = {\n* optionSet: {\n* 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },\n* 'childTwo': {},\n* 'childThree': {}\n* }\n* }\n* newOptions = {\n* optionSet: {\n* 'childOne': { 'foo': 'baz', 'abc': '123' }\n* 'childTwo': null,\n* 'childFour': {}\n* }\n* }\n*\n* this.options(newOptions);\n* ```\n* RESULT\n* ```js\n* {\n* optionSet: {\n* 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },\n* 'childTwo': null, // Disabled. Won't be initialized.\n* 'childThree': {},\n* 'childFour': {}\n* }\n* }\n* ```\n*\n* @param {Object} obj Object of new option values\n* @return {Object} A NEW object of this.options_ and obj merged\n* @method options\n*/",meta:{range:[1358,2308],filename:"component.js",lineno:144,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Deep merge of options objects\nWhenever a property is an object on both options objects\nthe two properties will be merged using mergeOptions.</p>\n<pre class=\"prettyprint source lang-js\"><code> Parent.prototype.options_ = {\n optionSet: {\n 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },\n 'childTwo': {},\n 'childThree': {}\n }\n }\n newOptions = {\n optionSet: {\n 'childOne': { 'foo': 'baz', 'abc': '123' }\n 'childTwo': null,\n 'childFour': {}\n }\n }\n\n this.options(newOptions);</code></pre><p>RESULT</p>\n<pre class=\"prettyprint source lang-js\"><code> {\n optionSet: {\n 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },\n 'childTwo': null, // Disabled. Won't be initialized.\n 'childThree': {},\n 'childFour': {}\n }\n }</code></pre>",params:[{type:{names:["Object"]},description:"<p>Object of new option values</p>",name:"obj"}],returns:[{type:{names:["Object"]},description:"<p>A NEW object of this.options_ and obj merged</p>"}],kind:"function",name:"options",longname:"options",scope:"global"},{comment:"/**\n* Get the component's DOM element\n* ```js\n* var domEl = myComponent.el();\n* ```\n*\n* @return {Element}\n* @method el\n*/",meta:{range:[2342,2467],filename:"component.js",lineno:194,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get the component\'s DOM element</p>\n<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre>',returns:[{type:{names:["Element"]}}],kind:"function",name:"el",longname:"el",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @param {String=} tagName Element's node type. e.g. 'div'\n* @param {Object=} properties An object of properties that should be set\n* @param {Object=} attributes An object of attributes that should be set\n* @return {Element}\n* @method createEl\n*/",meta:{range:[2480,2773],filename:"component.js",lineno:207,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the component's DOM element</p>",params:[{type:{names:["String"]},optional:!0,description:"<p>Element's node type. e.g. 'div'</p>",name:"tagName"},{type:{names:["Object"]},optional:!0,description:"<p>An object of properties that should be set</p>",name:"properties"},{type:{names:["Object"]},optional:!0,description:"<p>An object of attributes that should be set</p>",name:"attributes"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Return the component's DOM element where children are inserted.\n* Will either be the same as el() or a new element defined in createEl().\n*\n* @return {Element}\n* @method contentEl\n*/",meta:{range:[2858,3046],filename:"component.js",lineno:244,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Return the component's DOM element where children are inserted.\nWill either be the same as el() or a new element defined in createEl().</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"contentEl",longname:"contentEl",scope:"global"},{comment:"/**\n* Get the component's ID\n* ```js\n* var id = myComponent.id();\n* ```\n*\n* @return {String}\n* @method id\n*/",meta:{range:[3059,3171],filename:"component.js",lineno:255,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get the component\'s ID</p>\n<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre>',returns:[{type:{names:["String"]}}],kind:"function",name:"id",longname:"id",scope:"global"},{comment:"/**\n* Get the component's name. The name is often used to reference the component.\n* ```js\n* var name = myComponent.name();\n* ```\n*\n* @return {String}\n* @method name\n*/",meta:{range:[3184,3356],filename:"component.js",lineno:268,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get the component\'s name. The name is often used to reference the component.</p>\n<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre>',returns:[{type:{names:["String"]}}],kind:"function",name:"name",longname:"name",scope:"global"},{comment:"/**\n* Get an array of all child components\n* ```js\n* var kids = myComponent.children();\n* ```\n*\n* @return {Array} The children\n* @method children\n*/",meta:{range:[3369,3521],filename:"component.js",lineno:281,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get an array of all child components</p>\n<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre>',returns:[{type:{names:["Array"]},description:"<p>The children</p>"}],kind:"function",name:"children",longname:"children",scope:"global"},{comment:"/**\n* Returns a child component with the provided ID\n*\n* @return {Component}\n* @method getChildById\n*/",meta:{range:[3534,3636],filename:"component.js",lineno:294,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns a child component with the provided ID</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"getChildById",longname:"getChildById",scope:"global"},{comment:"/**\n* Returns a child component with the provided name\n*\n* @return {Component}\n* @method getChild\n*/",meta:{range:[3649,3749],filename:"component.js",lineno:304,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns a child component with the provided name</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"getChild",longname:"getChild",scope:"global"},{comment:"/**\n* Adds a child component inside this component\n* ```js\n* myComponent.el();\n* // -> <div class='my-component'></div>\n* myComponent.children();\n* // [empty array]\n*\n* var myButton = myComponent.addChild('MyButton');\n* // -> <div class='my-component'><div class=\"my-button\">myButton<div></div>\n* // -> myButton === myComponent.children()[0];\n* ```\n* Pass in options for child constructors and options for children of the child\n* ```js\n* var myButton = myComponent.addChild('MyButton', {\n* text: 'Press Me',\n* buttonChildExample: {\n* buttonChildOption: true\n* }\n* });\n* ```\n*\n* @param {String|Component} child The class name or instance of a child to add\n* @param {Object=} options Options, including options to be passed to children of the child.\n* @param {Number} index into our children array to attempt to add the child\n* @return {Component} The child component (created by this process if a string was used)\n* @method addChild\n*/",meta:{range:[3762,4758],filename:"component.js",lineno:314,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Adds a child component inside this component</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.el();\n // -> <div class='my-component'></div>\n myComponent.children();\n // [empty array]\n\n var myButton = myComponent.addChild('MyButton');\n // -> <div class='my-component'><div class="my-button">myButton<div></div>\n // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p>\n<pre class=\"prettyprint source lang-js\"><code> var myButton = myComponent.addChild('MyButton', {\n text: 'Press Me',\n buttonChildExample: {\n buttonChildOption: true\n }\n });</code></pre>",params:[{type:{names:["String","Component"]},description:"<p>The class name or instance of a child to add</p>",name:"child"},{type:{names:["Object"]},optional:!0,description:"<p>Options, including options to be passed to children of the child.</p>",name:"options"},{type:{names:["Number"]},description:"<p>into our children array to attempt to add the child</p>",name:"index"}],returns:[{type:{names:["Component"]},description:"<p>The child component (created by this process if a string was used)</p>"}],kind:"function",name:"addChild",longname:"addChild",scope:"global"},{comment:"/**\n* Remove a child component from this component's list of children, and the\n* child component's element from this component's element\n*\n* @param {Component} component Component to remove\n* @method removeChild\n*/",meta:{range:[4984,5199],filename:"component.js",lineno:417,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Remove a child component from this component's list of children, and the\nchild component's element from this component's element</p>",params:[{type:{names:["Component"]},description:"<p>Component to remove</p>",name:"component"}],kind:"function",name:"removeChild",longname:"removeChild",scope:"global"},{comment:"/**\n* Add and initialize default child components from options\n* ```js\n* // when an instance of MyComponent is created, all children in options\n* // will be added to the instance by their name strings and options\n* MyComponent.prototype.options_ = {\n* children: [\n* 'myChildComponent'\n* ],\n* myChildComponent: {\n* myChildOption: true\n* }\n* };\n*\n* // Or when creating the component\n* var myComp = new MyComponent(player, {\n* children: [\n* 'myChildComponent'\n* ],\n* myChildComponent: {\n* myChildOption: true\n* }\n* });\n* ```\n* The children option can also be an array of\n* child options objects (that also include a 'name' key).\n* This can be used if you have two child components of the\n* same type that need different options.\n* ```js\n* var myComp = new MyComponent(player, {\n* children: [\n* 'button',\n* {\n* name: 'button',\n* someOtherOption: true\n* },\n* {\n* name: 'button',\n* someOtherOption: false\n* }\n* ]\n* });\n* ```\n*\n* @method initChildren\n*/",meta:{range:[5299,6453],filename:"component.js",lineno:457,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add and initialize default child components from options</p>\n<pre class=\"prettyprint source lang-js\"><code> // when an instance of MyComponent is created, all children in options\n // will be added to the instance by their name strings and options\n MyComponent.prototype.options_ = {\n children: [\n 'myChildComponent'\n ],\n myChildComponent: {\n myChildOption: true\n }\n };\n\n // Or when creating the component\n var myComp = new MyComponent(player, {\n children: [\n 'myChildComponent'\n ],\n myChildComponent: {\n myChildOption: true\n }\n });</code></pre><p>The children option can also be an array of\nchild options objects (that also include a 'name' key).\nThis can be used if you have two child components of the\nsame type that need different options.</p>\n<pre class=\"prettyprint source lang-js\"><code> var myComp = new MyComponent(player, {\n children: [\n 'button',\n {\n name: 'button',\n someOtherOption: true\n },\n {\n name: 'button',\n someOtherOption: false\n }\n ]\n });</code></pre>",kind:"function",name:"initChildren",longname:"initChildren",scope:"global"},{comment:"/**\n* Allows sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[6730,6857],filename:"component.js",lineno:595,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Allows sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Add an event listener to this component's element\n* ```js\n* var myFunc = function(){\n* var myComponent = this;\n* // Do something when the event is fired\n* };\n*\n* myComponent.on('eventType', myFunc);\n* ```\n* The context of myFunc will be myComponent unless previously bound.\n* Alternatively, you can add a listener to another element or component.\n* ```js\n* myComponent.on(otherElement, 'eventName', myFunc);\n* myComponent.on(otherComponent, 'eventName', myFunc);\n* ```\n* The benefit of using this over `VjsEvents.on(otherElement, 'eventName', myFunc)`\n* and `otherComponent.on('eventName', myFunc)` is that this way the listeners\n* will be automatically cleaned up when either component is disposed.\n* It will also bind myComponent as the context of myFunc.\n* **NOTE**: When using this on elements in the page other than window\n* and document (both permanent), if you remove the element from the DOM\n* you need to call `myComponent.trigger(el, 'dispose')` on it to clean up\n* references to it and allow the browser to garbage collect it.\n*\n* @param {String|Component} first The event type or other component\n* @param {Function|String} second The event handler or event type\n* @param {Function} third The event handler\n* @return {Component}\n* @method on\n*/",meta:{range:[6876,8194],filename:"component.js",lineno:607,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add an event listener to this component's element</p>\n<pre class=\"prettyprint source lang-js\"><code> var myFunc = function(){\n var myComponent = this;\n // Do something when the event is fired\n };\n\n myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound.\nAlternatively, you can add a listener to another element or component.</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.on(otherElement, 'eventName', myFunc);\n myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code>\nand <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners\nwill be automatically cleaned up when either component is disposed.\nIt will also bind myComponent as the context of myFunc.\n<strong>NOTE</strong>: When using this on elements in the page other than window\nand document (both permanent), if you remove the element from the DOM\nyou need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up\nreferences to it and allow the browser to garbage collect it.</p>", +params:[{type:{names:["String","Component"]},description:"<p>The event type or other component</p>",name:"first"},{type:{names:["function","String"]},description:"<p>The event handler or event type</p>",name:"second"},{type:{names:["function"]},description:"<p>The event handler</p>",name:"third"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"on",longname:"on",scope:"global"},{comment:"/**\n* Remove an event listener from this component's element\n* ```js\n* myComponent.off('eventType', myFunc);\n* ```\n* If myFunc is excluded, ALL listeners for the event type will be removed.\n* If eventType is excluded, ALL listeners will be removed from the component.\n* Alternatively you can use `off` to remove listeners that were added to other\n* elements or components using `myComponent.on(otherComponent...`.\n* In this case both the event type and listener function are REQUIRED.\n* ```js\n* myComponent.off(otherElement, 'eventType', myFunc);\n* myComponent.off(otherComponent, 'eventType', myFunc);\n* ```\n*\n* @param {String=|Component} first The event type or other component\n* @param {Function=|String} second The listener function or event type\n* @param {Function=} third The listener for other component\n* @return {Component}\n* @method off\n*/",meta:{range:[8327,9213],filename:"component.js",lineno:682,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Remove an event listener from this component's element</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed.\nIf eventType is excluded, ALL listeners will be removed from the component.\nAlternatively you can use <code>off</code> to remove listeners that were added to other\nelements or components using <code>myComponent.on(otherComponent...</code>.\nIn this case both the event type and listener function are REQUIRED.</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.off(otherElement, 'eventType', myFunc);\n myComponent.off(otherComponent, 'eventType', myFunc);</code></pre>",params:[{type:{names:["String","Component"]},description:"<p>The event type or other component</p>",name:"first"},{type:{names:["function","String"]},description:"<p>The listener function or event type</p>",name:"second"},{type:{names:["function"]},optional:!0,description:"<p>The listener for other component</p>",name:"third"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"off",longname:"off",scope:"global"},{comment:"/**\n* Add an event listener to be triggered only once and then removed\n* ```js\n* myComponent.one('eventName', myFunc);\n* ```\n* Alternatively you can add a listener to another element or component\n* that will be triggered only once.\n* ```js\n* myComponent.one(otherElement, 'eventName', myFunc);\n* myComponent.one(otherComponent, 'eventName', myFunc);\n* ```\n*\n* @param {String|Component} first The event type or other component\n* @param {Function|String} second The listener function or event type\n* @param {Function=} third The listener function for other component\n* @return {Component}\n* @method one\n*/",meta:{range:[9295,9937],filename:"component.js",lineno:730,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add an event listener to be triggered only once and then removed</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component\nthat will be triggered only once.</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.one(otherElement, 'eventName', myFunc);\n myComponent.one(otherComponent, 'eventName', myFunc);</code></pre>",params:[{type:{names:["String","Component"]},description:"<p>The event type or other component</p>",name:"first"},{type:{names:["function","String"]},description:"<p>The listener function or event type</p>",name:"second"},{type:{names:["function"]},optional:!0,description:"<p>The listener function for other component</p>",name:"third"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"one",longname:"one",scope:"global"},{comment:"/**\n* Trigger an event on an element\n* ```js\n* myComponent.trigger('eventName');\n* myComponent.trigger({'type':'eventName'});\n* myComponent.trigger('eventName', {data: 'some data'});\n* myComponent.trigger({'type':'eventName'}, {data: 'some data'});\n* ```\n*\n* @param {Event|Object|String} event A string (the type) or an event object with a type attribute\n* @param {Object} [hash] data hash to pass along with the event\n* @return {Component} self\n* @method trigger\n*/",meta:{range:[10004,10495],filename:"component.js",lineno:770,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Trigger an event on an element</p>\n<pre class=\"prettyprint source lang-js\"><code> myComponent.trigger('eventName');\n myComponent.trigger({'type':'eventName'});\n myComponent.trigger('eventName', {data: 'some data'});\n myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre>",params:[{type:{names:["Event","Object","String"]},description:"<p>A string (the type) or an event object with a type attribute</p>",name:"event"},{type:{names:["Object"]},optional:!0,description:"<p>data hash to pass along with the event</p>",name:"hash"}],returns:[{type:{names:["Component"]},description:"<p>self</p>"}],kind:"function",name:"trigger",longname:"trigger",scope:"global"},{comment:"/**\n* Bind a listener to the component's ready state.\n* Different from event listeners in that if the ready event has already happened\n* it will trigger the function immediately.\n*\n* @param {Function} fn Ready listener\n* @param {Boolean} sync Exec the listener synchronously if component is ready\n* @return {Component}\n* @method ready\n*/",meta:{range:[10511,10850],filename:"component.js",lineno:789,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Bind a listener to the component's ready state.\nDifferent from event listeners in that if the ready event has already happened\nit will trigger the function immediately.</p>",params:[{type:{names:["function"]},description:"<p>Ready listener</p>",name:"fn"},{type:{names:["Boolean"]},description:"<p>Exec the listener synchronously if component is ready</p>",name:"sync"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"ready",longname:"ready",scope:"global"},{comment:"/**\n* Trigger the ready listeners\n*\n* @return {Component}\n* @method triggerReady\n*/",meta:{range:[10902,10985],filename:"component.js",lineno:816,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Trigger the ready listeners</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"triggerReady",longname:"triggerReady",scope:"global"},{comment:"/**\n* Finds a single DOM element matching `selector` within the component's\n* `contentEl` or another custom context.\n*\n* @method $\n* @param {String} selector\n* A valid CSS selector, which will be passed to `querySelector`.\n*\n* @param {Element|String} [context=document]\n* A DOM element within which to query. Can also be a selector\n* string in which case the first matching element will be used\n* as context. If missing (or no element matches selector), falls\n* back to `document`.\n*\n* @return {Element|null}\n*/",meta:{range:[11049,11602],filename:"component.js",lineno:843,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Finds a single DOM element matching <code>selector</code> within the component's\n<code>contentEl</code> or another custom context.</p>",kind:"function",name:"$",params:[{type:{names:["String"]},description:"<p>A valid CSS selector, which will be passed to <code>querySelector</code>.</p>",name:"selector"},{type:{names:["Element","String"]},optional:!0,defaultvalue:"document",description:"<p>A DOM element within which to query. Can also be a selector\n string in which case the first matching element will be used\n as context. If missing (or no element matches selector), falls\n back to <code>document</code>.</p>",name:"context"}],returns:[{type:{names:["Element","null"]}}],longname:"$",scope:"global"},{comment:"/**\n* Finds a all DOM elements matching `selector` within the component's\n* `contentEl` or another custom context.\n*\n* @method $$\n* @param {String} selector\n* A valid CSS selector, which will be passed to `querySelectorAll`.\n*\n* @param {Element|String} [context=document]\n* A DOM element within which to query. Can also be a selector\n* string in which case the first matching element will be used\n* as context. If missing (or no element matches selector), falls\n* back to `document`.\n*\n* @return {NodeList}\n*/",meta:{range:[11615,12166],filename:"component.js",lineno:863,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Finds a all DOM elements matching <code>selector</code> within the component's\n<code>contentEl</code> or another custom context.</p>",kind:"function",name:"$$",params:[{type:{names:["String"]},description:"<p>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</p>",name:"selector"},{type:{names:["Element","String"]},optional:!0,defaultvalue:"document",description:"<p>A DOM element within which to query. Can also be a selector\n string in which case the first matching element will be used\n as context. If missing (or no element matches selector), falls\n back to <code>document</code>.</p>",name:"context"}],returns:[{type:{names:["NodeList"]}}],longname:"$$",scope:"global"},{comment:"/**\n* Check if a component's element has a CSS class name\n*\n* @param {String} classToCheck Classname to check\n* @return {Component}\n* @method hasClass\n*/",meta:{range:[12179,12332],filename:"component.js",lineno:883,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Check if a component's element has a CSS class name</p>",params:[{type:{names:["String"]},description:"<p>Classname to check</p>",name:"classToCheck"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"hasClass",longname:"hasClass",scope:"global"},{comment:"/**\n* Add a CSS class name to the component's element\n*\n* @param {String} classToAdd Classname to add\n* @return {Component}\n* @method addClass\n*/",meta:{range:[12345,12490],filename:"component.js",lineno:894,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add a CSS class name to the component's element</p>",params:[{type:{names:["String"]},description:"<p>Classname to add</p>",name:"classToAdd"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"addClass",longname:"addClass",scope:"global"},{comment:"/**\n* Remove a CSS class name from the component's element\n*\n* @param {String} classToRemove Classname to remove\n* @return {Component}\n* @method removeClass\n*/",meta:{range:[12506,12665],filename:"component.js",lineno:906,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Remove a CSS class name from the component's element</p>",params:[{type:{names:["String"]},description:"<p>Classname to remove</p>",name:"classToRemove"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"removeClass",longname:"removeClass",scope:"global"},{comment:"/**\n* Add or remove a CSS class name from the component's element\n*\n* @param {String} classToToggle\n* @param {Boolean|Function} [predicate]\n* Can be a function that returns a Boolean. If `true`, the class\n* will be added; if `false`, the class will be removed. If not\n* given, the class will be added if not present and vice versa.\n*\n* @return {Component}\n* @method toggleClass\n*/",meta:{range:[12681,13087],filename:"component.js",lineno:918,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add or remove a CSS class name from the component's element</p>",params:[{type:{names:["String"]},name:"classToToggle"},{type:{names:["Boolean","function"]},optional:!0,description:"<p>Can be a function that returns a Boolean. If <code>true</code>, the class\n will be added; if <code>false</code>, the class will be removed. If not\n given, the class will be added if not present and vice versa.</p>",name:"predicate"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"toggleClass",longname:"toggleClass",scope:"global"},{comment:"/**\n* Show the component element if hidden\n*\n* @return {Component}\n* @method show\n*/",meta:{range:[13103,13187],filename:"component.js",lineno:935,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Show the component element if hidden</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"show",longname:"show",scope:"global"},{comment:"/**\n* Hide the component element if currently showing\n*\n* @return {Component}\n* @method hide\n*/",meta:{range:[13203,13298],filename:"component.js",lineno:946,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Hide the component element if currently showing</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"hide",longname:"hide",scope:"global"},{comment:"/**\n* Lock an item in its visible state\n* To be used with fadeIn/fadeOut.\n*\n* @return {Component}\n* @private\n* @method lockShowing\n*/",meta:{range:[13314,13447],filename:"component.js",lineno:957,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Lock an item in its visible state\nTo be used with fadeIn/fadeOut.</p>",returns:[{type:{names:["Component"]}}],access:"private",kind:"function",name:"lockShowing",longname:"lockShowing",scope:"global"},{comment:"/**\n* Unlock an item to be hidden\n* To be used with fadeIn/fadeOut.\n*\n* @return {Component}\n* @private\n* @method unlockShowing\n*/",meta:{range:[13463,13592],filename:"component.js",lineno:970,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Unlock an item to be hidden\nTo be used with fadeIn/fadeOut.</p>",returns:[{type:{names:["Component"]}}],access:"private",kind:"function",name:"unlockShowing",longname:"unlockShowing",scope:"global"},{comment:"/**\n* Set or get the width of the component (CSS values)\n* Setting the video tag dimension values only works with values in pixels.\n* Percent values will not work.\n* Some percents can be used, but width()/height() will return the number + %,\n* not the actual computed width/height.\n*\n* @param {Number|String=} num Optional width number\n* @param {Boolean} skipListeners Skip the 'resize' event trigger\n* @return {Component} This component, when setting the width\n* @return {Number|String} The width, when getting\n* @method width\n*/",meta:{range:[13608,14142],filename:"component.js",lineno:983,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Set or get the width of the component (CSS values)\nSetting the video tag dimension values only works with values in pixels.\nPercent values will not work.\nSome percents can be used, but width()/height() will return the number + %,\nnot the actual computed width/height.</p>",params:[{type:{names:["Number","String"]},description:"<p>Optional width number</p>",name:"num"},{type:{names:["Boolean"]},description:"<p>Skip the 'resize' event trigger</p>",name:"skipListeners"}],returns:[{type:{names:["Component"]},description:"<p>This component, when setting the width</p>"},{type:{names:["Number","String"]},description:"<p>The width, when getting</p>"}],kind:"function",name:"width",longname:"width",scope:"global"},{comment:"/**\n* Get or set the height of the component (CSS values)\n* Setting the video tag dimension values only works with values in pixels.\n* Percent values will not work.\n* Some percents can be used, but width()/height() will return the number + %,\n* not the actual computed width/height.\n*\n* @param {Number|String=} num New component height\n* @param {Boolean=} skipListeners Skip the resize event trigger\n* @return {Component} This component, when setting the height\n* @return {Number|String} The height, when getting\n* @method height\n*/",meta:{range:[14155,14693],filename:"component.js",lineno:1e3,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set the height of the component (CSS values)\nSetting the video tag dimension values only works with values in pixels.\nPercent values will not work.\nSome percents can be used, but width()/height() will return the number + %,\nnot the actual computed width/height.</p>",params:[{type:{names:["Number","String"]},description:"<p>New component height</p>",name:"num"},{type:{names:["Boolean"]},optional:!0,description:"<p>Skip the resize event trigger</p>",name:"skipListeners"}],returns:[{type:{names:["Component"]},description:"<p>This component, when setting the height</p>"},{type:{names:["Number","String"]},description:"<p>The height, when getting</p>"}],kind:"function",name:"height",longname:"height",scope:"global"},{comment:"/**\n* Set both width and height at the same time\n*\n* @param {Number|String} width Width of player\n* @param {Number|String} height Height of player\n* @return {Component} The component\n* @method dimensions\n*/",meta:{range:[14706,14914],filename:"component.js",lineno:1017,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Set both width and height at the same time</p>",params:[{type:{names:["Number","String"]},description:"<p>Width of player</p>",name:"width"},{type:{names:["Number","String"]},description:"<p>Height of player</p>",name:"height"}],returns:[{type:{names:["Component"]},description:"<p>The component</p>"}],kind:"function",name:"dimensions",longname:"dimensions",scope:"global"},{comment:"/**\n* Get or set width or height\n* This is the shared code for the width() and height() methods.\n* All for an integer, integer + 'px' or integer + '%';\n* Known issue: Hidden elements officially have a width of 0. We're defaulting\n* to the style.width value and falling back to computedStyle which has the\n* hidden element issue. Info, but probably not an efficient fix:\n* http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/\n*\n* @param {String} widthOrHeight 'width' or 'height'\n* @param {Number|String=} num New dimension\n* @param {Boolean=} skipListeners Skip resize event trigger\n* @return {Component} The component if a dimension was set\n* @return {Number|String} The dimension if nothing was set\n* @private\n* @method dimension\n*/",meta:{range:[14930,15714],filename:"component.js",lineno:1030,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set width or height\nThis is the shared code for the width() and height() methods.\nAll for an integer, integer + 'px' or integer + '%';\nKnown issue: Hidden elements officially have a width of 0. We're defaulting\nto the style.width value and falling back to computedStyle which has the\nhidden element issue. Info, but probably not an efficient fix:\nhttp://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/</p>",params:[{type:{names:["String"]},description:"<p>'width' or 'height'</p>",name:"widthOrHeight"},{type:{names:["Number","String"]},description:"<p>New dimension</p>",name:"num"},{type:{names:["Boolean"]},optional:!0,description:"<p>Skip resize event trigger</p>",name:"skipListeners"}],returns:[{type:{names:["Component"]},description:"<p>The component if a dimension was set</p>"},{type:{names:["Number","String"]},description:"<p>The dimension if nothing was set</p>"}],access:"private",kind:"function",name:"dimension",longname:"dimension",scope:"global"},{comment:"/**\n* Get width or height of computed style\n* @param {String} widthOrHeight 'width' or 'height'\n* @return {Number|Boolean} The bolean false if nothing was set\n* @method currentDimension\n*/",meta:{range:[15853,16043],filename:"component.js",lineno:1093,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get width or height of computed style</p>",params:[{type:{names:["String"]},description:"<p>'width' or 'height'</p>",name:"widthOrHeight"}],returns:[{type:{names:["Number","Boolean"]},description:"<p>The bolean false if nothing was set</p>"}],kind:"function",name:"currentDimension",longname:"currentDimension",scope:"global"},{comment:"/**\n* Get an object which contains width and height values of computed style\n* @return {Object} The dimensions of element\n* @method currentDimensions\n*/",meta:{range:[16110,16262],filename:"component.js",lineno:1121,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an object which contains width and height values of computed style</p>",returns:[{type:{names:["Object"]},description:"<p>The dimensions of element</p>"}],kind:"function",name:"currentDimensions",longname:"currentDimensions",scope:"global"},{comment:"/**\n* Get width of computed style\n* @return {Integer}\n* @method currentWidth\n*/",meta:{range:[16284,16363],filename:"component.js",lineno:1133,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get width of computed style</p>",returns:[{type:{names:["Integer"]}}],kind:"function",name:"currentWidth",longname:"currentWidth",scope:"global"},{comment:"/**\n* Get height of computed style\n* @return {Integer}\n* @method currentHeight\n*/",meta:{range:[16376,16457],filename:"component.js",lineno:1142,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get height of computed style</p>",returns:[{type:{names:["Integer"]}}],kind:"function",name:"currentHeight",longname:"currentHeight",scope:"global"},{comment:"/**\n* Emit 'tap' events when touch events are supported\n* This is used to support toggling the controls through a tap on the video.\n* We're requiring them to be enabled because otherwise every component would\n* have this extra overhead unnecessarily, on mobile devices where extra\n* overhead is especially bad.\n*\n* @private\n* @method emitTapEvents\n*/",meta:{range:[16470,16820],filename:"component.js",lineno:1151,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Emit 'tap' events when touch events are supported\nThis is used to support toggling the controls through a tap on the video.\nWe're requiring them to be enabled because otherwise every component would\nhave this extra overhead unnecessarily, on mobile devices where extra\noverhead is especially bad.</p>",access:"private",kind:"function",name:"emitTapEvents",longname:"emitTapEvents",scope:"global"},{comment:"/**\n* Report user touch activity when touch events occur\n* User activity is used to determine when controls should show/hide. It's\n* relatively simple when it comes to mouse events, because any mouse event\n* should show the controls. So we capture mouse events that bubble up to the\n* player and report activity when that happens.\n* With touch events it isn't as easy. We can't rely on touch events at the\n* player level, because a tap (touchstart + touchend) on the video itself on\n* mobile devices is meant to turn controls off (and on). User activity is\n* checked asynchronously, so what could happen is a tap event on the video\n* turns the controls off, then the touchend event bubbles up to the player,\n* which if it reported user activity, would turn the controls right back on.\n* (We also don't want to completely block touch events from bubbling up)\n* Also a touchmove, touch+hold, and anything other than a tap is not supposed\n* to turn the controls back on on a mobile device.\n* Here we're setting the default component behavior to report user activity\n* whenever touch events happen, and this can be turned off by components that\n* want touch events to act differently.\n*\n* @method enableTouchActivity\n*/",meta:{range:[17049,18264],filename:"component.js",lineno:1237,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Report user touch activity when touch events occur\nUser activity is used to determine when controls should show/hide. It's\nrelatively simple when it comes to mouse events, because any mouse event\nshould show the controls. So we capture mouse events that bubble up to the\nplayer and report activity when that happens.\nWith touch events it isn't as easy. We can't rely on touch events at the\nplayer level, because a tap (touchstart + touchend) on the video itself on\nmobile devices is meant to turn controls off (and on). User activity is\nchecked asynchronously, so what could happen is a tap event on the video\nturns the controls off, then the touchend event bubbles up to the player,\nwhich if it reported user activity, would turn the controls right back on.\n(We also don't want to completely block touch events from bubbling up)\nAlso a touchmove, touch+hold, and anything other than a tap is not supposed\nto turn the controls back on on a mobile device.\nHere we're setting the default component behavior to report user activity\nwhenever touch events happen, and this can be turned off by components that\nwant touch events to act differently.</p>",kind:"function",name:"enableTouchActivity",longname:"enableTouchActivity",scope:"global"},{comment:"/**\n* Creates timeout and sets up disposal automatically.\n*\n* @param {Function} fn The function to run after the timeout.\n* @param {Number} timeout Number of ms to delay before executing specified function.\n* @return {Number} Returns the timeout ID\n* @method setTimeout\n*/",meta:{range:[18361,18633],filename:"component.js",lineno:1290,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Creates timeout and sets up disposal automatically.</p>",params:[{type:{names:["function"]},description:"<p>The function to run after the timeout.</p>",name:"fn"},{type:{names:["Number"]},description:"<p>Number of ms to delay before executing specified function.</p>",name:"timeout"}],returns:[{type:{names:["Number"]},description:"<p>Returns the timeout ID</p>"}],kind:"function",name:"setTimeout",longname:"setTimeout",scope:"global"},{comment:"/**\n* Clears a timeout and removes the associated dispose listener\n*\n* @param {Number} timeoutId The id of the timeout to clear\n* @return {Number} Returns the timeout ID\n* @method clearTimeout\n*/",meta:{range:[18685,18880],filename:"component.js",lineno:1315,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Clears a timeout and removes the associated dispose listener</p>",params:[{type:{names:["Number"]},description:"<p>The id of the timeout to clear</p>",name:"timeoutId"}],returns:[{type:{names:["Number"]},description:"<p>Returns the timeout ID</p>"}],kind:"function",name:"clearTimeout",longname:"clearTimeout",scope:"global"},{comment:"/**\n* Creates an interval and sets up disposal automatically.\n*\n* @param {Function} fn The function to run every N seconds.\n* @param {Number} interval Number of ms to delay before executing specified function.\n* @return {Number} Returns the interval ID\n* @method setInterval\n*/",meta:{range:[18917,19194],filename:"component.js",lineno:1334,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Creates an interval and sets up disposal automatically.</p>",params:[{type:{names:["function"]},description:"<p>The function to run every N seconds.</p>",name:"fn"},{type:{names:["Number"]},description:"<p>Number of ms to delay before executing specified function.</p>",name:"interval"}],returns:[{type:{names:["Number"]},description:"<p>Returns the interval ID</p>"}],kind:"function",name:"setInterval",longname:"setInterval",scope:"global"},{comment:"/**\n* Clears an interval and removes the associated dispose listener\n*\n* @param {Number} intervalId The id of the interval to clear\n* @return {Number} Returns the interval ID\n* @method clearInterval\n*/",meta:{range:[19243,19444],filename:"component.js",lineno:1358,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Clears an interval and removes the associated dispose listener</p>",params:[{type:{names:["Number"]},description:"<p>The id of the interval to clear</p>",name:"intervalId"}],returns:[{type:{names:["Number"]},description:"<p>Returns the interval ID</p>"}],kind:"function",name:"clearInterval",longname:"clearInterval",scope:"global"},{comment:"/**\n* Registers a component\n*\n* @param {String} name Name of the component to register\n* @param {Object} comp The component to register\n* @static\n* @method registerComponent\n*/",meta:{range:[19481,19657],filename:"component.js",lineno:1377,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Registers a component</p>",params:[{type:{names:["String"]},description:"<p>Name of the component to register</p>",name:"name"},{type:{names:["Object"]},description:"<p>The component to register</p>",name:"comp"}],scope:"static",kind:"function",name:"registerComponent",longname:"registerComponent"},{comment:"/**\n* Gets a component by name\n*\n* @param {String} name Name of the component to get\n* @return {Component}\n* @static\n* @method getComponent\n*/",meta:{range:[19685,19827],filename:"component.js",lineno:1394,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Gets a component by name</p>",params:[{type:{names:["String"]},description:"<p>Name of the component to get</p>",name:"name"}],returns:[{type:{names:["Component"]}}],scope:"static",kind:"function",name:"getComponent",longname:"getComponent"},{comment:"/**\n* Sets up the constructor using the supplied init method\n* or uses the init of the parent object\n*\n* @param {Object} props An object of properties\n* @static\n* @deprecated\n* @method extend\n*/",meta:{range:[19861,20055],filename:"component.js",lineno:1413,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Sets up the constructor using the supplied init method\nor uses the init of the parent object</p>",params:[{type:{names:["Object"]},description:"<p>An object of properties</p>",name:"props"}],scope:"static",deprecated:!0,kind:"function",name:"extend",longname:"extend"},{comment:"/**\n* @file audio-track-button.js\n*/",meta:{range:[0,36],filename:"audio-track-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},name:"control-bar/audio-track-controls/audio-track-button.js",kind:"file",description:"<p>audio-track-button.js</p>",preserveName:!0,longname:"control-bar/audio-track-controls/audio-track-button.js",scope:"global"},{comment:"/**\n* The base class for buttons that toggle specific text track types (e.g. subtitles)\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends TrackButton\n* @class AudioTrackButton\n*/",meta:{range:[52,252],filename:"audio-track-button.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},description:"<p>The base class for buttons that toggle specific text track types (e.g. subtitles)</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["TrackButton"],kind:"class",name:"AudioTrackButton",longname:"AudioTrackButton",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[280,406],filename:"audio-track-button.js",lineno:26,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Create a menu item for each audio track\n*\n* @return {Array} Array of menu items\n* @method createItems\n*/", +meta:{range:[419,529],filename:"audio-track-button.js",lineno:36,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},description:"<p>Create a menu item for each audio track</p>",returns:[{type:{names:["Array"]},description:"<p>Array of menu items</p>"}],kind:"function",name:"createItems",longname:"createItems",scope:"global"},{comment:"/**\n* @file audio-track-menu-item.js\n*/",meta:{range:[0,39],filename:"audio-track-menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},name:"control-bar/audio-track-controls/audio-track-menu-item.js",kind:"file",description:"<p>audio-track-menu-item.js</p>",preserveName:!0,longname:"control-bar/audio-track-controls/audio-track-menu-item.js",scope:"global"},{comment:"/**\n* The audio track menu item\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class AudioTrackMenuItem\n*/",meta:{range:[52,195],filename:"audio-track-menu-item.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},description:"<p>The audio track menu item</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuItem"],kind:"class",name:"AudioTrackMenuItem",longname:"AudioTrackMenuItem",scope:"global"},{comment:"/**\n* Handle click on audio track\n*\n* @method handleClick\n*/",meta:{range:[265,325],filename:"audio-track-menu-item.js",lineno:39,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},description:"<p>Handle click on audio track</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Handle audio track change\n*\n* @method handleTracksChange\n*/",meta:{range:[368,433],filename:"audio-track-menu-item.js",lineno:58,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls",code:{}},description:"<p>Handle audio track change</p>",kind:"function",name:"handleTracksChange",longname:"handleTracksChange",scope:"global"},{comment:"/**\n* @file control-bar.js\n*/",meta:{range:[0,29],filename:"control-bar.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/control-bar.js",kind:"file",description:"<p>control-bar.js</p>",preserveName:!0,longname:"control-bar/control-bar.js",scope:"global"},{comment:"/**\n* Container of main controls\n*\n* @extends Component\n* @class ControlBar\n*/",meta:{range:[96,174],filename:"control-bar.js",lineno:26,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Container of main controls</p>",augments:["Component"],kind:"class",name:"ControlBar",longname:"ControlBar",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[181,265],filename:"control-bar.js",lineno:34,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file fullscreen-toggle.js\n*/",meta:{range:[0,35],filename:"fullscreen-toggle.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/fullscreen-toggle.js",kind:"file",description:"<p>fullscreen-toggle.js</p>",preserveName:!0,longname:"control-bar/fullscreen-toggle.js",scope:"global"},{comment:"/**\n* Toggle fullscreen video\n*\n* @extends Button\n* @class FullscreenToggle\n*/",meta:{range:[45,123],filename:"fullscreen-toggle.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Toggle fullscreen video</p>",augments:["Button"],kind:"class",name:"FullscreenToggle",longname:"FullscreenToggle",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[145,271],filename:"fullscreen-toggle.js",lineno:20,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Handles Fullscreenchange on the component and change control text accordingly\n*\n* @method handleFullscreenChange\n*/",meta:{range:[281,402],filename:"fullscreen-toggle.js",lineno:29,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Handles Fullscreenchange on the component and change control text accordingly</p>",kind:"function",name:"handleFullscreenChange",longname:"handleFullscreenChange",scope:"global"},{comment:"/**\n* Handles click for full screen\n*\n* @method handleClick\n*/",meta:{range:[424,486],filename:"fullscreen-toggle.js",lineno:41,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Handles click for full screen</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* @file live-display.js\n*/",meta:{range:[0,30],filename:"live-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/live-display.js",kind:"file",description:"<p>live-display.js</p>",preserveName:!0,longname:"control-bar/live-display.js",scope:"global"},{comment:"/**\n* Displays the live indicator\n* TODO - Future make it click to snap to live\n*\n* @extends Component\n* @class LiveDisplay\n*/",meta:{range:[40,166],filename:"live-display.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Displays the live indicator\nTODO - Future make it click to snap to live</p>",augments:["Component"],kind:"class",name:"LiveDisplay",longname:"LiveDisplay",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[194,278],filename:"live-display.js",lineno:23,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file mute-toggle.js\n*/",meta:{range:[0,29],filename:"mute-toggle.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/mute-toggle.js",kind:"file",description:"<p>mute-toggle.js</p>",preserveName:!0,longname:"control-bar/mute-toggle.js",scope:"global"},{comment:"/**\n* A button component for muting the audio\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class MuteToggle\n*/",meta:{range:[42,189],filename:"mute-toggle.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>A button component for muting the audio</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Button"],kind:"class",name:"MuteToggle",longname:"MuteToggle",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[259,385],filename:"mute-toggle.js",lineno:39,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Handle click on mute\n*\n* @method handleClick\n*/",meta:{range:[398,451],filename:"mute-toggle.js",lineno:49,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Handle click on mute</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Update volume\n*\n* @method update\n*/",meta:{range:[464,505],filename:"mute-toggle.js",lineno:58,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Update volume</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* @file play-toggle.js\n*/",meta:{range:[0,29],filename:"play-toggle.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/play-toggle.js",kind:"file",description:"<p>play-toggle.js</p>",preserveName:!0,longname:"control-bar/play-toggle.js",scope:"global"},{comment:"/**\n* Button to toggle between play and pause\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class PlayToggle\n*/",meta:{range:[39,186],filename:"play-toggle.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Button to toggle between play and pause</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Button"],kind:"class",name:"PlayToggle",longname:"PlayToggle",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[214,340],filename:"play-toggle.js",lineno:24,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Handle click to toggle between play and pause\n*\n* @method handleClick\n*/",meta:{range:[353,431],filename:"play-toggle.js",lineno:34,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Handle click to toggle between play and pause</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Add the vjs-playing class to the element so it can change appearance\n*\n* @method handlePlay\n*/",meta:{range:[456,556],filename:"play-toggle.js",lineno:47,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Add the vjs-playing class to the element so it can change appearance</p>",kind:"function",name:"handlePlay",longname:"handlePlay",scope:"global"},{comment:"/**\n* Add the vjs-paused class to the element so it can change appearance\n*\n* @method handlePause\n*/",meta:{range:[575,675],filename:"play-toggle.js",lineno:58,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Add the vjs-paused class to the element so it can change appearance</p>",kind:"function",name:"handlePause",longname:"handlePause",scope:"global"},{comment:"/**\n* @file playback-rate-menu-button.js\n*/",meta:{range:[0,43],filename:"playback-rate-menu-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},name:"control-bar/playback-rate-menu/playback-rate-menu-button.js",kind:"file",description:"<p>playback-rate-menu-button.js</p>",preserveName:!0,longname:"control-bar/playback-rate-menu/playback-rate-menu-button.js",scope:"global"},{comment:"/**\n* The component for controlling the playback rate\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuButton\n* @class PlaybackRateMenuButton\n*/",meta:{range:[62,233],filename:"playback-rate-menu-button.js",lineno:10,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>The component for controlling the playback rate</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuButton"],kind:"class",name:"PlaybackRateMenuButton",longname:"PlaybackRateMenuButton",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[270,354],filename:"playback-rate-menu-button.js",lineno:30,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[394,520],filename:"playback-rate-menu-button.js",lineno:49,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Create the playback rate menu\n*\n* @return {Menu} Menu object populated with items\n* @method createMenu\n*/",meta:{range:[533,644],filename:"playback-rate-menu-button.js",lineno:59,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Create the playback rate menu</p>",returns:[{type:{names:["Menu"]},description:"<p>Menu object populated with items</p>"}],kind:"function",name:"createMenu",longname:"createMenu",scope:"global"},{comment:"/**\n* Updates ARIA accessibility attributes\n*\n* @method updateARIAAttributes\n*/",meta:{range:[690,769],filename:"playback-rate-menu-button.js",lineno:80,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Updates ARIA accessibility attributes</p>",kind:"function",name:"updateARIAAttributes",longname:"updateARIAAttributes",scope:"global"},{comment:"/**\n* Handle menu item click\n*\n* @method handleClick\n*/",meta:{range:[785,840],filename:"playback-rate-menu-button.js",lineno:90,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Handle menu item click</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Get possible playback rates\n*\n* @return {Array} Possible playback rates\n* @method playbackRates\n*/",meta:{range:[889,993],filename:"playback-rate-menu-button.js",lineno:111,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Get possible playback rates</p>",returns:[{type:{names:["Array"]},description:"<p>Possible playback rates</p>"}],kind:"function",name:"playbackRates",longname:"playbackRates",scope:"global"},{comment:"/**\n* Get whether playback rates is supported by the tech\n* and an array of playback rates exists\n*\n* @return {Boolean} Whether changing playback rate is supported\n* @method playbackRateSupported\n*/",meta:{range:[1006,1204],filename:"playback-rate-menu-button.js",lineno:121,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Get whether playback rates is supported by the tech\nand an array of playback rates exists</p>",returns:[{type:{names:["Boolean"]},description:"<p>Whether changing playback rate is supported</p>"}],kind:"function",name:"playbackRateSupported",longname:"playbackRateSupported",scope:"global"},{comment:"/**\n* Hide playback rate controls when they're no playback rate options to select\n*\n* @method updateVisibility\n*/",meta:{range:[1229,1342],filename:"playback-rate-menu-button.js",lineno:136,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Hide playback rate controls when they're no playback rate options to select</p>",kind:"function",name:"updateVisibility",longname:"updateVisibility",scope:"global"},{comment:"/**\n* Update button label when rate changed\n*\n* @method updateLabel\n*/",meta:{range:[1367,1437],filename:"playback-rate-menu-button.js",lineno:149,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Update button label when rate changed</p>",kind:"function",name:"updateLabel",longname:"updateLabel",scope:"global"},{comment:"/**\n* @file playback-rate-menu-item.js\n*/",meta:{range:[0,41],filename:"playback-rate-menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},name:"control-bar/playback-rate-menu/playback-rate-menu-item.js",kind:"file",description:"<p>playback-rate-menu-item.js</p>",preserveName:!0,longname:"control-bar/playback-rate-menu/playback-rate-menu-item.js",scope:"global"},{comment:"/**\n* The specific menu item type for selecting a playback rate\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class PlaybackRateMenuItem\n*/",meta:{range:[51,228],filename:"playback-rate-menu-item.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>The specific menu item type for selecting a playback rate</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuItem"],kind:"class",name:"PlaybackRateMenuItem",longname:"PlaybackRateMenuItem",scope:"global"},{comment:"/**\n* Handle click on menu item\n*\n* @method handleClick\n*/",meta:{range:[280,338],filename:"playback-rate-menu-item.js",lineno:32,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Handle click on menu item</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Update playback rate with selected rate\n*\n* @method update\n*/",meta:{range:[354,421],filename:"playback-rate-menu-item.js",lineno:42,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu",code:{}},description:"<p>Update playback rate with selected rate</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* @file load-progress-bar.js\n*/",meta:{range:[0,35],filename:"load-progress-bar.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},name:"control-bar/progress-control/load-progress-bar.js",kind:"file",description:"<p>load-progress-bar.js</p>",preserveName:!0,longname:"control-bar/progress-control/load-progress-bar.js",scope:"global"},{comment:"/**\n* Shows load progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class LoadProgressBar\n*/",meta:{range:[45,180],filename:"load-progress-bar.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Shows load progress</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"LoadProgressBar",longname:"LoadProgressBar",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[202,286],filename:"load-progress-bar.js",lineno:22,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Update progress bar\n*\n* @method update\n*/",meta:{range:[308,355],filename:"load-progress-bar.js",lineno:35,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Update progress bar</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* @file mouse-time-display.js\n*/",meta:{range:[0,36],filename:"mouse-time-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},name:"control-bar/progress-control/mouse-time-display.js",kind:"file",description:"<p>mouse-time-display.js</p>",preserveName:!0,longname:"control-bar/progress-control/mouse-time-display.js",scope:"global"},{comment:"/**\n* The Mouse Time Display component shows the time you will seek to\n* when hovering over the progress bar\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class MouseTimeDisplay\n*/",meta:{range:[58,277],filename:"mouse-time-display.js",lineno:11,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>The Mouse Time Display component shows the time you will seek to\nwhen hovering over the progress bar</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"MouseTimeDisplay",longname:"MouseTimeDisplay",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[353,437],filename:"mouse-time-display.js",lineno:45,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* This takes in a horizontal position for the bar and returns a clamped position.\n* Clamped position means that it will keep the position greater than half the width\n* of the tooltip and smaller than the player width minus half the width o the tooltip.\n* It will only clamp the position if `keepTooltipsInside` option is set.\n*\n* @param {Number} position the position the bar wants to be\n* @return {Number} newPosition the (potentially) clamped position\n* @method clampPosition_\n*/",meta:{range:[543,1028],filename:"mouse-time-display.js",lineno:86,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>This takes in a horizontal position for the bar and returns a clamped position.\nClamped position means that it will keep the position greater than half the width\nof the tooltip and smaller than the player width minus half the width o the tooltip.\nIt will only clamp the position if <code>keepTooltipsInside</code> option is set.</p>",params:[{type:{names:["Number"]},description:"<p>the position the bar wants to be</p>",name:"position"}],returns:[{type:{names:["Number"]},description:"<p>newPosition the (potentially) clamped position</p>"}],kind:"function",name:"clampPosition_",longname:"clampPosition_",scope:"global"},{comment:"/**\n* @file play-progress-bar.js\n*/",meta:{range:[0,35],filename:"play-progress-bar.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},name:"control-bar/progress-control/play-progress-bar.js",kind:"file",description:"<p>play-progress-bar.js</p>",preserveName:!0,longname:"control-bar/progress-control/play-progress-bar.js",scope:"global"},{comment:"/**\n* Shows play progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class PlayProgressBar\n*/",meta:{range:[51,186],filename:"play-progress-bar.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Shows play progress</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"PlayProgressBar",longname:"PlayProgressBar",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[247,331],filename:"play-progress-bar.js",lineno:37,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file progress-control.js\n*/",meta:{range:[0,34],filename:"progress-control.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},name:"control-bar/progress-control/progress-control.js",kind:"file",description:"<p>progress-control.js</p>",preserveName:!0,longname:"control-bar/progress-control/progress-control.js",scope:"global"},{comment:"/**\n* The Progress Control component contains the seek bar, load progress,\n* and play progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class ProgressControl\n*/",meta:{range:[47,251],filename:"progress-control.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>The Progress Control component contains the seek bar, load progress,\nand play progress</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"ProgressControl",longname:"ProgressControl",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[258,342],filename:"progress-control.js",lineno:19,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file seek-bar.js\n*/",meta:{range:[0,26],filename:"seek-bar.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},name:"control-bar/progress-control/seek-bar.js",kind:"file",description:"<p>seek-bar.js</p>",preserveName:!0,longname:"control-bar/progress-control/seek-bar.js",scope:"global"},{comment:"/**\n* Seek Bar and holder for the progress bars\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Slider\n* @class SeekBar\n*/",meta:{range:[57,203],filename:"seek-bar.js",lineno:14,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Seek Bar and holder for the progress bars</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Slider"],kind:"class",name:"SeekBar",longname:"SeekBar",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[264,348],filename:"seek-bar.js",lineno:42,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Update ARIA accessibility attributes\n*\n* @method updateARIAAttributes\n*/",meta:{range:[373,451],filename:"seek-bar.js",lineno:56,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Update ARIA accessibility attributes</p>",kind:"function",name:"updateARIAAttributes",longname:"updateARIAAttributes",scope:"global"},{comment:"/**\n* Get percentage of video played\n*\n* @return {Number} Percentage played\n* @method getPercent\n*/",meta:{range:[521,620],filename:"seek-bar.js",lineno:84,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Get percentage of video played</p>",returns:[{type:{names:["Number"]},description:"<p>Percentage played</p>"}],kind:"function",name:"getPercent",longname:"getPercent",scope:"global"},{comment:"/**\n* Handle mouse down on seek bar\n*\n* @method handleMouseDown\n*/",meta:{range:[636,702],filename:"seek-bar.js",lineno:95,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Handle mouse down on seek bar</p>",kind:"function",name:"handleMouseDown",longname:"handleMouseDown",scope:"global"},{comment:"/**\n* Handle mouse move on seek bar\n*\n* @method handleMouseMove\n*/",meta:{range:[730,796],filename:"seek-bar.js",lineno:109,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Handle mouse move on seek bar</p>",kind:"function",name:"handleMouseMove",longname:"handleMouseMove",scope:"global"},{comment:"/**\n* Handle mouse up on seek bar\n*\n* @method handleMouseUp\n*/",meta:{range:[827,889],filename:"seek-bar.js",lineno:124,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Handle mouse up on seek bar</p>",kind:"function",name:"handleMouseUp",longname:"handleMouseUp",scope:"global"},{comment:"/**\n* Move more quickly fast forward for keyboard-only users\n*\n* @method stepForward\n*/",meta:{range:[917,1004],filename:"seek-bar.js",lineno:138,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Move more quickly fast forward for keyboard-only users</p>",kind:"function",name:"stepForward",longname:"stepForward",scope:"global"},{comment:"/**\n* Move more quickly rewind for keyboard-only users\n*\n* @method stepBack\n*/",meta:{range:[1017,1095],filename:"seek-bar.js",lineno:147,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Move more quickly rewind for keyboard-only users</p>",kind:"function",name:"stepBack",longname:"stepBack",scope:"global"},{comment:"/**\n* @file play-progress-bar.js\n*/",meta:{range:[0,35],filename:"tooltip-progress-bar.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},name:"control-bar/progress-control/tooltip-progress-bar.js",kind:"file",description:"<p>play-progress-bar.js</p>",preserveName:!0,longname:"control-bar/progress-control/tooltip-progress-bar.js",scope:"global"},{comment:"/**\n* Shows play progress\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class PlayProgressBar\n*/",meta:{range:[51,186],filename:"tooltip-progress-bar.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Shows play progress</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"PlayProgressBar",longname:"PlayProgressBar",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[214,298],filename:"tooltip-progress-bar.js",lineno:26,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file custom-control-spacer.js\n*/",meta:{range:[0,39],filename:"custom-control-spacer.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},name:"control-bar/spacer-controls/custom-control-spacer.js",kind:"file",description:"<p>custom-control-spacer.js</p>",preserveName:!0,longname:"control-bar/spacer-controls/custom-control-spacer.js",scope:"global"},{comment:"/**\n* Spacer specifically meant to be used as an insertion point for new plugins, etc.\n*\n* @extends Spacer\n* @class CustomControlSpacer\n*/",meta:{range:[49,187],filename:"custom-control-spacer.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},description:"<p>Spacer specifically meant to be used as an insertion point for new plugins, etc.</p>",augments:["Spacer"],kind:"class",name:"CustomControlSpacer",longname:"CustomControlSpacer",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[194,320],filename:"custom-control-spacer.js",lineno:15,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>" +}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[333,417],filename:"custom-control-spacer.js",lineno:25,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file spacer.js\n*/",meta:{range:[0,24],filename:"spacer.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},name:"control-bar/spacer-controls/spacer.js",kind:"file",description:"<p>spacer.js</p>",preserveName:!0,longname:"control-bar/spacer-controls/spacer.js",scope:"global"},{comment:"/**\n* Just an empty spacer element that can be used as an append point for plugins, etc.\n* Also can be used to create space between elements when necessary.\n*\n* @extends Component\n* @class Spacer\n*/",meta:{range:[31,229],filename:"spacer.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},description:"<p>Just an empty spacer element that can be used as an append point for plugins, etc.\nAlso can be used to create space between elements when necessary.</p>",augments:["Component"],kind:"class",name:"Spacer",longname:"Spacer",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[236,362],filename:"spacer.js",lineno:15,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[375,459],filename:"spacer.js",lineno:25,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file caption-settings-menu-item.js\n*/",meta:{range:[0,44],filename:"caption-settings-menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/caption-settings-menu-item.js",kind:"file",description:"<p>caption-settings-menu-item.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/caption-settings-menu-item.js",scope:"global"},{comment:"/**\n* The menu item for caption track settings menu\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends TextTrackMenuItem\n* @class CaptionSettingsMenuItem\n*/",meta:{range:[54,231],filename:"caption-settings-menu-item.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The menu item for caption track settings menu</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["TextTrackMenuItem"],kind:"class",name:"CaptionSettingsMenuItem",longname:"CaptionSettingsMenuItem",scope:"global"},{comment:"/**\n* Handle click on menu item\n*\n* @method handleClick\n*/",meta:{range:[292,350],filename:"caption-settings-menu-item.js",lineno:35,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Handle click on menu item</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* @file captions-button.js\n*/",meta:{range:[0,33],filename:"captions-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/captions-button.js",kind:"file",description:"<p>captions-button.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/captions-button.js",scope:"global"},{comment:"/**\n* The button component for toggling and selecting captions\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class CaptionsButton\n*/",meta:{range:[46,319],filename:"captions-button.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The button component for toggling and selecting captions</p>",params:[{type:{names:["Object"]},description:"<p>Player object</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["TextTrackButton"],kind:"class",name:"CaptionsButton",longname:"CaptionsButton",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[341,467],filename:"captions-button.js",lineno:24,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Update caption menu items\n*\n* @method update\n*/",meta:{range:[480,533],filename:"captions-button.js",lineno:34,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Update caption menu items</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* Create caption menu items\n*\n* @return {Array} Array of menu items\n* @method createItems\n*/",meta:{range:[582,678],filename:"captions-button.js",lineno:55,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Create caption menu items</p>",returns:[{type:{names:["Array"]},description:"<p>Array of menu items</p>"}],kind:"function",name:"createItems",longname:"createItems",scope:"global"},{comment:"/**\n* @file chapters-button.js\n*/",meta:{range:[0,33],filename:"chapters-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/chapters-button.js",kind:"file",description:"<p>chapters-button.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/chapters-button.js",scope:"global"},{comment:"/**\n* The button component for toggling and selecting chapters\n* Chapters act much differently than other text tracks\n* Cues are navigation vs. other tracks of alternative languages\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class ChaptersButton\n*/",meta:{range:[64,456],filename:"chapters-button.js",lineno:14,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The button component for toggling and selecting chapters\nChapters act much differently than other text tracks\nCues are navigation vs. other tracks of alternative languages</p>",params:[{type:{names:["Object"]},description:"<p>Player object</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["TextTrackButton"],kind:"class",name:"ChaptersButton",longname:"ChaptersButton",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[478,604],filename:"chapters-button.js",lineno:32,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Create a menu item for each text track\n*\n* @return {Array} Array of menu items\n* @method createItems\n*/",meta:{range:[617,726],filename:"chapters-button.js",lineno:42,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Create a menu item for each text track</p>",returns:[{type:{names:["Array"]},description:"<p>Array of menu items</p>"}],kind:"function",name:"createItems",longname:"createItems",scope:"global"},{comment:"/**\n* Create menu from chapter buttons\n*\n* @return {Menu} Menu of chapter buttons\n* @method createMenu\n*/",meta:{range:[790,895],filename:"chapters-button.js",lineno:69,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Create menu from chapter buttons</p>",returns:[{type:{names:["Menu"]},description:"<p>Menu of chapter buttons</p>"}],kind:"function",name:"createMenu",longname:"createMenu",scope:"global"},{comment:"/**\n* @file chapters-track-menu-item.js\n*/",meta:{range:[0,42],filename:"chapters-track-menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/chapters-track-menu-item.js",kind:"file",description:"<p>chapters-track-menu-item.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/chapters-track-menu-item.js",scope:"global"},{comment:"/**\n* The chapter track menu item\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class ChaptersTrackMenuItem\n*/",meta:{range:[55,203],filename:"chapters-track-menu-item.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The chapter track menu item</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuItem"],kind:"class",name:"ChaptersTrackMenuItem",longname:"ChaptersTrackMenuItem",scope:"global"},{comment:"/**\n* Handle click on menu item\n*\n* @method handleClick\n*/",meta:{range:[255,313],filename:"chapters-track-menu-item.js",lineno:33,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Handle click on menu item</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Update chapter menu item\n*\n* @method update\n*/",meta:{range:[332,384],filename:"chapters-track-menu-item.js",lineno:44,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Update chapter menu item</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* @file descriptions-button.js\n*/",meta:{range:[0,37],filename:"descriptions-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/descriptions-button.js",kind:"file",description:"<p>descriptions-button.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/descriptions-button.js",scope:"global"},{comment:"/**\n* The button component for toggling and selecting descriptions\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class DescriptionsButton\n*/",meta:{range:[50,331],filename:"descriptions-button.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The button component for toggling and selecting descriptions</p>",params:[{type:{names:["Object"]},description:"<p>Player object</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["TextTrackButton"],kind:"class",name:"DescriptionsButton",longname:"DescriptionsButton",scope:"global"},{comment:"/**\n* Handle text track change\n*\n* @method handleTracksChange\n*/",meta:{range:[386,450],filename:"descriptions-button.js",lineno:35,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Handle text track change</p>",kind:"function",name:"handleTracksChange",longname:"handleTracksChange",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[514,640],filename:"descriptions-button.js",lineno:61,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* @file off-text-track-menu-item.js\n*/",meta:{range:[0,42],filename:"off-text-track-menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/off-text-track-menu-item.js",kind:"file",description:"<p>off-text-track-menu-item.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/off-text-track-menu-item.js",scope:"global"},{comment:"/**\n* A special menu item for turning of a specific type of text track\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends TextTrackMenuItem\n* @class OffTextTrackMenuItem\n*/",meta:{range:[52,245],filename:"off-text-track-menu-item.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>A special menu item for turning of a specific type of text track</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["TextTrackMenuItem"],kind:"class",name:"OffTextTrackMenuItem",longname:"OffTextTrackMenuItem",scope:"global"},{comment:"/**\n* Handle text track change\n*\n* @param {Object} event Event object\n* @method handleTracksChange\n*/",meta:{range:[306,407],filename:"off-text-track-menu-item.js",lineno:35,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Handle text track change</p>",params:[{type:{names:["Object"]},description:"<p>Event object</p>",name:"event"}],kind:"function",name:"handleTracksChange",longname:"handleTracksChange",scope:"global"},{comment:"/**\n* @file subtitles-button.js\n*/",meta:{range:[0,34],filename:"subtitles-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/subtitles-button.js",kind:"file",description:"<p>subtitles-button.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/subtitles-button.js",scope:"global"},{comment:"/**\n* The button component for toggling and selecting subtitles\n*\n* @param {Object} player Player object\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends TextTrackButton\n* @class SubtitlesButton\n*/",meta:{range:[44,319],filename:"subtitles-button.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The button component for toggling and selecting subtitles</p>",params:[{type:{names:["Object"]},description:"<p>Player object</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["TextTrackButton"],kind:"class",name:"SubtitlesButton",longname:"SubtitlesButton",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[341,467],filename:"subtitles-button.js",lineno:23,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* @file text-track-button.js\n*/",meta:{range:[0,35],filename:"text-track-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/text-track-button.js",kind:"file",description:"<p>text-track-button.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/text-track-button.js",scope:"global"},{comment:"/**\n* The base class for buttons that toggle specific text track types (e.g. subtitles)\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuButton\n* @class TextTrackButton\n*/",meta:{range:[54,252],filename:"text-track-button.js",lineno:10,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The base class for buttons that toggle specific text track types (e.g. subtitles)</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuButton"],kind:"class",name:"TextTrackButton",longname:"TextTrackButton",scope:"global"},{comment:"/**\n* Create a menu item for each text track\n*\n* @return {Array} Array of menu items\n* @method createItems\n*/",meta:{range:[277,386],filename:"text-track-button.js",lineno:26,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Create a menu item for each text track</p>",returns:[{type:{names:["Array"]},description:"<p>Array of menu items</p>"}],kind:"function",name:"createItems",longname:"createItems",scope:"global"},{comment:"/**\n* @file text-track-menu-item.js\n*/",meta:{range:[0,38],filename:"text-track-menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},name:"control-bar/text-track-controls/text-track-menu-item.js",kind:"file",description:"<p>text-track-menu-item.js</p>",preserveName:!0,longname:"control-bar/text-track-controls/text-track-menu-item.js",scope:"global"},{comment:"/**\n* The specific menu item type for selecting a language within a text track kind\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuItem\n* @class TextTrackMenuItem\n*/",meta:{range:[57,251],filename:"text-track-menu-item.js",lineno:10,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>The specific menu item type for selecting a language within a text track kind</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuItem"],kind:"class",name:"TextTrackMenuItem",longname:"TextTrackMenuItem",scope:"global"},{comment:"/**\n* Handle click on text track\n*\n* @method handleClick\n*/",meta:{range:[402,461],filename:"text-track-menu-item.js",lineno:68,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Handle click on text track</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Handle text track change\n*\n* @method handleTracksChange\n*/",meta:{range:[531,595],filename:"text-track-menu-item.js",lineno:96,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls",code:{}},description:"<p>Handle text track change</p>",kind:"function",name:"handleTracksChange",longname:"handleTracksChange",scope:"global"},{comment:"/**\n* @file current-time-display.js\n*/",meta:{range:[0,38],filename:"current-time-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},name:"control-bar/time-controls/current-time-display.js",kind:"file",description:"<p>current-time-display.js</p>",preserveName:!0,longname:"control-bar/time-controls/current-time-display.js",scope:"global"},{comment:"/**\n* Displays the current time\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class CurrentTimeDisplay\n*/",meta:{range:[51,195],filename:"current-time-display.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Displays the current time</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"CurrentTimeDisplay",longname:"CurrentTimeDisplay",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[220,304],filename:"current-time-display.js",lineno:24,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Update current time display\n*\n* @method updateContent\n*/",meta:{range:[359,421],filename:"current-time-display.js",lineno:48,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Update current time display</p>",kind:"function",name:"updateContent",longname:"updateContent",scope:"global"},{comment:"/**\n* @file duration-display.js\n*/",meta:{range:[0,34],filename:"duration-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},name:"control-bar/time-controls/duration-display.js",kind:"file",description:"<p>duration-display.js</p>",preserveName:!0,longname:"control-bar/time-controls/duration-display.js",scope:"global"},{comment:"/**\n* Displays the duration\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class DurationDisplay\n*/",meta:{range:[47,184],filename:"duration-display.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Displays the duration</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"DurationDisplay",longname:"DurationDisplay",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[227,311],filename:"duration-display.js",lineno:30,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Update duration time display\n*\n* @method updateContent\n*/",meta:{range:[366,429],filename:"duration-display.js",lineno:54,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Update duration time display</p>",kind:"function",name:"updateContent",longname:"updateContent",scope:"global"},{comment:"/**\n* @file remaining-time-display.js\n*/",meta:{range:[0,40],filename:"remaining-time-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},name:"control-bar/time-controls/remaining-time-display.js",kind:"file",description:"<p>remaining-time-display.js</p>",preserveName:!0,longname:"control-bar/time-controls/remaining-time-display.js",scope:"global"},{comment:"/**\n* Displays the time left in the video\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class RemainingTimeDisplay\n*/",meta:{range:[53,209],filename:"remaining-time-display.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Displays the time left in the video</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"RemainingTimeDisplay",longname:"RemainingTimeDisplay",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[237,321],filename:"remaining-time-display.js",lineno:25,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Update remaining time display\n*\n* @method updateContent\n*/",meta:{range:[376,440],filename:"remaining-time-display.js",lineno:49,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Update remaining time display</p>",kind:"function",name:"updateContent",longname:"updateContent",scope:"global"},{comment:"/**\n* @file time-divider.js\n*/",meta:{range:[0,30],filename:"time-divider.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},name:"control-bar/time-controls/time-divider.js",kind:"file",description:"<p>time-divider.js</p>",preserveName:!0,longname:"control-bar/time-controls/time-divider.js",scope:"global"},{comment:"/**\n* The separator between the current time and duration.\n* Can be hidden if it's not needed in the design.\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class TimeDivider\n*/",meta:{range:[37,251],filename:"time-divider.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>The separator between the current time and duration.\nCan be hidden if it's not needed in the design.</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"TimeDivider",longname:"TimeDivider",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[258,342],filename:"time-divider.js",lineno:17,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file track-button.js\n*/",meta:{range:[0,30],filename:"track-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/track-button.js",kind:"file",description:"<p>track-button.js</p>",preserveName:!0,longname:"control-bar/track-button.js",scope:"global"},{comment:"/**\n* The base class for buttons that toggle specific text track types (e.g. subtitles)\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends MenuButton\n* @class TrackButton\n*/",meta:{range:[43,237],filename:"track-button.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>The base class for buttons that toggle specific text track types (e.g. subtitles)</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["MenuButton"],kind:"class",name:"TrackButton",longname:"TrackButton",scope:"global"},{comment:"/**\n* @file volume-bar.js\n*/",meta:{range:[0,28],filename:"volume-bar.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},name:"control-bar/volume-control/volume-bar.js",kind:"file",description:"<p>volume-bar.js</p>",preserveName:!0,longname:"control-bar/volume-control/volume-bar.js",scope:"global"},{comment:"/**\n* The bar that contains the volume level and can be clicked on to adjust the level\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Slider\n* @class VolumeBar\n*/",meta:{range:[50,237],filename:"volume-bar.js",lineno:11,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>The bar that contains the volume level and can be clicked on to adjust the level</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Slider"],kind:"class",name:"VolumeBar",longname:"VolumeBar",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[262,346],filename:"volume-bar.js",lineno:27,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Handle mouse move on volume bar\n*\n* @method handleMouseMove\n*/",meta:{range:[371,439],filename:"volume-bar.js",lineno:41,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Handle mouse move on volume bar</p>",kind:"function",name:"handleMouseMove",longname:"handleMouseMove",scope:"global"},{comment:"/**\n* Get percent of volume level\n*\n* @retun {Number} Volume level percent\n* @method getPercent\n*/",meta:{range:[473,571],filename:"volume-bar.js",lineno:57,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Get percent of volume level</p>",tags:[{originalTitle:"retun",title:"retun",text:"{Number} Volume level percent",value:"{Number} Volume level percent"}],kind:"function",name:"getPercent",longname:"getPercent",scope:"global"},{comment:"/**\n* Increase volume level for keyboard users\n*\n* @method stepForward\n*/",meta:{range:[596,669],filename:"volume-bar.js",lineno:71,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Increase volume level for keyboard users</p>",kind:"function",name:"stepForward",longname:"stepForward",scope:"global"},{comment:"/**\n* Decrease volume level for keyboard users\n*\n* @method stepBack\n*/",meta:{range:[685,755],filename:"volume-bar.js",lineno:81,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Decrease volume level for keyboard users</p>",kind:"function",name:"stepBack",longname:"stepBack",scope:"global"},{comment:"/**\n* Update ARIA accessibility attributes\n*\n* @method updateARIAAttributes\n*/",meta:{range:[771,849],filename:"volume-bar.js",lineno:91,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Update ARIA accessibility attributes</p>",kind:"function",name:"updateARIAAttributes",longname:"updateARIAAttributes",scope:"global"},{comment:"/**\n* @file volume-control.js\n*/",meta:{range:[0,32],filename:"volume-control.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},name:"control-bar/volume-control/volume-control.js",kind:"file",description:"<p>volume-control.js</p>",preserveName:!0,longname:"control-bar/volume-control/volume-control.js",scope:"global"},{comment:"/**\n* The component for controlling the volume level\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class VolumeControl\n*/",meta:{range:[48,208],filename:"volume-control.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>The component for controlling the volume level</p>", +params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"VolumeControl",longname:"VolumeControl",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[263,347],filename:"volume-control.js",lineno:35,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file volume-level.js\n*/",meta:{range:[0,30],filename:"volume-level.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},name:"control-bar/volume-control/volume-level.js",kind:"file",description:"<p>volume-level.js</p>",preserveName:!0,longname:"control-bar/volume-control/volume-level.js",scope:"global"},{comment:"/**\n* Shows volume level\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class VolumeLevel\n*/",meta:{range:[37,167],filename:"volume-level.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Shows volume level</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"VolumeLevel",longname:"VolumeLevel",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[174,258],filename:"volume-level.js",lineno:16,path:"/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file volume-menu-button.js\n*/",meta:{range:[0,36],filename:"volume-menu-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},name:"control-bar/volume-menu-button.js",kind:"file",description:"<p>volume-menu-button.js</p>",preserveName:!0,longname:"control-bar/volume-menu-button.js",scope:"global"},{comment:"/**\n* Button for volume popup\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends PopupButton\n* @class VolumeMenuButton\n*/",meta:{range:[58,200],filename:"volume-menu-button.js",lineno:11,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Button for volume popup</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["PopupButton"],kind:"class",name:"VolumeMenuButton",longname:"VolumeMenuButton",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[378,504],filename:"volume-menu-button.js",lineno:78,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {Popup} The volume popup button\n* @method createPopup\n*/",meta:{range:[538,658],filename:"volume-menu-button.js",lineno:95,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["Popup"]},description:"<p>The volume popup button</p>"}],kind:"function",name:"createPopup",longname:"createPopup",scope:"global"},{comment:"/**\n* Handle click on volume popup and calls super\n*\n* @method handleClick\n*/",meta:{range:[710,787],filename:"volume-menu-button.js",lineno:118,path:"/Users/mboles/git/docs/video.js/src/js/control-bar",code:{}},description:"<p>Handle click on volume popup and calls super</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* @file error-display.js\n*/",meta:{range:[0,31],filename:"error-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"error-display.js",kind:"file",description:"<p>error-display.js</p>",preserveName:!0,longname:"error-display.js",scope:"global"},{comment:"/**\n* Display that an error has occurred making the video unplayable.\n*\n* @extends ModalDialog\n* @class ErrorDisplay\n*/",meta:{range:[50,169],filename:"error-display.js",lineno:10,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Display that an error has occurred making the video unplayable.</p>",augments:["ModalDialog"],kind:"class",name:"ErrorDisplay",longname:"ErrorDisplay",scope:"global"},{comment:"/**\n* Include the old class for backward-compatibility.\n*\n* This can be removed in 6.0.\n*\n* @method buildCSSClass\n* @deprecated\n* @return {String}\n*/",meta:{range:[294,443],filename:"error-display.js",lineno:29,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Include the old class for backward-compatibility.</p>\n<p>This can be removed in 6.0.</p>",kind:"function",name:"buildCSSClass",deprecated:!0,returns:[{type:{names:["String"]}}],longname:"buildCSSClass",scope:"global"},{comment:"/**\n* @file event-target.js\n*/",meta:{range:[0,30],filename:"event-target.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"event-target.js",kind:"file",description:"<p>event-target.js</p>",preserveName:!0,longname:"event-target.js",scope:"global"},{comment:"/**\n* @file fullscreen-api.js\n*/",meta:{range:[0,32],filename:"fullscreen-api.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"fullscreen-api.js",kind:"file",description:"<p>fullscreen-api.js</p>",preserveName:!0,longname:"fullscreen-api.js",scope:"global"},{comment:"/**\n* @file loading-spinner.js\n*/",meta:{range:[0,33],filename:"loading-spinner.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"loading-spinner.js",kind:"file",description:"<p>loading-spinner.js</p>",preserveName:!0,longname:"loading-spinner.js",scope:"global"},{comment:"/**\n* Loading spinner for waiting events\n*\n* @extends Component\n* @class LoadingSpinner\n*/",meta:{range:[143,233],filename:"loading-spinner.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Loading spinner for waiting events</p>",augments:["Component"],kind:"class",name:"LoadingSpinner",longname:"LoadingSpinner",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @method createEl\n*/",meta:{range:[240,304],filename:"loading-spinner.js",lineno:16,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the component's DOM element</p>",kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file media-error.js\n*/",meta:{range:[0,29],filename:"media-error.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"media-error.js",kind:"file",description:"<p>media-error.js</p>",preserveName:!0,longname:"media-error.js",scope:"global"},{comment:"/**\n* @file menu-button.js\n*/",meta:{range:[0,29],filename:"menu-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},name:"menu/menu-button.js",kind:"file",description:"<p>menu-button.js</p>",preserveName:!0,longname:"menu/menu-button.js",scope:"global"},{comment:"/**\n* A button class with a popup menu\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class MenuButton\n*/",meta:{range:[51,191],filename:"menu-button.js",lineno:11,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>A button class with a popup menu</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Button"],kind:"class",name:"MenuButton",longname:"MenuButton",scope:"global"},{comment:"/**\n* Update menu\n*\n* @method update\n*/",meta:{range:[234,273],filename:"menu-button.js",lineno:33,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Update menu</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* Create menu\n*\n* @return {Menu} The constructed menu\n* @method createMenu\n*/",meta:{range:[409,490],filename:"menu-button.js",lineno:64,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Create menu</p>",returns:[{type:{names:["Menu"]},description:"<p>The constructed menu</p>"}],kind:"function",name:"createMenu",longname:"createMenu",scope:"global"},{comment:"/**\n* Create the list of menu items. Specific to each subclass.\n*\n* @method createItems\n*/",meta:{range:[569,659],filename:"menu-button.js",lineno:96,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Create the list of menu items. Specific to each subclass.</p>",kind:"function",name:"createItems",longname:"createItems",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[666,750],filename:"menu-button.js",lineno:103,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[769,895],filename:"menu-button.js",lineno:115,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* When you click the button it adds focus, which\n* will show the menu indefinitely.\n* So we'll remove focus when the mouse leaves the button.\n* Focus is needed for tab navigation.\n* Allow sub components to stack CSS class names\n*\n* @method handleClick\n*/",meta:{range:[935,1193],filename:"menu-button.js",lineno:134,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>When you click the button it adds focus, which\nwill show the menu indefinitely.\nSo we'll remove focus when the mouse leaves the button.\nFocus is needed for tab navigation.\nAllow sub components to stack CSS class names</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Handle key press on menu\n*\n* @param {Object} event Key press event\n* @method handleKeyPress\n*/",meta:{range:[1230,1330],filename:"menu-button.js",lineno:155,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Handle key press on menu</p>",params:[{type:{names:["Object"]},description:"<p>Key press event</p>",name:"event"}],kind:"function",name:"handleKeyPress",longname:"handleKeyPress",scope:"global"},{comment:"/**\n* Handle key press on submenu\n*\n* @param {Object} event Key press event\n* @method handleSubmenuKeyPress\n*/",meta:{range:[1397,1507],filename:"menu-button.js",lineno:183,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Handle key press on submenu</p>",params:[{type:{names:["Object"]},description:"<p>Key press event</p>",name:"event"}],kind:"function",name:"handleSubmenuKeyPress",longname:"handleSubmenuKeyPress",scope:"global"},{comment:"/**\n* Makes changes based on button pressed\n*\n* @method pressButton\n*/",meta:{range:[1550,1620],filename:"menu-button.js",lineno:203,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Makes changes based on button pressed</p>",kind:"function",name:"pressButton",longname:"pressButton",scope:"global"},{comment:"/**\n* Makes changes based on button unpressed\n*\n* @method unpressButton\n*/",meta:{range:[1648,1722],filename:"menu-button.js",lineno:217,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Makes changes based on button unpressed</p>",kind:"function",name:"unpressButton",longname:"unpressButton",scope:"global"},{comment:"/**\n* Disable the menu button\n*\n* @return {Component}\n* @method disable\n*/",meta:{range:[1750,1824],filename:"menu-button.js",lineno:231,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Disable the menu button</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"disable",longname:"disable",scope:"global"},{comment:"/**\n* Enable the menu button\n*\n* @return {Component}\n* @method disable\n*/",meta:{range:[1858,1931],filename:"menu-button.js",lineno:248,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Enable the menu button</p>",returns:[{type:{names:["Component"]}}],kind:"function",name:"disable",longname:"disable",scope:"global"},{comment:"/**\n* @file menu-item.js\n*/",meta:{range:[0,27],filename:"menu-item.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},name:"menu/menu-item.js",kind:"file",description:"<p>menu-item.js</p>",preserveName:!0,longname:"menu/menu-item.js",scope:"global"},{comment:"/**\n* The component for a menu item. `<li>`\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class MenuItem\n*/",meta:{range:[40,183],filename:"menu-item.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>The component for a menu item. <code><li></code></p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Button"],kind:"class",name:"MenuItem",longname:"MenuItem",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @param {String=} type Desc\n* @param {Object=} props Desc\n* @return {Element}\n* @method createEl\n*/",meta:{range:[238,381],filename:"menu-item.js",lineno:34,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Create the component's DOM element</p>",params:[{type:{names:["String"]},optional:!0,description:"<p>Desc</p>",name:"type"},{type:{names:["Object"]},optional:!0,description:"<p>Desc</p>",name:"props"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Handle a click on the menu item, and set it to selected\n*\n* @method handleClick\n*/",meta:{range:[406,494],filename:"menu-item.js",lineno:50,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Handle a click on the menu item, and set it to selected</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Set this menu item as selected or not\n*\n* @param {Boolean} selected\n* @method selected\n*/",meta:{range:[507,603],filename:"menu-item.js",lineno:59,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Set this menu item as selected or not</p>",params:[{type:{names:["Boolean"]},name:"selected"}],kind:"function",name:"selected",longname:"selected",scope:"global"},{comment:"/**\n* @file menu.js\n*/",meta:{range:[0,22],filename:"menu.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},name:"menu/menu.js",kind:"file",description:"<p>menu.js</p>",preserveName:!0,longname:"menu/menu.js",scope:"global"},{comment:"/**\n* The Menu component is used to build pop up menus, including subtitle and\n* captions selection menus.\n*\n* @extends Component\n* @class Menu\n*/",meta:{range:[38,184],filename:"menu.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>The Menu component is used to build pop up menus, including subtitle and\ncaptions selection menus.</p>",augments:["Component"],kind:"class",name:"Menu",longname:"Menu",scope:"global"},{comment:"/**\n* Add a menu item to the menu\n*\n* @param {Object|String} component Component or component type to add\n* @method addItem\n*/",meta:{range:[215,341],filename:"menu.js",lineno:26,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Add a menu item to the menu</p>",params:[{type:{names:["Object","String"]},description:"<p>Component or component type to add</p>",name:"component"}],kind:"function",name:"addItem",longname:"addItem",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[366,450],filename:"menu.js",lineno:40,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Handle key press for menu\n*\n* @param {Object} event Event object\n* @method handleKeyPress\n*/",meta:{range:[520,618],filename:"menu.js",lineno:69,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Handle key press for menu</p>",params:[{type:{names:["Object"]},description:"<p>Event object</p>",name:"event"}],kind:"function",name:"handleKeyPress",longname:"handleKeyPress",scope:"global"},{comment:"/**\n* Move to next (lower) menu item for keyboard users\n*\n* @method stepForward\n*/",meta:{range:[649,731],filename:"menu.js",lineno:85,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Move to next (lower) menu item for keyboard users</p>",kind:"function",name:"stepForward",longname:"stepForward",scope:"global"},{comment:"/**\n* Move to previous (higher) menu item for keyboard users\n*\n* @method stepBack\n*/",meta:{range:[759,843],filename:"menu.js",lineno:99,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Move to previous (higher) menu item for keyboard users</p>",kind:"function",name:"stepBack",longname:"stepBack",scope:"global"},{comment:"/**\n* Set focus on a menu item in the menu\n*\n* @param {Object|String} item Index of child item set focus on\n* @method focus\n*/",meta:{range:[871,997],filename:"menu.js",lineno:113,path:"/Users/mboles/git/docs/video.js/src/js/menu",code:{}},description:"<p>Set focus on a menu item in the menu</p>",params:[{type:{names:["Object","String"]},description:"<p>Index of child item set focus on</p>",name:"item"}],kind:"function",name:"focus",longname:"focus",scope:"global"},{comment:"/**\n* @file modal-dialog.js\n*/",meta:{range:[0,30],filename:"modal-dialog.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"modal-dialog.js",kind:"file",description:"<p>modal-dialog.js</p>",preserveName:!0,longname:"modal-dialog.js",scope:"global"},{comment:'/**\n* The `ModalDialog` displays over the video and its controls, which blocks\n* interaction with the player until it is closed.\n*\n* Modal dialogs include a "Close" button and will close when that button\n* is activated - or when ESC is pressed anywhere.\n*\n* @extends Component\n* @class ModalDialog\n*/',meta:{range:[61,361],filename:"modal-dialog.js",lineno:14,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>The <code>ModalDialog</code> displays over the video and its controls, which blocks\ninteraction with the player until it is closed.</p>\n<p>Modal dialogs include a "Close" button and will close when that button\nis activated - or when ESC is pressed anywhere.</p>",augments:["Component"],kind:"class",name:"ModalDialog",longname:"ModalDialog",scope:"global"},{comment:"/**\n* Create the modal's DOM element\n*\n* @method createEl\n* @return {Element}\n*/",meta:{range:[1442,1522],filename:"modal-dialog.js",lineno:81,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the modal's DOM element</p>",kind:"function",name:"createEl",returns:[{type:{names:["Element"]}}],longname:"createEl",scope:"global"},{comment:"/**\n* Build the modal's CSS class.\n*\n* @method buildCSSClass\n* @return {String}\n*/",meta:{range:[1559,1641],filename:"modal-dialog.js",lineno:99,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Build the modal's CSS class.</p>",kind:"function",name:"buildCSSClass",returns:[{type:{names:["String"]}}],longname:"buildCSSClass",scope:"global"},{comment:"/**\n* Handles key presses on the document, looking for ESC, which closes\n* the modal.\n*\n* @method handleKeyPress\n* @param {Event} e\n*/",meta:{range:[1654,1789],filename:"modal-dialog.js",lineno:109,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handles key presses on the document, looking for ESC, which closes\nthe modal.</p>",kind:"function",name:"handleKeyPress",params:[{type:{names:["Event"]},name:"e"}],longname:"handleKeyPress",scope:"global"},{comment:"/**\n* Opens the modal.\n*\n* @method open\n* @return {ModalDialog}\n*/",meta:{range:[2071,2137],filename:"modal-dialog.js",lineno:148,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Opens the modal.</p>",kind:"function",name:"open",returns:[{type:{names:["ModalDialog"]}}],longname:"open",scope:"global"},{comment:"/**\n* Whether or not the modal is opened currently.\n*\n* @method opened\n* @param {Boolean} [value]\n* If given, it will open (`true`) or close (`false`) the modal.\n*\n* @return {Boolean}\n*/",meta:{range:[2240,2435],filename:"modal-dialog.js",lineno:188,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Whether or not the modal is opened currently.</p>",kind:"function",name:"opened",params:[{type:{names:["Boolean"]},optional:!0,description:"<p>If given, it will open (<code>true</code>) or close (<code>false</code>) the modal.</p>",name:"value"}],returns:[{type:{names:["Boolean"]}}],longname:"opened",scope:"global"},{comment:"/**\n* Closes the modal.\n*\n* @method close\n* @return {ModalDialog}\n*/",meta:{range:[2457,2525],filename:"modal-dialog.js",lineno:204,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Closes the modal.</p>",kind:"function",name:"close",returns:[{type:{names:["ModalDialog"]}}],longname:"close",scope:"global"},{comment:"/**\n* Whether or not the modal is closeable via the UI.\n*\n* @method closeable\n* @param {Boolean} [value]\n* If given as a Boolean, it will set the `closeable` option.\n*\n* @return {Boolean}\n*/",meta:{range:[2607,2806],filename:"modal-dialog.js",lineno:237,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Whether or not the modal is closeable via the UI.</p>",kind:"function",name:"closeable",params:[{type:{names:["Boolean"]},optional:!0,description:"<p>If given as a Boolean, it will set the <code>closeable</code> option.</p>",name:"value"}],returns:[{type:{names:["Boolean"]}}],longname:"closeable",scope:"global"},{comment:"/**\n* Fill the modal's content element with the modal's \"content\" option.\n*\n* The content element will be emptied before this change takes place.\n*\n* @method fill\n* @return {ModalDialog}\n*/",meta:{range:[2888,3077],filename:"modal-dialog.js",lineno:273,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fill the modal's content element with the modal's "content" option.</p>\n<p>The content element will be emptied before this change takes place.</p>",kind:"function",name:"fill",returns:[{type:{names:["ModalDialog"]}}],longname:"fill",scope:"global"},{comment:"/**\n* Fill the modal's content element with arbitrary content.\n*\n* The content element will be emptied before this change takes place.\n*\n* @method fillWith\n* @param {Mixed} [content]\n* The same rules apply to this as apply to the `content` option.\n*\n* @return {ModalDialog}\n*/",meta:{range:[3090,3375],filename:"modal-dialog.js",lineno:285,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fill the modal's content element with arbitrary content.</p>\n<p>The content element will be emptied before this change takes place.</p>",kind:"function",name:"fillWith",params:[{type:{names:["Mixed"]},optional:!0,description:"<p>The same rules apply to this as apply to the <code>content</code> option.</p>",name:"content"}],returns:[{type:{names:["ModalDialog"]}}],longname:"fillWith",scope:"global"},{comment:"/**\n* Empties the content element.\n*\n* This happens automatically anytime the modal is filled.\n*\n* @method empty\n* @return {ModalDialog}\n*/",meta:{range:[3451,3590],filename:"modal-dialog.js",lineno:321,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Empties the content element.</p>\n<p>This happens automatically anytime the modal is filled.</p>",kind:"function",name:"empty",returns:[{type:{names:["ModalDialog"]}}],longname:"empty",scope:"global"},{comment:'/**\n* Gets or sets the modal content, which gets normalized before being\n* rendered into the DOM.\n*\n* This does not update the DOM or fill the modal, but it is called during\n* that process.\n*\n* @method content\n* @param {Mixed} [value]\n* If defined, sets the internal content value to be used on the\n* next call(s) to `fill`. This value is normalized before being\n* inserted. To "clear" the internal content value, pass `null`.\n*\n* @return {Mixed}\n*/',meta:{range:[3612,4086],filename:"modal-dialog.js",lineno:336,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Gets or sets the modal content, which gets normalized before being\nrendered into the DOM.</p>\n<p>This does not update the DOM or fill the modal, but it is called during\nthat process.</p>",kind:"function",name:"content",params:[{type:{names:["Mixed"]},optional:!0,description:"<p>If defined, sets the internal content value to be used on the\n next call(s) to <code>fill</code>. This value is normalized before being\n inserted. To "clear" the internal content value, pass <code>null</code>.</p>",name:"value"}],returns:[{type:{names:["Mixed"]}}],longname:"content",scope:"global"},{comment:"/**\n* @file player.js\n*/",meta:{range:[0,24],filename:"player.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"player.js",kind:"file",description:"<p>player.js</p>",preserveName:!0,longname:"player.js",scope:"global"},{comment:"/**\n* An instance of the `Player` class is created when any of the Video.js setup methods are used to initialize a video.\n* ```js\n* var myPlayer = videojs('example_video_1');\n* ```\n* In the following example, the `data-setup` attribute tells the Video.js library to create a player instance when the library is ready.\n* ```html\n* <video id=\"example_video_1\" data-setup='{}' controls>\n* <source src=\"my-source.mp4\" type=\"video/mp4\">\n* </video>\n* ```\n* After an instance has been created it can be accessed globally using `Video('example_video_1')`.\n*\n* @param {Element} tag The original video tag used for configuring options\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class Player\n*/",meta:{range:[142,933],filename:"player.js",lineno:43,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>An instance of the <code>Player</code> class is created when any of the Video.js setup methods are used to initialize a video.</p>\n<pre class=\"prettyprint source lang-js\"><code>var myPlayer = videojs('example_video_1');</code></pre><p>In the following example, the <code>data-setup</code> attribute tells the Video.js library to create a player instance when the library is ready.</p>\n<pre class=\"prettyprint source lang-html\"><code><video id="example_video_1" data-setup='{}' controls>\n <source src="my-source.mp4" type="video/mp4">\n</video></code></pre><p>After an instance has been created it can be accessed globally using <code>Video('example_video_1')</code>.</p>",params:[{type:{names:["Element"]},description:"<p>The original video tag used for configuring options</p>",name:"tag"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["Component"],kind:"class",name:"Player",longname:"Player",scope:"global"},{comment:"/**\n* player's constructor function\n*\n* @constructs\n* @method init\n* @param {Element} tag The original video tag used for configuring options\n* @param {Object=} options Player options\n* @param {Function=} ready Ready callback function\n*/",meta:{range:[940,1190],filename:"player.js",lineno:64,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>player's constructor function</p>",alias:"{@thisClass}",kind:"function",name:"init",params:[{type:{names:["Element"]},description:"<p>The original video tag used for configuring options</p>",name:"tag"},{type:{names:["Object"]},optional:!0,description:"<p>Player options</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],longname:"init",scope:"global"},{comment:"/**\n* Destroys the video player and does any necessary cleanup\n* ```js\n* myPlayer.dispose();\n* ```\n* This is especially helpful if you are dynamically adding and removing videos\n* to/from the DOM.\n*\n* @method dispose\n*/",meta:{range:[1801,2024],filename:"player.js",lineno:246,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Destroys the video player and does any necessary cleanup</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.dispose();</code></pre><p>This is especially helpful if you are dynamically adding and removing videos\nto/from the DOM.</p>',kind:"function",name:"dispose",longname:"dispose",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[2082,2166],filename:"player.js",lineno:275,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Get/set player width\n*\n* @param {Number=} value Value for width\n* @return {Number} Width when getting\n* @method width\n*/",meta:{range:[2401,2527],filename:"player.js",lineno:359,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get/set player width</p>",params:[{type:{names:["Number"]},optional:!0,description:"<p>Value for width</p>",name:"value"}],returns:[{type:{names:["Number"]},description:"<p>Width when getting</p>"}],kind:"function",name:"width",longname:"width",scope:"global"},{comment:"/**\n* Get/set player height\n*\n* @param {Number=} value Value for height\n* @return {Number} Height when getting\n* @method height\n*/",meta:{range:[2540,2670],filename:"player.js",lineno:370,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get/set player height</p>",params:[{type:{names:["Number"]},optional:!0,description:"<p>Value for height</p>",name:"value"}],returns:[{type:{names:["Number"]},description:"<p>Height when getting</p>"}],kind:"function",name:"height",longname:"height",scope:"global"},{comment:"/**\n* Get/set dimension for player\n*\n* @param {String} dimension Either width or height\n* @param {Number=} value Value for dimension\n* @return {Component}\n* @method dimension\n*/",meta:{range:[2683,2860],filename:"player.js",lineno:381,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get/set dimension for player</p>",params:[{type:{names:["String"]},description:"<p>Either width or height</p>",name:"dimension"},{type:{names:["Number"]},optional:!0,description:"<p>Value for dimension</p>",name:"value"}],returns:[{type:{names:["Component"]}}],kind:"function",name:"dimension",longname:"dimension",scope:"global"},{comment:"/**\n* Add/remove the vjs-fluid class\n*\n* @param {Boolean} bool Value of true adds the class, value of false removes the class\n* @method fluid\n*/", +meta:{range:[2936,3080],filename:"player.js",lineno:414,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add/remove the vjs-fluid class</p>",params:[{type:{names:["Boolean"]},description:"<p>Value of true adds the class, value of false removes the class</p>",name:"bool"}],kind:"function",name:"fluid",longname:"fluid",scope:"global"},{comment:"/**\n* Get/Set the aspect ratio\n*\n* @param {String=} ratio Aspect ratio for player\n* @return aspectRatio\n* @method aspectRatio\n*/",meta:{range:[3123,3251],filename:"player.js",lineno:434,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get/Set the aspect ratio</p>",params:[{type:{names:["String"]},optional:!0,description:"<p>Aspect ratio for player</p>",name:"ratio"}],returns:[{description:"<p>aspectRatio</p>"}],kind:"function",name:"aspectRatio",longname:"aspectRatio",scope:"global"},{comment:"/**\n* Update styles of the player element (height, width and aspect ratio)\n*\n* @method updateStyleEl_\n*/",meta:{range:[3306,3410],filename:"player.js",lineno:459,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Update styles of the player element (height, width and aspect ratio)</p>",kind:"function",name:"updateStyleEl_",longname:"updateStyleEl_",scope:"global"},{comment:"/**\n* Load the Media Playback Technology (tech)\n* Load/Create an instance of playback technology including element and API methods\n* And append playback element in player div.\n*\n* @param {String} techName Name of the playback technology\n* @param {String} source Video source\n* @method loadTech_\n* @private\n*/",meta:{range:[3651,3959],filename:"player.js",lineno:544,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Load the Media Playback Technology (tech)\nLoad/Create an instance of playback technology including element and API methods\nAnd append playback element in player div.</p>",params:[{type:{names:["String"]},description:"<p>Name of the playback technology</p>",name:"techName"},{type:{names:["String"]},description:"<p>Video source</p>",name:"source"}],kind:"function",name:"loadTech_",access:"private",longname:"loadTech_",scope:"global"},{comment:"/**\n* Unload playback technology\n*\n* @method unloadTech_\n* @private\n*/",meta:{range:[4299,4369],filename:"player.js",lineno:667,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Unload playback technology</p>",kind:"function",name:"unloadTech_",access:"private",longname:"unloadTech_",scope:"global"},{comment:"/**\n* Return a reference to the current tech.\n* It will only return a reference to the tech if given an object with the\n* `IWillNotUseThisInPlugins` property on it. This is try and prevent misuse\n* of techs by plugins.\n*\n* @param {Object}\n* @return {Object} The Tech\n* @method tech\n*/",meta:{range:[4412,4696],filename:"player.js",lineno:687,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Return a reference to the current tech.\nIt will only return a reference to the tech if given an object with the\n<code>IWillNotUseThisInPlugins</code> property on it. This is try and prevent misuse\nof techs by plugins.</p>",params:[{type:{names:["Object"]}}],returns:[{type:{names:["Object"]},description:"<p>The Tech</p>"}],kind:"function",name:"tech",longname:"tech",scope:"global"},{comment:"/**\n* Set up click and touch listeners for the playback element\n*\n* On desktops, a click on the video itself will toggle playback,\n* on a mobile device a click on the video toggles controls.\n* (toggling controls is done by toggling the user state between active and\n* inactive)\n* A tap can signal that a user has become active, or has become inactive\n* e.g. a quick tap on an iPhone movie should reveal the controls. Another\n* quick tap should hide them again (signaling the user is in an inactive\n* viewing state)\n* In addition to this, we still want the user to be considered inactive after\n* a few seconds of inactivity.\n* Note: the only part of iOS interaction we can't mimic with this setup\n* is a touch and hold on the video element counting as activity in order to\n* keep the controls showing, but that shouldn't be an issue. A touch and hold\n* on any controls will still keep the user active\n*\n* @private\n* @method addTechControlsListeners_\n*/",meta:{range:[4739,5690],filename:"player.js",lineno:711,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Set up click and touch listeners for the playback element</p>\n<p>On desktops, a click on the video itself will toggle playback,\non a mobile device a click on the video toggles controls.\n(toggling controls is done by toggling the user state between active and\ninactive)\nA tap can signal that a user has become active, or has become inactive\ne.g. a quick tap on an iPhone movie should reveal the controls. Another\nquick tap should hide them again (signaling the user is in an inactive\nviewing state)\nIn addition to this, we still want the user to be considered inactive after\na few seconds of inactivity.\nNote: the only part of iOS interaction we can't mimic with this setup\nis a touch and hold on the video element counting as activity in order to\nkeep the controls showing, but that shouldn't be an issue. A touch and hold\non any controls will still keep the user active</p>",access:"private",kind:"function",name:"addTechControlsListeners_",longname:"addTechControlsListeners_",scope:"global"},{comment:"/**\n* Remove the listeners used for click and tap controls. This is needed for\n* toggling to controls disabled, where a tap/touch should do nothing.\n*\n* @method removeTechControlsListeners_\n* @private\n*/",meta:{range:[5757,5960],filename:"player.js",lineno:754,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Remove the listeners used for click and tap controls. This is needed for\ntoggling to controls disabled, where a tap/touch should do nothing.</p>",kind:"function",name:"removeTechControlsListeners_",access:"private",longname:"removeTechControlsListeners_",scope:"global"},{comment:"/**\n* Player waits for the tech to be ready\n*\n* @method handleTechReady_\n* @private\n*/",meta:{range:[5991,6077],filename:"player.js",lineno:771,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Player waits for the tech to be ready</p>",kind:"function",name:"handleTechReady_",access:"private",longname:"handleTechReady_",scope:"global"},{comment:"/**\n* Fired when the user agent begins looking for media data\n*\n* @private\n* @method handleTechLoadStart_\n*/",meta:{range:[6165,6273],filename:"player.js",lineno:806,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the user agent begins looking for media data</p>",access:"private",kind:"function",name:"handleTechLoadStart_",longname:"handleTechLoadStart_",scope:"global"},{comment:"/**\n* Add/remove the vjs-has-started class\n*\n* @param {Boolean} hasStarted The value of true adds the class the value of false remove the class\n* @return {Boolean} Boolean value if has started\n* @private\n* @method hasStarted\n*/",meta:{range:[6337,6564],filename:"player.js",lineno:833,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add/remove the vjs-has-started class</p>",params:[{type:{names:["Boolean"]},description:"<p>The value of true adds the class the value of false remove the class</p>",name:"hasStarted"}],returns:[{type:{names:["Boolean"]},description:"<p>Boolean value if has started</p>"}],access:"private",kind:"function",name:"hasStarted",longname:"hasStarted",scope:"global"},{comment:"/**\n* Fired whenever the media begins or resumes playback\n*\n* @private\n* @method handleTechPlay_\n*/",meta:{range:[6619,6718],filename:"player.js",lineno:859,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired whenever the media begins or resumes playback</p>",access:"private",kind:"function",name:"handleTechPlay_",longname:"handleTechPlay_",scope:"global"},{comment:"/**\n* Fired whenever the media begins waiting\n*\n* @private\n* @method handleTechWaiting_\n*/",meta:{range:[6755,6845],filename:"player.js",lineno:877,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired whenever the media begins waiting</p>",access:"private",kind:"function",name:"handleTechWaiting_",longname:"handleTechWaiting_",scope:"global"},{comment:"/**\n* A handler for events that signal that waiting has ended\n* which is not consistent between browsers. See #1351\n*\n* @private\n* @method handleTechCanPlay_\n*/",meta:{range:[6864,7024],filename:"player.js",lineno:889,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>A handler for events that signal that waiting has ended\nwhich is not consistent between browsers. See #1351</p>",access:"private",kind:"function",name:"handleTechCanPlay_",longname:"handleTechCanPlay_",scope:"global"},{comment:"/**\n* A handler for events that signal that waiting has ended\n* which is not consistent between browsers. See #1351\n*\n* @private\n* @method handleTechCanPlayThrough_\n*/",meta:{range:[7040,7207],filename:"player.js",lineno:901,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>A handler for events that signal that waiting has ended\nwhich is not consistent between browsers. See #1351</p>",access:"private",kind:"function",name:"handleTechCanPlayThrough_",longname:"handleTechCanPlayThrough_",scope:"global"},{comment:"/**\n* A handler for events that signal that waiting has ended\n* which is not consistent between browsers. See #1351\n*\n* @private\n* @method handleTechPlaying_\n*/",meta:{range:[7223,7383],filename:"player.js",lineno:913,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>A handler for events that signal that waiting has ended\nwhich is not consistent between browsers. See #1351</p>",access:"private",kind:"function",name:"handleTechPlaying_",longname:"handleTechPlaying_",scope:"global"},{comment:"/**\n* Fired whenever the player is jumping to a new time\n*\n* @private\n* @method handleTechSeeking_\n*/",meta:{range:[7399,7500],filename:"player.js",lineno:925,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired whenever the player is jumping to a new time</p>",access:"private",kind:"function",name:"handleTechSeeking_",longname:"handleTechSeeking_",scope:"global"},{comment:"/**\n* Fired when the player has finished jumping to a new time\n*\n* @private\n* @method handleTechSeeked_\n*/",meta:{range:[7516,7622],filename:"player.js",lineno:936,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the player has finished jumping to a new time</p>",access:"private",kind:"function",name:"handleTechSeeked_",longname:"handleTechSeeked_",scope:"global"},{comment:"/**\n* Fired the first time a video is played\n* Not part of the HLS spec, and we're not sure if this is the best\n* implementation yet, so use sparingly. If you don't have a reason to\n* prevent playback, use `myPlayer.one('play');` instead.\n*\n* @private\n* @method handleTechFirstPlay_\n*/",meta:{range:[7638,7923],filename:"player.js",lineno:947,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired the first time a video is played\nNot part of the HLS spec, and we're not sure if this is the best\nimplementation yet, so use sparingly. If you don't have a reason to\nprevent playback, use <code>myPlayer.one('play');</code> instead.</p>",access:"private",kind:"function",name:"handleTechFirstPlay_",longname:"handleTechFirstPlay_",scope:"global"},{comment:"/**\n* Fired whenever the media has been paused\n*\n* @private\n* @method handleTechPause_\n*/",meta:{range:[7957,8046],filename:"player.js",lineno:967,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired whenever the media has been paused</p>",access:"private",kind:"function",name:"handleTechPause_",longname:"handleTechPause_",scope:"global"},{comment:"/**\n* Fired while the user agent is downloading media data\n*\n* @private\n* @method handleTechProgress_\n*/",meta:{range:[8065,8169],filename:"player.js",lineno:979,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired while the user agent is downloading media data</p>",access:"private",kind:"function",name:"handleTechProgress_",longname:"handleTechProgress_",scope:"global"},{comment:"/**\n* Fired when the end of the media resource is reached (currentTime == duration)\n*\n* @private\n* @method handleTechEnded_\n*/",meta:{range:[8182,8308],filename:"player.js",lineno:989,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the end of the media resource is reached (currentTime == duration)</p>",access:"private",kind:"function",name:"handleTechEnded_",longname:"handleTechEnded_",scope:"global"},{comment:"/**\n* Fired when the duration of the media resource is first known or changed\n*\n* @private\n* @method handleTechDurationChange_\n*/",meta:{range:[8345,8474],filename:"player.js",lineno:1007,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the duration of the media resource is first known or changed</p>",access:"private",kind:"function",name:"handleTechDurationChange_",longname:"handleTechDurationChange_",scope:"global"},{comment:"/**\n* Handle a click on the media element to play/pause\n*\n* @param {Object=} event Event object\n* @private\n* @method handleTechClick_\n*/",meta:{range:[8487,8623],filename:"player.js",lineno:1017,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle a click on the media element to play/pause</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Event object</p>",name:"event"}],access:"private",kind:"function",name:"handleTechClick_",longname:"handleTechClick_",scope:"global"},{comment:"/**\n* Handle a tap on the media element. It will toggle the user\n* activity state, which hides and shows the controls.\n*\n* @private\n* @method handleTechTap_\n*/",meta:{range:[8672,8831],filename:"player.js",lineno:1040,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle a tap on the media element. It will toggle the user\nactivity state, which hides and shows the controls.</p>",access:"private",kind:"function",name:"handleTechTap_",longname:"handleTechTap_",scope:"global"},{comment:"/**\n* Handle touch to start\n*\n* @private\n* @method handleTechTouchStart_\n*/",meta:{range:[8844,8919],filename:"player.js",lineno:1051,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle touch to start</p>",access:"private",kind:"function",name:"handleTechTouchStart_",longname:"handleTechTouchStart_",scope:"global"},{comment:"/**\n* Handle touch to move\n*\n* @private\n* @method handleTechTouchMove_\n*/",meta:{range:[8932,9005],filename:"player.js",lineno:1061,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle touch to move</p>",access:"private",kind:"function",name:"handleTechTouchMove_",longname:"handleTechTouchMove_",scope:"global"},{comment:"/**\n* Handle touch to end\n*\n* @private\n* @method handleTechTouchEnd_\n*/",meta:{range:[9024,9095],filename:"player.js",lineno:1073,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle touch to end</p>",access:"private",kind:"function",name:"handleTechTouchEnd_",longname:"handleTechTouchEnd_",scope:"global"},{comment:"/**\n* Fired when the player switches in or out of fullscreen mode\n*\n* @private\n* @method handleFullscreenChange_\n*/",meta:{range:[9111,9226],filename:"player.js",lineno:1084,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the player switches in or out of fullscreen mode</p>",access:"private",kind:"function",name:"handleFullscreenChange_",longname:"handleFullscreenChange_",scope:"global"},{comment:"/**\n* native click events on the SWF aren't triggered on IE11, Win8.1RT\n* use stageclick events triggered from inside the SWF instead\n*\n* @private\n* @method handleStageClick_\n*/",meta:{range:[9251,9428],filename:"player.js",lineno:1098,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>native click events on the SWF aren't triggered on IE11, Win8.1RT\nuse stageclick events triggered from inside the SWF instead</p>",access:"private",kind:"function",name:"handleStageClick_",longname:"handleStageClick_",scope:"global"},{comment:"/**\n* Handle Tech Fullscreen Change\n*\n* @private\n* @method handleTechFullscreenChange_\n*/",meta:{range:[9441,9530],filename:"player.js",lineno:1109,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle Tech Fullscreen Change</p>",access:"private",kind:"function",name:"handleTechFullscreenChange_",longname:"handleTechFullscreenChange_",scope:"global"},{comment:"/**\n* Fires when an error occurred during the loading of an audio/video\n*\n* @private\n* @method handleTechError_\n*/",meta:{range:[9552,9666],filename:"player.js",lineno:1122,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when an error occurred during the loading of an audio/video</p>",access:"private",kind:"function",name:"handleTechError_",longname:"handleTechError_",scope:"global"},{comment:"/**\n* Fires when the browser is intentionally not getting media data\n*\n* @private\n* @method handleTechSuspend_\n*/",meta:{range:[9682,9795],filename:"player.js",lineno:1133,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the browser is intentionally not getting media data</p>",access:"private",kind:"function",name:"handleTechSuspend_",longname:"handleTechSuspend_",scope:"global"},{comment:"/**\n* Fires when the loading of an audio/video is aborted\n*\n* @private\n* @method handleTechAbort_\n*/",meta:{range:[9808,9908],filename:"player.js",lineno:1143,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the loading of an audio/video is aborted</p>",access:"private",kind:"function",name:"handleTechAbort_",longname:"handleTechAbort_",scope:"global"},{comment:"/**\n* Fires when the current playlist is empty\n*\n* @private\n* @method handleTechEmptied_\n*/",meta:{range:[9921,10012],filename:"player.js",lineno:1153,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the current playlist is empty</p>",access:"private",kind:"function",name:"handleTechEmptied_",longname:"handleTechEmptied_",scope:"global"},{comment:"/**\n* Fires when the browser is trying to get media data, but data is not available\n*\n* @private\n* @method handleTechStalled_\n*/",meta:{range:[10025,10153],filename:"player.js",lineno:1163,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the browser is trying to get media data, but data is not available</p>",access:"private",kind:"function",name:"handleTechStalled_",longname:"handleTechStalled_",scope:"global"},{comment:"/**\n* Fires when the browser has loaded meta data for the audio/video\n*\n* @private\n* @method handleTechLoadedMetaData_\n*/",meta:{range:[10166,10287],filename:"player.js",lineno:1173,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the browser has loaded meta data for the audio/video</p>",access:"private",kind:"function",name:"handleTechLoadedMetaData_",longname:"handleTechLoadedMetaData_",scope:"global"},{comment:"/**\n* Fires when the browser has loaded the current frame of the audio/video\n*\n* @private\n* @method handleTechLoadedData_\n*/",meta:{range:[10324,10448],filename:"player.js",lineno:1191,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the browser has loaded the current frame of the audio/video</p>",access:"private",kind:"function",name:"handleTechLoadedData_",longname:"handleTechLoadedData_",scope:"global"},{comment:"/**\n* Fires when the current playback position has changed\n*\n* @private\n* @method handleTechTimeUpdate_\n*/",meta:{range:[10461,10567],filename:"player.js",lineno:1201,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the current playback position has changed</p>",access:"private",kind:"function",name:"handleTechTimeUpdate_",longname:"handleTechTimeUpdate_",scope:"global"},{comment:"/**\n* Fires when the playing speed of the audio/video is changed\n*\n* @private\n* @method handleTechRateChange_\n*/",meta:{range:[10580,10692],filename:"player.js",lineno:1211,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the playing speed of the audio/video is changed</p>",access:"private",kind:"function",name:"handleTechRateChange_",longname:"handleTechRateChange_",scope:"global"},{comment:"/**\n* Fires when the volume has been changed\n*\n* @private\n* @method handleTechVolumeChange_\n*/",meta:{range:[10705,10799],filename:"player.js",lineno:1221,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the volume has been changed</p>",access:"private",kind:"function",name:"handleTechVolumeChange_",longname:"handleTechVolumeChange_",scope:"global"},{comment:"/**\n* Fires when the text track has been changed\n*\n* @private\n* @method handleTechTextTrackChange_\n*/",meta:{range:[10812,10913],filename:"player.js",lineno:1231,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fires when the text track has been changed</p>",access:"private",kind:"function",name:"handleTechTextTrackChange_",longname:"handleTechTextTrackChange_",scope:"global"},{comment:"/**\n* Get object for cached values.\n*\n* @return {Object}\n* @method getCache\n*/",meta:{range:[10926,11004],filename:"player.js",lineno:1241,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get object for cached values.</p>",returns:[{type:{names:["Object"]}}],kind:"function",name:"getCache",longname:"getCache",scope:"global"},{comment:"/**\n* Pass values to the playback tech\n*\n* @param {String=} method Method\n* @param {Object=} arg Argument\n* @private\n* @method techCall_\n*/",meta:{range:[11017,11156],filename:"player.js",lineno:1251,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Pass values to the playback tech</p>",params:[{type:{names:["String"]},optional:!0,description:"<p>Method</p>",name:"method"},{type:{names:["Object"]},optional:!0,description:"<p>Argument</p>",name:"arg"}],access:"private",kind:"function",name:"techCall_",longname:"techCall_",scope:"global"},{comment:"/**\n* Get calls can't wait for the tech, and sometimes don't need to.\n*\n* @param {String} method Tech method\n* @return {Method}\n* @private\n* @method techGet_\n*/",meta:{range:[11211,11371],filename:"player.js",lineno:1277,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get calls can't wait for the tech, and sometimes don't need to.</p>",params:[{type:{names:["String"]},description:"<p>Tech method</p>",name:"method"}],returns:[{type:{names:["Method"]}}],access:"private",kind:"function",name:"techGet_",longname:"techGet_",scope:"global"},{comment:"/**\n* start media playback\n* ```js\n* myPlayer.play();\n* ```\n*\n* @return {Player} self\n* @method play\n*/",meta:{range:[11456,11563],filename:"player.js",lineno:1313,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>start media playback</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.play();</code></pre>',returns:[{type:{names:["Player"]},description:"<p>self</p>"}],kind:"function",name:"play",longname:"play",scope:"global"},{comment:"/**\n* Pause the video playback\n* ```js\n* myPlayer.pause();\n* ```\n*\n* @return {Player} self\n* @method pause\n*/",meta:{range:[11603,11716],filename:"player.js",lineno:1335,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Pause the video playback</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.pause();</code></pre>',returns:[{type:{names:["Player"]},description:"<p>self</p>"}],kind:"function",name:"pause",longname:"pause",scope:"global"},{comment:"/**\n* Check if the player is paused\n* ```js\n* var isPaused = myPlayer.paused();\n* var isPlaying = !myPlayer.paused();\n* ```\n*\n* @return {Boolean} false if the media is currently playing, or true otherwise\n* @method paused\n*/",meta:{range:[11732,11964],filename:"player.js",lineno:1349,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Check if the player is paused</p>\n<pre class="prettyprint source lang-js"><code> var isPaused = myPlayer.paused();\n var isPlaying = !myPlayer.paused();</code></pre>',returns:[{type:{names:["Boolean"]},description:"<p>false if the media is currently playing, or true otherwise</p>"}],kind:"function",name:"paused",longname:"paused",scope:"global"},{comment:'/**\n* Returns whether or not the user is "scrubbing". Scrubbing is when the user\n* has clicked the progress bar handle and is dragging it along the progress bar.\n*\n* @param {Boolean} isScrubbing True/false the user is scrubbing\n* @return {Boolean} The scrubbing status when getting\n* @return {Object} The player when setting\n* @method scrubbing\n*/',meta:{range:[11980,12359],filename:"player.js",lineno:1364,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns whether or not the user is "scrubbing". Scrubbing is when the user\nhas clicked the progress bar handle and is dragging it along the progress bar.</p>",params:[{type:{names:["Boolean"]},description:"<p>True/false the user is scrubbing</p>",name:"isScrubbing"}],returns:[{type:{names:["Boolean"]},description:"<p>The scrubbing status when getting</p>"},{type:{names:["Object"]},description:"<p>The player when setting</p>"}],kind:"function",name:"scrubbing",longname:"scrubbing",scope:"global"},{comment:"/**\n* Get or set the current time (in seconds)\n* ```js\n* // get\n* var whereYouAt = myPlayer.currentTime();\n* // set\n* myPlayer.currentTime(120); // 2 minutes into the video\n* ```\n*\n* @param {Number|String=} seconds The time to seek to\n* @return {Number} The time in seconds, when not setting\n* @return {Player} self, when the current time is set\n* @method currentTime\n*/",meta:{range:[12408,12805],filename:"player.js",lineno:1389,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get or set the current time (in seconds)</p>\n<pre class="prettyprint source lang-js"><code> // get\n var whereYouAt = myPlayer.currentTime();\n // set\n myPlayer.currentTime(120); // 2 minutes into the video</code></pre>',params:[{type:{names:["Number","String"]},description:"<p>The time to seek to</p>",name:"seconds"}],returns:[{type:{names:["Number"]},description:"<p>The time in seconds, when not setting</p>"},{type:{names:["Player"]},description:"<p>self, when the current time is set</p>"}],kind:"function",name:"currentTime",longname:"currentTime",scope:"global"},{comment:"/**\n* Normally gets the length in time of the video in seconds;\n* in all but the rarest use cases an argument will NOT be passed to the method\n* ```js\n* var lengthOfVideo = myPlayer.duration();\n* ```\n* **NOTE**: The video must have started loading before the duration can be\n* known, and in the case of Flash, may not be known until the video starts\n* playing.\n*\n* @param {Number} seconds Duration when setting\n* @return {Number} The duration of the video in seconds when getting\n* @method duration\n*/",meta:{range:[12857,13362],filename:"player.js",lineno:1420,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Normally gets the length in time of the video in seconds;\nin all but the rarest use cases an argument will NOT be passed to the method</p>\n<pre class="prettyprint source lang-js"><code> var lengthOfVideo = myPlayer.duration();</code></pre><p><strong>NOTE</strong>: The video must have started loading before the duration can be\nknown, and in the case of Flash, may not be known until the video starts\nplaying.</p>',params:[{type:{names:["Number"]},description:"<p>Duration when setting</p>",name:"seconds"}],returns:[{type:{names:["Number"]},description:"<p>The duration of the video in seconds when getting</p>"}],kind:"function",name:"duration",longname:"duration",scope:"global"},{comment:"/**\n* Calculates how much time is left.\n* ```js\n* var timeLeft = myPlayer.remainingTime();\n* ```\n* Not a native video element function, but useful\n*\n* @return {Number} The time remaining in seconds\n* @method remainingTime\n*/",meta:{range:[13447,13675],filename:"player.js",lineno:1462,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Calculates how much time is left.</p>\n<pre class="prettyprint source lang-js"><code> var timeLeft = myPlayer.remainingTime();</code></pre><p>Not a native video element function, but useful</p>',returns:[{type:{names:["Number"]},description:"<p>The time remaining in seconds</p>"}],kind:"function",name:"remainingTime",longname:"remainingTime",scope:"global"},{comment:"/**\n* Get a TimeRange object with the times of the video that have been downloaded\n* If you just want the percent of the video that's been downloaded,\n* use bufferedPercent.\n* ```js\n* // Number of different ranges of time have been buffered. Usually 1.\n* numberOfRanges = bufferedTimeRange.length,\n* // Time in seconds when the first range starts. Usually 0.\n* firstRangeStart = bufferedTimeRange.start(0),\n* // Time in seconds when the first range ends\n* firstRangeEnd = bufferedTimeRange.end(0),\n* // Length in seconds of the first time range\n* firstRangeLength = firstRangeEnd - firstRangeStart;\n* ```\n*\n* @return {Object} A mock TimeRange object (following HTML spec)\n* @method buffered\n*/",meta:{range:[13700,14425],filename:"player.js",lineno:1480,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get a TimeRange object with the times of the video that have been downloaded\nIf you just want the percent of the video that\'s been downloaded,\nuse bufferedPercent.</p>\n<pre class="prettyprint source lang-js"><code> // Number of different ranges of time have been buffered. Usually 1.\n numberOfRanges = bufferedTimeRange.length,\n // Time in seconds when the first range starts. Usually 0.\n firstRangeStart = bufferedTimeRange.start(0),\n // Time in seconds when the first range ends\n firstRangeEnd = bufferedTimeRange.end(0),\n // Length in seconds of the first time range\n firstRangeLength = firstRangeEnd - firstRangeStart;</code></pre>',returns:[{type:{names:["Object"]},description:"<p>A mock TimeRange object (following HTML spec)</p>"}],kind:"function",name:"buffered",longname:"buffered",scope:"global"},{comment:"/**\n* Get the percent (as a decimal) of the video that's been downloaded\n* ```js\n* var howMuchIsDownloaded = myPlayer.bufferedPercent();\n* ```\n* 0 means none, 1 means all.\n* (This method isn't in the HTML5 spec, but it's very convenient)\n*\n* @return {Number} A decimal between 0 and 1 representing the percent\n* @method bufferedPercent\n*/",meta:{range:[14456,14798],filename:"player.js",lineno:1508,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get the percent (as a decimal) of the video that's been downloaded</p>\n<pre class=\"prettyprint source lang-js\"><code> var howMuchIsDownloaded = myPlayer.bufferedPercent();</code></pre><p>0 means none, 1 means all.\n(This method isn't in the HTML5 spec, but it's very convenient)</p>",returns:[{type:{names:["Number"]},description:"<p>A decimal between 0 and 1 representing the percent</p>"}],kind:"function",name:"bufferedPercent",longname:"bufferedPercent",scope:"global"},{comment:"/**\n* Get the ending time of the last buffered time range\n* This is used in the progress bar to encapsulate all time ranges.\n*\n* @return {Number} The end of the last buffered time range\n* @method bufferedEnd\n*/",meta:{range:[14811,15021],filename:"player.js", +lineno:1523,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get the ending time of the last buffered time range\nThis is used in the progress bar to encapsulate all time ranges.</p>",returns:[{type:{names:["Number"]},description:"<p>The end of the last buffered time range</p>"}],kind:"function",name:"bufferedEnd",longname:"bufferedEnd",scope:"global"},{comment:"/**\n* Get or set the current volume of the media\n* ```js\n* // get\n* var howLoudIsIt = myPlayer.volume();\n* // set\n* myPlayer.volume(0.5); // Set volume to half\n* ```\n* 0 is off (muted), 1.0 is all the way up, 0.5 is half way.\n*\n* @param {Number} percentAsDecimal The new volume as a decimal percent\n* @return {Number} The current volume when getting\n* @return {Player} self when setting\n* @method volume\n*/",meta:{range:[15058,15507],filename:"player.js",lineno:1542,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get or set the current volume of the media</p>\n<pre class="prettyprint source lang-js"><code> // get\n var howLoudIsIt = myPlayer.volume();\n // set\n myPlayer.volume(0.5); // Set volume to half</code></pre><p>0 is off (muted), 1.0 is all the way up, 0.5 is half way.</p>',params:[{type:{names:["Number"]},description:"<p>The new volume as a decimal percent</p>",name:"percentAsDecimal"}],returns:[{type:{names:["Number"]},description:"<p>The current volume when getting</p>"},{type:{names:["Player"]},description:"<p>self when setting</p>"}],kind:"function",name:"volume",longname:"volume",scope:"global"},{comment:"/**\n* Get the current muted state, or turn mute on or off\n* ```js\n* // get\n* var isVolumeMuted = myPlayer.muted();\n* // set\n* myPlayer.muted(true); // mute the volume\n* ```\n*\n* @param {Boolean=} muted True to mute, false to unmute\n* @return {Boolean} True if mute is on, false if not when getting\n* @return {Player} self when setting mute\n* @method muted\n*/",meta:{range:[15559,15933],filename:"player.js",lineno:1574,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Get the current muted state, or turn mute on or off</p>\n<pre class="prettyprint source lang-js"><code> // get\n var isVolumeMuted = myPlayer.muted();\n // set\n myPlayer.muted(true); // mute the volume</code></pre>',params:[{type:{names:["Boolean"]},optional:!0,description:"<p>True to mute, false to unmute</p>",name:"muted"}],returns:[{type:{names:["Boolean"]},description:"<p>True if mute is on, false if not when getting</p>"},{type:{names:["Player"]},description:"<p>self when setting mute</p>"}],kind:"function",name:"muted",longname:"muted",scope:"global"},{comment:"/**\n* Check to see if fullscreen is supported\n*\n* @return {Boolean}\n* @method supportsFullScreen\n*/",meta:{range:[15964,16063],filename:"player.js",lineno:1598,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Check to see if fullscreen is supported</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"supportsFullScreen",longname:"supportsFullScreen",scope:"global"},{comment:"/**\n* Check if the player is in fullscreen mode\n* ```js\n* // get\n* var fullscreenOrNot = myPlayer.isFullscreen();\n* // set\n* myPlayer.isFullscreen(true); // tell the player it's in fullscreen\n* ```\n* NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official\n* property and instead document.fullscreenElement is used. But isFullscreen is\n* still a valuable property for internal player workings.\n*\n* @param {Boolean=} isFS Update the player's fullscreen state\n* @return {Boolean} true if fullscreen false if not when getting\n* @return {Player} self when setting\n* @method isFullscreen\n*/",meta:{range:[16076,16694],filename:"player.js",lineno:1608,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Check if the player is in fullscreen mode</p>\n<pre class="prettyprint source lang-js"><code> // get\n var fullscreenOrNot = myPlayer.isFullscreen();\n // set\n myPlayer.isFullscreen(true); // tell the player it\'s in fullscreen</code></pre><p>NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official\nproperty and instead document.fullscreenElement is used. But isFullscreen is\nstill a valuable property for internal player workings.</p>',params:[{type:{names:["Boolean"]},optional:!0,description:"<p>Update the player's fullscreen state</p>",name:"isFS"}],returns:[{type:{names:["Boolean"]},description:"<p>true if fullscreen false if not when getting</p>"},{type:{names:["Player"]},description:"<p>self when setting</p>"}],kind:"function",name:"isFullscreen",longname:"isFullscreen",scope:"global"},{comment:'/**\n* Increase the size of the video to full screen\n* ```js\n* myPlayer.requestFullscreen();\n* ```\n* In some browsers, full screen is not supported natively, so it enters\n* "full window mode", where the video fills the browser window.\n* In browsers and devices that support native full screen, sometimes the\n* browser\'s default controls will be shown, and not the Video.js custom skin.\n* This includes most mobile devices (iOS, Android) and older versions of\n* Safari.\n*\n* @return {Player} self\n* @method requestFullscreen\n*/',meta:{range:[16719,17247],filename:"player.js",lineno:1633,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Increase the size of the video to full screen</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.requestFullscreen();</code></pre><p>In some browsers, full screen is not supported natively, so it enters\n"full window mode", where the video fills the browser window.\nIn browsers and devices that support native full screen, sometimes the\nbrowser\'s default controls will be shown, and not the Video.js custom skin.\nThis includes most mobile devices (iOS, Android) and older versions of\nSafari.</p>',returns:[{type:{names:["Player"]},description:"<p>self</p>"}],kind:"function",name:"requestFullscreen",longname:"requestFullscreen",scope:"global"},{comment:"/**\n* Return the video to its normal size after having been in full screen mode\n* ```js\n* myPlayer.exitFullscreen();\n* ```\n*\n* @return {Player} self\n* @method exitFullscreen\n*/",meta:{range:[17371,17551],filename:"player.js",lineno:1689,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Return the video to its normal size after having been in full screen mode</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.exitFullscreen();</code></pre>',returns:[{type:{names:["Player"]},description:"<p>self</p>"}],kind:"function",name:"exitFullscreen",longname:"exitFullscreen",scope:"global"},{comment:"/**\n* When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.\n*\n* @method enterFullWindow\n*/",meta:{range:[17603,17745],filename:"player.js",lineno:1715,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.</p>",kind:"function",name:"enterFullWindow",longname:"enterFullWindow",scope:"global"},{comment:"/**\n* Check for call to either exit full window or full screen on ESC key\n*\n* @param {String} event Event to check for key press\n* @method fullWindowOnEscKey\n*/",meta:{range:[17800,17960],filename:"player.js",lineno:1738,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Check for call to either exit full window or full screen on ESC key</p>",params:[{type:{names:["String"]},description:"<p>Event to check for key press</p>",name:"event"}],kind:"function",name:"fullWindowOnEscKey",longname:"fullWindowOnEscKey",scope:"global"},{comment:"/**\n* Exit full window\n*\n* @method exitFullWindow\n*/",meta:{range:[17991,18043],filename:"player.js",lineno:1754,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Exit full window</p>",kind:"function",name:"exitFullWindow",longname:"exitFullWindow",scope:"global"},{comment:"/**\n* Check whether the player can play a given mimetype\n*\n* @param {String} type The mimetype to check\n* @return {String} 'probably', 'maybe', or '' (empty string)\n* @method canPlayType\n*/",meta:{range:[18089,18278],filename:"player.js",lineno:1774,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Check whether the player can play a given mimetype</p>",params:[{type:{names:["String"]},description:"<p>The mimetype to check</p>",name:"type"}],returns:[{type:{names:["String"]},description:"<p>'probably', 'maybe', or '' (empty string)</p>"}],kind:"function",name:"canPlayType",longname:"canPlayType",scope:"global"},{comment:"/**\n* Select source based on tech-order or source-order\n* Uses source-order selection if `options.sourceOrder` is truthy. Otherwise,\n* defaults to tech-order selection\n*\n* @param {Array} sources The sources for a media asset\n* @return {Object|Boolean} Object of source and tech order, otherwise false\n* @method selectSource\n*/",meta:{range:[18378,18704],filename:"player.js",lineno:1814,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Select source based on tech-order or source-order\nUses source-order selection if <code>options.sourceOrder</code> is truthy. Otherwise,\ndefaults to tech-order selection</p>",params:[{type:{names:["Array"]},description:"<p>The sources for a media asset</p>",name:"sources"}],returns:[{type:{names:["Object","Boolean"]},description:"<p>Object of source and tech order, otherwise false</p>"}],kind:"function",name:"selectSource",longname:"selectSource",scope:"global"},{comment:'/**\n* The source function updates the video source\n* There are three types of variables you can pass as the argument.\n* **URL String**: A URL to the the video file. Use this method if you are sure\n* the current playback technology (HTML5/Flash) can support the source you\n* provide. Currently only MP4 files can be used in both HTML5 and Flash.\n* ```js\n* myPlayer.src("http://www.example.com/path/to/video.mp4");\n* ```\n* **Source Object (or element):* * A javascript object containing information\n* about the source file. Use this method if you want the player to determine if\n* it can support the file using the type information.\n* ```js\n* myPlayer.src({ type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" });\n* ```\n* **Array of Source Objects:* * To provide multiple versions of the source so\n* that it can be played using HTML5 across browsers you can use an array of\n* source objects. Video.js will detect which version is supported and load that\n* file.\n* ```js\n* myPlayer.src([\n* { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" },\n* { type: "video/webm", src: "http://www.example.com/path/to/video.webm" },\n* { type: "video/ogg", src: "http://www.example.com/path/to/video.ogv" }\n* ]);\n* ```\n*\n* @param {String|Object|Array=} source The source URL, object, or array of sources\n* @return {String} The current video source when getting\n* @return {String} The player when setting\n* @method src\n*/',meta:{range:[18894,20365],filename:"player.js",lineno:1886,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>The source function updates the video source\nThere are three types of variables you can pass as the argument.\n<strong>URL String</strong>: A URL to the the video file. Use this method if you are sure\nthe current playback technology (HTML5/Flash) can support the source you\nprovide. Currently only MP4 files can be used in both HTML5 and Flash.</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.src("http://www.example.com/path/to/video.mp4");</code></pre><p><em>*Source Object (or element):</em> * A javascript object containing information\nabout the source file. Use this method if you want the player to determine if\nit can support the file using the type information.</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.src({ type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" });</code></pre><p><em>*Array of Source Objects:</em> * To provide multiple versions of the source so\nthat it can be played using HTML5 across browsers you can use an array of\nsource objects. Video.js will detect which version is supported and load that\nfile.</p>\n<pre class="prettyprint source lang-js"><code> myPlayer.src([\n { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" },\n { type: "video/webm", src: "http://www.example.com/path/to/video.webm" },\n { type: "video/ogg", src: "http://www.example.com/path/to/video.ogv" }\n ]);</code></pre>',params:[{type:{names:["String","Object","Array"]},description:"<p>The source URL, object, or array of sources</p>",name:"source"}],returns:[{type:{names:["String"]},description:"<p>The current video source when getting</p>"},{type:{names:["String"]},description:"<p>The player when setting</p>"}],kind:"function",name:"src",longname:"src",scope:"global"},{comment:"/**\n* Handle an array of source objects\n*\n* @param {Array} sources Array of source objects\n* @private\n* @method sourceList_\n*/",meta:{range:[20552,20679],filename:"player.js",lineno:1980,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Handle an array of source objects</p>",params:[{type:{names:["Array"]},description:"<p>Array of source objects</p>",name:"sources"}],access:"private",kind:"function",name:"sourceList_",longname:"sourceList_",scope:"global"},{comment:"/**\n* Begin loading the src data.\n*\n* @return {Player} Returns the player\n* @method load\n*/",meta:{range:[20749,20840],filename:"player.js",lineno:2010,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Begin loading the src data.</p>",returns:[{type:{names:["Player"]},description:"<p>Returns the player</p>"}],kind:"function",name:"load",longname:"load",scope:"global"},{comment:"/**\n* Reset the player. Loads the first tech in the techOrder,\n* and calls `reset` on the tech`.\n*\n* @return {Player} Returns the player\n* @method reset\n*/",meta:{range:[20856,21011],filename:"player.js",lineno:2021,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Reset the player. Loads the first tech in the techOrder,\nand calls <code>reset</code> on the tech`.</p>",returns:[{type:{names:["Player"]},description:"<p>Returns the player</p>"}],kind:"function",name:"reset",longname:"reset",scope:"global"},{comment:"/**\n* Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4\n* Can be used in conjuction with `currentType` to assist in rebuilding the current source object.\n*\n* @return {String} The current source\n* @method currentSrc\n*/",meta:{range:[21030,21290],filename:"player.js",lineno:2034,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4\nCan be used in conjuction with <code>currentType</code> to assist in rebuilding the current source object.</p>",returns:[{type:{names:["String"]},description:"<p>The current source</p>"}],kind:"function",name:"currentSrc",longname:"currentSrc",scope:"global"},{comment:"/**\n* Get the current source type e.g. video/mp4\n* This can allow you rebuild the current source object so that you could load the same\n* source and tech later\n*\n* @return {String} The source MIME type\n* @method currentType\n*/",meta:{range:[21303,21529],filename:"player.js",lineno:2045,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get the current source type e.g. video/mp4\nThis can allow you rebuild the current source object so that you could load the same\nsource and tech later</p>",returns:[{type:{names:["String"]},description:"<p>The source MIME type</p>"}],kind:"function",name:"currentType",longname:"currentType",scope:"global"},{comment:"/**\n* Get or set the preload attribute\n*\n* @param {Boolean} value Boolean to determine if preload should be used\n* @return {String} The preload attribute value when getting\n* @return {Player} Returns the player when setting\n* @method preload\n*/",meta:{range:[21542,21786],filename:"player.js",lineno:2057,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set the preload attribute</p>",params:[{type:{names:["Boolean"]},description:"<p>Boolean to determine if preload should be used</p>",name:"value"}],returns:[{type:{names:["String"]},description:"<p>The preload attribute value when getting</p>"},{type:{names:["Player"]},description:"<p>Returns the player when setting</p>"}],kind:"function",name:"preload",longname:"preload",scope:"global"},{comment:"/**\n* Get or set the autoplay attribute.\n*\n* @param {Boolean} value Boolean to determine if video should autoplay\n* @return {String} The autoplay attribute value when getting\n* @return {Player} Returns the player when setting\n* @method autoplay\n*/",meta:{range:[21814,22061],filename:"player.js",lineno:2074,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set the autoplay attribute.</p>",params:[{type:{names:["Boolean"]},description:"<p>Boolean to determine if video should autoplay</p>",name:"value"}],returns:[{type:{names:["String"]},description:"<p>The autoplay attribute value when getting</p>"},{type:{names:["Player"]},description:"<p>Returns the player when setting</p>"}],kind:"function",name:"autoplay",longname:"autoplay",scope:"global"},{comment:"/**\n* Get or set the loop attribute on the video element.\n*\n* @param {Boolean} value Boolean to determine if video should loop\n* @return {String} The loop attribute value when getting\n* @return {Player} Returns the player when setting\n* @method loop\n*/",meta:{range:[22089,22341],filename:"player.js",lineno:2091,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set the loop attribute on the video element.</p>",params:[{type:{names:["Boolean"]},description:"<p>Boolean to determine if video should loop</p>",name:"value"}],returns:[{type:{names:["String"]},description:"<p>The loop attribute value when getting</p>"},{type:{names:["Player"]},description:"<p>Returns the player when setting</p>"}],kind:"function",name:"loop",longname:"loop",scope:"global"},{comment:"/**\n* Get or set the poster image source url\n*\n* ##### EXAMPLE:\n* ```js\n* // get\n* var currentPoster = myPlayer.poster();\n* // set\n* myPlayer.poster('http://example.com/myImage.jpg');\n* ```\n*\n* @param {String=} src Poster image source URL\n* @return {String} poster URL when getting\n* @return {Player} self when setting\n* @method poster\n*/",meta:{range:[22369,22724],filename:"player.js",lineno:2108,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set the poster image source url</p>\n<h5>EXAMPLE:</h5><pre class=\"prettyprint source lang-js\"><code> // get\n var currentPoster = myPlayer.poster();\n // set\n myPlayer.poster('http://example.com/myImage.jpg');</code></pre>",params:[{type:{names:["String"]},optional:!0,description:"<p>Poster image source URL</p>",name:"src"}],returns:[{type:{names:["String"]},description:"<p>poster URL when getting</p>"},{type:{names:["Player"]},description:"<p>self when setting</p>"}],kind:"function",name:"poster",longname:"poster",scope:"global"},{comment:"/**\n* Some techs (e.g. YouTube) can provide a poster source in an\n* asynchronous way. We want the poster component to use this\n* poster source so that it covers up the tech's controls.\n* (YouTube's play button). However we only want to use this\n* soruce if the player user hasn't set a poster through\n* the normal APIs.\n*\n* @private\n* @method handleTechPosterChange_\n*/",meta:{range:[22794,23163],filename:"player.js",lineno:2147,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Some techs (e.g. YouTube) can provide a poster source in an\nasynchronous way. We want the poster component to use this\nposter source so that it covers up the tech's controls.\n(YouTube's play button). However we only want to use this\nsoruce if the player user hasn't set a poster through\nthe normal APIs.</p>",access:"private",kind:"function",name:"handleTechPosterChange_",longname:"handleTechPosterChange_",scope:"global"},{comment:"/**\n* Get or set whether or not the controls are showing.\n*\n* @param {Boolean} bool Set controls to showing or not\n* @return {Boolean} Controls are showing\n* @method controls\n*/",meta:{range:[23191,23372],filename:"player.js",lineno:2167,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get or set whether or not the controls are showing.</p>",params:[{type:{names:["Boolean"]},description:"<p>Set controls to showing or not</p>",name:"bool"}],returns:[{type:{names:["Boolean"]},description:"<p>Controls are showing</p>"}],kind:"function",name:"controls",longname:"controls",scope:"global"},{comment:"/**\n* Toggle native controls on/off. Native controls are the controls built into\n* devices (e.g. default iPhone controls), Flash, or other techs\n* (e.g. Vimeo Controls)\n* **This should only be set by the current tech, because only the tech knows\n* if it can support native controls**\n*\n* @param {Boolean} bool True signals that native controls are on\n* @return {Player} Returns the player\n* @private\n* @method usingNativeControls\n*/",meta:{range:[23475,23916],filename:"player.js",lineno:2208,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Toggle native controls on/off. Native controls are the controls built into\ndevices (e.g. default iPhone controls), Flash, or other techs\n(e.g. Vimeo Controls)\n<strong>This should only be set by the current tech, because only the tech knows\nif it can support native controls</strong></p>",params:[{type:{names:["Boolean"]},description:"<p>True signals that native controls are on</p>",name:"bool"}],returns:[{type:{names:["Player"]},description:"<p>Returns the player</p>"}],access:"private",kind:"function",name:"usingNativeControls",longname:"usingNativeControls",scope:"global"},{comment:"/**\n* player is using the native device controls\n*\n* @event usingnativecontrols\n* @memberof Player\n* @instance\n* @private\n*/",meta:{range:[23944,24068],filename:"player.js",lineno:2229,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>player is using the native device controls</p>",kind:"event",name:"usingnativecontrols",memberof:"Player",scope:"instance",access:"private",longname:"Player#event:usingnativecontrols"},{comment:"/**\n* player is using the custom HTML controls\n*\n* @event usingcustomcontrols\n* @memberof Player\n* @instance\n* @private\n*/",meta:{range:[24081,24203],filename:"player.js",lineno:2241,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>player is using the custom HTML controls</p>",kind:"event",name:"usingcustomcontrols",memberof:"Player",scope:"instance",access:"private",longname:"Player#event:usingcustomcontrols"},{comment:"/**\n* Set or get the current MediaError\n*\n* @param {*} err A MediaError or a String/Number to be turned into a MediaError\n* @return {MediaError|null} when getting\n* @return {Player} when setting\n* @method error\n*/",meta:{range:[24228,24459],filename:"player.js",lineno:2257,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Set or get the current MediaError</p>",params:[{type:{names:["*"]},description:"<p>A MediaError or a String/Number to be turned into a MediaError</p>",name:"err"}],returns:[{type:{names:["MediaError","null"]},description:"<p>when getting</p>"},{type:{names:["Player"]},description:"<p>when setting</p>"}],kind:"function",name:"error",longname:"error",scope:"global"},{comment:'/**\n* Returns whether or not the player is in the "ended" state.\n*\n* @return {Boolean} True if the player is in the ended state, false if not.\n* @method ended\n*/',meta:{range:[24550,24711],filename:"player.js",lineno:2295,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns whether or not the player is in the "ended" state.</p>",returns:[{type:{names:["Boolean"]},description:"<p>True if the player is in the ended state, false if not.</p>"}],kind:"function",name:"ended",longname:"ended",scope:"global"},{comment:'/**\n* Returns whether or not the player is in the "seeking" state.\n*\n* @return {Boolean} True if the player is in the seeking state, false if not.\n* @method seeking\n*/',meta:{range:[24718,24885],filename:"player.js",lineno:2303,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns whether or not the player is in the "seeking" state.</p>",returns:[{type:{names:["Boolean"]},description:"<p>True if the player is in the seeking state, false if not.</p>"}],kind:"function",name:"seeking",longname:"seeking",scope:"global"},{comment:"/**\n* Returns the TimeRanges of the media that are currently available\n* for seeking to.\n*\n* @return {TimeRanges} the seekable intervals of the media timeline\n* @method seekable\n*/",meta:{range:[24892,25072],filename:"player.js",lineno:2311,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns the TimeRanges of the media that are currently available\nfor seeking to.</p>",returns:[{type:{names:["TimeRanges"]},description:"<p>the seekable intervals of the media timeline</p>"}],kind:"function",name:"seekable",longname:"seekable",scope:"global"},{comment:"/**\n* Report user activity\n*\n* @param {Object} event Event object\n* @method reportUserActivity\n*/",meta:{range:[25079,25176],filename:"player.js",lineno:2320,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Report user activity</p>",params:[{type:{names:["Object"]},description:"<p>Event object</p>",name:"event"}],kind:"function",name:"reportUserActivity",longname:"reportUserActivity",scope:"global"},{comment:"/**\n* Get/set if user is active\n*\n* @param {Boolean} bool Value when setting\n* @return {Boolean} Value if user is active user when getting\n* @method userActive\n*/",meta:{range:[25189,25351],filename:"player.js",lineno:2330,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get/set if user is active</p>",params:[{type:{names:["Boolean"]},description:"<p>Value when setting</p>",name:"bool"}],returns:[{type:{names:["Boolean"]},description:"<p>Value if user is active user when getting</p>"}],kind:"function",name:"userActive",longname:"userActive",scope:"global"},{comment:"/**\n* Listen for user activity based on timeout value\n*\n* @private\n* @method listenForUserActivity_\n*/",meta:{range:[25478,25580],filename:"player.js",lineno:2379,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Listen for user activity based on timeout value</p>",access:"private",kind:"function",name:"listenForUserActivity_",longname:"listenForUserActivity_",scope:"global"},{comment:"/**\n* Gets or sets the current playback rate. A playback rate of\n* 1.0 represents normal speed and 0.5 would indicate half-speed\n* playback, for instance.\n* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-playbackrate\n*\n* @param {Number} rate New playback rate to set.\n* @return {Number} Returns the new playback rate when setting\n* @return {Number} Returns the current playback rate when getting\n* @method playbackRate\n*/",meta:{range:[25815,26286],filename:"player.js",lineno:2463,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Gets or sets the current playback rate. A playback rate of\n1.0 represents normal speed and 0.5 would indicate half-speed\nplayback, for instance.</p>",see:["https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-playbackrate"],params:[{type:{names:["Number"]},description:"<p>New playback rate to set.</p>",name:"rate"}],returns:[{type:{names:["Number"]},description:"<p>Returns the new playback rate when setting</p>"},{type:{names:["Number"]},description:"<p>Returns the current playback rate when getting</p>"}],kind:"function",name:"playbackRate",longname:"playbackRate",scope:"global"},{comment:"/**\n* Gets or sets the audio flag\n*\n* @param {Boolean} bool True signals that this is an audio player.\n* @return {Boolean} Returns true if player is audio, false if not when getting\n* @return {Player} Returns the player if setting\n* @private\n* @method isAudio\n*/",meta:{range:[26326,26605],filename:"player.js",lineno:2487,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Gets or sets the audio flag</p>",params:[{type:{names:["Boolean"]},description:"<p>True signals that this is an audio player.</p>",name:"bool"}],returns:[{type:{names:["Boolean"]},description:"<p>Returns true if player is audio, false if not when getting</p>"},{type:{names:["Player"]},description:"<p>Returns the player if setting</p>"}],access:"private",kind:"function",name:"isAudio",longname:"isAudio",scope:"global"},{comment:"/**\n* Returns the current state of network activity for the element, from\n* the codes in the list below.\n* - NETWORK_EMPTY (numeric value 0)\n* The element has not yet been initialised. All attributes are in\n* their initial states.\n* - NETWORK_IDLE (numeric value 1)\n* The element's resource selection algorithm is active and has\n* selected a resource, but it is not actually using the network at\n* this time.\n* - NETWORK_LOADING (numeric value 2)\n* The user agent is actively trying to download data.\n* - NETWORK_NO_SOURCE (numeric value 3)\n* The element's resource selection algorithm is active, but it has\n* not yet found a resource to use.\n*\n* @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states\n* @return {Number} the current network activity state\n* @method networkState\n*/",meta:{range:[26633,27456],filename:"player.js",lineno:2505,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns the current state of network activity for the element, from\nthe codes in the list below.</p>\n<ul>\n<li>NETWORK_EMPTY (numeric value 0)\nThe element has not yet been initialised. All attributes are in\ntheir initial states.</li>\n<li>NETWORK_IDLE (numeric value 1)\nThe element's resource selection algorithm is active and has\nselected a resource, but it is not actually using the network at\nthis time.</li>\n<li>NETWORK_LOADING (numeric value 2)\nThe user agent is actively trying to download data.</li>\n<li>NETWORK_NO_SOURCE (numeric value 3)\nThe element's resource selection algorithm is active, but it has\nnot yet found a resource to use.</li>\n</ul>",see:["https://html.spec.whatwg.org/multipage/embedded-content.html#network-states"],returns:[{type:{names:["Number"]},description:"<p>the current network activity state</p>"}],kind:"function",name:"networkState",longname:"networkState",scope:"global"},{comment:"/**\n* Returns a value that expresses the current state of the element\n* with respect to rendering the current playback position, from the\n* codes in the list below.\n* - HAVE_NOTHING (numeric value 0)\n* No information regarding the media resource is available.\n* - HAVE_METADATA (numeric value 1)\n* Enough of the resource has been obtained that the duration of the\n* resource is available.\n* - HAVE_CURRENT_DATA (numeric value 2)\n* Data for the immediate current playback position is available.\n* - HAVE_FUTURE_DATA (numeric value 3)\n* Data for the immediate current playback position is available, as\n* well as enough data for the user agent to advance the current\n* playback position in the direction of playback.\n* - HAVE_ENOUGH_DATA (numeric value 4)\n* The user agent estimates that enough data is available for\n* playback to proceed uninterrupted.\n*\n* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate\n* @return {Number} the current playback rendering state\n* @method readyState\n*/", +meta:{range:[27469,28509],filename:"player.js",lineno:2529,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns a value that expresses the current state of the element\nwith respect to rendering the current playback position, from the\ncodes in the list below.</p>\n<ul>\n<li>HAVE_NOTHING (numeric value 0)\nNo information regarding the media resource is available.</li>\n<li>HAVE_METADATA (numeric value 1)\nEnough of the resource has been obtained that the duration of the\nresource is available.</li>\n<li>HAVE_CURRENT_DATA (numeric value 2)\nData for the immediate current playback position is available.</li>\n<li>HAVE_FUTURE_DATA (numeric value 3)\nData for the immediate current playback position is available, as\nwell as enough data for the user agent to advance the current\nplayback position in the direction of playback.</li>\n<li>HAVE_ENOUGH_DATA (numeric value 4)\nThe user agent estimates that enough data is available for\nplayback to proceed uninterrupted.</li>\n</ul>",see:["https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate"],returns:[{type:{names:["Number"]},description:"<p>the current playback rendering state</p>"}],kind:"function",name:"readyState",longname:"readyState",scope:"global"},{comment:"/**\n* Get a video track list\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist\n*\n* @return {VideoTrackList} thes current video track list\n* @method videoTracks\n*/",meta:{range:[28522,28718],filename:"player.js",lineno:2556,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get a video track list</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist"}],returns:[{type:{names:["VideoTrackList"]},description:"<p>thes current video track list</p>"}],kind:"function",name:"videoTracks",longname:"videoTracks",scope:"global"},{comment:"/**\n* Get an audio track list\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist\n*\n* @return {AudioTrackList} thes current audio track list\n* @method audioTracks\n*/",meta:{range:[28752,28949],filename:"player.js",lineno:2574,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an audio track list</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist"}],returns:[{type:{names:["AudioTrackList"]},description:"<p>thes current audio track list</p>"}],kind:"function",name:"audioTracks",longname:"audioTracks",scope:"global"},{comment:"/**\n* Get an array of associated text tracks. captions, subtitles, chapters, descriptions\n* http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks\n*\n* @return {Array} Array of track objects\n* @method textTracks\n*/",meta:{range:[29427,29685],filename:"player.js",lineno:2600,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an array of associated text tracks. captions, subtitles, chapters, descriptions\nhttp://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks</p>",returns:[{type:{names:["Array"]},description:"<p>Array of track objects</p>"}],kind:"function",name:"textTracks",longname:"textTracks",scope:"global"},{comment:"/**\n* Get an array of remote text tracks\n*\n* @return {Array}\n* @method remoteTextTracks\n*/",meta:{range:[29704,29794],filename:"player.js",lineno:2613,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an array of remote text tracks</p>",returns:[{type:{names:["Array"]}}],kind:"function",name:"remoteTextTracks",longname:"remoteTextTracks",scope:"global"},{comment:"/**\n* Get an array of remote html track elements\n*\n* @return {HTMLTrackElement[]}\n* @method remoteTextTrackEls\n*/",meta:{range:[29807,29920],filename:"player.js",lineno:2623,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an array of remote html track elements</p>",returns:[{type:{names:["Array.<HTMLTrackElement>"]}}],kind:"function",name:"remoteTextTrackEls",longname:"remoteTextTrackEls",scope:"global"},{comment:"/**\n* Add a text track\n* In addition to the W3C settings we allow adding additional info through options.\n* http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack\n*\n* @param {String} kind Captions, subtitles, chapters, descriptions, or metadata\n* @param {String=} label Optional label\n* @param {String=} language Optional language\n* @method addTextTrack\n*/",meta:{range:[29933,30343],filename:"player.js",lineno:2633,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add a text track\nIn addition to the W3C settings we allow adding additional info through options.\nhttp://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack</p>",params:[{type:{names:["String"]},description:"<p>Captions, subtitles, chapters, descriptions, or metadata</p>",name:"kind"},{type:{names:["String"]},optional:!0,description:"<p>Optional label</p>",name:"label"},{type:{names:["String"]},optional:!0,description:"<p>Optional language</p>",name:"language"}],kind:"function",name:"addTextTrack",longname:"addTextTrack",scope:"global"},{comment:"/**\n* Add a remote text track\n*\n* @param {Object} options Options for remote text track\n* @method addRemoteTextTrack\n*/",meta:{range:[30356,30478],filename:"player.js",lineno:2647,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add a remote text track</p>",params:[{type:{names:["Object"]},description:"<p>Options for remote text track</p>",name:"options"}],kind:"function",name:"addRemoteTextTrack",longname:"addRemoteTextTrack",scope:"global"},{comment:"/**\n* Remove a remote text track\n*\n* @param {Object} track Remote text track to remove\n* @method removeRemoteTextTrack\n*/",meta:{range:[30491,30615],filename:"player.js",lineno:2657,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Remove a remote text track</p>",params:[{type:{names:["Object"]},description:"<p>Remote text track to remove</p>",name:"track"}],kind:"function",name:"removeRemoteTextTrack",longname:"removeRemoteTextTrack",scope:"global"},{comment:"/**\n* Get video width\n*\n* @return {Number} Video width\n* @method videoWidth\n*/",meta:{range:[30634,30712],filename:"player.js",lineno:2669,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get video width</p>",returns:[{type:{names:["Number"]},description:"<p>Video width</p>"}],kind:"function",name:"videoWidth",longname:"videoWidth",scope:"global"},{comment:"/**\n* Get video height\n*\n* @return {Number} Video height\n* @method videoHeight\n*/",meta:{range:[30725,30806],filename:"player.js",lineno:2679,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get video height</p>",returns:[{type:{names:["Number"]},description:"<p>Video height</p>"}],kind:"function",name:"videoHeight",longname:"videoHeight",scope:"global"},{comment:"/**\n* The player's language code\n* NOTE: The language should be set in the player options if you want the\n* the controls to be built with a specific language. Changing the lanugage\n* later will not update controls text.\n*\n* @param {String} code The locale string\n* @return {String} The locale string when getting\n* @return {Player} self when setting\n* @method language\n*/",meta:{range:[30840,31222],filename:"player.js",lineno:2696,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>The player's language code\nNOTE: The language should be set in the player options if you want the\nthe controls to be built with a specific language. Changing the lanugage\nlater will not update controls text.</p>",params:[{type:{names:["String"]},description:"<p>The locale string</p>",name:"code"}],returns:[{type:{names:["String"]},description:"<p>The locale string when getting</p>"},{type:{names:["Player"]},description:"<p>self when setting</p>"}],kind:"function",name:"language",longname:"language",scope:"global"},{comment:"/**\n* Get the player's language dictionary\n* Merge every time, because a newly added plugin might call videojs.addLanguage() at any time\n* Languages specified directly in the player options have precedence\n*\n* @return {Array} Array of languages\n* @method languages\n*/",meta:{range:[31250,31517],filename:"player.js",lineno:2716,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get the player's language dictionary\nMerge every time, because a newly added plugin might call videojs.addLanguage() at any time\nLanguages specified directly in the player options have precedence</p>",returns:[{type:{names:["Array"]},description:"<p>Array of languages</p>"}],kind:"function",name:"languages",longname:"languages",scope:"global"},{comment:"/**\n* Converts track info to JSON\n*\n* @return {Object} JSON object of options\n* @method toJSON\n*/",meta:{range:[31530,31627],filename:"player.js",lineno:2728,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Converts track info to JSON</p>",returns:[{type:{names:["Object"]},description:"<p>JSON object of options</p>"}],kind:"function",name:"toJSON",longname:"toJSON",scope:"global"},{comment:"/**\n* Gets tag settings\n*\n* @param {Element} tag The player tag\n* @return {Array} An array of sources and track objects\n* @static\n* @method getTagSettings\n*/",meta:{range:[32247,32404],filename:"player.js",lineno:2784,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Gets tag settings</p>",params:[{type:{names:["Element"]},description:"<p>The player tag</p>",name:"tag"}],returns:[{type:{names:["Array"]},description:"<p>An array of sources and track objects</p>"}],scope:"static",kind:"function",name:"getTagSettings",longname:"getTagSettings"},{comment:"/**\n* Fired when the user agent begins looking for media data\n*\n* @event loadstart\n*/",meta:{range:[32870,32955],filename:"player.js",lineno:2891,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the user agent begins looking for media data</p>",kind:"event",name:"loadstart",longname:"event:loadstart",scope:"global"},{comment:"/**\n* Fired when the player has initial duration and dimension information\n*\n* @event loadedmetadata\n*/",meta:{range:[32962,33065],filename:"player.js",lineno:2898,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the player has initial duration and dimension information</p>",kind:"event",name:"loadedmetadata",longname:"event:loadedmetadata",scope:"global"},{comment:"/**\n* Fired when the player receives text data\n*\n* @event textdata\n*/",meta:{range:[33072,33141],filename:"player.js",lineno:2905,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the player receives text data</p>",kind:"event",name:"textdata",longname:"event:textdata",scope:"global"},{comment:"/**\n* Fired when the player has downloaded data at the current playback position\n*\n* @event loadeddata\n*/",meta:{range:[33148,33253],filename:"player.js",lineno:2912,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the player has downloaded data at the current playback position</p>",kind:"event",name:"loadeddata",longname:"event:loadeddata",scope:"global"},{comment:"/**\n* Fired when the user is active, e.g. moves the mouse over the player\n*\n* @event useractive\n*/",meta:{range:[33260,33358],filename:"player.js",lineno:2919,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the user is active, e.g. moves the mouse over the player</p>",kind:"event",name:"useractive",longname:"event:useractive",scope:"global"},{comment:"/**\n* Fired when the user is inactive, e.g. a short delay after the last mouse move or control interaction\n*\n* @event userinactive\n*/",meta:{range:[33365,33498],filename:"player.js",lineno:2926,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the user is inactive, e.g. a short delay after the last mouse move or control interaction</p>",kind:"event",name:"userinactive",longname:"event:userinactive",scope:"global"},{comment:"/**\n* Fired when the current playback position has changed *\n* During playback this is fired every 15-250 milliseconds, depending on the\n* playback technology in use.\n*\n* @event timeupdate\n*/",meta:{range:[33505,33696],filename:"player.js",lineno:2933,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the current playback position has changed *\nDuring playback this is fired every 15-250 milliseconds, depending on the\nplayback technology in use.</p>",kind:"event",name:"timeupdate",longname:"event:timeupdate",scope:"global"},{comment:"/**\n* Fired when video playback ends\n*\n* @event ended\n*/",meta:{range:[33703,33759],filename:"player.js",lineno:2942,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when video playback ends</p>",kind:"event",name:"ended",longname:"event:ended",scope:"global"},{comment:"/**\n* Fired when the volume changes\n*\n* @event volumechange\n*/",meta:{range:[33766,33828],filename:"player.js",lineno:2949,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when the volume changes</p>",kind:"event",name:"volumechange",longname:"event:volumechange",scope:"global"},{comment:"/**\n* Fired when an error occurs\n*\n* @event error\n*/",meta:{range:[33835,33887],filename:"player.js",lineno:2956,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Fired when an error occurs</p>",kind:"event",name:"error",longname:"event:error",scope:"global"},{comment:"/**\n* @file plugins.js\n*/",meta:{range:[0,25],filename:"plugins.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"plugins.js",kind:"file",description:"<p>plugins.js</p>",preserveName:!0,longname:"plugins.js",scope:"global"},{comment:"/**\n* The method for registering a video.js plugin\n*\n* @param {String} name The name of the plugin\n* @param {Function} init The function that is run when the player inits\n* @method plugin\n*/",meta:{range:[32,224],filename:"plugins.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>The method for registering a video.js plugin</p>",params:[{type:{names:["String"]},description:"<p>The name of the plugin</p>",name:"name"},{type:{names:["function"]},description:"<p>The function that is run when the player inits</p>",name:"init"}],kind:"function",name:"plugin",longname:"plugin",scope:"global"},{comment:"/**\n* @file popup-button.js\n*/",meta:{range:[0,30],filename:"popup-button.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},name:"popup/popup-button.js",kind:"file",description:"<p>popup-button.js</p>",preserveName:!0,longname:"popup/popup-button.js",scope:"global"},{comment:"/**\n* A button class with a popup control\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends ClickableComponent\n* @class PopupButton\n*/",meta:{range:[52,208],filename:"popup-button.js",lineno:11,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>A button class with a popup control</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["ClickableComponent"],kind:"class",name:"PopupButton",longname:"PopupButton",scope:"global"},{comment:"/**\n* Update popup\n*\n* @method update\n*/",meta:{range:[233,273],filename:"popup-button.js",lineno:27,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>Update popup</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* Create popup - Override with specific functionality for component\n*\n* @return {Popup} The constructed popup\n* @method createPopup\n*/",meta:{range:[325,463],filename:"popup-button.js",lineno:49,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>Create popup - Override with specific functionality for component</p>",returns:[{type:{names:["Popup"]},description:"<p>The constructed popup</p>"}],kind:"function",name:"createPopup",longname:"createPopup",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[470,554],filename:"popup-button.js",lineno:57,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Allow sub components to stack CSS class names\n*\n* @return {String} The constructed class name\n* @method buildCSSClass\n*/",meta:{range:[573,699],filename:"popup-button.js",lineno:69,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>Allow sub components to stack CSS class names</p>",returns:[{type:{names:["String"]},description:"<p>The constructed class name</p>"}],kind:"function",name:"buildCSSClass",longname:"buildCSSClass",scope:"global"},{comment:"/**\n* @file popup.js\n*/",meta:{range:[0,23],filename:"popup.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},name:"popup/popup.js",kind:"file",description:"<p>popup.js</p>",preserveName:!0,longname:"popup/popup.js",scope:"global"},{comment:"/**\n* The Popup component is used to build pop up controls.\n*\n* @extends Component\n* @class Popup\n*/",meta:{range:[39,139],filename:"popup.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>The Popup component is used to build pop up controls.</p>",augments:["Component"],kind:"class",name:"Popup",longname:"Popup",scope:"global"},{comment:"/**\n* Add a popup item to the popup\n*\n* @param {Object|String} component Component or component type to add\n* @method addItem\n*/",meta:{range:[146,274],filename:"popup.js",lineno:17,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>Add a popup item to the popup</p>",params:[{type:{names:["Object","String"]},description:"<p>Component or component type to add</p>",name:"component"}],kind:"function",name:"addItem",longname:"addItem",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[296,380],filename:"popup.js",lineno:30,path:"/Users/mboles/git/docs/video.js/src/js/popup",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* @file poster-image.js\n*/",meta:{range:[0,30],filename:"poster-image.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"poster-image.js",kind:"file",description:"<p>poster-image.js</p>",preserveName:!0,longname:"poster-image.js",scope:"global"},{comment:"/**\n* The component that handles showing the poster image.\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Button\n* @class PosterImage\n*/",meta:{range:[49,210],filename:"poster-image.js",lineno:10,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>The component that handles showing the poster image.</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Button"],kind:"class",name:"PosterImage",longname:"PosterImage",scope:"global"},{comment:"/**\n* Clean up the poster image\n*\n* @method dispose\n*/",meta:{range:[238,292],filename:"poster-image.js",lineno:27,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Clean up the poster image</p>",kind:"function",name:"dispose",longname:"dispose",scope:"global"},{comment:"/**\n* Create the poster's image element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[308,391],filename:"poster-image.js",lineno:37,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create the poster's image element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Event handler for updates to the player's poster source\n*\n* @method update\n*/",meta:{range:[452,535],filename:"poster-image.js",lineno:63,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Event handler for updates to the player's poster source</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* Set the poster source depending on the display method\n*\n* @param {String} url The URL to the poster source\n* @method setSrc\n*/",meta:{range:[578,710],filename:"poster-image.js",lineno:82,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Set the poster source depending on the display method</p>",params:[{type:{names:["String"]},description:"<p>The URL to the poster source</p>",name:"url"}],kind:"function",name:"setSrc",longname:"setSrc",scope:"global"},{comment:"/**\n* Event handler for clicks on the poster image\n*\n* @method handleClick\n*/",meta:{range:[756,833],filename:"poster-image.js",lineno:103,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Event handler for clicks on the poster image</p>",kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* @file setup.js\n*\n* Functions for automatically setting up a player\n* based on the data-setup attribute of the video tag\n*/",meta:{range:[0,128],filename:"setup.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"setup.js",kind:"file",description:"<p>setup.js</p>\n<p>Functions for automatically setting up a player\nbased on the data-setup attribute of the video tag</p>",preserveName:!0,longname:"setup.js",scope:"global"},{comment:"/**\n* @file slider.js\n*/",meta:{range:[0,24],filename:"slider.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},name:"slider/slider.js",kind:"file",description:"<p>slider.js</p>",preserveName:!0,longname:"slider/slider.js",scope:"global"},{comment:"/**\n* The base functionality for sliders like the volume bar and seek bar\n*\n* @param {Player|Object} player\n* @param {Object=} options\n* @extends Component\n* @class Slider\n*/",meta:{range:[37,211],filename:"slider.js",lineno:8,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>The base functionality for sliders like the volume bar and seek bar</p>",params:[{type:{names:["Player","Object"]},name:"player"},{type:{names:["Object"]},optional:!0,name:"options"}],augments:["Component"],kind:"class",name:"Slider",longname:"Slider",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @param {String} type Type of element to create\n* @param {Object=} props List of properties in Object form\n* @return {Element}\n* @method createEl\n*/",meta:{range:[275,467],filename:"slider.js",lineno:37,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Create the component's DOM element</p>",params:[{type:{names:["String"]},description:"<p>Type of element to create</p>",name:"type"},{type:{names:["Object"]},optional:!0,description:"<p>List of properties in Object form</p>",name:"props"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Handle mouse down on slider\n*\n* @param {Object} event Mouse down event object\n* @method handleMouseDown\n*/",meta:{range:[522,634],filename:"slider.js",lineno:63,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Handle mouse down on slider</p>",params:[{type:{names:["Object"]},description:"<p>Mouse down event object</p>",name:"event"}],kind:"function",name:"handleMouseDown",longname:"handleMouseDown",scope:"global"},{comment:"/**\n* To be overridden by a subclass\n*\n* @method handleMouseMove\n*/",meta:{range:[686,753],filename:"slider.js",lineno:86,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>To be overridden by a subclass</p>",kind:"function",name:"handleMouseMove",longname:"handleMouseMove",scope:"global"},{comment:"/**\n* Handle mouse up on Slider\n*\n* @method handleMouseUp\n*/",meta:{range:[760,820],filename:"slider.js",lineno:93,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Handle mouse up on Slider</p>",kind:"function",name:"handleMouseUp",longname:"handleMouseUp",scope:"global"},{comment:"/**\n* Update slider\n*\n* @method update\n*/",meta:{range:[869,910],filename:"slider.js",lineno:114,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Update slider</p>",kind:"function",name:"update",longname:"update",scope:"global"},{comment:"/**\n* Calculate distance for slider\n*\n* @param {Object} event Event object\n* @method calculateDistance\n*/",meta:{range:[1010,1115],filename:"slider.js",lineno:152,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Calculate distance for slider</p>",params:[{type:{names:["Object"]},description:"<p>Event object</p>",name:"event"}],kind:"function",name:"calculateDistance",longname:"calculateDistance",scope:"global"},{comment:"/**\n* Handle on focus for slider\n*\n* @method handleFocus\n*/",meta:{range:[1140,1199],filename:"slider.js",lineno:166,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Handle on focus for slider</p>",kind:"function",name:"handleFocus",longname:"handleFocus",scope:"global"},{comment:"/**\n* Handle key press for slider\n*\n* @param {Object} event Event object\n* @method handleKeyPress\n*/",meta:{range:[1212,1312],filename:"slider.js",lineno:175,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Handle key press for slider</p>",params:[{type:{names:["Object"]},description:"<p>Event object</p>",name:"event"}],kind:"function",name:"handleKeyPress",longname:"handleKeyPress",scope:"global"},{comment:"/**\n* Handle on blur for slider\n*\n* @method handleBlur\n*/",meta:{range:[1343,1400],filename:"slider.js",lineno:191,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Handle on blur for slider</p>",kind:"function",name:"handleBlur",longname:"handleBlur",scope:"global"},{comment:"/**\n* Listener for click events on slider, used to prevent clicks\n* from bubbling up to parent elements like button menus.\n*\n* @param {Object} event Event object\n* @method handleClick\n*/",meta:{range:[1413,1601],filename:"slider.js",lineno:200,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Listener for click events on slider, used to prevent clicks\n from bubbling up to parent elements like button menus.</p>",params:[{type:{names:["Object"]},description:"<p>Event object</p>",name:"event"}],kind:"function",name:"handleClick",longname:"handleClick",scope:"global"},{comment:"/**\n* Get/set if slider is horizontal for vertical\n*\n* @param {Boolean} bool True if slider is vertical, false is horizontal\n* @return {Boolean} True if slider is vertical, false is horizontal\n* @method vertical\n*/",meta:{range:[1617,1831],filename:"slider.js",lineno:212,path:"/Users/mboles/git/docs/video.js/src/js/slider",code:{}},description:"<p>Get/set if slider is horizontal for vertical</p>",params:[{type:{names:["Boolean"]},description:"<p>True if slider is vertical, false is horizontal</p>",name:"bool"}],returns:[{type:{names:["Boolean"]},description:"<p>True if slider is vertical, false is horizontal</p>"}],kind:"function",name:"vertical",longname:"vertical",scope:"global"},{comment:"/**\n* @file flash-rtmp.js\n*/",meta:{range:[0,28],filename:"flash-rtmp.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},name:"tech/flash-rtmp.js",kind:"file",description:"<p>flash-rtmp.js</p>",preserveName:!0,longname:"tech/flash-rtmp.js",scope:"global"},{comment:"/**\n* @file flash.js\n* VideoJS-SWF - Custom Flash Player with HTML5-ish API\n* https://github.com/zencoder/video-js-swf\n* Not using setupTriggers. Using global onEvent func to distribute events\n*/",meta:{range:[0,195],filename:"flash.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},name:"tech/flash.js",kind:"file",description:"<p>flash.js\nVideoJS-SWF - Custom Flash Player with HTML5-ish API\nhttps://github.com/zencoder/video-js-swf\nNot using setupTriggers. Using global onEvent func to distribute events</p>",preserveName:!0,longname:"tech/flash.js",scope:"global"},{comment:"/**\n* Flash Media Controller - Wrapper for fallback SWF API\n*\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Tech\n* @class Flash\n*/",meta:{range:[229,436],filename:"flash.js",lineno:18,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Flash Media Controller - Wrapper for fallback SWF API</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["Tech"],kind:"class",name:"Flash",longname:"Flash",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[548,632],filename:"flash.js",lineno:63,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Play for flash tech\n*\n* @method play\n*/",meta:{range:[780,825],filename:"flash.js",lineno:118,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Play for flash tech</p>",kind:"function",name:"play",longname:"play",scope:"global"},{comment:"/**\n* Pause for flash tech\n*\n* @method pause\n*/",meta:{range:[847,894],filename:"flash.js",lineno:130,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Pause for flash tech</p>",kind:"function",name:"pause",longname:"pause",scope:"global"},{comment:"/**\n* Get/set video\n*\n* @param {Object=} src Source object\n* @return {Object}\n* @method src\n*/",meta:{range:[907,1001],filename:"flash.js",lineno:139,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get/set video</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Source object</p>",name:"src"}],returns:[{type:{names:["Object"]}}],kind:"function",name:"src",longname:"src",scope:"global"},{comment:"/**\n* Set video\n*\n* @param {Object=} src Source object\n* @deprecated\n* @method setSrc\n*/",meta:{range:[1029,1117],filename:"flash.js",lineno:155,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set video</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Source object</p>",name:"src"}],deprecated:!0,kind:"function",name:"setSrc",longname:"setSrc",scope:"global"},{comment:"/**\n* Set current time\n*\n* @param {Number} time Current time of video\n* @method setCurrentTime\n*/",meta:{range:[1261,1358],filename:"flash.js",lineno:183,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set current time</p>",params:[{type:{names:["Number"]},description:"<p>Current time of video</p>",name:"time"}],kind:"function",name:"setCurrentTime",longname:"setCurrentTime",scope:"global"},{comment:"/**\n* Get current time\n*\n* @param {Number=} time Current time of video\n* @return {Number} Current time\n* @method currentTime\n*/",meta:{range:[1401,1528],filename:"flash.js",lineno:203,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get current time</p>", +params:[{type:{names:["Number"]},optional:!0,description:"<p>Current time of video</p>",name:"time"}],returns:[{type:{names:["Number"]},description:"<p>Current time</p>"}],kind:"function",name:"currentTime",longname:"currentTime",scope:"global"},{comment:"/**\n* Get current source\n*\n* @method currentSrc\n*/",meta:{range:[1556,1606],filename:"flash.js",lineno:219,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get current source</p>",kind:"function",name:"currentSrc",longname:"currentSrc",scope:"global"},{comment:"/**\n* Load media into player\n*\n* @method load\n*/",meta:{range:[1723,1771],filename:"flash.js",lineno:246,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Load media into player</p>",kind:"function",name:"load",longname:"load",scope:"global"},{comment:"/**\n* Get poster\n*\n* @method poster\n*/",meta:{range:[1784,1822],filename:"flash.js",lineno:255,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get poster</p>",kind:"function",name:"poster",longname:"poster",scope:"global"},{comment:"/**\n* Poster images are not handled by the Flash tech so make this a no-op\n*\n* @method setPoster\n*/",meta:{range:[1835,1934],filename:"flash.js",lineno:264,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Poster images are not handled by the Flash tech so make this a no-op</p>",kind:"function",name:"setPoster",longname:"setPoster",scope:"global"},{comment:"/**\n* Determine if can seek in media\n*\n* @return {TimeRangeObject}\n* @method seekable\n*/",meta:{range:[1941,2029],filename:"flash.js",lineno:271,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Determine if can seek in media</p>",returns:[{type:{names:["TimeRangeObject"]}}],kind:"function",name:"seekable",longname:"seekable",scope:"global"},{comment:"/**\n* Get buffered time range\n*\n* @return {TimeRangeObject}\n* @method buffered\n*/",meta:{range:[2054,2135],filename:"flash.js",lineno:285,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get buffered time range</p>",returns:[{type:{names:["TimeRangeObject"]}}],kind:"function",name:"buffered",longname:"buffered",scope:"global"},{comment:"/**\n* Get fullscreen support -\n* Flash does not allow fullscreen through javascript\n* so always returns false\n*\n* @return {Boolean} false\n* @method supportsFullScreen\n*/",meta:{range:[2160,2329],filename:"flash.js",lineno:299,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get fullscreen support -\nFlash does not allow fullscreen through javascript\nso always returns false</p>",returns:[{type:{names:["Boolean"]},description:"<p>false</p>"}],kind:"function",name:"supportsFullScreen",longname:"supportsFullScreen",scope:"global"},{comment:"/**\n* Request to enter fullscreen\n* Flash does not allow fullscreen through javascript\n* so always returns false\n*\n* @return {Boolean} false\n* @method enterFullScreen\n*/",meta:{range:[2342,2511],filename:"flash.js",lineno:311,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Request to enter fullscreen\nFlash does not allow fullscreen through javascript\nso always returns false</p>",returns:[{type:{names:["Boolean"]},description:"<p>false</p>"}],kind:"function",name:"enterFullScreen",longname:"enterFullScreen",scope:"global"},{comment:"/**\n* @file html5.js\n* HTML5 Media Controller - Wrapper for HTML5 Media API\n*/",meta:{range:[0,78],filename:"html5.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},name:"tech/html5.js",kind:"file",description:"<p>html5.js\nHTML5 Media Controller - Wrapper for HTML5 Media API</p>",preserveName:!0,longname:"tech/html5.js",scope:"global"},{comment:"/**\n* HTML5 Media Controller - Wrapper for HTML5 Media API\n*\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Tech\n* @class Html5\n*/",meta:{range:[127,333],filename:"html5.js",lineno:21,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>HTML5 Media Controller - Wrapper for HTML5 Media API</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["Tech"],kind:"class",name:"Html5",longname:"Html5",scope:"global"},{comment:"/**\n* Dispose of html5 media element\n*\n* @method dispose\n*/",meta:{range:[628,687],filename:"html5.js",lineno:127,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Dispose of html5 media element</p>",kind:"function",name:"dispose",longname:"dispose",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[757,841],filename:"html5.js",lineno:155,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Play for html5 tech\n*\n* @method play\n*/",meta:{range:[1855,1900],filename:"html5.js",lineno:423,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Play for html5 tech</p>",kind:"function",name:"play",longname:"play",scope:"global"},{comment:"/**\n* Pause for html5 tech\n*\n* @method pause\n*/",meta:{range:[1931,1978],filename:"html5.js",lineno:438,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Pause for html5 tech</p>",kind:"function",name:"pause",longname:"pause",scope:"global"},{comment:"/**\n* Paused for html5 tech\n*\n* @return {Boolean}\n* @method paused\n*/",meta:{range:[1985,2054],filename:"html5.js",lineno:445,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Paused for html5 tech</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"paused",longname:"paused",scope:"global"},{comment:"/**\n* Get current time\n*\n* @return {Number}\n* @method currentTime\n*/",meta:{range:[2061,2129],filename:"html5.js",lineno:453,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get current time</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"currentTime",longname:"currentTime",scope:"global"},{comment:"/**\n* Set current time\n*\n* @param {Number} seconds Current time of video\n* @method setCurrentTime\n*/",meta:{range:[2136,2236],filename:"html5.js",lineno:461,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set current time</p>",params:[{type:{names:["Number"]},description:"<p>Current time of video</p>",name:"seconds"}],kind:"function",name:"setCurrentTime",longname:"setCurrentTime",scope:"global"},{comment:"/**\n* Get duration\n*\n* @return {Number}\n* @method duration\n*/",meta:{range:[2264,2325],filename:"html5.js",lineno:476,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get duration</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"duration",longname:"duration",scope:"global"},{comment:"/**\n* Get a TimeRange object that represents the intersection\n* of the time ranges for which the user agent has all\n* relevant media\n*\n* @return {TimeRangeObject}\n* @method buffered\n*/",meta:{range:[2332,2516],filename:"html5.js",lineno:484,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get a TimeRange object that represents the intersection\nof the time ranges for which the user agent has all\nrelevant media</p>",returns:[{type:{names:["TimeRangeObject"]}}],kind:"function",name:"buffered",longname:"buffered",scope:"global"},{comment:"/**\n* Get volume level\n*\n* @return {Number}\n* @method volume\n*/",meta:{range:[2523,2586],filename:"html5.js",lineno:494,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get volume level</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"volume",longname:"volume",scope:"global"},{comment:"/**\n* Set volume level\n*\n* @param {Number} percentAsDecimal Volume percent as a decimal\n* @method setVolume\n*/",meta:{range:[2593,2703],filename:"html5.js",lineno:502,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set volume level</p>",params:[{type:{names:["Number"]},description:"<p>Volume percent as a decimal</p>",name:"percentAsDecimal"}],kind:"function",name:"setVolume",longname:"setVolume",scope:"global"},{comment:"/**\n* Get if muted\n*\n* @return {Boolean}\n* @method muted\n*/",meta:{range:[2710,2769],filename:"html5.js",lineno:510,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get if muted</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"muted",longname:"muted",scope:"global"},{comment:"/**\n* Set muted\n*\n* @param {Boolean} If player is to be muted or note\n* @method setMuted\n*/",meta:{range:[2776,2867],filename:"html5.js",lineno:518,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set muted</p>",params:[{type:{names:["Boolean"]},description:"<p>player is to be muted or note</p>",name:"If"}],kind:"function",name:"setMuted",longname:"setMuted",scope:"global"},{comment:"/**\n* Get player width\n*\n* @return {Number}\n* @method width\n*/",meta:{range:[2874,2936],filename:"html5.js",lineno:526,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get player width</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"width",longname:"width",scope:"global"},{comment:"/**\n* Get player height\n*\n* @return {Number}\n* @method height\n*/",meta:{range:[2943,3007],filename:"html5.js",lineno:534,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get player height</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"height",longname:"height",scope:"global"},{comment:"/**\n* Get if there is fullscreen support\n*\n* @return {Boolean}\n* @method supportsFullScreen\n*/",meta:{range:[3014,3108],filename:"html5.js",lineno:542,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get if there is fullscreen support</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"supportsFullScreen",longname:"supportsFullScreen",scope:"global"},{comment:"/**\n* Request to enter fullscreen\n*\n* @method enterFullScreen\n*/",meta:{range:[3142,3206],filename:"html5.js",lineno:559,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Request to enter fullscreen</p>",kind:"function",name:"enterFullScreen",longname:"enterFullScreen",scope:"global"},{comment:"/**\n* Request to exit fullscreen\n*\n* @method exitFullScreen\n*/",meta:{range:[3294,3356],filename:"html5.js",lineno:593,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Request to exit fullscreen</p>",kind:"function",name:"exitFullScreen",longname:"exitFullScreen",scope:"global"},{comment:"/**\n* Get/set video\n*\n* @param {Object=} src Source object\n* @return {Object}\n* @method src\n*/",meta:{range:[3369,3463],filename:"html5.js",lineno:602,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get/set video</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Source object</p>",name:"src"}],returns:[{type:{names:["Object"]}}],kind:"function",name:"src",longname:"src",scope:"global"},{comment:"/**\n* Set video\n*\n* @param {Object} src Source object\n* @deprecated\n* @method setSrc\n*/",meta:{range:[3491,3578],filename:"html5.js",lineno:618,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set video</p>",params:[{type:{names:["Object"]},description:"<p>Source object</p>",name:"src"}],deprecated:!0,kind:"function",name:"setSrc",longname:"setSrc",scope:"global"},{comment:"/**\n* Load media into player\n*\n* @method load\n*/",meta:{range:[3591,3639],filename:"html5.js",lineno:629,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Load media into player</p>",kind:"function",name:"load",longname:"load",scope:"global"},{comment:"/**\n* Reset the tech. Removes all sources and calls `load`.\n*\n* @method reset\n*/",meta:{range:[3652,3732],filename:"html5.js",lineno:638,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Reset the tech. Removes all sources and calls <code>load</code>.</p>",kind:"function",name:"reset",longname:"reset",scope:"global"},{comment:"/**\n* Get current source\n*\n* @return {Object}\n* @method currentSrc\n*/",meta:{range:[3745,3814],filename:"html5.js",lineno:647,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get current source</p>",returns:[{type:{names:["Object"]}}],kind:"function",name:"currentSrc",longname:"currentSrc",scope:"global"},{comment:"/**\n* Get poster\n*\n* @return {String}\n* @method poster\n*/",meta:{range:[3839,3896],filename:"html5.js",lineno:661,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get poster</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"poster",longname:"poster",scope:"global"},{comment:"/**\n* Get preload attribute\n*\n* @return {String}\n* @method preload\n*/",meta:{range:[3983,4052],filename:"html5.js",lineno:677,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get preload attribute</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"preload",longname:"preload",scope:"global"},{comment:"/**\n* Set preload attribute\n*\n* @param {String} val Value for preload attribute\n* @method setPreload\n*/",meta:{range:[4059,4162],filename:"html5.js",lineno:685,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set preload attribute</p>",params:[{type:{names:["String"]},description:"<p>Value for preload attribute</p>",name:"val"}],kind:"function",name:"setPreload",longname:"setPreload",scope:"global"},{comment:"/**\n* Get autoplay attribute\n*\n* @return {String}\n* @method autoplay\n*/",meta:{range:[4169,4240],filename:"html5.js",lineno:693,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get autoplay attribute</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"autoplay",longname:"autoplay",scope:"global"},{comment:"/**\n* Set autoplay attribute\n*\n* @param {String} val Value for preload attribute\n* @method setAutoplay\n*/",meta:{range:[4247,4352],filename:"html5.js",lineno:701,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set autoplay attribute</p>",params:[{type:{names:["String"]},description:"<p>Value for preload attribute</p>",name:"val"}],kind:"function",name:"setAutoplay",longname:"setAutoplay",scope:"global"},{comment:"/**\n* Get controls attribute\n*\n* @return {String}\n* @method controls\n*/",meta:{range:[4359,4430],filename:"html5.js",lineno:709,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get controls attribute</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"controls",longname:"controls",scope:"global"},{comment:"/**\n* Set controls attribute\n*\n* @param {String} val Value for controls attribute\n* @method setControls\n*/",meta:{range:[4437,4543],filename:"html5.js",lineno:717,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set controls attribute</p>",params:[{type:{names:["String"]},description:"<p>Value for controls attribute</p>",name:"val"}],kind:"function",name:"setControls",longname:"setControls",scope:"global"},{comment:"/**\n* Get loop attribute\n*\n* @return {String}\n* @method loop\n*/",meta:{range:[4550,4613],filename:"html5.js",lineno:725,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get loop attribute</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"loop",longname:"loop",scope:"global"},{comment:"/**\n* Set loop attribute\n*\n* @param {String} val Value for loop attribute\n* @method setLoop\n*/",meta:{range:[4620,4714],filename:"html5.js",lineno:733,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set loop attribute</p>",params:[{type:{names:["String"]},description:"<p>Value for loop attribute</p>",name:"val"}],kind:"function",name:"setLoop",longname:"setLoop",scope:"global"},{comment:"/**\n* Get error value\n*\n* @return {String}\n* @method error\n*/",meta:{range:[4721,4782],filename:"html5.js",lineno:741,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get error value</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"error",longname:"error",scope:"global"},{comment:'/**\n* Get whether or not the player is in the "seeking" state\n*\n* @return {Boolean}\n* @method seeking\n*/',meta:{range:[4789,4893],filename:"html5.js",lineno:749,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get whether or not the player is in the "seeking" state</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"seeking",longname:"seeking",scope:"global"},{comment:"/**\n* Get a TimeRanges object that represents the\n* ranges of the media resource to which it is possible\n* for the user agent to seek.\n*\n* @return {TimeRangeObject}\n* @method seekable\n*/",meta:{range:[4900,5086],filename:"html5.js",lineno:757,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get a TimeRanges object that represents the\nranges of the media resource to which it is possible\nfor the user agent to seek.</p>",returns:[{type:{names:["TimeRangeObject"]}}],kind:"function",name:"seekable",longname:"seekable",scope:"global"},{comment:"/**\n* Get if video ended\n*\n* @return {Boolean}\n* @method ended\n*/",meta:{range:[5093,5158],filename:"html5.js",lineno:767,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get if video ended</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"ended",longname:"ended",scope:"global"},{comment:"/**\n* Get the value of the muted content attribute\n* This attribute has no dynamic effect, it only\n* controls the default state of the element\n*\n* @return {Boolean}\n* @method defaultMuted\n*/",meta:{range:[5165,5355],filename:"html5.js",lineno:775,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get the value of the muted content attribute\nThis attribute has no dynamic effect, it only\ncontrols the default state of the element</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"defaultMuted",longname:"defaultMuted",scope:"global"},{comment:"/**\n* Get desired speed at which the media resource is to play\n*\n* @return {Number}\n* @method playbackRate\n*/",meta:{range:[5362,5471],filename:"html5.js",lineno:785,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get desired speed at which the media resource is to play</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"playbackRate",longname:"playbackRate",scope:"global"},{comment:"/**\n* Set desired speed at which the media resource is to play\n*\n* @param {Number} val Speed at which the media resource is to play\n* @method setPlaybackRate\n*/",meta:{range:[5807,5967],filename:"html5.js",lineno:802,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set desired speed at which the media resource is to play</p>",params:[{type:{names:["Number"]},description:"<p>Speed at which the media resource is to play</p>",name:"val"}],kind:"function",name:"setPlaybackRate",longname:"setPlaybackRate",scope:"global"},{comment:"/**\n* Get the current state of network activity for the element, from\n* the list below\n* NETWORK_EMPTY (numeric value 0)\n* NETWORK_IDLE (numeric value 1)\n* NETWORK_LOADING (numeric value 2)\n* NETWORK_NO_SOURCE (numeric value 3)\n*\n* @return {Number}\n* @method networkState\n*/",meta:{range:[5974,6248],filename:"html5.js",lineno:810,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get the current state of network activity for the element, from\nthe list below\nNETWORK_EMPTY (numeric value 0)\nNETWORK_IDLE (numeric value 1)\nNETWORK_LOADING (numeric value 2)\nNETWORK_NO_SOURCE (numeric value 3)</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"networkState",longname:"networkState",scope:"global"},{comment:"/**\n* Get a value that expresses the current state of the element\n* with respect to rendering the current playback position, from\n* the codes in the list below\n* HAVE_NOTHING (numeric value 0)\n* HAVE_METADATA (numeric value 1)\n* HAVE_CURRENT_DATA (numeric value 2)\n* HAVE_FUTURE_DATA (numeric value 3)\n* HAVE_ENOUGH_DATA (numeric value 4)\n*\n* @return {Number}\n* @method readyState\n*/",meta:{range:[6255,6638],filename:"html5.js",lineno:823,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get a value that expresses the current state of the element\nwith respect to rendering the current playback position, from\nthe codes in the list below\nHAVE_NOTHING (numeric value 0)\nHAVE_METADATA (numeric value 1)\nHAVE_CURRENT_DATA (numeric value 2)\nHAVE_FUTURE_DATA (numeric value 3)\nHAVE_ENOUGH_DATA (numeric value 4)</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"readyState",longname:"readyState",scope:"global"},{comment:"/**\n* Get width of video\n*\n* @return {Number}\n* @method videoWidth\n*/",meta:{range:[6645,6714],filename:"html5.js",lineno:838,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get width of video</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"videoWidth",longname:"videoWidth",scope:"global"},{comment:"/**\n* Get height of video\n*\n* @return {Number}\n* @method videoHeight\n*/",meta:{range:[6721,6792],filename:"html5.js",lineno:846,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get height of video</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"videoHeight",longname:"videoHeight",scope:"global"},{comment:"/**\n* Get text tracks\n*\n* @return {TextTrackList}\n* @method textTracks\n*/",meta:{range:[6799,6872],filename:"html5.js",lineno:854,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get text tracks</p>",returns:[{type:{names:["TextTrackList"]}}],kind:"function",name:"textTracks",longname:"textTracks",scope:"global"},{comment:"/**\n* Creates and returns a text track object\n*\n* @param {String} kind Text track kind (subtitles, captions, descriptions\n* chapters and metadata)\n* @param {String=} label Label to identify the text track\n* @param {String=} language Two letter language abbreviation\n* @return {TextTrackObject}\n* @method addTextTrack\n*/",meta:{range:[6885,7242],filename:"html5.js",lineno:864,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Creates and returns a text track object</p>",params:[{type:{names:["String"]},description:"<p>Text track kind (subtitles, captions, descriptions\n chapters and metadata)</p>",name:"kind"},{type:{names:["String"]},optional:!0,description:"<p>Label to identify the text track</p>",name:"label"},{type:{names:["String"]},optional:!0,description:"<p>Two letter language abbreviation</p>",name:"language"}],returns:[{type:{names:["TextTrackObject"]}}],kind:"function",name:"addTextTrack",longname:"addTextTrack",scope:"global"},{comment:"/**\n* Creates a remote text track object and returns a html track element\n*\n* @param {Object} options The object should contain values for\n* kind, language, label and src (location of the WebVTT file)\n* @return {HTMLTrackElement}\n* @method addRemoteTextTrack\n*/",meta:{range:[7267,7528],filename:"html5.js",lineno:882,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Creates a remote text track object and returns a html track element</p>",params:[{type:{names:["Object"]},description:"<p>The object should contain values for\nkind, language, label and src (location of the WebVTT file)</p>",name:"options"}],returns:[{type:{names:["HTMLTrackElement"]}}],kind:"function",name:"addRemoteTextTrack",longname:"addRemoteTextTrack",scope:"global"},{comment:"/**\n* Remove remote text track from TextTrackList object\n*\n* @param {TextTrackObject} track Texttrack object to remove\n* @method removeRemoteTextTrack\n*/",meta:{range:[7634,7787],filename:"html5.js",lineno:925,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Remove remote text track from TextTrackList object</p>",params:[{type:{names:["TextTrackObject"]},description:"<p>Texttrack object to remove</p>",name:"track"}],kind:"function",name:"removeRemoteTextTrack",longname:"removeRemoteTextTrack",scope:"global"},{comment:"/**\n* @file loader.js\n*/",meta:{range:[0,24],filename:"loader.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},name:"tech/loader.js",kind:"file",description:"<p>loader.js</p>",preserveName:!0,longname:"tech/loader.js",scope:"global"},{comment:"/**\n* The Media Loader is the component that decides which playback technology to load\n* when the player is initialized.\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class MediaLoader\n*/",meta:{range:[40,360],filename:"loader.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>The Media Loader is the component that decides which playback technology to load\nwhen the player is initialized.</p>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["Component"],kind:"class",name:"MediaLoader",longname:"MediaLoader",scope:"global"},{comment:"/**\n* @file tech.js\n* Media Technology Controller - Base class for media playback\n* technology controllers like Flash and HTML5\n*/",meta:{range:[0,130],filename:"tech.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},name:"tech/tech.js",kind:"file",description:"<p>tech.js\nMedia Technology Controller - Base class for media playback\ntechnology controllers like Flash and HTML5</p>",preserveName:!0,longname:"tech/tech.js",scope:"global"},{comment:"/**\n* Base class for media (HTML5 Video, Flash) controllers\n*\n* @param {Object=} options Options object\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class Tech\n*/",meta:{range:[188,380],filename:"tech.js",lineno:25,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Base class for media (HTML5 Video, Flash) controllers</p>",params:[{type:{names:["Object"]},optional:!0,description:"<p>Options object</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["Component"],kind:"class",name:"Tech",longname:"Tech",scope:"global"},{comment:"/**\n* Turn on progress events\n*\n* @method manualProgressOn\n*/",meta:{range:[653,714],filename:"tech.js",lineno:84,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Turn on progress events</p>",kind:"function",name:"manualProgressOn",longname:"manualProgressOn",scope:"global"},{comment:"/**\n* Turn off progress events\n*\n* @method manualProgressOff\n*/",meta:{range:[742,805],filename:"tech.js",lineno:98,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Turn off progress events</p>",kind:"function",name:"manualProgressOff",longname:"manualProgressOff",scope:"global"},{comment:"/**\n* Track progress\n*\n* @method trackProgress\n*/",meta:{range:[827,876],filename:"tech.js",lineno:110,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Track progress</p>",kind:"function",name:"trackProgress",longname:"trackProgress",scope:"global"},{comment:"/**\n* Update duration\n*\n* @method onDurationChange\n*/",meta:{range:[934,987],filename:"tech.js",lineno:134,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Update duration</p>",kind:"function",name:"onDurationChange",longname:"onDurationChange",scope:"global"},{comment:"/**\n* Create and get TimeRange object for buffering\n*\n* @return {TimeRangeObject}\n* @method buffered\n*/",meta:{range:[1e3,1103],filename:"tech.js",lineno:143,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Create and get TimeRange object for buffering</p>",returns:[{type:{names:["TimeRangeObject"]}}],kind:"function",name:"buffered",longname:"buffered",scope:"global"},{comment:"/**\n* Get buffered percent\n*\n* @return {Number}\n* @method bufferedPercent\n*/",meta:{range:[1116,1192],filename:"tech.js",lineno:153,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get buffered percent</p>",returns:[{type:{names:["Number"]}}],kind:"function",name:"bufferedPercent",longname:"bufferedPercent",scope:"global"},{comment:"/**\n* Stops tracking progress by clearing progress interval\n*\n* @method stopTrackingProgress\n*/",meta:{range:[1205,1300],filename:"tech.js",lineno:163,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Stops tracking progress by clearing progress interval</p>",kind:"function",name:"stopTrackingProgress",longname:"stopTrackingProgress",scope:"global"},{comment:"/**\n* Set event listeners for on play and pause and tracking current time\n*\n* @method manualTimeUpdatesOn\n*/",meta:{range:[1397,1505],filename:"tech.js",lineno:173,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set event listeners for on play and pause and tracking current time</p>",kind:"function",name:"manualTimeUpdatesOn",longname:"manualTimeUpdatesOn",scope:"global"},{comment:"/**\n* Remove event listeners for on play and pause and tracking current time\n*\n* @method manualTimeUpdatesOff\n*/",meta:{range:[1527,1639],filename:"tech.js",lineno:185,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Remove event listeners for on play and pause and tracking current time</p>",kind:"function",name:"manualTimeUpdatesOff",longname:"manualTimeUpdatesOff",scope:"global"},{comment:"/**\n* Tracks current time\n*\n* @method trackCurrentTime\n*/",meta:{range:[1661,1718],filename:"tech.js",lineno:197,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Tracks current time</p>",kind:"function",name:"trackCurrentTime",longname:"trackCurrentTime",scope:"global"},{comment:"/**\n* Turn off play progress tracking (when paused or dragging)\n*\n* @method stopTrackingCurrentTime\n*/",meta:{range:[1740,1842],filename:"tech.js",lineno:209,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Turn off play progress tracking (when paused or dragging)</p>",kind:"function",name:"stopTrackingCurrentTime",longname:"stopTrackingCurrentTime",scope:"global"},{comment:"/**\n* Turn off any manual progress or timeupdate tracking\n*\n* @method dispose\n*/",meta:{range:[1867,1947],filename:"tech.js",lineno:222,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Turn off any manual progress or timeupdate tracking</p>",kind:"function",name:"dispose",longname:"dispose",scope:"global"},{comment:"/**\n* clear out a track list, or multiple track lists\n*\n* Note: Techs without source handlers should call this between\n* sources for video & audio tracks, as usually you don't want\n* to use them between tracks and we have no automatic way to do\n* it for you\n*\n* @method clearTracks\n* @param {Array|String} types type(s) of track lists to empty\n*/",meta:{range:[1987,2333],filename:"tech.js",lineno:240,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>clear out a track list, or multiple track lists</p>\n<p>Note: Techs without source handlers should call this between\nsources for video & audio tracks, as usually you don't want\nto use them between tracks and we have no automatic way to do\nit for you</p>", +kind:"function",name:"clearTracks",params:[{type:{names:["Array","String"]},description:"<p>type(s) of track lists to empty</p>",name:"types"}],longname:"clearTracks",scope:"global"},{comment:"/**\n* Reset the tech. Removes all sources and resets readyState.\n*\n* @method reset\n*/",meta:{range:[2382,2467],filename:"tech.js",lineno:267,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Reset the tech. Removes all sources and resets readyState.</p>",kind:"function",name:"reset",longname:"reset",scope:"global"},{comment:"/**\n* When invoked without an argument, returns a MediaError object\n* representing the current error state of the player or null if\n* there is no error. When invoked with an argument, set the current\n* error state of the player.\n* @param {MediaError=} err Optional an error object\n* @return {MediaError} the current error object or null\n* @method error\n*/",meta:{range:[2474,2839],filename:"tech.js",lineno:274,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>When invoked without an argument, returns a MediaError object\nrepresenting the current error state of the player or null if\nthere is no error. When invoked with an argument, set the current\nerror state of the player.</p>",params:[{type:{names:["MediaError"]},optional:!0,description:"<p>Optional an error object</p>",name:"err"}],returns:[{type:{names:["MediaError"]},description:"<p>the current error object or null</p>"}],kind:"function",name:"error",longname:"error",scope:"global"},{comment:"/**\n* Return the time ranges that have been played through for the\n* current source. This implementation is incomplete. It does not\n* track the played time ranges, only whether the source has played\n* at all or not.\n* @return {TimeRangeObject} a single time range if this video has\n* played or an empty set of ranges if not.\n* @method played\n*/",meta:{range:[2864,3208],filename:"tech.js",lineno:291,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Return the time ranges that have been played through for the\ncurrent source. This implementation is incomplete. It does not\ntrack the played time ranges, only whether the source has played\nat all or not.</p>",returns:[{type:{names:["TimeRangeObject"]},description:"<p>a single time range if this video has\nplayed or an empty set of ranges if not.</p>"}],kind:"function",name:"played",longname:"played",scope:"global"},{comment:"/**\n* Set current time\n*\n* @method setCurrentTime\n*/",meta:{range:[3230,3282],filename:"tech.js",lineno:307,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Set current time</p>",kind:"function",name:"setCurrentTime",longname:"setCurrentTime",scope:"global"},{comment:"/**\n* Initialize texttrack listeners\n*\n* @method initTextTrackListeners\n*/",meta:{range:[3298,3372],filename:"tech.js",lineno:317,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Initialize texttrack listeners</p>",kind:"function",name:"initTextTrackListeners",longname:"initTextTrackListeners",scope:"global"},{comment:"/**\n* Initialize audio and video track listeners\n*\n* @method initTrackListeners\n*/",meta:{range:[3430,3512],filename:"tech.js",lineno:341,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Initialize audio and video track listeners</p>",kind:"function",name:"initTrackListeners",longname:"initTrackListeners",scope:"global"},{comment:"/**\n* Emulate texttracks\n*\n* @method emulateTextTracks\n*/",meta:{range:[3573,3630],filename:"tech.js",lineno:366,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Emulate texttracks</p>",kind:"function",name:"emulateTextTracks",longname:"emulateTextTracks",scope:"global"},{comment:"/**\n* Get videotracks\n*\n* @returns {VideoTrackList}\n* @method videoTracks\n*/",meta:{range:[3769,3845],filename:"tech.js",lineno:417,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get videotracks</p>",returns:[{type:{names:["VideoTrackList"]}}],kind:"function",name:"videoTracks",longname:"videoTracks",scope:"global"},{comment:"/**\n* Get audiotracklist\n*\n* @returns {AudioTrackList}\n* @method audioTracks\n*/",meta:{range:[3861,3940],filename:"tech.js",lineno:428,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get audiotracklist</p>",returns:[{type:{names:["AudioTrackList"]}}],kind:"function",name:"audioTracks",longname:"audioTracks",scope:"global"},{comment:"/**\n* Get texttracks\n*\n* @returns {TextTrackList}\n* @method textTracks\n*/",meta:{range:[4040,4113],filename:"tech.js",lineno:445,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get texttracks</p>",returns:[{type:{names:["TextTrackList"]}}],kind:"function",name:"textTracks",longname:"textTracks",scope:"global"},{comment:"/**\n* Get remote texttracks\n*\n* @returns {TextTrackList}\n* @method remoteTextTracks\n*/",meta:{range:[4129,4215],filename:"tech.js",lineno:456,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get remote texttracks</p>",returns:[{type:{names:["TextTrackList"]}}],kind:"function",name:"remoteTextTracks",longname:"remoteTextTracks",scope:"global"},{comment:"/**\n* Get remote htmltrackelements\n*\n* @returns {HTMLTrackElementList}\n* @method remoteTextTrackEls\n*/",meta:{range:[4231,4333],filename:"tech.js",lineno:467,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Get remote htmltrackelements</p>",returns:[{type:{names:["HTMLTrackElementList"]}}],kind:"function",name:"remoteTextTrackEls",longname:"remoteTextTrackEls",scope:"global"},{comment:"/**\n* Creates and returns a remote text track object\n*\n* @param {String} kind Text track kind (subtitles, captions, descriptions\n* chapters and metadata)\n* @param {String=} label Label to identify the text track\n* @param {String=} language Two letter language abbreviation\n* @return {TextTrackObject}\n* @method addTextTrack\n*/",meta:{range:[4349,4713],filename:"tech.js",lineno:478,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Creates and returns a remote text track object</p>",params:[{type:{names:["String"]},description:"<p>Text track kind (subtitles, captions, descriptions\n chapters and metadata)</p>",name:"kind"},{type:{names:["String"]},optional:!0,description:"<p>Label to identify the text track</p>",name:"label"},{type:{names:["String"]},optional:!0,description:"<p>Two letter language abbreviation</p>",name:"language"}],returns:[{type:{names:["TextTrackObject"]}}],kind:"function",name:"addTextTrack",longname:"addTextTrack",scope:"global"},{comment:"/**\n* Creates a remote text track object and returns a emulated html track element\n*\n* @param {Object} options The object should contain values for\n* kind, language, label and src (location of the WebVTT file)\n* @return {HTMLTrackElement}\n* @method addRemoteTextTrack\n*/",meta:{range:[4738,5008],filename:"tech.js",lineno:496,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Creates a remote text track object and returns a emulated html track element</p>",params:[{type:{names:["Object"]},description:"<p>The object should contain values for\nkind, language, label and src (location of the WebVTT file)</p>",name:"options"}],returns:[{type:{names:["HTMLTrackElement"]}}],kind:"function",name:"addRemoteTextTrack",longname:"addRemoteTextTrack",scope:"global"},{comment:"/**\n* Remove remote texttrack\n*\n* @param {TextTrackObject} track Texttrack to remove\n* @method removeRemoteTextTrack\n*/",meta:{range:[5060,5179],filename:"tech.js",lineno:521,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Remove remote texttrack</p>",params:[{type:{names:["TextTrackObject"]},description:"<p>Texttrack to remove</p>",name:"track"}],kind:"function",name:"removeRemoteTextTrack",longname:"removeRemoteTextTrack",scope:"global"},{comment:"/**\n* Provide a default setPoster method for techs\n* Poster support for techs should be optional, so we don't want techs to\n* break if they don't have a way to set a poster.\n*\n* @method setPoster\n*/",meta:{range:[5210,5408],filename:"tech.js",lineno:537,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Provide a default setPoster method for techs\nPoster support for techs should be optional, so we don't want techs to\nbreak if they don't have a way to set a poster.</p>",kind:"function",name:"setPoster",longname:"setPoster",scope:"global"},{comment:"/**\n* Registers a Tech\n*\n* @param {String} name Name of the Tech to register\n* @param {Object} tech The tech to register\n* @static\n* @method registerComponent\n*/",meta:{range:[5942,6103],filename:"tech.js",lineno:572,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Registers a Tech</p>",params:[{type:{names:["String"]},description:"<p>Name of the Tech to register</p>",name:"name"},{type:{names:["Object"]},description:"<p>The tech to register</p>",name:"tech"}],scope:"static",kind:"function",name:"registerComponent",longname:"registerComponent"},{comment:"/**\n* Gets a component by name\n*\n* @param {String} name Name of the component to get\n* @return {Component}\n* @static\n* @method getComponent\n*/",meta:{range:[6143,6285],filename:"tech.js",lineno:593,path:"/Users/mboles/git/docs/video.js/src/js/tech",code:{}},description:"<p>Gets a component by name</p>",params:[{type:{names:["String"]},description:"<p>Name of the component to get</p>",name:"name"}],returns:[{type:{names:["Component"]}}],scope:"static",kind:"function",name:"getComponent",longname:"getComponent"},{comment:"/**\n* @file audio-track-list.js\n*/",meta:{range:[0,34],filename:"audio-track-list.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/audio-track-list.js",kind:"file",description:"<p>audio-track-list.js</p>",preserveName:!0,longname:"tracks/audio-track-list.js",scope:"global"},{comment:"/**\n* A list of possible audio tracks. All functionality is in the\n* base class Tracklist and the spec for AudioTrackList is located at:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist\n*\n* interface AudioTrackList : EventTarget {\n* readonly attribute unsigned long length;\n* getter AudioTrack (unsigned long index);\n* AudioTrack? getTrackById(DOMString id);\n*\n* attribute EventHandler onchange;\n* attribute EventHandler onaddtrack;\n* attribute EventHandler onremovetrack;\n* };\n*\n* @param {AudioTrack[]} tracks a list of audio tracks to instantiate the list with\n* @extends TrackList\n* @class AudioTrackList\n*/",meta:{range:[294,951],filename:"audio-track-list.js",lineno:24,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A list of possible audio tracks. All functionality is in the\nbase class Tracklist and the spec for AudioTrackList is located at:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist\n\ninterface AudioTrackList : EventTarget {\n readonly attribute unsigned long length;\n getter AudioTrack (unsigned long index);\n AudioTrack? getTrackById(DOMString id);\n\n attribute EventHandler onchange;\n attribute EventHandler onaddtrack;\n attribute EventHandler onremovetrack;\n};",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist\n\ninterface AudioTrackList : EventTarget {\n readonly attribute unsigned long length;\n getter AudioTrack (unsigned long index);\n AudioTrack? getTrackById(DOMString id);\n\n attribute EventHandler onchange;\n attribute EventHandler onaddtrack;\n attribute EventHandler onremovetrack;\n};"}],params:[{type:{names:["Array.<AudioTrack>"]},description:"<p>a list of audio tracks to instantiate the list with</p>",name:"tracks"}],augments:["TrackList"],kind:"class",name:"AudioTrackList",longname:"AudioTrackList",scope:"global"},{comment:"/**\n* A single audio text track as defined in:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#audiotrack\n*\n* interface AudioTrack {\n* readonly attribute DOMString id;\n* readonly attribute DOMString kind;\n* readonly attribute DOMString label;\n* readonly attribute DOMString language;\n* attribute boolean enabled;\n* };\n*\n* @param {Object=} options Object of option names and values\n* @class AudioTrack\n*/",meta:{range:[15,449],filename:"audio-track.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A single audio text track as defined in:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#audiotrack\n\ninterface AudioTrack {\n readonly attribute DOMString id;\n readonly attribute DOMString kind;\n readonly attribute DOMString label;\n readonly attribute DOMString language;\n attribute boolean enabled;\n};",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#audiotrack\n\ninterface AudioTrack {\n readonly attribute DOMString id;\n readonly attribute DOMString kind;\n readonly attribute DOMString label;\n readonly attribute DOMString language;\n attribute boolean enabled;\n};"}],params:[{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],kind:"class",name:"AudioTrack",longname:"AudioTrack",scope:"global"},{comment:"/**\n* @file html-track-element-list.js\n*/",meta:{range:[0,41],filename:"html-track-element-list.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/html-track-element-list.js",kind:"file",description:"<p>html-track-element-list.js</p>",preserveName:!0,longname:"tracks/html-track-element-list.js",scope:"global"},{comment:"/**\n* @file html-track-element.js\n*/",meta:{range:[0,36],filename:"html-track-element.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/html-track-element.js",kind:"file",description:"<p>html-track-element.js</p>",preserveName:!0,longname:"tracks/html-track-element.js",scope:"global"},{comment:"/**\n* https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement\n*\n* interface HTMLTrackElement : HTMLElement {\n* attribute DOMString kind;\n* attribute DOMString src;\n* attribute DOMString srclang;\n* attribute DOMString label;\n* attribute boolean default;\n*\n* const unsigned short NONE = 0;\n* const unsigned short LOADING = 1;\n* const unsigned short LOADED = 2;\n* const unsigned short ERROR = 3;\n* readonly attribute unsigned short readyState;\n*\n* readonly attribute TextTrack track;\n* };\n*\n* @param {Object} options TextTrack configuration\n* @class HTMLTrackElement\n*/",meta:{range:[70,680],filename:"html-track-element.js",lineno:15,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement</p>\n<p>interface HTMLTrackElement : HTMLElement {\n attribute DOMString kind;\n attribute DOMString src;\n attribute DOMString srclang;\n attribute DOMString label;\n attribute boolean default;</p>\n<p> const unsigned short NONE = 0;\n const unsigned short LOADING = 1;\n const unsigned short LOADED = 2;\n const unsigned short ERROR = 3;\n readonly attribute unsigned short readyState;</p>\n<p> readonly attribute TextTrack track;\n};</p>",params:[{type:{names:["Object"]},description:"<p>TextTrack configuration</p>",name:"options"}],kind:"class",name:"HTMLTrackElement",longname:"HTMLTrackElement",scope:"global"},{comment:"/**\n* @file text-track-cue-list.js\n*/",meta:{range:[0,37],filename:"text-track-cue-list.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/text-track-cue-list.js",kind:"file",description:"<p>text-track-cue-list.js</p>",preserveName:!0,longname:"tracks/text-track-cue-list.js",scope:"global"},{comment:"/**\n* A List of text track cues as defined in:\n* https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist\n*\n* interface TextTrackCueList {\n* readonly attribute unsigned long length;\n* getter TextTrackCue (unsigned long index);\n* TextTrackCue? getCueById(DOMString id);\n* };\n*\n* @param {Array} cues A list of cues to be initialized with\n* @class TextTrackCueList\n*/",meta:{range:[47,438],filename:"text-track-cue-list.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A List of text track cues as defined in:\nhttps://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist</p>\n<p>interface TextTrackCueList {\n readonly attribute unsigned long length;\n getter TextTrackCue (unsigned long index);\n TextTrackCue? getCueById(DOMString id);\n};</p>",params:[{type:{names:["Array"]},description:"<p>A list of cues to be initialized with</p>",name:"cues"}],kind:"class",name:"TextTrackCueList",longname:"TextTrackCueList",scope:"global"},{comment:"/**\n* A setter for cues in this list\n*\n* @param {Array} cues an array of cues\n* @method setCues_\n* @private\n*/",meta:{range:[523,633],filename:"text-track-cue-list.js",lineno:48,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A setter for cues in this list</p>",params:[{type:{names:["Array"]},description:"<p>an array of cues</p>",name:"cues"}],kind:"function",name:"setCues_",access:"private",longname:"setCues_",scope:"global"},{comment:"/**\n* Get a cue that is currently in the Cue list by id\n*\n* @param {String} id\n* @method getCueById\n* @return {Object} a single cue\n*/",meta:{range:[715,849],filename:"text-track-cue-list.js",lineno:82,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Get a cue that is currently in the Cue list by id</p>",params:[{type:{names:["String"]},name:"id"}],kind:"function",name:"getCueById",returns:[{type:{names:["Object"]},description:"<p>a single cue</p>"}],longname:"getCueById",scope:"global"},{comment:"/**\n* @file text-track-display.js\n*/",meta:{range:[0,36],filename:"text-track-display.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/text-track-display.js",kind:"file",description:"<p>text-track-display.js</p>",preserveName:!0,longname:"tracks/text-track-display.js",scope:"global"},{comment:"/**\n* The component for displaying text track cues\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @param {Function=} ready Ready callback function\n* @extends Component\n* @class TextTrackDisplay\n*/",meta:{range:[106,361],filename:"text-track-display.js",lineno:27,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>The component for displaying text track cues</p>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Ready callback function</p>",name:"ready"}],augments:["Component"],kind:"class",name:"TextTrackDisplay",longname:"TextTrackDisplay",scope:"global"},{comment:"/**\n* Toggle display texttracks\n*\n* @method toggleDisplay\n*/",meta:{range:[530,590],filename:"text-track-display.js",lineno:92,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Toggle display texttracks</p>",kind:"function",name:"toggleDisplay",longname:"toggleDisplay",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[615,699],filename:"text-track-display.js",lineno:105,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Clear display texttracks\n*\n* @method clearDisplay\n*/",meta:{range:[727,785],filename:"text-track-display.js",lineno:120,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Clear display texttracks</p>",kind:"function",name:"clearDisplay",longname:"clearDisplay",scope:"global"},{comment:"/**\n* Update display texttracks\n*\n* @method updateDisplay\n*/",meta:{range:[804,864],filename:"text-track-display.js",lineno:131,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Update display texttracks</p>",kind:"function",name:"updateDisplay",longname:"updateDisplay",scope:"global"},{comment:"/**\n* Add texttrack to texttrack list\n*\n* @param {TextTrackObject} track Texttrack object to be added to list\n* @method updateForTrack\n*/",meta:{range:[970,1107],filename:"text-track-display.js",lineno:171,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Add texttrack to texttrack list</p>",params:[{type:{names:["TextTrackObject"]},description:"<p>Texttrack object to be added to list</p>",name:"track"}],kind:"function",name:"updateForTrack",longname:"updateForTrack",scope:"global"},{comment:"/**\n* Add cue HTML to display\n*\n* @param {Number} color Hex number for color, like #f0e\n* @param {Number} opacity Value for opacity,0.0 - 1.0\n* @return {RGBAColor} In the form 'rgba(255, 0, 0, 0.3)'\n* @method constructColor\n*/",meta:{range:[1345,1571],filename:"text-track-display.js",lineno:256,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Add cue HTML to display</p>",params:[{type:{names:["Number"]},description:"<p>Hex number for color, like #f0e</p>",name:"color"},{type:{names:["Number"]},description:"<p>Value for opacity,0.0 - 1.0</p>",name:"opacity"}],returns:[{type:{names:["RGBAColor"]},description:"<p>In the form 'rgba(255, 0, 0, 0.3)'</p>"}],kind:"function",name:"constructColor",longname:"constructColor",scope:"global"},{comment:"/**\n* Try to update style\n* Some style changes will throw an error, particularly in IE8. Those should be noops.\n*\n* @param {Element} el The element to be styles\n* @param {CSSProperty} style The CSS property to be styled\n* @param {CSSStyle} rule The actual style to be applied to the property\n* @method tryUpdateStyle\n*/",meta:{range:[1599,1918],filename:"text-track-display.js",lineno:273,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Try to update style\nSome style changes will throw an error, particularly in IE8. Those should be noops.</p>",params:[{type:{names:["Element"]},description:"<p>The element to be styles</p>",name:"el"},{type:{names:["CSSProperty"]},description:"<p>The CSS property to be styled</p>",name:"style"},{type:{names:["CSSStyle"]},description:"<p>The actual style to be applied to the property</p>",name:"rule"}],kind:"function",name:"tryUpdateStyle",longname:"tryUpdateStyle",scope:"global"},{comment:"/**\n* Utilities for capturing text track state and re-creating tracks\n* based on a capture.\n*\n* @file text-track-list-converter.js\n*/",meta:{range:[0,133],filename:"text-track-list-converter.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>text-track-list-converter.js</p>",name:"tracks/text-track-list-converter.js",kind:"file",preserveName:!0,longname:"tracks/text-track-list-converter.js",scope:"global"},{comment:"/**\n* Examine a tech and return a JSON-compatible javascript array that\n* represents the state of all text tracks currently configured. The\n* return array is compatible with `jsonToTextTracks`.\n* @param tech {tech} the tech object to query\n* @return {Array} a serializable javascript representation of the\n* @function textTracksToJson\n*/",meta:{range:[467,804],filename:"text-track-list-converter.js",lineno:38,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Examine a tech and return a JSON-compatible javascript array that\nrepresents the state of all text tracks currently configured. The\nreturn array is compatible with <code>jsonToTextTracks</code>.</p>",params:[{type:{names:["tech"]},description:"<p>the tech object to query</p>",name:"tech"}],returns:[{type:{names:["Array"]},description:"<p>a serializable javascript representation of the</p>"}],kind:"function",name:"textTracksToJson",longname:"textTracksToJson",scope:"global"},{comment:"/**\n* Creates a set of remote text tracks on a tech based on an array of\n* javascript text track representations.\n* @param json {Array} an array of text track representation objects,\n* like those that would be produced by `textTracksToJson`\n* @param tech {tech} the tech to create text tracks on\n* @function jsonToTextTracks\n*/",meta:{range:[859,1186],filename:"text-track-list-converter.js",lineno:64,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Creates a set of remote text tracks on a tech based on an array of\njavascript text track representations.</p>",params:[{type:{names:["Array"]},description:"<p>an array of text track representation objects,\nlike those that would be produced by <code>textTracksToJson</code></p>",name:"json"},{type:{names:["tech"]},description:"<p>the tech to create text tracks on</p>",name:"tech"}],kind:"function",name:"jsonToTextTracks",longname:"jsonToTextTracks",scope:"global"},{comment:"/**\n* @file text-track-list.js\n*/",meta:{range:[0,33],filename:"text-track-list.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/text-track-list.js",kind:"file",description:"<p>text-track-list.js</p>",preserveName:!0,longname:"tracks/text-track-list.js",scope:"global"},{comment:"/**\n* A list of possible text tracks. All functionality is in the\n* base class TrackList. The spec for TextTrackList is located at:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist\n*\n* interface TextTrackList : EventTarget {\n* readonly attribute unsigned long length;\n* getter TextTrack (unsigned long index);\n* TextTrack? getTrackById(DOMString id);\n*\n* attribute EventHandler onchange;\n* attribute EventHandler onaddtrack;\n* attribute EventHandler onremovetrack;\n* };\n*\n* @param {TextTrack[]} tracks A list of tracks to initialize the list with\n* @extends TrackList\n* @class TextTrackList\n*/",meta:{range:[49,688],filename:"text-track-list.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A list of possible text tracks. All functionality is in the\nbase class TrackList. The spec for TextTrackList is located at:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist\n\ninterface TextTrackList : EventTarget {\n readonly attribute unsigned long length;\n getter TextTrack (unsigned long index);\n TextTrack? getTrackById(DOMString id);\n\n attribute EventHandler onchange;\n attribute EventHandler onaddtrack;\n attribute EventHandler onremovetrack;\n};",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist\n\ninterface TextTrackList : EventTarget {\n readonly attribute unsigned long length;\n getter TextTrack (unsigned long index);\n TextTrack? getTrackById(DOMString id);\n\n attribute EventHandler onchange;\n attribute EventHandler onaddtrack;\n attribute EventHandler onremovetrack;\n};"}],params:[{type:{names:["Array.<TextTrack>"]},description:"<p>A list of tracks to initialize the list with</p>",name:"tracks"}],augments:["TrackList"],kind:"class",name:"TextTrackList",longname:"TextTrackList",scope:"global"},{comment:"/**\n* Remove TextTrack from TextTrackList\n* NOTE: Be mindful of what is passed in as it may be a HTMLTrackElement\n*\n* @param {TextTrack} rtrack\n* @method removeTrack_\n* @private\n*/",meta:{range:[782,962],filename:"text-track-list.js",lineno:59,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Remove TextTrack from TextTrackList\nNOTE: Be mindful of what is passed in as it may be a HTMLTrackElement</p>",params:[{type:{names:["TextTrack"]},name:"rtrack"}],kind:"function",name:"removeTrack_",access:"private",longname:"removeTrack_",scope:"global"},{comment:"/**\n* Get a TextTrack from TextTrackList by a tracks id\n*\n* @param {String} id - the id of the track to get\n* @method getTrackById\n* @return {TextTrack}\n* @private\n*/",meta:{range:[1041,1207],filename:"text-track-list.js",lineno:93,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Get a TextTrack from TextTrackList by a tracks id</p>",params:[{type:{names:["String"]},description:"<p>the id of the track to get</p>",name:"id"}],kind:"function",name:"getTrackById",returns:[{type:{names:["TextTrack"]}}],access:"private",longname:"getTrackById",scope:"global"},{comment:"/**\n* @file text-track-settings.js\n*/",meta:{range:[0,37],filename:"text-track-settings.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/text-track-settings.js",kind:"file",description:"<p>text-track-settings.js</p>",preserveName:!0,longname:"tracks/text-track-settings.js",scope:"global"},{comment:"/**\n* Manipulate settings of texttracks\n*\n* @param {Object} player Main Player\n* @param {Object=} options Object of option names and values\n* @extends Component\n* @class TextTrackSettings\n*/",meta:{range:[59,250],filename:"text-track-settings.js",lineno:11,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Manipulate settings of texttracks</p>",params:[{type:{names:["Object"]},description:"<p>Main Player</p>",name:"player"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],augments:["Component"],kind:"class",name:"TextTrackSettings",longname:"TextTrackSettings",scope:"global"},{comment:"/**\n* Create the component's DOM element\n*\n* @return {Element}\n* @method createEl\n*/",meta:{range:[383,467],filename:"text-track-settings.js",lineno:63,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Create the component's DOM element</p>",returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Get texttrack settings\n* Settings are\n* .vjs-edge-style\n* .vjs-font-family\n* .vjs-fg-color\n* .vjs-text-opacity\n* .vjs-bg-color\n* .vjs-bg-opacity\n* .window-color\n* .vjs-window-opacity\n*\n* @return {Object}\n* @method getValues\n*/",meta:{range:[516,748],filename:"text-track-settings.js",lineno:85,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Get texttrack settings\nSettings are\n.vjs-edge-style\n.vjs-font-family\n.vjs-fg-color\n.vjs-text-opacity\n.vjs-bg-color\n.vjs-bg-opacity\n.window-color\n.vjs-window-opacity</p>",returns:[{type:{names:["Object"]}}],kind:"function",name:"getValues",longname:"getValues",scope:"global"},{comment:"/**\n* Set texttrack settings\n* Settings are\n* .vjs-edge-style\n* .vjs-font-family\n* .vjs-fg-color\n* .vjs-text-opacity\n* .vjs-bg-color\n* .vjs-bg-opacity\n* .window-color\n* .vjs-window-opacity\n*\n* @param {Object} values Object with texttrack setting values\n* @method setValues\n*/",meta:{range:[839,1114],filename:"text-track-settings.js",lineno:130,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Set texttrack settings\nSettings are\n.vjs-edge-style\n.vjs-font-family\n.vjs-fg-color\n.vjs-text-opacity\n.vjs-bg-color\n.vjs-bg-opacity\n.window-color\n.vjs-window-opacity</p>",params:[{type:{names:["Object"]},description:"<p>Object with texttrack setting values</p>",name:"values"}],kind:"function",name:"setValues",longname:"setValues",scope:"global"},{comment:"/**\n* Restore texttrack settings\n*\n* @method restoreSettings\n*/",meta:{range:[1172,1235],filename:"text-track-settings.js",lineno:164,path:"/Users/mboles/git/docs/video.js/src/js/tracks", +code:{}},description:"<p>Restore texttrack settings</p>",kind:"function",name:"restoreSettings",longname:"restoreSettings",scope:"global"},{comment:"/**\n* Save texttrack settings to local storage\n*\n* @method saveSettings\n*/",meta:{range:[1290,1364],filename:"text-track-settings.js",lineno:187,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Save texttrack settings to local storage</p>",kind:"function",name:"saveSettings",longname:"saveSettings",scope:"global"},{comment:"/**\n* Update display of texttrack settings\n*\n* @method updateDisplay\n*/",meta:{range:[1416,1487],filename:"text-track-settings.js",lineno:209,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Update display of texttrack settings</p>",kind:"function",name:"updateDisplay",longname:"updateDisplay",scope:"global"},{comment:"/**\n* @file text-track.js\n*/",meta:{range:[0,28],filename:"text-track.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/text-track.js",kind:"file",description:"<p>text-track.js</p>",preserveName:!0,longname:"tracks/text-track.js",scope:"global"},{comment:"/**\n* A single text track as defined in:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#texttrack\n*\n* interface TextTrack : EventTarget {\n* readonly attribute TextTrackKind kind;\n* readonly attribute DOMString label;\n* readonly attribute DOMString language;\n*\n* readonly attribute DOMString id;\n* readonly attribute DOMString inBandMetadataTrackDispatchType;\n*\n* attribute TextTrackMode mode;\n*\n* readonly attribute TextTrackCueList? cues;\n* readonly attribute TextTrackCueList? activeCues;\n*\n* void addCue(TextTrackCue cue);\n* void removeCue(TextTrackCue cue);\n*\n* attribute EventHandler oncuechange;\n* };\n*\n* @param {Object=} options Object of option names and values\n* @extends Track\n* @class TextTrack\n*/",meta:{range:[568,1320],filename:"text-track.js",lineno:99,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A single text track as defined in:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#texttrack\n\ninterface TextTrack : EventTarget {\n readonly attribute TextTrackKind kind;\n readonly attribute DOMString label;\n readonly attribute DOMString language;\n\n readonly attribute DOMString id;\n readonly attribute DOMString inBandMetadataTrackDispatchType;\n\n attribute TextTrackMode mode;\n\n readonly attribute TextTrackCueList? cues;\n readonly attribute TextTrackCueList? activeCues;\n\n void addCue(TextTrackCue cue);\n void removeCue(TextTrackCue cue);\n\n attribute EventHandler oncuechange;\n};",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#texttrack\n\ninterface TextTrack : EventTarget {\n readonly attribute TextTrackKind kind;\n readonly attribute DOMString label;\n readonly attribute DOMString language;\n\n readonly attribute DOMString id;\n readonly attribute DOMString inBandMetadataTrackDispatchType;\n\n attribute TextTrackMode mode;\n\n readonly attribute TextTrackCueList? cues;\n readonly attribute TextTrackCueList? activeCues;\n\n void addCue(TextTrackCue cue);\n void removeCue(TextTrackCue cue);\n\n attribute EventHandler oncuechange;\n};"}],params:[{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],augments:["Track"],kind:"class",name:"TextTrack",longname:"TextTrack",scope:"global"},{comment:"/**\n* add a cue to the internal list of cues\n*\n* @param {Object} cue the cue to add to our internal list\n* @method addCue\n*/",meta:{range:[1732,1856],filename:"text-track.js",lineno:263,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>add a cue to the internal list of cues</p>",params:[{type:{names:["Object"]},description:"<p>the cue to add to our internal list</p>",name:"cue"}],kind:"function",name:"addCue",longname:"addCue",scope:"global"},{comment:"/**\n* remvoe a cue from our internal list\n*\n* @param {Object} removeCue the cue to remove from our internal list\n* @method removeCue\n*/",meta:{range:[1902,2037],filename:"text-track.js",lineno:284,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>remvoe a cue from our internal list</p>",params:[{type:{names:["Object"]},description:"<p>the cue to remove from our internal list</p>",name:"removeCue"}],kind:"function",name:"removeCue",longname:"removeCue",scope:"global"},{comment:"/**\n* @file track-kinds.js\n*/",meta:{range:[0,29],filename:"track-enums.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/track-enums.js",kind:"file",description:"<p>track-kinds.js</p>",preserveName:!0,longname:"tracks/track-enums.js",scope:"global"},{comment:"/**\n* @file track-list.js\n*/",meta:{range:[0,28],filename:"track-list.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/track-list.js",kind:"file",description:"<p>track-list.js</p>",preserveName:!0,longname:"tracks/track-list.js",scope:"global"},{comment:"/**\n* Common functionaliy between Text, Audio, and Video TrackLists\n* Interfaces defined in the following spec:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html\n*\n* @param {Track[]} tracks A list of tracks to initialize the list with\n* @param {Object} list the child object with inheritance done manually for ie8\n* @extends EventTarget\n* @class TrackList\n*/",meta:{range:[44,421],filename:"track-list.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Common functionaliy between Text, Audio, and Video TrackLists\nInterfaces defined in the following spec:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html",value:"https://html.spec.whatwg.org/multipage/embedded-content.html"}],params:[{type:{names:["Array.<Track>"]},description:"<p>A list of tracks to initialize the list with</p>",name:"tracks"},{type:{names:["Object"]},description:"<p>the child object with inheritance done manually for ie8</p>",name:"list"}],augments:["EventTarget"],kind:"class",name:"TrackList",longname:"TrackList",scope:"global"},{comment:"/**\n* Add a Track from TrackList\n*\n* @param {Mixed} track\n* @method addTrack_\n* @private\n*/",meta:{range:[509,600],filename:"track-list.js",lineno:48,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Add a Track from TrackList</p>",params:[{type:{names:["Mixed"]},name:"track"}],kind:"function",name:"addTrack_",access:"private",longname:"addTrack_",scope:"global"},{comment:"/**\n* Remove a Track from TrackList\n*\n* @param {Track} rtrack track to be removed\n* @method removeTrack_\n* @private\n*/",meta:{range:[664,782],filename:"track-list.js",lineno:76,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Remove a Track from TrackList</p>",params:[{type:{names:["Track"]},description:"<p>track to be removed</p>",name:"rtrack"}],kind:"function",name:"removeTrack_",access:"private",longname:"removeTrack_",scope:"global"},{comment:"/**\n* Get a Track from the TrackList by a tracks id\n*\n* @param {String} id - the id of the track to get\n* @method getTrackById\n* @return {Track}\n* @private\n*/",meta:{range:[861,1019],filename:"track-list.js",lineno:109,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>Get a Track from the TrackList by a tracks id</p>",params:[{type:{names:["String"]},description:"<p>the id of the track to get</p>",name:"id"}],kind:"function",name:"getTrackById",returns:[{type:{names:["Track"]}}],access:"private",longname:"getTrackById",scope:"global"},{comment:"/**\n* @file track.js\n*/",meta:{range:[0,23],filename:"track.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/track.js",kind:"file",description:"<p>track.js</p>",preserveName:!0,longname:"tracks/track.js",scope:"global"},{comment:"/**\n* setup the common parts of an audio, video, or text track\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html\n*\n* @param {String} type The type of track we are dealing with audio|video|text\n* @param {Object=} options Object of option names and values\n* @extends EventTarget\n* @class Track\n*/",meta:{range:[39,352],filename:"track.js",lineno:9,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>setup the common parts of an audio, video, or text track</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html",value:"https://html.spec.whatwg.org/multipage/embedded-content.html"}],params:[{type:{names:["String"]},description:"<p>The type of track we are dealing with audio|video|text</p>",name:"type"},{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],augments:["EventTarget"],kind:"class",name:"Track",longname:"Track",scope:"global"},{comment:"/**\n* @file video-track-list.js\n*/",meta:{range:[0,34],filename:"video-track-list.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},name:"tracks/video-track-list.js",kind:"file",description:"<p>video-track-list.js</p>",preserveName:!0,longname:"tracks/video-track-list.js",scope:"global"},{comment:"/**\n* A list of possiblee video tracks. Most functionality is in the\n* base class Tracklist and the spec for VideoTrackList is located at:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist\n*\n* interface VideoTrackList : EventTarget {\n* readonly attribute unsigned long length;\n* getter VideoTrack (unsigned long index);\n* VideoTrack? getTrackById(DOMString id);\n* readonly attribute long selectedIndex;\n*\n* attribute EventHandler onchange;\n* attribute EventHandler onaddtrack;\n* attribute EventHandler onremovetrack;\n* };\n*\n* @param {VideoTrack[]} tracks a list of video tracks to instantiate the list with\n# @extends TrackList\n* @class VideoTrackList\n*/",meta:{range:[243,945],filename:"video-track-list.js",lineno:24,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A list of possiblee video tracks. Most functionality is in the\nbase class Tracklist and the spec for VideoTrackList is located at:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist\n\ninterface VideoTrackList : EventTarget {\n readonly attribute unsigned long length;\n getter VideoTrack (unsigned long index);\n VideoTrack? getTrackById(DOMString id);\n readonly attribute long selectedIndex;\n\n attribute EventHandler onchange;\n attribute EventHandler onaddtrack;\n attribute EventHandler onremovetrack;\n};",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist\n\ninterface VideoTrackList : EventTarget {\n readonly attribute unsigned long length;\n getter VideoTrack (unsigned long index);\n VideoTrack? getTrackById(DOMString id);\n readonly attribute long selectedIndex;\n\n attribute EventHandler onchange;\n attribute EventHandler onaddtrack;\n attribute EventHandler onremovetrack;\n};"}],params:[{type:{names:["Array.<VideoTrack>"]},description:"<p>a list of video tracks to instantiate the list with</p>\n<h1>@extends TrackList</h1>",name:"tracks"}],kind:"class",name:"VideoTrackList",longname:"VideoTrackList",scope:"global"},{comment:"/**\n* A single video text track as defined in:\n* @link https://html.spec.whatwg.org/multipage/embedded-content.html#videotrack\n*\n* interface VideoTrack {\n* readonly attribute DOMString id;\n* readonly attribute DOMString kind;\n* readonly attribute DOMString label;\n* readonly attribute DOMString language;\n* attribute boolean selected;\n* };\n*\n* @param {Object=} options Object of option names and values\n* @class VideoTrack\n*/",meta:{range:[15,450],filename:"video-track.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/tracks",code:{}},description:"<p>A single video text track as defined in:</p>",tags:[{originalTitle:"link",title:"link",text:"https://html.spec.whatwg.org/multipage/embedded-content.html#videotrack\n\ninterface VideoTrack {\n readonly attribute DOMString id;\n readonly attribute DOMString kind;\n readonly attribute DOMString label;\n readonly attribute DOMString language;\n attribute boolean selected;\n};",value:"https://html.spec.whatwg.org/multipage/embedded-content.html#videotrack\n\ninterface VideoTrack {\n readonly attribute DOMString id;\n readonly attribute DOMString kind;\n readonly attribute DOMString label;\n readonly attribute DOMString language;\n attribute boolean selected;\n};"}],params:[{type:{names:["Object"]},optional:!0,description:"<p>Object of option names and values</p>",name:"options"}],kind:"class",name:"VideoTrack",longname:"VideoTrack",scope:"global"},{comment:"/**\n* @file browser.js\n*/",meta:{range:[0,25],filename:"browser.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/browser.js",kind:"file",description:"<p>browser.js</p>",preserveName:!0,longname:"utils/browser.js",scope:"global"},{comment:"/**\n* @file buffer.js\n*/",meta:{range:[0,24],filename:"buffer.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/buffer.js",kind:"file",description:"<p>buffer.js</p>",preserveName:!0,longname:"utils/buffer.js",scope:"global"},{comment:"/**\n* Compute how much your video has been buffered\n*\n* @param {Object} Buffered object\n* @param {Number} Total duration\n* @return {Number} Percent buffered of the total duration\n* @private\n* @function bufferedPercent\n*/",meta:{range:[31,253],filename:"buffer.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Compute how much your video has been buffered</p>",params:[{type:{names:["Object"]},description:"<p>object</p>",name:"Buffered"},{type:{names:["Number"]},description:"<p>duration</p>",name:"Total"}],returns:[{type:{names:["Number"]},description:"<p>Percent buffered of the total duration</p>"}],access:"private",kind:"function",name:"bufferedPercent",longname:"bufferedPercent",scope:"global"},{comment:"/**\n* @file dom.js\n*/",meta:{range:[0,21],filename:"dom.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/dom.js",kind:"file",description:"<p>dom.js</p>",preserveName:!0,longname:"utils/dom.js",scope:"global"},{comment:"/**\n* Creates functions to query the DOM using a given method.\n*\n* @function createQuerier\n* @private\n* @param {String} method\n* @return {Function}\n*/",meta:{range:[508,659],filename:"dom.js",lineno:43,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Creates functions to query the DOM using a given method.</p>",kind:"function",name:"createQuerier",access:"private",params:[{type:{names:["String"]},name:"method"}],returns:[{type:{names:["function"]}}],longname:"createQuerier",scope:"global"},{comment:"/**\n* Shorthand for document.getElementById()\n* Also allows for CSS (jQuery) ID syntax. But nothing other than IDs.\n*\n* @param {String} id Element ID\n* @return {Element} Element with supplied ID\n* @function getEl\n*/",meta:{range:[696,916],filename:"dom.js",lineno:63,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Shorthand for document.getElementById()\nAlso allows for CSS (jQuery) ID syntax. But nothing other than IDs.</p>",params:[{type:{names:["String"]},description:"<p>Element ID</p>",name:"id"}],returns:[{type:{names:["Element"]},description:"<p>Element with supplied ID</p>"}],kind:"function",name:"getEl",longname:"getEl",scope:"global"},{comment:"/**\n* Creates an element and applies properties.\n*\n* @param {String} [tagName='div'] Name of tag to be created.\n* @param {Object} [properties={}] Element properties to be applied.\n* @param {Object} [attributes={}] Element attributes to be applied.\n* @return {Element}\n* @function createEl\n*/",meta:{range:[941,1235],filename:"dom.js",lineno:79,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Creates an element and applies properties.</p>",params:[{type:{names:["String"]},optional:!0,defaultvalue:"'div'",description:"<p>Name of tag to be created.</p>",name:"tagName"},{type:{names:["Object"]},optional:!0,defaultvalue:"{}",description:"<p>Element properties to be applied.</p>",name:"properties"},{type:{names:["Object"]},optional:!0,defaultvalue:"{}",description:"<p>Element attributes to be applied.</p>",name:"attributes"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"createEl",longname:"createEl",scope:"global"},{comment:"/**\n* Injects text into an element, replacing any existing contents entirely.\n*\n* @param {Element} el\n* @param {String} text\n* @return {Element}\n* @function textContent\n*/",meta:{range:[1317,1490],filename:"dom.js",lineno:115,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Injects text into an element, replacing any existing contents entirely.</p>",params:[{type:{names:["Element"]},name:"el"},{type:{names:["String"]},name:"text"}],returns:[{type:{names:["Element"]}}],kind:"function",name:"textContent",longname:"textContent",scope:"global"},{comment:"/**\n* Insert an element as the first child node of another\n*\n* @param {Element} child Element to insert\n* @param {Element} parent Element to insert child into\n* @private\n* @function insertElFirst\n*/",meta:{range:[1515,1717],filename:"dom.js",lineno:131,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Insert an element as the first child node of another</p>",params:[{type:{names:["Element"]},description:"<p>Element to insert</p>",name:"child"},{type:{names:["Element"]},description:"<p>Element to insert child into</p>",name:"parent"}],access:"private",kind:"function",name:"insertElFirst",longname:"insertElFirst",scope:"global"},{comment:"/**\n* Returns the cache object where data for an element is stored\n*\n* @param {Element} el Element to store data for.\n* @return {Object}\n* @function getElData\n*/",meta:{range:[2114,2276],filename:"dom.js",lineno:166,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Returns the cache object where data for an element is stored</p>",params:[{type:{names:["Element"]},description:"<p>Element to store data for.</p>",name:"el"}],returns:[{type:{names:["Object"]}}],kind:"function",name:"getElData",longname:"getElData",scope:"global"},{comment:"/**\n* Returns whether or not an element has cached data\n*\n* @param {Element} el A dom element\n* @return {Boolean}\n* @private\n* @function hasElData\n*/",meta:{range:[2319,2469],filename:"dom.js",lineno:187,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Returns whether or not an element has cached data</p>",params:[{type:{names:["Element"]},description:"<p>A dom element</p>",name:"el"}],returns:[{type:{names:["Boolean"]}}],access:"private",kind:"function",name:"hasElData",longname:"hasElData",scope:"global"},{comment:"/**\n* Delete data for the element from the cache and the guid attr from getElementById\n*\n* @param {Element} el Remove data for an element\n* @private\n* @function removeElData\n*/",meta:{range:[2500,2677],filename:"dom.js",lineno:205,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Delete data for the element from the cache and the guid attr from getElementById</p>",params:[{type:{names:["Element"]},description:"<p>Remove data for an element</p>",name:"el"}],access:"private",kind:"function",name:"removeElData",longname:"removeElData",scope:"global"},{comment:"/**\n* Check if an element has a CSS class\n*\n* @function hasElClass\n* @param {Element} element Element to check\n* @param {String} classToCheck Classname to check\n*/",meta:{range:[2747,2910],filename:"dom.js",lineno:235,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Check if an element has a CSS class</p>",kind:"function",name:"hasElClass",params:[{type:{names:["Element"]},description:"<p>Element to check</p>",name:"element"},{type:{names:["String"]},description:"<p>Classname to check</p>",name:"classToCheck"}],longname:"hasElClass",scope:"global"},{comment:"/**\n* Add a CSS class name to an element\n*\n* @function addElClass\n* @param {Element} element Element to add class name to\n* @param {String} classToAdd Classname to add\n*/",meta:{range:[2938,3111],filename:"dom.js",lineno:251,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Add a CSS class name to an element</p>",kind:"function",name:"addElClass",params:[{type:{names:["Element"]},description:"<p>Element to add class name to</p>",name:"element"},{type:{names:["String"]},description:"<p>Classname to add</p>",name:"classToAdd"}],longname:"addElClass",scope:"global"},{comment:"/**\n* Remove a CSS class name from an element\n*\n* @function removeElClass\n* @param {Element} element Element to remove from class name\n* @param {String} classToRemove Classname to remove\n*/",meta:{range:[3151,3343],filename:"dom.js",lineno:271,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Remove a CSS class name from an element</p>",kind:"function",name:"removeElClass",params:[{type:{names:["Element"]},description:"<p>Element to remove from class name</p>",name:"element"},{type:{names:["String"]},description:"<p>Classname to remove</p>",name:"classToRemove"}],longname:"removeElClass",scope:"global"},{comment:"/**\n* Adds or removes a CSS class name on an element depending on an optional\n* condition or the presence/absence of the class name.\n*\n* @function toggleElClass\n* @param {Element} element\n* @param {String} classToToggle\n* @param {Boolean|Function} [predicate]\n* Can be a function that returns a Boolean. If `true`, the class\n* will be added; if `false`, the class will be removed. If not\n* given, the class will be added if not present and vice versa.\n*/",meta:{range:[3383,3876],filename:"dom.js",lineno:291,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Adds or removes a CSS class name on an element depending on an optional\ncondition or the presence/absence of the class name.</p>",kind:"function",name:"toggleElClass",params:[{type:{names:["Element"]},name:"element"},{type:{names:["String"]},name:"classToToggle"},{type:{names:["Boolean","function"]},optional:!0,description:"<p>Can be a function that returns a Boolean. If <code>true</code>, the class\n will be added; if <code>false</code>, the class will be removed. If not\n given, the class will be added if not present and vice versa.</p>",name:"predicate"}],longname:"toggleElClass",scope:"global"},{comment:"/**\n* Apply attributes to an HTML element.\n*\n* @param {Element} el Target element.\n* @param {Object=} attributes Element attributes to be applied.\n* @private\n* @function setElAttributes\n*/",meta:{range:[3967,4165],filename:"dom.js",lineno:333,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Apply attributes to an HTML element.</p>",params:[{type:{names:["Element"]},description:"<p>Target element.</p>",name:"el"},{type:{names:["Object"]},optional:!0,description:"<p>Element attributes to be applied.</p>",name:"attributes"}],access:"private",kind:"function",name:"setElAttributes",longname:"setElAttributes",scope:"global"},{comment:"/**\n* Get an element's attribute values, as defined on the HTML tag\n* Attributes are not the same as properties. They're defined on the tag\n* or with setAttribute (which shouldn't be used with HTML)\n* This will return true or false for boolean attributes.\n*\n* @param {Element} tag Element from which to get tag attributes\n* @return {Object}\n* @private\n* @function getElAttributes\n*/",meta:{range:[4202,4585],filename:"dom.js",lineno:353,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Get an element's attribute values, as defined on the HTML tag\nAttributes are not the same as properties. They're defined on the tag\nor with setAttribute (which shouldn't be used with HTML)\nThis will return true or false for boolean attributes.</p>",params:[{type:{names:["Element"]},description:"<p>Element from which to get tag attributes</p>",name:"tag"}],returns:[{type:{names:["Object"]}}],access:"private",kind:"function",name:"getElAttributes",longname:"getElAttributes",scope:"global"},{comment:"/**\n* Attempt to block the ability to select text while dragging controls\n*\n* @return {Boolean}\n* @function blockTextSelection\n*/",meta:{range:[4685,4814],filename:"dom.js",lineno:397,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Attempt to block the ability to select text while dragging controls</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"blockTextSelection",longname:"blockTextSelection",scope:"global"},{comment:"/**\n* Turn off text selection blocking\n*\n* @return {Boolean}\n* @function unblockTextSelection\n*/",meta:{range:[4836,4932],filename:"dom.js",lineno:410,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Turn off text selection blocking</p>",returns:[{type:{names:["Boolean"]}}],kind:"function",name:"unblockTextSelection",longname:"unblockTextSelection",scope:"global"},{comment:"/**\n* Offset Left\n* getBoundingClientRect technique from\n* John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/\n*\n* @function findElPosition\n* @param {Element} el Element from which to get offset\n* @return {Object}\n*/",meta:{range:[4951,5182],filename:"dom.js",lineno:422,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Offset Left\ngetBoundingClientRect technique from\nJohn Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/</p>",kind:"function",name:"findElPosition",params:[{type:{names:["Element"]},description:"<p>Element from which to get offset</p>",name:"el"}],returns:[{type:{names:["Object"]}}],longname:"findElPosition",scope:"global"},{comment:"/**\n* Get pointer position in element\n* Returns an object with x and y coordinates.\n* The base on the coordinates are the bottom left of the element.\n*\n* @function getPointerPosition\n* @param {Element} el Element on which to get the pointer position on\n* @param {Event} event Event object\n* @return {Object} This object will have x and y coordinates corresponding to the mouse position\n*/",meta:{range:[5279,5667],filename:"dom.js",lineno:463,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Get pointer position in element\nReturns an object with x and y coordinates.\nThe base on the coordinates are the bottom left of the element.</p>",kind:"function",name:"getPointerPosition",params:[{type:{names:["Element"]},description:"<p>Element on which to get the pointer position on</p>",name:"el"},{type:{names:["Event"]},description:"<p>Event object</p>",name:"event"}],returns:[{type:{names:["Object"]},description:"<p>This object will have x and y coordinates corresponding to the mouse position</p>"}],longname:"getPointerPosition",scope:"global"},{comment:"/**\n* Determines, via duck typing, whether or not a value is a DOM element.\n*\n* @function isEl\n* @param {Mixed} value\n* @return {Boolean}\n*/",meta:{range:[5734,5879],filename:"dom.js",lineno:495,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Determines, via duck typing, whether or not a value is a DOM element.</p>",kind:"function",name:"isEl",params:[{type:{names:["Mixed"]},name:"value"}],returns:[{type:{names:["Boolean"]}}],longname:"isEl",scope:"global"},{comment:"/**\n* Empties the contents of an element.\n*\n* @function emptyEl\n* @param {Element} el\n* @return {Element}\n*/",meta:{range:[6027,6140],filename:"dom.js",lineno:516,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Empties the contents of an element.</p>",kind:"function",name:"emptyEl",params:[{type:{names:["Element"]},name:"el"}],returns:[{type:{names:["Element"]}}],longname:"emptyEl",scope:"global"},{comment:"/**\n* Normalizes content for eventual insertion into the DOM.\n*\n* This allows a wide range of content definition methods, but protects\n* from falling into the trap of simply writing to `innerHTML`, which is\n* an XSS concern.\n*\n* The content for an element can be passed in multiple types and\n* combinations, whose behavior is as follows:\n*\n* - String\n* Normalized into a text node.\n*\n* - Element, TextNode\n* Passed through.\n*\n* - Array\n* A one-dimensional array of strings, elements, nodes, or functions (which\n* return single strings, elements, or nodes).\n*\n* - Function\n* If the sole argument, is expected to produce a string, element,\n* node, or array.\n*\n* @function normalizeContent\n* @param {String|Element|TextNode|Array|Function} content\n* @return {Array}\n*/",meta:{range:[6162,6944],filename:"dom.js",lineno:530,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Normalizes content for eventual insertion into the DOM.</p>\n<p>This allows a wide range of content definition methods, but protects\nfrom falling into the trap of simply writing to <code>innerHTML</code>, which is\nan XSS concern.</p>\n<p>The content for an element can be passed in multiple types and\ncombinations, whose behavior is as follows:</p>\n<ul>\n<li><p>String\nNormalized into a text node.</p>\n</li>\n<li><p>Element, TextNode\nPassed through.</p>\n</li>\n<li><p>Array\nA one-dimensional array of strings, elements, nodes, or functions (which\nreturn single strings, elements, or nodes).</p>\n</li>\n<li><p>Function\nIf the sole argument, is expected to produce a string, element,\nnode, or array.</p>\n</li>\n</ul>",kind:"function",name:"normalizeContent",params:[{type:{names:["String","Element","TextNode","Array","function"]},name:"content"}],returns:[{type:{names:["Array"]}}],longname:"normalizeContent",scope:"global"},{comment:"/**\n* Normalizes and appends content to an element.\n*\n* @function appendContent\n* @param {Element} el\n* @param {String|Element|TextNode|Array|Function} content\n* See: `normalizeContent`\n* @return {Element}\n*/",meta:{range:[7029,7255],filename:"dom.js",lineno:586,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Normalizes and appends content to an element.</p>",kind:"function",name:"appendContent",params:[{type:{names:["Element"]},name:"el"},{type:{names:["String","Element","TextNode","Array","function"]},description:"<p>See: <code>normalizeContent</code></p>",name:"content"}],returns:[{type:{names:["Element"]}}],longname:"appendContent",scope:"global"},{comment:"/**\n* Normalizes and inserts content into an element; this is identical to\n* `appendContent()`, except it empties the element first.\n*\n* @function insertContent\n* @param {Element} el\n* @param {String|Element|TextNode|Array|Function} content\n* See: `normalizeContent`\n* @return {Element}\n*/",meta:{range:[7271,7578],filename:"dom.js",lineno:600,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Normalizes and inserts content into an element; this is identical to\n<code>appendContent()</code>, except it empties the element first.</p>",kind:"function",name:"insertContent",params:[{type:{names:["Element"]},name:"el"},{type:{names:["String","Element","TextNode","Array","function"]},description:"<p>See: <code>normalizeContent</code></p>",name:"content"}],returns:[{type:{names:["Element"]}}],longname:"insertContent",scope:"global"},{comment:"/**\n* Finds a single DOM element matching `selector` within the optional\n* `context` of another DOM element (defaulting to `document`).\n*\n* @function $\n* @param {String} selector\n* A valid CSS selector, which will be passed to `querySelector`.\n*\n* @param {Element|String} [context=document]\n* A DOM element within which to query. Can also be a selector\n* string in which case the first matching element will be used\n* as context. If missing (or no element matches selector), falls\n* back to `document`.\n*\n* @return {Element|null}\n*/", +meta:{range:[7591,8181],filename:"dom.js",lineno:614,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Finds a single DOM element matching <code>selector</code> within the optional\n<code>context</code> of another DOM element (defaulting to <code>document</code>).</p>",kind:"function",name:"$",params:[{type:{names:["String"]},description:"<p>A valid CSS selector, which will be passed to <code>querySelector</code>.</p>",name:"selector"},{type:{names:["Element","String"]},optional:!0,defaultvalue:"document",description:"<p>A DOM element within which to query. Can also be a selector\n string in which case the first matching element will be used\n as context. If missing (or no element matches selector), falls\n back to <code>document</code>.</p>",name:"context"}],returns:[{type:{names:["Element","null"]}}],longname:"$",scope:"global"},{comment:"/**\n* Finds a all DOM elements matching `selector` within the optional\n* `context` of another DOM element (defaulting to `document`).\n*\n* @function $$\n* @param {String} selector\n* A valid CSS selector, which will be passed to `querySelectorAll`.\n*\n* @param {Element|String} [context=document]\n* A DOM element within which to query. Can also be a selector\n* string in which case the first matching element will be used\n* as context. If missing (or no element matches selector), falls\n* back to `document`.\n*\n* @return {NodeList}\n*/",meta:{range:[8188,8776],filename:"dom.js",lineno:632,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Finds a all DOM elements matching <code>selector</code> within the optional\n<code>context</code> of another DOM element (defaulting to <code>document</code>).</p>",kind:"function",name:"$$",params:[{type:{names:["String"]},description:"<p>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</p>",name:"selector"},{type:{names:["Element","String"]},optional:!0,defaultvalue:"document",description:"<p>A DOM element within which to query. Can also be a selector\n string in which case the first matching element will be used\n as context. If missing (or no element matches selector), falls\n back to <code>document</code>.</p>",name:"context"}],returns:[{type:{names:["NodeList"]}}],longname:"$$",scope:"global"},{comment:"/**\n* @file events.js\n*\n* Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)\n* (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)\n* This should work very similarly to jQuery's events, however it's based off the book version which isn't as\n* robust as jquery's, so there's probably some differences.\n*/",meta:{range:[0,377],filename:"events.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/events.js",kind:"file",description:"<p>events.js</p>\n<p>Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)\n(Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)\nThis should work very similarly to jQuery's events, however it's based off the book version which isn't as\nrobust as jquery's, so there's probably some differences.</p>",preserveName:!0,longname:"utils/events.js",scope:"global"},{comment:"/**\n* Add an event listener to element\n* It stores the handler function in a separate cache object\n* and adds a generic handler to the element's event,\n* along with a unique id (guid) to the element.\n*\n* @param {Element|Object} elem Element or object to bind listeners to\n* @param {String|Array} type Type of event to bind to.\n* @param {Function} fn Event listener.\n* @method on\n*/",meta:{range:[399,789],filename:"events.js",lineno:16,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Add an event listener to element\nIt stores the handler function in a separate cache object\nand adds a generic handler to the element's event,\nalong with a unique id (guid) to the element.</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element or object to bind listeners to</p>",name:"elem"},{type:{names:["String","Array"]},description:"<p>Type of event to bind to.</p>",name:"type"},{type:{names:["function"]},description:"<p>Event listener.</p>",name:"fn"}],kind:"function",name:"on",longname:"on",scope:"global"},{comment:"/**\n* Removes event listeners from an element\n*\n* @param {Element|Object} elem Object to remove listeners from\n* @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.\n* @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.\n* @method off\n*/",meta:{range:[952,1300],filename:"events.js",lineno:81,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Removes event listeners from an element</p>",params:[{type:{names:["Element","Object"]},description:"<p>Object to remove listeners from</p>",name:"elem"},{type:{names:["String","Array"]},description:"<p>Type of listener to remove. Don't include to remove all events from element.</p>",name:"type"},{type:{names:["function"]},description:"<p>Specific listener to remove. Don't include to remove listeners for an event type.</p>",name:"fn"}],kind:"function",name:"off",longname:"off",scope:"global"},{comment:"/**\n* Trigger an event for an element\n*\n* @param {Element|Object} elem Element to trigger an event on\n* @param {Event|Object|String} event A string (the type) or an event object with a type attribute\n* @param {Object} [hash] data hash to pass along with the event\n* @return {Boolean=} Returned only if default was prevented\n* @method trigger\n*/",meta:{range:[1445,1798],filename:"events.js",lineno:137,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Trigger an event for an element</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element to trigger an event on</p>",name:"elem"},{type:{names:["Event","Object","String"]},description:"<p>A string (the type) or an event object with a type attribute</p>",name:"event"},{type:{names:["Object"]},optional:!0,description:"<p>data hash to pass along with the event</p>",name:"hash"}],returns:[{type:{names:["Boolean"]},optional:!0,description:"<p>Returned only if default was prevented</p>"}],kind:"function",name:"trigger",longname:"trigger",scope:"global"},{comment:"/**\n* Trigger a listener only once for an event\n*\n* @param {Element|Object} elem Element or object to\n* @param {String|Array} type Name/type of event\n* @param {Function} fn Event handler function\n* @method one\n*/",meta:{range:[1940,2159],filename:"events.js",lineno:193,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Trigger a listener only once for an event</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element or object to</p>",name:"elem"},{type:{names:["String","Array"]},description:"<p>Name/type of event</p>",name:"type"},{type:{names:["function"]},description:"<p>Event handler function</p>",name:"fn"}],kind:"function",name:"one",longname:"one",scope:"global"},{comment:"/**\n* Fix a native event to have standard property values\n*\n* @param {Object} event Event object to fix\n* @return {Object}\n* @private\n* @method fixEvent\n*/",meta:{range:[2199,2355],filename:"events.js",lineno:214,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Fix a native event to have standard property values</p>",params:[{type:{names:["Object"]},description:"<p>Event object to fix</p>",name:"event"}],returns:[{type:{names:["Object"]}}],access:"private",kind:"function",name:"fixEvent",longname:"fixEvent",scope:"global"},{comment:"/**\n* Clean up the listener cache and dispatchers\n*\n* @param {Element|Object} elem Element to clean up\n* @param {String} type Type of event to clean up\n* @private\n* @method _cleanUpEvents\n*/",meta:{range:[2680,2872],filename:"events.js",lineno:330,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Clean up the listener cache and dispatchers</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element to clean up</p>",name:"elem"},{type:{names:["String"]},description:"<p>Type of event to clean up</p>",name:"type"}],access:"private",kind:"function",name:"_cleanUpEvents",longname:"_cleanUpEvents",scope:"global"},{comment:"/**\n* Loops through an array of event types and calls the requested method for each type.\n*\n* @param {Function} fn The event method we want to use.\n* @param {Element|Object} elem Element or object to bind listeners to\n* @param {String} type Type of event to bind to.\n* @param {Function} callback Event listener.\n* @private\n* @function _handleMultipleEvents\n*/",meta:{range:[2963,3332],filename:"events.js",lineno:368,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Loops through an array of event types and calls the requested method for each type.</p>",params:[{type:{names:["function"]},description:"<p>The event method we want to use.</p>",name:"fn"},{type:{names:["Element","Object"]},description:"<p>Element or object to bind listeners to</p>",name:"elem"},{type:{names:["String"]},description:"<p>Type of event to bind to.</p>",name:"type"},{type:{names:["function"]},description:"<p>Event listener.</p>",name:"callback"}],access:"private",kind:"function",name:"_handleMultipleEvents",longname:"_handleMultipleEvents",scope:"global"},{comment:"/**\n* @file fn.js\n*/",meta:{range:[0,20],filename:"fn.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/fn.js",kind:"file",description:"<p>fn.js</p>",preserveName:!0,longname:"utils/fn.js",scope:"global"},{comment:"/**\n* Bind (a.k.a proxy or Context). A simple method for changing the context of a function\n* It also stores a unique id on the function so it can be easily removed from events\n*\n* @param {*} context The object to bind as scope\n* @param {Function} fn The function to be bound to a scope\n* @param {Number=} uid An optional unique ID for the function to be set\n* @return {Function}\n* @private\n* @method bind\n*/",meta:{range:[27,451],filename:"fn.js",lineno:6,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Bind (a.k.a proxy or Context). A simple method for changing the context of a function\nIt also stores a unique id on the function so it can be easily removed from events</p>",params:[{type:{names:["*"]},description:"<p>The object to bind as scope</p>",name:"context"},{type:{names:["function"]},description:"<p>The function to be bound to a scope</p>",name:"fn"},{type:{names:["Number"]},optional:!0,description:"<p>An optional unique ID for the function to be set</p>",name:"uid"}],returns:[{type:{names:["function"]}}],access:"private",kind:"function",name:"bind",longname:"bind",scope:"global"},{comment:"/**\n* @file format-time.js\n*\n* Format seconds as a time string, H:MM:SS or M:SS\n* Supplying a guide (in seconds) will force a number of leading zeros\n* to cover the length of the guide\n*\n* @param {Number} seconds Number of seconds to be turned into a string\n* @param {Number} guide Number (in seconds) to model the string after\n* @return {String} Time formatted as H:MM:SS or M:SS\n* @private\n* @function formatTime\n*/",meta:{range:[0,429],filename:"format-time.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"formatTime",kind:"function",description:"<p>format-time.js</p>\n<p>Format seconds as a time string, H:MM:SS or M:SS\nSupplying a guide (in seconds) will force a number of leading zeros\nto cover the length of the guide</p>",preserveName:!0,params:[{type:{names:["Number"]},description:"<p>Number of seconds to be turned into a string</p>",name:"seconds"},{type:{names:["Number"]},description:"<p>Number (in seconds) to model the string after</p>",name:"guide"}],returns:[{type:{names:["String"]},description:"<p>Time formatted as H:MM:SS or M:SS</p>"}],access:"private",longname:"formatTime",scope:"global"},{comment:"/**\n* @file guid.js\n*\n* Unique ID for an element or function\n* @type {Number}\n* @private\n*/",meta:{range:[0,91],filename:"guid.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/guid.js",kind:"file",description:"<p>guid.js</p>\n<p>Unique ID for an element or function</p>",preserveName:!0,type:{names:["Number"]},access:"private",longname:"utils/guid.js",scope:"global"},{comment:"/**\n* Get the next unique ID\n*\n* @return {String} \n* @function newGUID\n*/",meta:{range:[98,171],filename:"guid.js",lineno:10,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Get the next unique ID</p>",returns:[{type:{names:["String"]}}],kind:"function",name:"newGUID",longname:"newGUID",scope:"global"},{comment:"/**\n* @file log.js\n*/",meta:{range:[0,21],filename:"log.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/log.js",kind:"file",description:"<p>log.js</p>",preserveName:!0,longname:"utils/log.js",scope:"global"},{comment:"/**\n* Log plain debug messages\n*\n* @function log\n*/",meta:{range:[600,651],filename:"log.js",lineno:66,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Log plain debug messages</p>",kind:"function",name:"log",longname:"log",scope:"global"},{comment:"/**\n* Log error messages\n*\n* @method error\n*/",meta:{range:[728,773],filename:"log.js",lineno:82,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Log error messages</p>",kind:"function",name:"error",longname:"error",scope:"global"},{comment:"/**\n* Log warning messages\n*\n* @method warn\n*/",meta:{range:[780,826],filename:"log.js",lineno:89,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Log warning messages</p>",kind:"function",name:"warn",longname:"warn",scope:"global"},{comment:"/**\n* @file merge-options.js\n*/",meta:{range:[0,31],filename:"merge-options.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/merge-options.js",kind:"file",description:"<p>merge-options.js</p>",preserveName:!0,longname:"utils/merge-options.js",scope:"global"},{comment:"/**\n* Merge one or more options objects, recursively merging **only**\n* plain object properties. Previously `deepMerge`.\n*\n* @param {...Object} source One or more objects to merge\n* @returns {Object} a new object that is the union of all\n* provided objects\n* @function mergeOptions\n*/",meta:{range:[275,570],filename:"merge-options.js",lineno:35,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Merge one or more options objects, recursively merging <strong>only</strong>\nplain object properties. Previously <code>deepMerge</code>.</p>",params:[{type:{names:["Object"]},variable:!0,description:"<p>One or more objects to merge</p>",name:"source"}],returns:[{type:{names:["Object"]},description:"<p>a new object that is the union of all\nprovided objects</p>"}],kind:"function",name:"mergeOptions",longname:"mergeOptions",scope:"global"},{comment:"/**\n* @file time-ranges.js\n*\n* Should create a fake TimeRange object\n* Mimics an HTML5 time range instance, which has functions that\n* return the start and end times for a range\n* TimeRanges are returned by the buffered() method\n*\n* @param {(Number|Array)} Start of a single range or an array of ranges\n* @param {Number} End of a single range\n* @private\n* @method createTimeRanges\n*/",meta:{range:[6,391],filename:"time-ranges.js",lineno:3,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"createTimeRanges",kind:"function",description:"<p>time-ranges.js</p>\n<p>Should create a fake TimeRange object\nMimics an HTML5 time range instance, which has functions that\nreturn the start and end times for a range\nTimeRanges are returned by the buffered() method</p>",preserveName:!0,params:[{type:{names:["Number","Array"]},description:"<p>of a single range or an array of ranges</p>",name:"Start"},{type:{names:["Number"]},description:"<p>of a single range</p>",name:"End"}],access:"private",longname:"createTimeRanges",scope:"global"},{comment:"/**\n* @file to-title-case.js\n*\n* Uppercase the first letter of a string\n*\n* @param {String} string String to be uppercased\n* @return {String}\n* @private\n* @method toTitleCase\n*/",meta:{range:[0,178],filename:"to-title-case.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"toTitleCase",kind:"function",description:"<p>to-title-case.js</p>\n<p>Uppercase the first letter of a string</p>",preserveName:!0,params:[{type:{names:["String"]},description:"<p>String to be uppercased</p>",name:"string"}],returns:[{type:{names:["String"]}}],access:"private",longname:"toTitleCase",scope:"global"},{comment:"/**\n* @file url.js\n*/",meta:{range:[0,21],filename:"url.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},name:"utils/url.js",kind:"file",description:"<p>url.js</p>",preserveName:!0,longname:"utils/url.js",scope:"global"},{comment:"/**\n* Resolve and parse the elements of a URL\n*\n* @param {String} url The url to parse\n* @return {Object} An object of url details\n* @method parseUrl\n*/",meta:{range:[31,188],filename:"url.js",lineno:7,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Resolve and parse the elements of a URL</p>",params:[{type:{names:["String"]},description:"<p>The url to parse</p>",name:"url"}],returns:[{type:{names:["Object"]},description:"<p>An object of url details</p>"}],kind:"function",name:"parseUrl",longname:"parseUrl",scope:"global"},{comment:"/**\n* Get absolute version of relative URL. Used to tell flash correct URL.\n* http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue\n*\n* @param {String} url URL to make absolute\n* @return {String} Absolute URL\n* @private\n* @method getAbsoluteURL\n*/",meta:{range:[324,618],filename:"url.js",lineno:59,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Get absolute version of relative URL. Used to tell flash correct URL.\nhttp://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue</p>",params:[{type:{names:["String"]},description:"<p>URL to make absolute</p>",name:"url"}],returns:[{type:{names:["String"]},description:"<p>Absolute URL</p>"}],access:"private",kind:"function",name:"getAbsoluteURL",longname:"getAbsoluteURL",scope:"global"},{comment:"/**\n* Returns the extension of the passed file name. It will return an empty string if you pass an invalid path\n*\n* @param {String} path The fileName path like '/path/to/file.mp4'\n* @returns {String} The extension in lower case or an empty string if no extension could be found.\n* @method getFileExtension\n*/",meta:{range:[655,978],filename:"url.js",lineno:80,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Returns the extension of the passed file name. It will return an empty string if you pass an invalid path</p>",params:[{type:{names:["String"]},description:"<p>The fileName path like '/path/to/file.mp4'</p>",name:"path"}],returns:[{type:{names:["String"]},description:"<p>The extension in lower case or an empty string if no extension could be found.</p>"}],kind:"function",name:"getFileExtension",longname:"getFileExtension",scope:"global"},{comment:"/**\n* Returns whether the url passed is a cross domain request or not.\n*\n* @param {String} url The url to check\n* @return {Boolean} Whether it is a cross domain request or not\n* @method isCrossOrigin\n*/",meta:{range:[1018,1222],filename:"url.js",lineno:100,path:"/Users/mboles/git/docs/video.js/src/js/utils",code:{}},description:"<p>Returns whether the url passed is a cross domain request or not.</p>",params:[{type:{names:["String"]},description:"<p>The url to check</p>",name:"url"}],returns:[{type:{names:["Boolean"]},description:"<p>Whether it is a cross domain request or not</p>"}],kind:"function",name:"isCrossOrigin",longname:"isCrossOrigin",scope:"global"},{comment:"/**\n* @file video.js\n*/",meta:{range:[0,23],filename:"video.js",lineno:1,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},name:"video.js",kind:"file",description:"<p>video.js</p>",preserveName:!0,longname:"video.js",scope:"global"},{comment:"/**\n* Doubles as the main function for users to create a player instance and also\n* the main library object.\n* The `videojs` function can be used to initialize or retrieve a player.\n* ```js\n* var myPlayer = videojs('my_video_id');\n* ```\n*\n* @param {String|Element} id Video element or video element ID\n* @param {Object=} options Optional options object for config/settings\n* @param {Function=} ready Optional ready callback\n* @return {Player} A player instance\n* @mixes videojs\n* @method videojs\n*/",meta:{range:[135,675],filename:"video.js",lineno:41,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Doubles as the main function for users to create a player instance and also\nthe main library object.\nThe <code>videojs</code> function can be used to initialize or retrieve a player.</p>\n<pre class=\"prettyprint source lang-js\"><code> var myPlayer = videojs('my_video_id');</code></pre>",params:[{type:{names:["String","Element"]},description:"<p>Video element or video element ID</p>",name:"id"},{type:{names:["Object"]},optional:!0,description:"<p>Optional options object for config/settings</p>",name:"options"},{type:{names:["function"]},optional:!0,description:"<p>Optional ready callback</p>",name:"ready"}],returns:[{type:{names:["Player"]},description:"<p>A player instance</p>"}],mixes:["videojs"],kind:"function",name:"videojs",longname:"videojs",scope:"global"},{comment:"/**\n* Get an object with the currently created players, keyed by player ID\n*\n* @return {Object} The created players\n* @mixes videojs\n* @method getPlayers\n*/",meta:{range:[1220,1376],filename:"video.js",lineno:147,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an object with the currently created players, keyed by player ID</p>",returns:[{type:{names:["Object"]},description:"<p>The created players</p>"}],mixes:["videojs"],kind:"function",name:"getPlayers",longname:"getPlayers",scope:"global"},{comment:"/**\n* Get a component class object by name\n* ```js\n* var VjsButton = videojs.getComponent('Button');\n* // Create a new instance of the component\n* var myButton = new VjsButton(myPlayer);\n* ```\n*\n* @return {Component} Component identified by name\n* @mixes videojs\n* @method getComponent\n*/",meta:{range:[1472,1772],filename:"video.js",lineno:164,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get a component class object by name</p>\n<pre class=\"prettyprint source lang-js\"><code> var VjsButton = videojs.getComponent('Button');\n // Create a new instance of the component\n var myButton = new VjsButton(myPlayer);</code></pre>",returns:[{type:{names:["Component"]},description:"<p>Component identified by name</p>"}],mixes:["videojs"],kind:"function",name:"getComponent",longname:"getComponent",scope:"global"},{comment:"/**\n* Register a component so it can referred to by name\n* Used when adding to other\n* components, either through addChild\n* `component.addChild('myComponent')`\n* or through default children options\n* `{ children: ['myComponent'] }`.\n* ```js\n* // Get a component to subclass\n* var VjsButton = videojs.getComponent('Button');\n* // Subclass the component (see 'extend' doc for more info)\n* var MySpecialButton = videojs.extend(VjsButton, {});\n* // Register the new component\n* VjsButton.registerComponent('MySepcialButton', MySepcialButton);\n* // (optionally) add the new component as a default player child\n* myPlayer.addChild('MySepcialButton');\n* ```\n* NOTE: You could also just initialize the component before adding.\n* `component.addChild(new MyComponent());`\n*\n* @param {String} The class name of the component\n* @param {Component} The component class\n* @return {Component} The newly registered component\n* @mixes videojs\n* @method registerComponent\n*/",meta:{range:[1779,2767],filename:"video.js",lineno:178,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Register a component so it can referred to by name\nUsed when adding to other\ncomponents, either through addChild\n<code>component.addChild('myComponent')</code>\nor through default children options\n<code>{ children: ['myComponent'] }</code>.</p>\n<pre class=\"prettyprint source lang-js\"><code> // Get a component to subclass\n var VjsButton = videojs.getComponent('Button');\n // Subclass the component (see 'extend' doc for more info)\n var MySpecialButton = videojs.extend(VjsButton, {});\n // Register the new component\n VjsButton.registerComponent('MySepcialButton', MySepcialButton);\n // (optionally) add the new component as a default player child\n myPlayer.addChild('MySepcialButton');</code></pre><p>NOTE: You could also just initialize the component before adding.\n<code>component.addChild(new MyComponent());</code></p>",params:[{type:{names:["String"]},description:"<p>class name of the component</p>",name:"The"},{type:{names:["Component"]},description:"<p>component class</p>",name:"The"}],returns:[{type:{names:["Component"]},description:"<p>The newly registered component</p>"}],mixes:["videojs"],kind:"function",name:"registerComponent",longname:"registerComponent",scope:"global"},{comment:"/**\n* Get a Tech class object by name\n* ```js\n* var Html5 = videojs.getTech('Html5');\n* // Create a new instance of the component\n* var html5 = new Html5(options);\n* ```\n*\n* @return {Tech} Tech identified by name\n* @mixes videojs\n* @method getComponent\n*/",meta:{range:[2792,3059],filename:"video.js",lineno:212,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get a Tech class object by name</p>\n<pre class=\"prettyprint source lang-js\"><code> var Html5 = videojs.getTech('Html5');\n // Create a new instance of the component\n var html5 = new Html5(options);</code></pre>",returns:[{type:{names:["Tech"]},description:"<p>Tech identified by name</p>"}],mixes:["videojs"],kind:"function",name:"getComponent",longname:"getComponent",scope:"global"},{comment:"/**\n* Register a Tech so it can referred to by name.\n* This is used in the tech order for the player.\n*\n* ```js\n* // get the Html5 Tech\n* var Html5 = videojs.getTech('Html5');\n* var MyTech = videojs.extend(Html5, {});\n* // Register the new Tech\n* VjsButton.registerTech('Tech', MyTech);\n* var player = videojs('myplayer', {\n* techOrder: ['myTech', 'html5']\n* });\n* ```\n*\n* @param {String} The class name of the tech\n* @param {Tech} The tech class\n* @return {Tech} The newly registered Tech\n* @mixes videojs\n* @method registerTech\n*/",meta:{range:[3066,3632],filename:"video.js",lineno:226,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Register a Tech so it can referred to by name.\nThis is used in the tech order for the player.</p>\n<pre class=\"prettyprint source lang-js\"><code> // get the Html5 Tech\n var Html5 = videojs.getTech('Html5');\n var MyTech = videojs.extend(Html5, {});\n // Register the new Tech\n VjsButton.registerTech('Tech', MyTech);\n var player = videojs('myplayer', {\n techOrder: ['myTech', 'html5']\n });</code></pre>",params:[{type:{names:["String"]},description:"<p>class name of the tech</p>",name:"The"},{type:{names:["Tech"]},description:"<p>tech class</p>",name:"The"}],returns:[{type:{names:["Tech"]},description:"<p>The newly registered Tech</p>"}],mixes:["videojs"],kind:"function",name:"registerTech",longname:"registerTech",scope:"global"},{comment:"/**\n* Subclass an existing class\n* Mimics ES6 subclassing with the `extend` keyword\n* ```js\n* // Create a basic javascript 'class'\n* function MyClass(name){\n* // Set a property at initialization\n* this.myName = name;\n* }\n* // Create an instance method\n* MyClass.prototype.sayMyName = function(){\n* alert(this.myName);\n* };\n* // Subclass the exisitng class and change the name\n* // when initializing\n* var MySubClass = videojs.extend(MyClass, {\n* constructor: function(name) {\n* // Call the super class constructor for the subclass\n* MyClass.call(this, name)\n* }\n* });\n* // Create an instance of the new sub class\n* var myInstance = new MySubClass('John');\n* myInstance.sayMyName(); // -> should alert \"John\"\n* ```\n*\n* @param {Function} The Class to subclass\n* @param {Object} An object including instace methods for the new class\n* Optionally including a `constructor` function\n* @return {Function} The newly created subclass\n* @mixes videojs\n* @method extend\n*/",meta:{range:[3944,5022],filename:"video.js",lineno:267,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Subclass an existing class\nMimics ES6 subclassing with the <code>extend</code> keyword</p>\n<pre class=\"prettyprint source lang-js\"><code> // Create a basic javascript 'class'\n function MyClass(name){\n // Set a property at initialization\n this.myName = name;\n }\n // Create an instance method\n MyClass.prototype.sayMyName = function(){\n alert(this.myName);\n };\n // Subclass the exisitng class and change the name\n // when initializing\n var MySubClass = videojs.extend(MyClass, {\n constructor: function(name) {\n // Call the super class constructor for the subclass\n MyClass.call(this, name)\n }\n });\n // Create an instance of the new sub class\n var myInstance = new MySubClass('John');\n myInstance.sayMyName(); // -> should alert "John"</code></pre>",params:[{type:{names:["function"]},description:"<p>Class to subclass</p>",name:"The"},{type:{names:["Object"]},description:"<p>object including instace methods for the new class\n Optionally including a <code>constructor</code> function</p>",name:"An"}],returns:[{type:{names:["function"]},description:"<p>The newly created subclass</p>"}],mixes:["videojs"],kind:"function",name:"extend",longname:"extend",scope:"global"},{comment:"/**\n* Merge two options objects recursively\n* Performs a deep merge like lodash.merge but **only merges plain objects**\n* (not arrays, elements, anything else)\n* Other values will be copied directly from the second object.\n* ```js\n* var defaultOptions = {\n* foo: true,\n* bar: {\n* a: true,\n* b: [1,2,3]\n* }\n* };\n* var newOptions = {\n* foo: false,\n* bar: {\n* b: [4,5,6]\n* }\n* };\n* var result = videojs.mergeOptions(defaultOptions, newOptions);\n* // result.foo = false;\n* // result.bar.a = true;\n* // result.bar.b = [4,5,6];\n* ```\n*\n* @param {Object} defaults The options object whose values will be overriden\n* @param {Object} overrides The options object with values to override the first\n* @param {Object} etc Any number of additional options objects\n*\n* @return {Object} a new object with the merged values\n* @mixes videojs\n* @method mergeOptions\n*/",meta:{range:[5029,5978],filename:"video.js",lineno:302,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:'<p>Merge two options objects recursively\nPerforms a deep merge like lodash.merge but <strong>only merges plain objects</strong>\n(not arrays, elements, anything else)\nOther values will be copied directly from the second object.</p>\n<pre class="prettyprint source lang-js"><code> var defaultOptions = {\n foo: true,\n bar: {\n a: true,\n b: [1,2,3]\n }\n };\n var newOptions = {\n foo: false,\n bar: {\n b: [4,5,6]\n }\n };\n var result = videojs.mergeOptions(defaultOptions, newOptions);\n // result.foo = false;\n // result.bar.a = true;\n // result.bar.b = [4,5,6];</code></pre>', +params:[{type:{names:["Object"]},description:"<p>The options object whose values will be overriden</p>",name:"defaults"},{type:{names:["Object"]},description:"<p>The options object with values to override the first</p>",name:"overrides"},{type:{names:["Object"]},description:"<p>Any number of additional options objects</p>",name:"etc"}],returns:[{type:{names:["Object"]},description:"<p>a new object with the merged values</p>"}],mixes:["videojs"],kind:"function",name:"mergeOptions",longname:"mergeOptions",scope:"global"},{comment:"/**\n* Create a Video.js player plugin\n* Plugins are only initialized when options for the plugin are included\n* in the player options, or the plugin function on the player instance is\n* called.\n* **See the plugin guide in the docs for a more detailed example**\n* ```js\n* // Make a plugin that alerts when the player plays\n* videojs.plugin('myPlugin', function(myPluginOptions) {\n* myPluginOptions = myPluginOptions || {};\n*\n* var player = this;\n* var alertText = myPluginOptions.text || 'Player is playing!'\n*\n* player.on('play', function(){\n* alert(alertText);\n* });\n* });\n* // USAGE EXAMPLES\n* // EXAMPLE 1: New player with plugin options, call plugin immediately\n* var player1 = videojs('idOne', {\n* myPlugin: {\n* text: 'Custom text!'\n* }\n* });\n* // Click play\n* // --> Should alert 'Custom text!'\n* // EXAMPLE 3: New player, initialize plugin later\n* var player3 = videojs('idThree');\n* // Click play\n* // --> NO ALERT\n* // Click pause\n* // Initialize plugin using the plugin function on the player instance\n* player3.myPlugin({\n* text: 'Plugin added later!'\n* });\n* // Click play\n* // --> Should alert 'Plugin added later!'\n* ```\n*\n* @param {String} name The plugin name\n* @param {Function} fn The plugin function that will be called with options\n* @mixes videojs\n* @method plugin\n*/",meta:{range:[6472,7900],filename:"video.js",lineno:354,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Create a Video.js player plugin\nPlugins are only initialized when options for the plugin are included\nin the player options, or the plugin function on the player instance is\ncalled.\n<strong>See the plugin guide in the docs for a more detailed example</strong></p>\n<pre class=\"prettyprint source lang-js\"><code> // Make a plugin that alerts when the player plays\n videojs.plugin('myPlugin', function(myPluginOptions) {\n myPluginOptions = myPluginOptions || {};\n\n var player = this;\n var alertText = myPluginOptions.text || 'Player is playing!'\n\n player.on('play', function(){\n alert(alertText);\n });\n });\n // USAGE EXAMPLES\n // EXAMPLE 1: New player with plugin options, call plugin immediately\n var player1 = videojs('idOne', {\n myPlugin: {\n text: 'Custom text!'\n }\n });\n // Click play\n // --> Should alert 'Custom text!'\n // EXAMPLE 3: New player, initialize plugin later\n var player3 = videojs('idThree');\n // Click play\n // --> NO ALERT\n // Click pause\n // Initialize plugin using the plugin function on the player instance\n player3.myPlugin({\n text: 'Plugin added later!'\n });\n // Click play\n // --> Should alert 'Plugin added later!'</code></pre>",params:[{type:{names:["String"]},description:"<p>The plugin name</p>",name:"name"},{type:{names:["function"]},description:"<p>The plugin function that will be called with options</p>",name:"fn"}],mixes:["videojs"],kind:"function",name:"plugin",longname:"plugin",scope:"global"},{comment:"/**\n* Adding languages so that they're available to all players.\n* ```js\n* videojs.addLanguage('es', { 'Hello': 'Hola' });\n* ```\n*\n* @param {String} code The language code or dictionary property\n* @param {Object} data The data values to be translated\n* @return {Object} The resulting language dictionary object\n* @mixes videojs\n* @method addLanguage\n*/",meta:{range:[7907,8265],filename:"video.js",lineno:401,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Adding languages so that they're available to all players.</p>\n<pre class=\"prettyprint source lang-js\"><code> videojs.addLanguage('es', { 'Hello': 'Hola' });</code></pre>",params:[{type:{names:["String"]},description:"<p>The language code or dictionary property</p>",name:"code"},{type:{names:["Object"]},description:"<p>The data values to be translated</p>",name:"data"}],returns:[{type:{names:["Object"]},description:"<p>The resulting language dictionary object</p>"}],mixes:["videojs"],kind:"function",name:"addLanguage",longname:"addLanguage",scope:"global"},{comment:"/**\n* Creates an emulated TimeRange object.\n*\n* @param {Number|Array} start Start time in seconds or an array of ranges\n* @param {Number} end End time in seconds\n* @return {Object} Fake TimeRange object\n* @method createTimeRange\n*/",meta:{range:[8376,8617],filename:"video.js",lineno:425,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Creates an emulated TimeRange object.</p>",params:[{type:{names:["Number","Array"]},description:"<p>Start time in seconds or an array of ranges</p>",name:"start"},{type:{names:["Number"]},description:"<p>End time in seconds</p>",name:"end"}],returns:[{type:{names:["Object"]},description:"<p>Fake TimeRange object</p>"}],kind:"function",name:"createTimeRange",longname:"createTimeRange",scope:"global"},{comment:"/**\n* Format seconds as a time string, H:MM:SS or M:SS\n* Supplying a guide (in seconds) will force a number of leading zeros\n* to cover the length of the guide\n*\n* @param {Number} seconds Number of seconds to be turned into a string\n* @param {Number} guide Number (in seconds) to model the string after\n* @return {String} Time formatted as H:MM:SS or M:SS\n* @method formatTime\n*/",meta:{range:[8624,9015],filename:"video.js",lineno:435,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Format seconds as a time string, H:MM:SS or M:SS\nSupplying a guide (in seconds) will force a number of leading zeros\nto cover the length of the guide</p>",params:[{type:{names:["Number"]},description:"<p>Number of seconds to be turned into a string</p>",name:"seconds"},{type:{names:["Number"]},description:"<p>Number (in seconds) to model the string after</p>",name:"guide"}],returns:[{type:{names:["String"]},description:"<p>Time formatted as H:MM:SS or M:SS</p>"}],kind:"function",name:"formatTime",longname:"formatTime",scope:"global"},{comment:"/**\n* Resolve and parse the elements of a URL\n*\n* @param {String} url The url to parse\n* @return {Object} An object of url details\n* @method parseUrl\n*/",meta:{range:[9022,9179],filename:"video.js",lineno:447,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Resolve and parse the elements of a URL</p>",params:[{type:{names:["String"]},description:"<p>The url to parse</p>",name:"url"}],returns:[{type:{names:["Object"]},description:"<p>An object of url details</p>"}],kind:"function",name:"parseUrl",longname:"parseUrl",scope:"global"},{comment:"/**\n* Returns whether the url passed is a cross domain request or not.\n*\n* @param {String} url The url to check\n* @return {Boolean} Whether it is a cross domain request or not\n* @method isCrossOrigin\n*/",meta:{range:[9186,9390],filename:"video.js",lineno:456,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Returns whether the url passed is a cross domain request or not.</p>",params:[{type:{names:["String"]},description:"<p>The url to check</p>",name:"url"}],returns:[{type:{names:["Boolean"]},description:"<p>Whether it is a cross domain request or not</p>"}],kind:"function",name:"isCrossOrigin",longname:"isCrossOrigin",scope:"global"},{comment:"/**\n* Add an event listener to element\n* It stores the handler function in a separate cache object\n* and adds a generic handler to the element's event,\n* along with a unique id (guid) to the element.\n*\n* @param {Element|Object} elem Element or object to bind listeners to\n* @param {String|Array} type Type of event to bind to.\n* @param {Function} fn Event listener.\n* @method on\n*/",meta:{range:[9453,9843],filename:"video.js",lineno:472,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add an event listener to element\nIt stores the handler function in a separate cache object\nand adds a generic handler to the element's event,\nalong with a unique id (guid) to the element.</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element or object to bind listeners to</p>",name:"elem"},{type:{names:["String","Array"]},description:"<p>Type of event to bind to.</p>",name:"type"},{type:{names:["function"]},description:"<p>Event listener.</p>",name:"fn"}],kind:"function",name:"on",longname:"on",scope:"global"},{comment:"/**\n* Trigger a listener only once for an event\n*\n* @param {Element|Object} elem Element or object to\n* @param {String|Array} type Name/type of event\n* @param {Function} fn Event handler function\n* @method one\n*/",meta:{range:[9850,10069],filename:"video.js",lineno:485,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Trigger a listener only once for an event</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element or object to</p>",name:"elem"},{type:{names:["String","Array"]},description:"<p>Name/type of event</p>",name:"type"},{type:{names:["function"]},description:"<p>Event handler function</p>",name:"fn"}],kind:"function",name:"one",longname:"one",scope:"global"},{comment:"/**\n* Removes event listeners from an element\n*\n* @param {Element|Object} elem Object to remove listeners from\n* @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.\n* @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.\n* @method off\n*/",meta:{range:[10076,10424],filename:"video.js",lineno:495,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Removes event listeners from an element</p>",params:[{type:{names:["Element","Object"]},description:"<p>Object to remove listeners from</p>",name:"elem"},{type:{names:["String","Array"]},description:"<p>Type of listener to remove. Don't include to remove all events from element.</p>",name:"type"},{type:{names:["function"]},description:"<p>Specific listener to remove. Don't include to remove listeners for an event type.</p>",name:"fn"}],kind:"function",name:"off",longname:"off",scope:"global"},{comment:"/**\n* Trigger an event for an element\n*\n* @param {Element|Object} elem Element to trigger an event on\n* @param {Event|Object|String} event A string (the type) or an event object with a type attribute\n* @param {Object} [hash] data hash to pass along with the event\n* @return {Boolean=} Returned only if default was prevented\n* @method trigger\n*/",meta:{range:[10431,10784],filename:"video.js",lineno:505,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Trigger an event for an element</p>",params:[{type:{names:["Element","Object"]},description:"<p>Element to trigger an event on</p>",name:"elem"},{type:{names:["Event","Object","String"]},description:"<p>A string (the type) or an event object with a type attribute</p>",name:"event"},{type:{names:["Object"]},optional:!0,description:"<p>data hash to pass along with the event</p>",name:"hash"}],returns:[{type:{names:["Boolean"]},optional:!0,description:"<p>Returned only if default was prevented</p>"}],kind:"function",name:"trigger",longname:"trigger",scope:"global"},{comment:"/**\n* Determines, via duck typing, whether or not a value is a DOM element.\n*\n* @method isEl\n* @param {Mixed} value\n* @return {Boolean}\n*/",meta:{range:[11740,11879],filename:"video.js",lineno:562,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Determines, via duck typing, whether or not a value is a DOM element.</p>",kind:"function",name:"isEl",params:[{type:{names:["Mixed"]},name:"value"}],returns:[{type:{names:["Boolean"]}}],longname:"isEl",scope:"global"},{comment:"/**\n* Determines, via duck typing, whether or not a value is a text node.\n*\n* @method isTextNode\n* @param {Mixed} value\n* @return {Boolean}\n*/",meta:{range:[11886,12029],filename:"video.js",lineno:571,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Determines, via duck typing, whether or not a value is a text node.</p>",kind:"function",name:"isTextNode",params:[{type:{names:["Mixed"]},name:"value"}],returns:[{type:{names:["Boolean"]}}],longname:"isTextNode",scope:"global"},{comment:"/**\n* Creates an element and applies properties.\n*\n* @method createEl\n* @param {String} [tagName='div'] Name of tag to be created.\n* @param {Object} [properties={}] Element properties to be applied.\n* @param {Object} [attributes={}] Element attributes to be applied.\n* @return {Element}\n*/",meta:{range:[12036,12328],filename:"video.js",lineno:580,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Creates an element and applies properties.</p>",kind:"function",name:"createEl",params:[{type:{names:["String"]},optional:!0,defaultvalue:"'div'",description:"<p>Name of tag to be created.</p>",name:"tagName"},{type:{names:["Object"]},optional:!0,defaultvalue:"{}",description:"<p>Element properties to be applied.</p>",name:"properties"},{type:{names:["Object"]},optional:!0,defaultvalue:"{}",description:"<p>Element attributes to be applied.</p>",name:"attributes"}],returns:[{type:{names:["Element"]}}],longname:"createEl",scope:"global"},{comment:"/**\n* Check if an element has a CSS class\n*\n* @method hasClass\n* @param {Element} element Element to check\n* @param {String} classToCheck Classname to check\n*/",meta:{range:[12335,12494],filename:"video.js",lineno:591,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Check if an element has a CSS class</p>",kind:"function",name:"hasClass",params:[{type:{names:["Element"]},description:"<p>Element to check</p>",name:"element"},{type:{names:["String"]},description:"<p>Classname to check</p>",name:"classToCheck"}],longname:"hasClass",scope:"global"},{comment:"/**\n* Add a CSS class name to an element\n*\n* @method addClass\n* @param {Element} element Element to add class name to\n* @param {String} classToAdd Classname to add\n*/",meta:{range:[12501,12670],filename:"video.js",lineno:600,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Add a CSS class name to an element</p>",kind:"function",name:"addClass",params:[{type:{names:["Element"]},description:"<p>Element to add class name to</p>",name:"element"},{type:{names:["String"]},description:"<p>Classname to add</p>",name:"classToAdd"}],longname:"addClass",scope:"global"},{comment:"/**\n* Remove a CSS class name from an element\n*\n* @method removeClass\n* @param {Element} element Element to remove from class name\n* @param {String} classToRemove Classname to remove\n*/",meta:{range:[12677,12865],filename:"video.js",lineno:609,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Remove a CSS class name from an element</p>",kind:"function",name:"removeClass",params:[{type:{names:["Element"]},description:"<p>Element to remove from class name</p>",name:"element"},{type:{names:["String"]},description:"<p>Classname to remove</p>",name:"classToRemove"}],longname:"removeClass",scope:"global"},{comment:"/**\n* Adds or removes a CSS class name on an element depending on an optional\n* condition or the presence/absence of the class name.\n*\n* @method toggleElClass\n* @param {Element} element\n* @param {String} classToToggle\n* @param {Boolean|Function} [predicate]\n* Can be a function that returns a Boolean. If `true`, the class\n* will be added; if `false`, the class will be removed. If not\n* given, the class will be added if not present and vice versa.\n*/",meta:{range:[12872,13351],filename:"video.js",lineno:618,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Adds or removes a CSS class name on an element depending on an optional\ncondition or the presence/absence of the class name.</p>",kind:"function",name:"toggleElClass",params:[{type:{names:["Element"]},name:"element"},{type:{names:["String"]},name:"classToToggle"},{type:{names:["Boolean","function"]},optional:!0,description:"<p>Can be a function that returns a Boolean. If <code>true</code>, the class\n will be added; if <code>false</code>, the class will be removed. If not\n given, the class will be added if not present and vice versa.</p>",name:"predicate"}],longname:"toggleElClass",scope:"global"},{comment:"/**\n* Apply attributes to an HTML element.\n*\n* @method setAttributes\n* @param {Element} el Target element.\n* @param {Object=} attributes Element attributes to be applied.\n*/",meta:{range:[13358,13541],filename:"video.js",lineno:632,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Apply attributes to an HTML element.</p>",kind:"function",name:"setAttributes",params:[{type:{names:["Element"]},description:"<p>Target element.</p>",name:"el"},{type:{names:["Object"]},optional:!0,description:"<p>Element attributes to be applied.</p>",name:"attributes"}],longname:"setAttributes",scope:"global"},{comment:"/**\n* Get an element's attribute values, as defined on the HTML tag\n* Attributes are not the same as properties. They're defined on the tag\n* or with setAttribute (which shouldn't be used with HTML)\n* This will return true or false for boolean attributes.\n*\n* @method getAttributes\n* @param {Element} tag Element from which to get tag attributes\n* @return {Object}\n*/",meta:{range:[13548,13916],filename:"video.js",lineno:641,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Get an element's attribute values, as defined on the HTML tag\nAttributes are not the same as properties. They're defined on the tag\nor with setAttribute (which shouldn't be used with HTML)\nThis will return true or false for boolean attributes.</p>",kind:"function",name:"getAttributes",params:[{type:{names:["Element"]},description:"<p>Element from which to get tag attributes</p>",name:"tag"}],returns:[{type:{names:["Object"]}}],longname:"getAttributes",scope:"global"},{comment:"/**\n* Empties the contents of an element.\n*\n* @method emptyEl\n* @param {Element} el\n* @return {Element}\n*/",meta:{range:[13923,14030],filename:"video.js",lineno:653,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Empties the contents of an element.</p>",kind:"function",name:"emptyEl",params:[{type:{names:["Element"]},name:"el"}],returns:[{type:{names:["Element"]}}],longname:"emptyEl",scope:"global"},{comment:"/**\n* Normalizes and appends content to an element.\n*\n* The content for an element can be passed in multiple types and\n* combinations, whose behavior is as follows:\n*\n* - String\n* Normalized into a text node.\n*\n* - Element, TextNode\n* Passed through.\n*\n* - Array\n* A one-dimensional array of strings, elements, nodes, or functions (which\n* return single strings, elements, or nodes).\n*\n* - Function\n* If the sole argument, is expected to produce a string, element,\n* node, or array.\n*\n* @method appendContent\n* @param {Element} el\n* @param {String|Element|TextNode|Array|Function} content\n* @return {Element}\n*/",meta:{range:[14037,14662],filename:"video.js",lineno:662,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Normalizes and appends content to an element.</p>\n<p>The content for an element can be passed in multiple types and\ncombinations, whose behavior is as follows:</p>\n<ul>\n<li><p>String\nNormalized into a text node.</p>\n</li>\n<li><p>Element, TextNode\nPassed through.</p>\n</li>\n<li><p>Array\nA one-dimensional array of strings, elements, nodes, or functions (which\nreturn single strings, elements, or nodes).</p>\n</li>\n<li><p>Function\nIf the sole argument, is expected to produce a string, element,\nnode, or array.</p>\n</li>\n</ul>",kind:"function",name:"appendContent",params:[{type:{names:["Element"]},name:"el"},{type:{names:["String","Element","TextNode","Array","function"]},name:"content"}],returns:[{type:{names:["Element"]}}],longname:"appendContent",scope:"global"},{comment:"/**\n* Normalizes and inserts content into an element; this is identical to\n* `appendContent()`, except it empties the element first.\n*\n* The content for an element can be passed in multiple types and\n* combinations, whose behavior is as follows:\n*\n* - String\n* Normalized into a text node.\n*\n* - Element, TextNode\n* Passed through.\n*\n* - Array\n* A one-dimensional array of strings, elements, nodes, or functions (which\n* return single strings, elements, or nodes).\n*\n* - Function\n* If the sole argument, is expected to produce a string, element,\n* node, or array.\n*\n* @method insertContent\n* @param {Element} el\n* @param {String|Element|TextNode|Array|Function} content\n* @return {Element}\n*/",meta:{range:[14669,15375],filename:"video.js",lineno:689,path:"/Users/mboles/git/docs/video.js/src/js",code:{}},description:"<p>Normalizes and inserts content into an element; this is identical to\n<code>appendContent()</code>, except it empties the element first.</p>\n<p>The content for an element can be passed in multiple types and\ncombinations, whose behavior is as follows:</p>\n<ul>\n<li><p>String\nNormalized into a text node.</p>\n</li>\n<li><p>Element, TextNode\nPassed through.</p>\n</li>\n<li><p>Array\nA one-dimensional array of strings, elements, nodes, or functions (which\nreturn single strings, elements, or nodes).</p>\n</li>\n<li><p>Function\nIf the sole argument, is expected to produce a string, element,\nnode, or array.</p>\n</li>\n</ul>",kind:"function",name:"insertContent",params:[{type:{names:["Element"]},name:"el"},{type:{names:["String","Element","TextNode","Array","function"]},name:"content"}],returns:[{type:{names:["Element"]}}],longname:"insertContent",scope:"global"},{kind:"package",longname:"package:undefined",files:["/Users/mboles/git/docs/video.js/src/js/base-styles.js","/Users/mboles/git/docs/video.js/src/js/big-play-button.js","/Users/mboles/git/docs/video.js/src/js/button.js","/Users/mboles/git/docs/video.js/src/js/clickable-component.js","/Users/mboles/git/docs/video.js/src/js/close-button.js","/Users/mboles/git/docs/video.js/src/js/component.js","/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls/audio-track-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/audio-track-controls/audio-track-menu-item.js","/Users/mboles/git/docs/video.js/src/js/control-bar/control-bar.js","/Users/mboles/git/docs/video.js/src/js/control-bar/fullscreen-toggle.js","/Users/mboles/git/docs/video.js/src/js/control-bar/live-display.js","/Users/mboles/git/docs/video.js/src/js/control-bar/mute-toggle.js","/Users/mboles/git/docs/video.js/src/js/control-bar/play-toggle.js","/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/playback-rate-menu/playback-rate-menu-item.js","/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control/load-progress-bar.js","/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control/mouse-time-display.js","/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control/play-progress-bar.js","/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control/progress-control.js","/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control/seek-bar.js","/Users/mboles/git/docs/video.js/src/js/control-bar/progress-control/tooltip-progress-bar.js","/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls/custom-control-spacer.js","/Users/mboles/git/docs/video.js/src/js/control-bar/spacer-controls/spacer.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/caption-settings-menu-item.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/captions-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/chapters-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/chapters-track-menu-item.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/descriptions-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/off-text-track-menu-item.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/subtitles-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/text-track-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/text-track-controls/text-track-menu-item.js","/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls/current-time-display.js","/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls/duration-display.js","/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls/remaining-time-display.js","/Users/mboles/git/docs/video.js/src/js/control-bar/time-controls/time-divider.js","/Users/mboles/git/docs/video.js/src/js/control-bar/track-button.js","/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control/volume-bar.js","/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control/volume-control.js","/Users/mboles/git/docs/video.js/src/js/control-bar/volume-control/volume-level.js","/Users/mboles/git/docs/video.js/src/js/control-bar/volume-menu-button.js","/Users/mboles/git/docs/video.js/src/js/error-display.js","/Users/mboles/git/docs/video.js/src/js/event-target.js","/Users/mboles/git/docs/video.js/src/js/extend.js","/Users/mboles/git/docs/video.js/src/js/fullscreen-api.js","/Users/mboles/git/docs/video.js/src/js/loading-spinner.js","/Users/mboles/git/docs/video.js/src/js/media-error.js","/Users/mboles/git/docs/video.js/src/js/menu/menu-button.js","/Users/mboles/git/docs/video.js/src/js/menu/menu-item.js","/Users/mboles/git/docs/video.js/src/js/menu/menu.js","/Users/mboles/git/docs/video.js/src/js/modal-dialog.js","/Users/mboles/git/docs/video.js/src/js/player.js","/Users/mboles/git/docs/video.js/src/js/plugins.js","/Users/mboles/git/docs/video.js/src/js/popup/popup-button.js","/Users/mboles/git/docs/video.js/src/js/popup/popup.js","/Users/mboles/git/docs/video.js/src/js/poster-image.js","/Users/mboles/git/docs/video.js/src/js/setup.js","/Users/mboles/git/docs/video.js/src/js/slider/slider.js","/Users/mboles/git/docs/video.js/src/js/tech/flash-rtmp.js","/Users/mboles/git/docs/video.js/src/js/tech/flash.js","/Users/mboles/git/docs/video.js/src/js/tech/html5.js","/Users/mboles/git/docs/video.js/src/js/tech/loader.js","/Users/mboles/git/docs/video.js/src/js/tech/tech.js","/Users/mboles/git/docs/video.js/src/js/tracks/audio-track-list.js","/Users/mboles/git/docs/video.js/src/js/tracks/audio-track.js","/Users/mboles/git/docs/video.js/src/js/tracks/html-track-element-list.js","/Users/mboles/git/docs/video.js/src/js/tracks/html-track-element.js","/Users/mboles/git/docs/video.js/src/js/tracks/text-track-cue-list.js","/Users/mboles/git/docs/video.js/src/js/tracks/text-track-display.js","/Users/mboles/git/docs/video.js/src/js/tracks/text-track-list-converter.js","/Users/mboles/git/docs/video.js/src/js/tracks/text-track-list.js","/Users/mboles/git/docs/video.js/src/js/tracks/text-track-settings.js","/Users/mboles/git/docs/video.js/src/js/tracks/text-track.js","/Users/mboles/git/docs/video.js/src/js/tracks/track-enums.js","/Users/mboles/git/docs/video.js/src/js/tracks/track-list.js","/Users/mboles/git/docs/video.js/src/js/tracks/track.js","/Users/mboles/git/docs/video.js/src/js/tracks/video-track-list.js","/Users/mboles/git/docs/video.js/src/js/tracks/video-track.js","/Users/mboles/git/docs/video.js/src/js/utils/browser.js","/Users/mboles/git/docs/video.js/src/js/utils/buffer.js","/Users/mboles/git/docs/video.js/src/js/utils/dom.js","/Users/mboles/git/docs/video.js/src/js/utils/events.js","/Users/mboles/git/docs/video.js/src/js/utils/fn.js","/Users/mboles/git/docs/video.js/src/js/utils/format-time.js","/Users/mboles/git/docs/video.js/src/js/utils/guid.js","/Users/mboles/git/docs/video.js/src/js/utils/log.js","/Users/mboles/git/docs/video.js/src/js/utils/merge-options.js","/Users/mboles/git/docs/video.js/src/js/utils/stylesheet.js","/Users/mboles/git/docs/video.js/src/js/utils/time-ranges.js","/Users/mboles/git/docs/video.js/src/js/utils/to-title-case.js","/Users/mboles/git/docs/video.js/src/js/utils/url.js","/Users/mboles/git/docs/video.js/src/js/video.js"]}];
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/js/doc-script.js b/javascript/videojs/docs/legacy-docs/api/js/doc-script.js new file mode 100644 index 0000000..65f64f4 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/js/doc-script.js @@ -0,0 +1,722 @@ +var title, + // data structures + classes = {thisClass: [], parentClass: []}, + // paths + classFilePath, + parentClassFilePath, + // elements + mainContent, + main, + doc_body; + +/** + * tests for all the ways a variable might be undefined or not have a value + * + * @param {*} x - the variable to test + * @return {Boolean} true if variable is defined and has a value + */ +function isDefined(x) { + if (x === '' || x === null || x === undefined || x === NaN) { + return false; + } + return true; +}; +/** + * determines whether specified item is in an array + * + * @param {array} arr - array to check + * @param {string} item - to check for + * @return {boolean} true if item is in the array, else false + */ +function isItemInArray(arr, item) { + var i, + iMax = arr.length; + for (i = 0; i < iMax; i++) { + if (arr[i] === item) { + return true; + } + } + return false; +}; +/** + * get a copy of (rather than reference to) an object + * + * @param {object} obj - the object you want a copy + * @return {object} the copy + */ +function copyObj(obj) { + if (isDefined(obj)) { + return JSON.parse(JSON.stringify(obj)); + } + return null; +}; +/** + * find index of an object in array of objects + * based on some property value + * generally useful for finding a unique object + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {integer} index of first instance if found, otherwise returns -1 + */ +function findObjectInArray(targetArray, objProperty, value) { + var i, totalItems = targetArray.length, objFound = false; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + objFound = true; + return i; + } + } + if (objFound === false) { + return -1; + } +}; +/** + * find indexes of a set of object in array of objects + * based on some property value + * generally useful for finding several objects + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of indexes for matching objects + */ +function findObjectsInArray(targetArray, objProperty, value) { + var i, totalItems = targetArray.length, newArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + newArr.push(i); + } + } + return newArr; +}; +/** + * get a subset of objects in array of objects + * based on some property value + * + * @param {array} targetArray - array to search + * @param {string} objProperty - object property to search + * @param {string|number} value - value of the property to search for + * @return {array} array of objects with matching property value + */ +function getSubArray(targetArray, objProperty, value) { + var i, totalItems = targetArray.length, idxArr = []; + for (i = 0; i < totalItems; i++) { + if (targetArray[i][objProperty] === value) { + idxArr.push(targetArray[i]); + } + } + return idxArr; +}; +/** + * sort an array of objects based on an object property + * + * @param {array} targetArray - array to sort + * @param {string} objProperty - property whose value to sort on + * @return {array} the sorted array + */ +function sortArray(targetArray, objProperty) { + targetArray.sort(function (a, b) { + var propA = a[objProperty].toLowerCase(), propB = b[objProperty].toLowerCase(); + // sort ascending; reverse propA and propB to sort descending + if (propA < propB) { + return -1; + } else if (propA > propB) { + return 1; + } + return 0; + }); + return targetArray; +}; +/** + * create an element + * + * @param {string} type - the element type + * @param {object} attributes - attributes to add to the element + * @return {object} the HTML element + */ +function createEl(type, attributes) { + var el; + if (isDefined(type)) { + el = doc.createElement(type); + if (isDefined(attributes)) { + var attr; + for (attr in attributes) { + el.setAttribute(attr, attributes[attr]); + } + } + return el; + } +}; +/** + * creates a text node and adds it to an element + * @param {object|node} el - the node (element) to add the text to + * @param {string} str - the text to add + */ +function addText(el, str) { + var text = doc.createTextNode(str); + el.appendChild(text); +}; +/** + * finds the objects in the doc data for a fileName + * + * @param {array} arr - the array of objects to search + * @param {string} filename - the filename to look for in the meta object + * @return {array} - array of the objects found + */ +function findClassObjects(arr, filename) { + var i, totalItems = arr.length, newArr = []; + for (i = 0; i < totalItems; i++) { + if (isDefined(arr[i].meta)) { + if (arr[i].meta.filename === filename) { + newArr.push(arr[i]); + } + } + + } + return newArr; + +}; +/** + * add the class header content + */ +function addHeaderContent() { + var topSection = createEl('section', {id: 'top', class: 'section'}), + headerData = doc_data.thisClass.headerInfo, + header = createEl('h1'), + extendsNode = createEl('p'), + extendsLink, + definedIn = createEl('p'), + definedInLink = createEl('a', {href: docsPath + classFilePath + '#L' + headerData.meta.lineno}), + description = createEl('div', {style: 'border:none', id: 'classDescription'}), + descriptionEl, + constructorHeader = createEl('h3'), + constructorPre = createEl('pre'), + constructorCode = createEl('code'), + constructorParamsHeader = createEl('h4'), + constructorParams = [], + text; + // add main content wrapper + doc_body.appendChild(mainContent); + main = doc.getElementById('main'); + // add elements + topSection.appendChild(header); + topSection.appendChild(description); + // source file + topSection.appendChild(definedIn); + addText(definedIn, 'DEFINED IN: '); + definedIn.appendChild(definedInLink); + addText(definedInLink, headerData.meta.filename + ' line number: ' + headerData.meta.lineno); + mainContent.appendChild(topSection); + // page header + addText(header, headerData.name); + // parent info if this class extends another + if (isDefined(doc_data.parentClasses)) { + topSection.appendChild(extendsNode); + addText(extendsNode, 'EXTENDS: '); + extendsLink = createEl('a', {href: parentClassFilePath + doc_data.parentClasses[0].headerInfo.meta.filename}); + extendsNode.appendChild(extendsLink); + addText(extendsLink, doc_data.parentClasses[0].headerInfo.meta.filename); + } + // constructor info - don't add for video.js + if (doc_data.thisClass.headerInfo.name !== 'videojs') { + topSection.appendChild(constructorHeader); + topSection.appendChild(constructorPre); + constructorPre.appendChild(constructorCode); + // create the constructor info + addText(constructorHeader, 'Constructor'); + + // get constructor params if any + if (isDefined(headerData.params)) { + var paramTableHeaders = ['name', 'Type', 'Required', 'Description'], + paramTable = createEl('table'), + paramThead = createEl('thead'), + paramTbody = createEl('tbody'), + paramTheadRow = createEl('tr'), + paramTbodyRow = createEl('tr'), + paramTH, + paramTD, + k, + kMax; + + addText(constructorParamsHeader, 'Parameters'); + paramTable.appendChild(paramThead); + paramTable.appendChild(paramTbody); + paramThead.appendChild(paramTheadRow); + // set the table headers + kMax = paramTableHeaders.length; + for (k = 0; k < kMax; k++) { + paramTH = createEl('th'); + paramTheadRow.appendChild(paramTH); + addText(paramTH, paramTableHeaders[k]); + } + // now the table info + kMax = headerData.params.length; + for (k = 0; k < kMax; k++) { + paramTbodyRow = createEl('tr'); + paramTbody.appendChild(paramTbodyRow); + paramTD = createEl('td'); + addText(paramTD, headerData.params[k].name); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, headerData.params[k].type.names.join('|')); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + if (headerData.params[k].optional) { + text = doc.createTextNode('no'); + constructorParams.push('[' + headerData.params[k].name + ']'); + } else { + text = doc.createTextNode('yes'); + constructorParams.push(headerData.params[k].name); + } + paramTD.appendChild(text); + if (isDefined(headerData.params[k].description)) { + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, headerData.params[k].description.slice(3, headerData.params[k].description.indexOf('</p>'))); + paramTbodyRow.appendChild(paramTD); + } + paramTbody.appendChild(paramTbodyRow); + } + topSection.appendChild(constructorParamsHeader); + topSection.appendChild(paramTable); + } + } + // add constructor params to signature if any + if (constructorParams.length > 0) { + text = doc.createTextNode(headerData.name + '( ' + constructorParams.join(',') + ' )'); + } else { + text = doc.createTextNode(headerData.name + '()'); + } + constructorCode.appendChild(text); + descriptionEl = doc.getElementById('classDescription'); + descriptionEl.innerHTML = headerData.description; +}; +/** + * add the side nav + */ +function addIndex() { + var section = createEl('section', {id: 'index', class: 'side-nav'}), + navHeader = createEl('h2', {class: 'sideNavHeader'}), + navHeaderLink = createEl('a', {href: 'index.html'}), + memberIndex = createEl('div', {id: 'memberIndex', class: 'member-index'}), + thisMember, + addedMembers = {}, + item, + thisParent, + parentList, + header, + listItem, + listLink, + classHeader, + parentHeader, + i, + iMax, + j, + jMax, + // helper functions + classHasMembers = function (member) { + if (doc_data.thisClass[member].length > 0) { + return true; + } + return false; + }, + parentsHaveMembers = function () { + if (doc_data.parentClasses.length > 0) { + for (i = 0; i < doc_data.parentClasses.length; i++) { + if (doc_data.parentClasses[i][thisMember].length > 0) { + return true; + } + } + return false; + } + }, + makeList = function (classArr, parentArr, member, list) { + thisMember = member.toLowerCase(); + if (classArr.length > 0 || (isDefined(doc_data.parentClass) && parentArr.length > 0)) { + // add member list header + if (classHasMembers(thisMember) || parentsHaveMembers(thisMember)) { + header = createEl('h3'); + addText(header, doc_data.thisClass.headerInfo.name + ' ' + member); + } else { + return; + } + if (classHasMembers(thisMember)) { + classHeader = createEl('h4'); + addText(classHeader, 'Class ' + member); + memberIndex.appendChild(header); + memberIndex.appendChild(classHeader); + // add the list & items + list = createEl('ul', {id: list}); + memberIndex.appendChild(list); + iMax = classArr.length; + for (i = 0; i < iMax; i++) { + item = classArr[i].name; + if (!isItemInArray(addedMembers[member], item)) { + // keep track of added members to remove overridden ones + addedMembers[member].push(item); + listItem = createEl('li'); + listLink = createEl('a', {href: '#' + member + item}); + addText(listLink, item); + listItem.appendChild(listLink); + list.appendChild(listItem); + } + } + } + + // add inherited items if any + if (isDefined(parentArr) && parentArr.length > 0) { + jMax = parentArr.length; + for (j = 0; j < jMax; j++) { + thisParent = parentArr[j]; + if (thisParent[thisMember].length > 0) { + parentHeader = createEl('h4'); + addText(parentHeader, 'Inherited ' + member + ' from ' + thisParent.headerInfo.name); + memberIndex.appendChild(parentHeader); + parentList = createEl('ul'); + memberIndex.appendChild(parentList); + iMax = thisParent[thisMember].length; + for (i = 0; i < iMax; i++) { + item = thisParent[thisMember][i].name; + if (!isItemInArray(addedMembers[member], item)) { + addedMembers[member].push(item); + listItem = createEl('li'); + listLink = createEl('a', {href: '#' + member + item}); + listItem.appendChild(listLink); + addText(listLink, item); + parentList.appendChild(listItem); + } + + } + } + + } + + } + } + }; + // data structure to track members already added + addedMembers.Methods = []; + addedMembers.Properties = []; + addedMembers.Events = []; + + navHeader.appendChild(navHeaderLink); + addText(navHeaderLink, 'API Index'); + // add parent class members if any + if (isDefined(doc_data.parentClasses)) { + makeList(doc_data.thisClass.properties, doc_data.parentClasses, 'Properties', 'propertiesList'); + makeList(doc_data.thisClass.methods, doc_data.parentClasses, 'Methods', 'methodsList'); + makeList(doc_data.thisClass.events, doc_data.parentClasses, 'Events', 'eventsList'); + } else { + makeList(doc_data.thisClass.properties, [], 'Properties', 'propertiesList'); + makeList(doc_data.thisClass.methods, [], 'Methods', 'methodsList'); + makeList(doc_data.thisClass.events, [], 'Events', 'eventsList'); + } + section.appendChild(navHeader); + section.appendChild(memberIndex); + doc_body.appendChild(section); + +}; +/** + * add the member content + */ +function addMembersContent() { + var members = [{name: 'Properties', data: 'properties'}, {name: 'Methods', data: 'methods'}, {name: 'Events', data: 'events'}], + member, + addedMembers = {}, + section, + header, + headerSuffix, + item, + itemWrapper, + itemHeader, + itemHeaderStr, + itemParams = [], + itemParamsHeader, + itemDescription, + itemDescriptionEl, + itemFooter, + itemFooterLink, + itemFooterContent, + paramTable, + paramThead, + paramTbody, + paramTheadRow, + paramTbodyRow, + paramTH, + paramTD, + paramTableHeaders = ['name', 'Type', 'Required', 'Description'], + text, + i, + iMax, + j, + jMax, + k, + kMax, + m, + mMax, + topLinkP, + topLinkA, + // helper function + createMemberItem = function (classData, member) { + // create the class member items + jMax = classData[member.data].length; + for (j = 0; j < jMax; j++) { + item = classData[member.data][j]; + if (!isItemInArray(addedMembers[member.name], item.name)) { + addedMembers[member.name].push(item.name); + itemWrapper = createEl('div', {id: member.name + item.name}); + section.appendChild(itemWrapper); + itemHeader = createEl('h3', {id: item.name + 'Header'}); + itemHeaderStr = item.name; + itemWrapper.appendChild(itemHeader); + itemDescription = createEl('div', {id: item.name + 'Description', class: 'description'}); + itemWrapper.appendChild(itemDescription); + itemFooter = createEl('p', {class: 'vjs-only'}); + itemFooterLink = createEl('a', {href: docsPath + item.meta.filename + '#L' + item.meta.lineno}); + itemFooterContent = createEl('em', {id: item.name + 'Footer'}); + itemFooter.appendChild(itemFooterContent); + topLinkP = createEl('p'); + topLinkA = createEl('a', {href: '#top'}); + addText(topLinkA, '[back to top]'); + topLinkP.appendChild(topLinkA); + // for methods only handle params if any + if (member.name === 'Methods' && isDefined(item.params)) { + itemParams = []; + itemParamsHeader = createEl('h4'); + addText(itemParamsHeader, 'Parameters'); + paramTable = createEl('table'); + paramThead = createEl('thead'); + paramTbody = createEl('tbody'); + paramTable.appendChild(paramThead); + paramTable.appendChild(paramTbody); + paramTheadRow = createEl('tr'); + paramThead.appendChild(paramTheadRow); + // set the table headers + kMax = paramTableHeaders.length; + for (k = 0; k < kMax; k++) { + paramTH = createEl('th'); + paramTheadRow.appendChild(paramTH); + addText(paramTH, paramTableHeaders[k]); + } + // now the table info + kMax = item.params.length; + for (k = 0; k < kMax; k++) { + paramTbodyRow = createEl('tr'); + paramTbody.appendChild(paramTbodyRow); + paramTD = createEl('td'); + addText(paramTD, item.params[k].name); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, item.params[k].type.names.join('|')); + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + if (item.params[k].optional) { + text = doc.createTextNode('no'); + itemParams.push('[' + item.params[k].name + ']'); + } else { + text = doc.createTextNode('yes'); + itemParams.push(item.params[k].name); + } + paramTD.appendChild(text); + if (isDefined(item.params[k].description)) { + paramTbodyRow.appendChild(paramTD); + paramTD = createEl('td'); + addText(paramTD, item.params[k].description.slice(3, item.params[k].description.indexOf('</p>'))); + paramTbodyRow.appendChild(paramTD); + } + paramTbody.appendChild(paramTbodyRow); + } + itemHeaderStr += '( ' + itemParams.join(', ') + ' )'; + if (item.scope === 'static') { + itemHeaderStr = 'static ' + itemHeaderStr; + } + itemWrapper.appendChild(itemParamsHeader); + itemWrapper.appendChild(paramTable); + } else if (member.name === 'Methods') { + itemHeaderStr += '()'; + } + itemWrapper.appendChild(itemFooter); + itemWrapper.appendChild(topLinkP); + addText(itemHeader, itemHeaderStr); + if (isDefined(item.deprecated)) { + headerSuffix = createEl('em', {class: 'deprecated'}); + text = doc.createTextNode(); + addText(headerSuffix, ' (deprecated)'); + itemHeader.appendChild(headerSuffix); + } + itemDescriptionEl = doc.getElementById(item.name + 'Description'); + itemDescriptionEl.innerHTML = item.description; + addText(itemFooterContent, 'Defined in '); + itemFooterContent.appendChild(itemFooterLink); + addText(itemFooterLink, 'src/js/' + item.meta.filename + ' line number: ' + item.meta.lineno); + } + } + }; + // data structure to track members already added + addedMembers.Methods = []; + addedMembers.Properties = []; + addedMembers.Events = []; + iMax = members.length; + for (i = 0; i < iMax; i++) { + member = members[i]; + if (doc_data.thisClass[member.data].length > 0) { + // create the member section + section = createEl('section', {id: member.name.toLowerCase(), class: 'section'}); + main.appendChild(section); + header = createEl('h2'); + addText(header, member.name); + section.appendChild(header); + // create the member items + createMemberItem(doc_data.thisClass, member); + if (isDefined(doc_data.parentClasses)) { + mMax = doc_data.parentClasses.length; + for (m = 0; m < mMax; m++) { + if (doc_data.parentClasses[m][member.data].length > 0) { + createMemberItem(doc_data.parentClasses[m], member); + } + } + } + } + } +}; + +/** + * gets things going + * @param {string} docFileName - name of the HTML doc we're building + */ +function contentInit(docFileName) { + var fileName, + parent_class_name, + privateItems = [], + srcFileName, + idx, + text, + j, + parentCounter = 0, + // helper function to get the chain of parent classes + getAncestorData = function (parent_class) { + // get data objects for the class + classes.parentClasses[parentCounter] = findClassObjects(docData, parent_class + '.js'); + // check to see if there are any parent class items + if (classes.parentClasses[parentCounter].length > 0) { + doc_data.parentClasses[parentCounter] = {}; + // get parent header info + idx = findObjectInArray(classes.parentClasses[parentCounter], 'kind', 'class'); + doc_data.parentClasses[parentCounter].headerInfo = copyObj(classes.parentClasses[parentCounter][idx]); + // get parent class path + idx = findObjectInArray(classes.parentClasses[parentCounter], 'kind', 'file'); + if (idx > -1) { + parentClassFilePath = classes.parentClasses[parentCounter][idx].name; + } else { + parentClassFilePath = doc_data.parentClasses[parentCounter].headerInfo.meta.filename; + } + // remove any private items + privateItems = findObjectsInArray(classes.parentClasses[parentCounter], 'access', 'private'); + j = privateItems.length; + while (j > 0) { + j--; + classes.parentClasses[parentCounter].splice(privateItems[j], 1); + } + // now get the member arrays + doc_data.parentClasses[parentCounter].methods = getSubArray(classes.parentClasses[parentCounter], 'kind', 'function'); + doc_data.parentClasses[parentCounter].methods = sortArray(doc_data.parentClasses[parentCounter].methods, 'name'); + doc_data.parentClasses[parentCounter].events = getSubArray(classes.parentClasses[parentCounter], 'kind', 'event'); + doc_data.parentClasses[parentCounter].events = sortArray(doc_data.parentClasses[parentCounter].events, 'name'); + doc_data.parentClasses[parentCounter].properties = getSubArray(classes.parentClasses[parentCounter], 'kind', 'property'); + doc_data.parentClasses[parentCounter].properties = sortArray(doc_data.parentClasses[parentCounter].properties, 'name'); + } + // get parent class, if any, and anything it inherits + if (isDefined(doc_data.parentClasses[parentCounter].headerInfo.augments)) { + idx = findObjectInArray(docData, 'name', doc_data.parentClasses[parentCounter].headerInfo.augments[0]); + parent_class_name = docData[idx].meta.filename.replace('.js', ''); + parentCounter++; + getAncestorData(parent_class_name); + } + }; + // get refenence to doc body and title + doc_body = doc.getElementsByTagName('body')[0]; + title = doc.getElementsByTagName('title')[0]; + // content wrapper + mainContent = createEl('div', {id: 'main', class: 'section'}); + // src file is the js file of the same name + srcFileName = docFileName.replace('.html', '.js') + // video.js is a special case - all others will be the same + if (srcFileName === 'video.js') { + // for doc purposes, treat video like a class, though it's not + // get the data objects for this class + classes.thisClass = findClassObjects(docData, srcFileName); + idx = findObjectInArray(classes.thisClass, 'name', 'videojs'); + doc_data.thisClass = {}; + // get the class overview object + doc_data.thisClass.headerInfo = copyObj(classes.thisClass[idx]); + doc_data.thisClass.headerInfo.name = 'videojs'; + idx = findObjectInArray(classes.thisClass, 'kind', 'file'); + if (idx > -1) { + classFilePath = classes.thisClass[idx].name; + } else { + classFilePath = doc_data.thisClass.headerInfo.meta.filename; + } + // set the doc title + text = doc.createTextNode(doc_data.thisClass.headerInfo.name); + title.appendChild(text); + // remove any private items + privateItems = findObjectsInArray(classes.thisClass, 'access', 'private'); + j = privateItems.length; + while (j > 0) { + j--; + classes.thisClass.splice(privateItems[j], 1); + } + // now get the member arrays + doc_data.thisClass.methods = getSubArray(classes.thisClass, 'kind', 'function'); + doc_data.thisClass.methods = sortArray(doc_data.thisClass.methods, 'name'); + doc_data.thisClass.events = getSubArray(classes.thisClass, 'kind', 'event'); + doc_data.thisClass.events = sortArray(doc_data.thisClass.events, 'name'); + doc_data.thisClass.properties = getSubArray(classes.thisClass, 'kind', 'property'); + doc_data.thisClass.properties = sortArray(doc_data.thisClass.properties, 'name'); + } else { + // get the data objects for this class + classes.thisClass = findClassObjects(docData, srcFileName); + idx = findObjectInArray(classes.thisClass, 'kind', 'class'); + doc_data.thisClass = {}; + doc_data.thisClass.headerInfo = copyObj(classes.thisClass[idx]); + // get the file path from @file object + idx = findObjectInArray(classes.thisClass, 'kind', 'file'); + if (idx > -1) { + classFilePath = classes.thisClass[idx].name; + } else { + classFilePath = doc_data.thisClass.headerInfo.meta.filename; + } + // set the doc title + text = doc.createTextNode(doc_data.thisClass.headerInfo.name); + title.appendChild(text); + // remove any private items + privateItems = findObjectsInArray(classes.thisClass, 'access', 'private'); + j = privateItems.length; + while (j > 0) { + j--; + classes.thisClass.splice(privateItems[j], 1); + } + // now get the member arrays + doc_data.thisClass.methods = getSubArray(classes.thisClass, 'kind', 'function'); + doc_data.thisClass.methods = sortArray(doc_data.thisClass.methods, 'name'); + doc_data.thisClass.events = getSubArray(classes.thisClass, 'kind', 'event'); + doc_data.thisClass.events = sortArray(doc_data.thisClass.events, 'name'); + doc_data.thisClass.properties = getSubArray(classes.thisClass, 'kind', 'property'); + doc_data.thisClass.properties = sortArray(doc_data.thisClass.properties, 'name'); + // get parent class, if any, and anything it inherits + if (isDefined(doc_data.thisClass.headerInfo.augments)) { + doc_data.parentClass = {}; + doc_data.parentClasses = []; + classes.parentClasses = []; + idx = findObjectInArray(docData, 'name', doc_data.thisClass.headerInfo.augments[0]); + parent_class_name = docData[idx].meta.filename.replace('.js', ''); + getAncestorData(parent_class_name); + } + } + // now we're ready to roll + addIndex(); + addHeaderContent(); + addMembersContent(); +}; diff --git a/javascript/videojs/docs/legacy-docs/api/js/highlight-syntax.js b/javascript/videojs/docs/legacy-docs/api/js/highlight-syntax.js new file mode 100644 index 0000000..2fc9370 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/js/highlight-syntax.js @@ -0,0 +1,31 @@ +BCLSHighlighter = (function(hljs) { + var codeBlocks = document.querySelectorAll('pre>code'), + i, + iMax, + txt, + reLT = new RegExp('<', 'g'), + reGT = new RegExp('>;', 'g'); + + /** + * tests for all the ways a variable might be undefined or not have a value + * @param {*} x the variable to test + * @return {Boolean} true if variable is defined and has a value + */ + function isDefined(x) { + if (x === '' || x === null || x === undefined || x === NaN) { + return false; + } + return true; + }; + + if (isDefined(codeBlocks)) { + iMax = codeBlocks.length; + for (i = 0; i < iMax; i++) { + txt = codeBlocks[i].innerHTML.toString(); + txt = txt.replace(reLT, '<'); + txt = txt.replace(reGT, '>'); + codeBlocks[i].innerHTML = txt; + hljs.highlightBlock(codeBlocks[i]); + } + } +})(hljs);
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/live-display.html b/javascript/videojs/docs/legacy-docs/api/live-display.html new file mode 100644 index 0000000..1934ede --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/live-display.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>LiveDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/LiveDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/LiveDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>LiveDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>LiveDisplay</h1><div style="border:none" id="classDescription" class="description"><p>Displays the live indicator +TODO - Future make it click to snap to live</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/live-display.js#L7">live-display.js line number: 7</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>LiveDisplay()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/live-display.js#L23">https://github.com/videojs/video.js/blob/master/src/js/control-bar/live-display.js line number: 23</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/load-progress-bar.html b/javascript/videojs/docs/legacy-docs/api/load-progress-bar.html new file mode 100644 index 0000000..5e80b2f --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/load-progress-bar.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>LoadProgressBar</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/LoadProgressBar.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/LoadProgressBar.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>LoadProgressBar Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>LoadProgressBar</h1><div style="border:none" id="classDescription" class="description"><p>Shows load progress</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/load-progress-bar.js#L7">load-progress-bar.js line number: 7</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>LoadProgressBar( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/load-progress-bar.js#L22">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/load-progress-bar.js line number: 22</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update progress bar</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/load-progress-bar.js#L35">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/load-progress-bar.js line number: 35</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/loader.html b/javascript/videojs/docs/legacy-docs/api/loader.html new file mode 100644 index 0000000..5146c73 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/loader.html @@ -0,0 +1,11 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>MediaLoader</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>MediaLoader</h1><div style="border:none" id="classDescription" class="description"><p>The Media Loader is the component that decides which playback technology to load +when the player is initialized.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/loader.js#L9">loader.js line number: 9</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>MediaLoader( player,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/loading-spinner.html b/javascript/videojs/docs/legacy-docs/api/loading-spinner.html new file mode 100644 index 0000000..7f169d5 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/loading-spinner.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>LoadingSpinner</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/LoadingSpinner.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/LoadingSpinner.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>LoadingSpinner Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>LoadingSpinner</h1><div style="border:none" id="classDescription" class="description"><p>Loading spinner for waiting events</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/loading-spinner.js#L8">loading-spinner.js line number: 8</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>LoadingSpinner()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/loading-spinner.js#L16">https://github.com/videojs/video.js/blob/master/src/js/loading-spinner.js line number: 16</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/md.html b/javascript/videojs/docs/legacy-docs/api/md.html new file mode 100644 index 0000000..3f48189 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/md.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-docs.css"> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> + </head> + <body> + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/menu-button.html b/javascript/videojs/docs/legacy-docs/api/menu-button.html new file mode 100644 index 0000000..2b0630d --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/menu-button.html @@ -0,0 +1,150 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>MenuButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/MenuButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/MenuButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>MenuButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateItems">createItems</a></li><li><a href="#MethodscreateMenu">createMenu</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>MenuButton</h1><div style="border:none" id="classDescription" class="description"><p>A button class with a popup menu</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L11">menu-button.js line number: 11</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>MenuButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L111">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L99">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 99</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateItems"><h3 id="createItemsHeader">createItems()</h3><div id="createItemsDescription" class="description"><p>Create the list of menu items. Specific to each subclass.</p></div><p class="vjs-only"><em id="createItemsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L92">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 92</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateMenu"><h3 id="createMenuHeader">createMenu()</h3><div id="createMenuDescription" class="description"><p>Create menu</p></div><p class="vjs-only"><em id="createMenuFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L62">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 62</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>When you click the button it adds focus, which +will show the menu indefinitely. +So we'll remove focus when the mouse leaves the button. +Focus is needed for tab navigation. +Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L130">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 130</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press on menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L151">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 151</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleSubmenuKeyPress"><h3 id="handleSubmenuKeyPressHeader">handleSubmenuKeyPress( event )</h3><div id="handleSubmenuKeyPressDescription" class="description"><p>Handle key press on submenu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleSubmenuKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L179">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 179</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodspressButton"><h3 id="pressButtonHeader">pressButton()</h3><div id="pressButtonDescription" class="description"><p>Makes changes based on button pressed</p></div><p class="vjs-only"><em id="pressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L199">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 199</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsunpressButton"><h3 id="unpressButtonHeader">unpressButton()</h3><div id="unpressButtonDescription" class="description"><p>Makes changes based on button unpressed</p></div><p class="vjs-only"><em id="unpressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L211">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 211</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update menu</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L31">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 31</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/menu-item.html b/javascript/videojs/docs/legacy-docs/api/menu-item.html new file mode 100644 index 0000000..e2f1655 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/menu-item.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>MenuItem</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/MenuItem.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/MenuItem.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>MenuItem Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#Methodsselected">selected</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>MenuItem</h1><div style="border:none" id="classDescription" class="description"><p>The component for a menu item. <code><li&gt;</code></p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L8">menu-item.js line number: 8</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>MenuItem( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Desc</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>Desc</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L34">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle a click on the menu item, and set it to selected</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L50">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 50</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsselected"><h3 id="selectedHeader">selected( selected )</h3><div id="selectedDescription" class="description"><p>Set this menu item as selected or not</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selected</td><td>Boolean</td></tr></tbody></table><p class="vjs-only"><em id="selectedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L59">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/menu.html b/javascript/videojs/docs/legacy-docs/api/menu.html new file mode 100644 index 0000000..f5df438 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/menu.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Menu</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Menu.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Menu.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Menu Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddItem">addItem</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsfocus">focus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodsstepBack">stepBack</a></li><li><a href="#MethodsstepForward">stepForward</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Menu</h1><div style="border:none" id="classDescription" class="description"><p>The Menu component is used to build pop up menus, including subtitle and +captions selection menus.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L9">menu.js line number: 9</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>Menu()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddItem"><h3 id="addItemHeader">addItem( component )</h3><div id="addItemDescription" class="description"><p>Add a menu item to the menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Object|String</td><td>yes</td><td>Component or component type to add</td></tr></tbody></table><p class="vjs-only"><em id="addItemFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L26">https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L40">https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js line number: 40</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsfocus"><h3 id="focusHeader">focus( item )</h3><div id="focusDescription" class="description"><p>Set focus on a menu item in the menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>item</td><td>Object|String</td><td>yes</td><td>Index of child item set focus on</td></tr></tbody></table><p class="vjs-only"><em id="focusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L113">https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js line number: 113</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press for menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L69">https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js line number: 69</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstepBack"><h3 id="stepBackHeader">stepBack()</h3><div id="stepBackDescription" class="description"><p>Move to previous (higher) menu item for keyboard users</p></div><p class="vjs-only"><em id="stepBackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L99">https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js line number: 99</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstepForward"><h3 id="stepForwardHeader">stepForward()</h3><div id="stepForwardDescription" class="description"><p>Move to next (lower) menu item for keyboard users</p></div><p class="vjs-only"><em id="stepForwardFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js#L85">https://github.com/videojs/video.js/blob/master/src/js/menu/menu.js line number: 85</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/modal-dialog.html b/javascript/videojs/docs/legacy-docs/api/modal-dialog.html new file mode 100644 index 0000000..201b964 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/modal-dialog.html @@ -0,0 +1,172 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ModalDialog</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ModalDialog.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ModalDialog.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ModalDialog Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodsclose">close</a></li><li><a href="#Methodscloseable">closeable</a></li><li><a href="#Methodscontent">content</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsempty">empty</a></li><li><a href="#Methodsfill">fill</a></li><li><a href="#MethodsfillWith">fillWith</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#Methodsopen">open</a></li><li><a href="#Methodsopened">opened</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ModalDialog</h1><div style="border:none" id="classDescription" class="description"><p>The <code>ModalDialog</code> displays over the video and its controls, which blocks +interaction with the player until it is closed.</p> +<p>Modal dialogs include a "Close" button and will close when that button +is activated - or when ESC is pressed anywhere.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L16">modal-dialog.js line number: 16</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>ModalDialog()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Build the modal's CSS class.</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L101">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsclose"><h3 id="closeHeader">close()</h3><div id="closeDescription" class="description"><p>Closes the modal.</p></div><p class="vjs-only"><em id="closeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L206">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 206</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodscloseable"><h3 id="closeableHeader">closeable( [value] )</h3><div id="closeableDescription" class="description"><p>Whether or not the modal is closeable via the UI.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>no</td><td>If given as a Boolean, it will set the <code>closeable</code> option.</td></tr></tbody></table><p class="vjs-only"><em id="closeableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L239">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 239</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodscontent"><h3 id="contentHeader">content( [value] )</h3><div id="contentDescription" class="description"><p>Gets or sets the modal content, which gets normalized before being +rendered into the DOM.</p> +<p>This does not update the DOM or fill the modal, but it is called during +that process.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Mixed</td><td>no</td><td>If defined, sets the internal content value to be used on the + next call(s) to <code>fill</code>. This value is normalized before being + inserted. To "clear" the internal content value, pass <code>null</code>.</td></tr></tbody></table><p class="vjs-only"><em id="contentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L338">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 338</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the modal's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L83">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 83</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsempty"><h3 id="emptyHeader">empty()</h3><div id="emptyDescription" class="description"><p>Empties the content element.</p> +<p>This happens automatically anytime the modal is filled.</p></div><p class="vjs-only"><em id="emptyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L323">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 323</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsfill"><h3 id="fillHeader">fill()</h3><div id="fillDescription" class="description"><p>Fill the modal's content element with the modal's "content" option.</p> +<p>The content element will be emptied before this change takes place.</p></div><p class="vjs-only"><em id="fillFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L275">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 275</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsfillWith"><h3 id="fillWithHeader">fillWith( [content] )</h3><div id="fillWithDescription" class="description"><p>Fill the modal's content element with arbitrary content.</p> +<p>The content element will be emptied before this change takes place.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>content</td><td>Mixed</td><td>no</td><td>The same rules apply to this as apply to the <code>content</code> option.</td></tr></tbody></table><p class="vjs-only"><em id="fillWithFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L287">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 287</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( e )</h3><div id="handleKeyPressDescription" class="description"><p>Handles key presses on the document, looking for ESC, which closes +the modal.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>e</td><td>Event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L111">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsopen"><h3 id="openHeader">open()</h3><div id="openDescription" class="description"><p>Opens the modal.</p></div><p class="vjs-only"><em id="openFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L150">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 150</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsopened"><h3 id="openedHeader">opened( [value] )</h3><div id="openedDescription" class="description"><p>Whether or not the modal is opened currently.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>no</td><td>If given, it will open (<code>true</code>) or close (<code>false</code>) the modal.</td></tr></tbody></table><p class="vjs-only"><em id="openedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js#L190">https://github.com/videojs/video.js/blob/master/src/js/modal-dialog.js line number: 190</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/mouse-time-display.html b/javascript/videojs/docs/legacy-docs/api/mouse-time-display.html new file mode 100644 index 0000000..3eca394 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/mouse-time-display.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>MouseTimeDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/MouseTimeDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/MouseTimeDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>MouseTimeDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>MouseTimeDisplay</h1><div style="border:none" id="classDescription" class="description"><p>The Mouse Time Display component shows the time you will seek to +when hovering over the progress bar</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/mouse-time-display.js#L10">mouse-time-display.js line number: 10</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>MouseTimeDisplay( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/mouse-time-display.js#L31">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/mouse-time-display.js line number: 31</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/mute-toggle.html b/javascript/videojs/docs/legacy-docs/api/mute-toggle.html new file mode 100644 index 0000000..0aa2e27 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/mute-toggle.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>MuteToggle</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/MuteToggle.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/MuteToggle.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>MuteToggle Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>MuteToggle</h1><div style="border:none" id="classDescription" class="description"><p>A button component for muting the audio</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js#L8">mute-toggle.js line number: 8</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>MuteToggle( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js#L39">https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js line number: 39</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on mute</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js#L49">https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js line number: 49</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update volume</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js#L58">https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js line number: 58</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>An object of properties that should be set on the element</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set on the element</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L26">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/off-text-track-menu-item.html b/javascript/videojs/docs/legacy-docs/api/off-text-track-menu-item.html new file mode 100644 index 0000000..ab343e9 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/off-text-track-menu-item.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>OffTextTrackMenuItem</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/OffTextTrackMenuItem.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/OffTextTrackMenuItem.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>OffTextTrackMenuItem Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodshandleTracksChange">handleTracksChange</a></li></ul><h4>Inherited Methods from TextTrackMenuItem</h4><ul><li><a href="#MethodshandleClick">handleClick</a></li></ul><h4>Inherited Methods from MenuItem</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsselected">selected</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>OffTextTrackMenuItem</h1><div style="border:none" id="classDescription" class="description"><p>A special menu item for turning of a specific type of text track</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/off-text-track-menu-item.js#L7">off-text-track-menu-item.js line number: 7</a></p><p>EXTENDS: <a href="text-track-menu-item.html">text-track-menu-item.js</a></p><h3>Constructor</h3><pre><code>OffTextTrackMenuItem( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodshandleTracksChange"><h3 id="handleTracksChangeHeader">handleTracksChange( event )</h3><div id="handleTracksChangeDescription" class="description"><p>Handle text track change</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleTracksChangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/off-text-track-menu-item.js#L35">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/off-text-track-menu-item.js line number: 35</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on text track</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js#L68">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js line number: 68</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Desc</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>Desc</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L34">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsselected"><h3 id="selectedHeader">selected( selected )</h3><div id="selectedDescription" class="description"><p>Set this menu item as selected or not</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selected</td><td>Boolean</td></tr></tbody></table><p class="vjs-only"><em id="selectedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L59">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/play-progress-bar.html b/javascript/videojs/docs/legacy-docs/api/play-progress-bar.html new file mode 100644 index 0000000..3dd5495 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/play-progress-bar.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PlayProgressBar</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/PlayProgressBar.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/PlayProgressBar.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>PlayProgressBar Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>PlayProgressBar</h1><div style="border:none" id="classDescription" class="description"><p>Shows play progress</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/play-progress-bar.js#L8">play-progress-bar.js line number: 8</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>PlayProgressBar( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/play-progress-bar.js#L25">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/play-progress-bar.js line number: 25</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/play-toggle.html b/javascript/videojs/docs/legacy-docs/api/play-toggle.html new file mode 100644 index 0000000..ff7a0f5 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/play-toggle.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PlayToggle</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/PlayToggle.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/PlayToggle.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>PlayToggle Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandlePause">handlePause</a></li><li><a href="#MethodshandlePlay">handlePlay</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>PlayToggle</h1><div style="border:none" id="classDescription" class="description"><p>Button to toggle between play and pause</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L7">play-toggle.js line number: 7</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>PlayToggle( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L24">https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js line number: 24</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click to toggle between play and pause</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L34">https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandlePause"><h3 id="handlePauseHeader">handlePause()</h3><div id="handlePauseDescription" class="description"><p>Add the vjs-paused class to the element so it can change appearance</p></div><p class="vjs-only"><em id="handlePauseFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L58">https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js line number: 58</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandlePlay"><h3 id="handlePlayHeader">handlePlay()</h3><div id="handlePlayDescription" class="description"><p>Add the vjs-playing class to the element so it can change appearance</p></div><p class="vjs-only"><em id="handlePlayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L47">https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js line number: 47</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>An object of properties that should be set on the element</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set on the element</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L26">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/playback-rate-menu-button.html b/javascript/videojs/docs/legacy-docs/api/playback-rate-menu-button.html new file mode 100644 index 0000000..a875a5f --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/playback-rate-menu-button.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PlaybackRateMenuButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/PlaybackRateMenuButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/PlaybackRateMenuButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>PlaybackRateMenuButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateMenu">createMenu</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodsplaybackRates">playbackRates</a></li><li><a href="#MethodsplaybackRateSupported">playbackRateSupported</a></li><li><a href="#MethodsupdateARIAAttributes">updateARIAAttributes</a></li><li><a href="#MethodsupdateLabel">updateLabel</a></li><li><a href="#MethodsupdateVisibility">updateVisibility</a></li></ul><h4>Inherited Methods from MenuButton</h4><ul><li><a href="#MethodscreateItems">createItems</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>PlaybackRateMenuButton</h1><div style="border:none" id="classDescription" class="description"><p>The component for controlling the playback rate</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L10">playback-rate-menu-button.js line number: 10</a></p><p>EXTENDS: <a href="menu-button.html">menu-button.js</a></p><h3>Constructor</h3><pre><code>PlaybackRateMenuButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L49">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 49</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L30">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 30</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateMenu"><h3 id="createMenuHeader">createMenu()</h3><div id="createMenuDescription" class="description"><p>Create the playback rate menu</p></div><p class="vjs-only"><em id="createMenuFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L59">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle menu item click</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L90">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 90</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsplaybackRates"><h3 id="playbackRatesHeader">playbackRates()</h3><div id="playbackRatesDescription" class="description"><p>Get possible playback rates</p></div><p class="vjs-only"><em id="playbackRatesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L111">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsplaybackRateSupported"><h3 id="playbackRateSupportedHeader">playbackRateSupported()</h3><div id="playbackRateSupportedDescription" class="description"><p>Get supported playback rates</p></div><p class="vjs-only"><em id="playbackRateSupportedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L121">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 121</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateARIAAttributes"><h3 id="updateARIAAttributesHeader">updateARIAAttributes()</h3><div id="updateARIAAttributesDescription" class="description"><p>Updates ARIA accessibility attributes</p></div><p class="vjs-only"><em id="updateARIAAttributesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L80">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 80</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateLabel"><h3 id="updateLabelHeader">updateLabel()</h3><div id="updateLabelDescription" class="description"><p>Update button label when rate changed</p></div><p class="vjs-only"><em id="updateLabelFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L148">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 148</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateVisibility"><h3 id="updateVisibilityHeader">updateVisibility()</h3><div id="updateVisibilityDescription" class="description"><p>Hide playback rate controls when they're no playback rate options to select</p></div><p class="vjs-only"><em id="updateVisibilityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js#L135">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateItems"><h3 id="createItemsHeader">createItems()</h3><div id="createItemsDescription" class="description"><p>Create the list of menu items. Specific to each subclass.</p></div><p class="vjs-only"><em id="createItemsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L92">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 92</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press on menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L151">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 151</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleSubmenuKeyPress"><h3 id="handleSubmenuKeyPressHeader">handleSubmenuKeyPress( event )</h3><div id="handleSubmenuKeyPressDescription" class="description"><p>Handle key press on submenu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleSubmenuKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L179">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 179</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodspressButton"><h3 id="pressButtonHeader">pressButton()</h3><div id="pressButtonDescription" class="description"><p>Makes changes based on button pressed</p></div><p class="vjs-only"><em id="pressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L199">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 199</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsunpressButton"><h3 id="unpressButtonHeader">unpressButton()</h3><div id="unpressButtonDescription" class="description"><p>Makes changes based on button unpressed</p></div><p class="vjs-only"><em id="unpressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L211">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 211</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update menu</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L31">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 31</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/playback-rate-menu-item.html b/javascript/videojs/docs/legacy-docs/api/playback-rate-menu-item.html new file mode 100644 index 0000000..cf00426 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/playback-rate-menu-item.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PlaybackRateMenuItem</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/PlaybackRateMenuItem.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/PlaybackRateMenuItem.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>PlaybackRateMenuItem Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from MenuItem</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsselected">selected</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>PlaybackRateMenuItem</h1><div style="border:none" id="classDescription" class="description"><p>The specific menu item type for selecting a playback rate</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-item.js#L7">playback-rate-menu-item.js line number: 7</a></p><p>EXTENDS: <a href="menu-item.html">menu-item.js</a></p><h3>Constructor</h3><pre><code>PlaybackRateMenuItem( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on menu item</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-item.js#L32">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-item.js line number: 32</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update playback rate with selected rate</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-item.js#L42">https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-item.js line number: 42</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Desc</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>Desc</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L34">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsselected"><h3 id="selectedHeader">selected( selected )</h3><div id="selectedDescription" class="description"><p>Set this menu item as selected or not</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selected</td><td>Boolean</td></tr></tbody></table><p class="vjs-only"><em id="selectedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L59">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/player.html b/javascript/videojs/docs/legacy-docs/api/player.html new file mode 100644 index 0000000..258099e --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/player.html @@ -0,0 +1,280 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Player</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Player.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Player.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Player Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddRemoteTextTrack">addRemoteTextTrack</a></li><li><a href="#MethodsaddTextTrack">addTextTrack</a></li><li><a href="#MethodsaspectRatio">aspectRatio</a></li><li><a href="#Methodsautoplay">autoplay</a></li><li><a href="#Methodsbuffered">buffered</a></li><li><a href="#MethodsbufferedEnd">bufferedEnd</a></li><li><a href="#MethodsbufferedPercent">bufferedPercent</a></li><li><a href="#MethodscanPlayType">canPlayType</a></li><li><a href="#Methodscontrols">controls</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscurrentSrc">currentSrc</a></li><li><a href="#MethodscurrentTime">currentTime</a></li><li><a href="#MethodscurrentType">currentType</a></li><li><a href="#Methodsdimension">dimension</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsduration">duration</a></li><li><a href="#Methodsended">ended</a></li><li><a href="#MethodsenterFullWindow">enterFullWindow</a></li><li><a href="#Methodserror">error</a></li><li><a href="#MethodsexitFullscreen">exitFullscreen</a></li><li><a href="#MethodsexitFullWindow">exitFullWindow</a></li><li><a href="#Methodsfluid">fluid</a></li><li><a href="#MethodsfullWindowOnEscKey">fullWindowOnEscKey</a></li><li><a href="#MethodsgetCache">getCache</a></li><li><a href="#MethodsgetTagSettings">getTagSettings</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodsinit">init</a></li><li><a href="#MethodsisFullscreen">isFullscreen</a></li><li><a href="#Methodslanguage">language</a></li><li><a href="#Methodslanguages">languages</a></li><li><a href="#Methodsload">load</a></li><li><a href="#Methodsloop">loop</a></li><li><a href="#Methodsmuted">muted</a></li><li><a href="#MethodsnetworkState">networkState</a></li><li><a href="#Methodspause">pause</a></li><li><a href="#Methodspaused">paused</a></li><li><a href="#Methodsplay">play</a></li><li><a href="#MethodsplaybackRate">playbackRate</a></li><li><a href="#Methodsposter">poster</a></li><li><a href="#Methodspreload">preload</a></li><li><a href="#MethodsreadyState">readyState</a></li><li><a href="#MethodsremainingTime">remainingTime</a></li><li><a href="#MethodsremoteTextTrackEls">remoteTextTrackEls</a></li><li><a href="#MethodsremoteTextTracks">remoteTextTracks</a></li><li><a href="#MethodsremoveRemoteTextTrack">removeRemoteTextTrack</a></li><li><a href="#MethodsreportUserActivity">reportUserActivity</a></li><li><a href="#MethodsrequestFullscreen">requestFullscreen</a></li><li><a href="#Methodsreset">reset</a></li><li><a href="#Methodsscrubbing">scrubbing</a></li><li><a href="#Methodsseekable">seekable</a></li><li><a href="#Methodsseeking">seeking</a></li><li><a href="#MethodsselectSource">selectSource</a></li><li><a href="#Methodssrc">src</a></li><li><a href="#MethodssupportsFullScreen">supportsFullScreen</a></li><li><a href="#Methodstech">tech</a></li><li><a href="#MethodstextTracks">textTracks</a></li><li><a href="#MethodstoJSON">toJSON</a></li><li><a href="#MethodsupdateStyleEl_">updateStyleEl_</a></li><li><a href="#MethodsuserActive">userActive</a></li><li><a href="#MethodsvideoHeight">videoHeight</a></li><li><a href="#MethodsvideoWidth">videoWidth</a></li><li><a href="#Methodsvolume">volume</a></li><li><a href="#Methodswidth">width</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li></ul><h3>Player Events</h3><h4>Class Events</h4><ul id="eventsList"><li><a href="#Eventsended">ended</a></li><li><a href="#Eventserror">error</a></li><li><a href="#Eventsloadeddata">loadeddata</a></li><li><a href="#Eventsloadedmetadata">loadedmetadata</a></li><li><a href="#Eventstimeupdate">timeupdate</a></li><li><a href="#Eventsuseractive">useractive</a></li><li><a href="#Eventsuserinactive">userinactive</a></li><li><a href="#Eventsvolumechange">volumechange</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Player</h1><div style="border:none" id="classDescription" class="description"><p>An instance of the <code>Player</code> class is created when any of the Video.js setup methods are used to initialize a video.</p> +<pre class="prettyprint source lang-js"><code>var myPlayer = videojs('example_video_1');</code></pre><p>In the following example, the <code>data-setup</code> attribute tells the Video.js library to create a player instance when the library is ready.</p> +<pre class="prettyprint source lang-html"><code><video id="example_video_1" data-setup='{}' controls> + <source src="my-source.mp4" type="video/mp4"> +</video></code></pre><p>After an instance has been created it can be accessed globally using <code>Video('example_video_1')</code>.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L41">player.js line number: 41</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>Player( tag,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tag</td><td>Element</td><td>yes</td><td>The original video tag used for configuring options</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddRemoteTextTrack"><h3 id="addRemoteTextTrackHeader">addRemoteTextTrack( options )</h3><div id="addRemoteTextTrackDescription" class="description"><p>Add a remote text track</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>yes</td><td>Options for remote text track</td></tr></tbody></table><p class="vjs-only"><em id="addRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2520">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2520</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddTextTrack"><h3 id="addTextTrackHeader">addTextTrack( kind, [label], [language] )</h3><div id="addTextTrackDescription" class="description"><p>Add a text track +In addition to the W3C settings we allow adding additional info through options. +http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>kind</td><td>String</td><td>yes</td><td>Captions, subtitles, chapters, descriptions, or metadata</td></tr><tr><td>label</td><td>String</td><td>no</td><td>Optional label</td></tr><tr><td>language</td><td>String</td><td>no</td><td>Optional language</td></tr></tbody></table><p class="vjs-only"><em id="addTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2506">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2506</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaspectRatio"><h3 id="aspectRatioHeader">aspectRatio( [ratio] )</h3><div id="aspectRatioDescription" class="description"><p>Get/Set the aspect ratio</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>ratio</td><td>String</td><td>no</td><td>Aspect ratio for player</td></tr></tbody></table><p class="vjs-only"><em id="aspectRatioFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L385">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 385</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsautoplay"><h3 id="autoplayHeader">autoplay( value )</h3><div id="autoplayDescription" class="description"><p>Get or set the autoplay attribute.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>yes</td><td>Boolean to determine if video should autoplay</td></tr></tbody></table><p class="vjs-only"><em id="autoplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1980">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1980</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsbuffered"><h3 id="bufferedHeader">buffered()</h3><div id="bufferedDescription" class="description"><p>Get a TimeRange object with the times of the video that have been downloaded +If you just want the percent of the video that's been downloaded, +use bufferedPercent.</p> +<pre class="prettyprint source lang-js"><code> // Number of different ranges of time have been buffered. Usually 1. + numberOfRanges = bufferedTimeRange.length, + // Time in seconds when the first range starts. Usually 0. + firstRangeStart = bufferedTimeRange.start(0), + // Time in seconds when the first range ends + firstRangeEnd = bufferedTimeRange.end(0), + // Length in seconds of the first time range + firstRangeLength = firstRangeEnd - firstRangeStart;</code></pre></div><p class="vjs-only"><em id="bufferedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1386">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1386</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbufferedEnd"><h3 id="bufferedEndHeader">bufferedEnd()</h3><div id="bufferedEndDescription" class="description"><p>Get the ending time of the last buffered time range +This is used in the progress bar to encapsulate all time ranges.</p></div><p class="vjs-only"><em id="bufferedEndFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1429">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1429</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbufferedPercent"><h3 id="bufferedPercentHeader">bufferedPercent()</h3><div id="bufferedPercentDescription" class="description"><p>Get the percent (as a decimal) of the video that's been downloaded</p> +<pre class="prettyprint source lang-js"><code> var howMuchIsDownloaded = myPlayer.bufferedPercent();</code></pre><p>0 means none, 1 means all. +(This method isn't in the HTML5 spec, but it's very convenient)</p></div><p class="vjs-only"><em id="bufferedPercentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1414">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1414</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscanPlayType"><h3 id="canPlayTypeHeader">canPlayType( type )</h3><div id="canPlayTypeDescription" class="description"><p>Check whether the player can play a given mimetype</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>yes</td><td>The mimetype to check</td></tr></tbody></table><p class="vjs-only"><em id="canPlayTypeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1680">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodscontrols"><h3 id="controlsHeader">controls( bool )</h3><div id="controlsDescription" class="description"><p>Get or set whether or not the controls are showing.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>bool</td><td>Boolean</td><td>yes</td><td>Set controls to showing or not</td></tr></tbody></table><p class="vjs-only"><em id="controlsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2073">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2073</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L241">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 241</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentSrc"><h3 id="currentSrcHeader">currentSrc()</h3><div id="currentSrcDescription" class="description"><p>Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4 +Can be used in conjuction with <code>currentType</code> to assist in rebuilding the current source object.</p></div><p class="vjs-only"><em id="currentSrcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1940">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1940</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentTime"><h3 id="currentTimeHeader">currentTime( seconds )</h3><div id="currentTimeDescription" class="description"><p>Get or set the current time (in seconds)</p> +<pre class="prettyprint source lang-js"><code> // get + var whereYouAt = myPlayer.currentTime(); + // set + myPlayer.currentTime(120); // 2 minutes into the video</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>seconds</td><td>Number|String</td><td>yes</td><td>The time to seek to</td></tr></tbody></table><p class="vjs-only"><em id="currentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1296">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1296</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscurrentType"><h3 id="currentTypeHeader">currentType()</h3><div id="currentTypeDescription" class="description"><p>Get the current source type e.g. video/mp4 +This can allow you rebuild the current source object so that you could load the same +source and tech later</p></div><p class="vjs-only"><em id="currentTypeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1951">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1951</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimension"><h3 id="dimensionHeader">dimension( dimension, [value] )</h3><div id="dimensionDescription" class="description"><p>Get/set dimension for player</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>dimension</td><td>String</td><td>yes</td><td>Either width or height</td></tr><tr><td>value</td><td>Number</td><td>no</td><td>Value for dimension</td></tr></tbody></table><p class="vjs-only"><em id="dimensionFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L332">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 332</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Destroys the video player and does any necessary cleanup</p> +<pre class="prettyprint source lang-js"><code> myPlayer.dispose();</code></pre><p>This is especially helpful if you are dynamically adding and removing videos +to/from the DOM.</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L212">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 212</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsduration"><h3 id="durationHeader">duration( seconds )</h3><div id="durationDescription" class="description"><p>Get the length in time of the video in seconds</p> +<pre class="prettyprint source lang-js"><code> var lengthOfVideo = myPlayer.duration();</code></pre><p><strong>NOTE</strong>: The video must have started loading before the duration can be +known, and in the case of Flash, may not be known until the video starts +playing.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>seconds</td><td>Number</td><td>yes</td><td>Duration when setting</td></tr></tbody></table><p class="vjs-only"><em id="durationFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1327">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1327</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsended"><h3 id="endedHeader">ended()</h3><div id="endedDescription" class="description"><p>Returns whether or not the player is in the "ended" state.</p></div><p class="vjs-only"><em id="endedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2204">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2204</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenterFullWindow"><h3 id="enterFullWindowHeader">enterFullWindow()</h3><div id="enterFullWindowDescription" class="description"><p>When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.</p></div><p class="vjs-only"><em id="enterFullWindowFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1621">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1621</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodserror"><h3 id="errorHeader">error( err )</h3><div id="errorDescription" class="description"><p>Set or get the current MediaError</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>err</td><td>*</td><td>yes</td><td>A MediaError or a String/Number to be turned into a MediaError</td></tr></tbody></table><p class="vjs-only"><em id="errorFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2163">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsexitFullscreen"><h3 id="exitFullscreenHeader">exitFullscreen()</h3><div id="exitFullscreenDescription" class="description"><p>Return the video to its normal size after having been in full screen mode</p> +<pre class="prettyprint source lang-js"><code> myPlayer.exitFullscreen();</code></pre></div><p class="vjs-only"><em id="exitFullscreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1595">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1595</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsexitFullWindow"><h3 id="exitFullWindowHeader">exitFullWindow()</h3><div id="exitFullWindowDescription" class="description"><p>Exit full window</p></div><p class="vjs-only"><em id="exitFullWindowFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1660">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1660</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsfluid"><h3 id="fluidHeader">fluid( bool )</h3><div id="fluidDescription" class="description"><p>Add/remove the vjs-fluid class</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>bool</td><td>Boolean</td><td>yes</td><td>Value of true adds the class, value of false removes the class</td></tr></tbody></table><p class="vjs-only"><em id="fluidFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L365">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 365</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsfullWindowOnEscKey"><h3 id="fullWindowOnEscKeyHeader">fullWindowOnEscKey( event )</h3><div id="fullWindowOnEscKeyDescription" class="description"><p>Check for call to either exit full window or full screen on ESC key</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>String</td><td>yes</td><td>Event to check for key press</td></tr></tbody></table><p class="vjs-only"><em id="fullWindowOnEscKeyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1644">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1644</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetCache"><h3 id="getCacheHeader">getCache()</h3><div id="getCacheDescription" class="description"><p>Get object for cached values.</p></div><p class="vjs-only"><em id="getCacheFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1156">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1156</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetTagSettings"><h3 id="getTagSettingsHeader">static getTagSettings( tag )</h3><div id="getTagSettingsDescription" class="description"><p>Gets tag settings</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tag</td><td>Element</td><td>yes</td><td>The player tag</td></tr></tbody></table><p class="vjs-only"><em id="getTagSettingsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2657">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2657</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( [value] )</h3><div id="heightDescription" class="description"><p>Get/set player height</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Number</td><td>no</td><td>Value for height</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L321">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 321</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsinit"><h3 id="initHeader">init( tag, [options], [ready] )</h3><div id="initDescription" class="description"><p>player's constructor function</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tag</td><td>Element</td><td>yes</td><td>The original video tag used for configuring options</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Player options</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table><p class="vjs-only"><em id="initFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L62">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 62</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsisFullscreen"><h3 id="isFullscreenHeader">isFullscreen( [isFS] )</h3><div id="isFullscreenDescription" class="description"><p>Check if the player is in fullscreen mode</p> +<pre class="prettyprint source lang-js"><code> // get + var fullscreenOrNot = myPlayer.isFullscreen(); + // set + myPlayer.isFullscreen(true); // tell the player it's in fullscreen</code></pre><p>NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official +property and instead document.fullscreenElement is used. But isFullscreen is +still a valuable property for internal player workings.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>isFS</td><td>Boolean</td><td>no</td><td>Update the player's fullscreen state</td></tr></tbody></table><p class="vjs-only"><em id="isFullscreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1514">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1514</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodslanguage"><h3 id="languageHeader">language( code )</h3><div id="languageDescription" class="description"><p>The player's language code +NOTE: The language should be set in the player options if you want the +the controls to be built with a specific language. Changing the lanugage +later will not update controls text.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>code</td><td>String</td><td>yes</td><td>The locale string</td></tr></tbody></table><p class="vjs-only"><em id="languageFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2569">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2569</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodslanguages"><h3 id="languagesHeader">languages()</h3><div id="languagesDescription" class="description"><p>Get the player's language dictionary +Merge every time, because a newly added plugin might call videojs.addLanguage() at any time +Languages specified directly in the player options have precedence</p></div><p class="vjs-only"><em id="languagesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2589">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2589</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsload"><h3 id="loadHeader">load()</h3><div id="loadDescription" class="description"><p>Begin loading the src data.</p></div><p class="vjs-only"><em id="loadFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1916">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsloop"><h3 id="loopHeader">loop( value )</h3><div id="loopDescription" class="description"><p>Get or set the loop attribute on the video element.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>yes</td><td>Boolean to determine if video should loop</td></tr></tbody></table><p class="vjs-only"><em id="loopFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1997">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1997</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsmuted"><h3 id="mutedHeader">muted( [muted] )</h3><div id="mutedDescription" class="description"><p>Get the current muted state, or turn mute on or off</p> +<pre class="prettyprint source lang-js"><code> // get + var isVolumeMuted = myPlayer.muted(); + // set + myPlayer.muted(true); // mute the volume</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>muted</td><td>Boolean</td><td>no</td><td>True to mute, false to unmute</td></tr></tbody></table><p class="vjs-only"><em id="mutedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1480">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1480</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsnetworkState"><h3 id="networkStateHeader">networkState()</h3><div id="networkStateDescription" class="description"><p>Returns the current state of network activity for the element, from +the codes in the list below.</p> +<ul> +<li>NETWORK_EMPTY (numeric value 0) +The element has not yet been initialised. All attributes are in +their initial states.</li> +<li>NETWORK_IDLE (numeric value 1) +The element's resource selection algorithm is active and has +selected a resource, but it is not actually using the network at +this time.</li> +<li>NETWORK_LOADING (numeric value 2) +The user agent is actively trying to download data.</li> +<li>NETWORK_NO_SOURCE (numeric value 3) +The element's resource selection algorithm is active, but it has +not yet found a resource to use.</li> +</ul></div><p class="vjs-only"><em id="networkStateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2414">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2414</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspause"><h3 id="pauseHeader">pause()</h3><div id="pauseDescription" class="description"><p>Pause the video playback</p> +<pre class="prettyprint source lang-js"><code> myPlayer.pause();</code></pre></div><p class="vjs-only"><em id="pauseFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1242">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1242</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspaused"><h3 id="pausedHeader">paused()</h3><div id="pausedDescription" class="description"><p>Check if the player is paused</p> +<pre class="prettyprint source lang-js"><code> var isPaused = myPlayer.paused(); + var isPlaying = !myPlayer.paused();</code></pre></div><p class="vjs-only"><em id="pausedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1256">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplay"><h3 id="playHeader">play()</h3><div id="playDescription" class="description"><p>start media playback</p> +<pre class="prettyprint source lang-js"><code> myPlayer.play();</code></pre></div><p class="vjs-only"><em id="playFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1228">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1228</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsplaybackRate"><h3 id="playbackRateHeader">playbackRate( rate )</h3><div id="playbackRateDescription" class="description"><p>Gets or sets the current playback rate. A playback rate of +1.0 represents normal speed and 0.5 would indicate half-speed +playback, for instance.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>rate</td><td>Number</td><td>yes</td><td>New playback rate to set.</td></tr></tbody></table><p class="vjs-only"><em id="playbackRateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2372">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2372</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsposter"><h3 id="posterHeader">poster( [src] )</h3><div id="posterDescription" class="description"><p>Get or set the poster image source url</p> +<h5>EXAMPLE:</h5><pre class="prettyprint source lang-js"><code> // get + var currentPoster = myPlayer.poster(); + // set + myPlayer.poster('http://example.com/myImage.jpg');</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>src</td><td>String</td><td>no</td><td>Poster image source URL</td></tr></tbody></table><p class="vjs-only"><em id="posterFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2014">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2014</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodspreload"><h3 id="preloadHeader">preload( value )</h3><div id="preloadDescription" class="description"><p>Get or set the preload attribute</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Boolean</td><td>yes</td><td>Boolean to determine if preload should be used</td></tr></tbody></table><p class="vjs-only"><em id="preloadFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1963">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1963</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsreadyState"><h3 id="readyStateHeader">readyState()</h3><div id="readyStateDescription" class="description"><p>Returns a value that expresses the current state of the element +with respect to rendering the current playback position, from the +codes in the list below.</p> +<ul> +<li>HAVE_NOTHING (numeric value 0) +No information regarding the media resource is available.</li> +<li>HAVE_METADATA (numeric value 1) +Enough of the resource has been obtained that the duration of the +resource is available.</li> +<li>HAVE_CURRENT_DATA (numeric value 2) +Data for the immediate current playback position is available.</li> +<li>HAVE_FUTURE_DATA (numeric value 3) +Data for the immediate current playback position is available, as +well as enough data for the user agent to advance the current +playback position in the direction of playback.</li> +<li>HAVE_ENOUGH_DATA (numeric value 4) +The user agent estimates that enough data is available for +playback to proceed uninterrupted.</li> +</ul></div><p class="vjs-only"><em id="readyStateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2438">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2438</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremainingTime"><h3 id="remainingTimeHeader">remainingTime()</h3><div id="remainingTimeDescription" class="description"><p>Calculates how much time is left.</p> +<pre class="prettyprint source lang-js"><code> var timeLeft = myPlayer.remainingTime();</code></pre><p>Not a native video element function, but useful</p></div><p class="vjs-only"><em id="remainingTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1368">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1368</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTrackEls"><h3 id="remoteTextTrackElsHeader">remoteTextTrackEls()</h3><div id="remoteTextTrackElsDescription" class="description"><p>Get an array of remote html track elements</p></div><p class="vjs-only"><em id="remoteTextTrackElsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2496">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2496</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTracks"><h3 id="remoteTextTracksHeader">remoteTextTracks()</h3><div id="remoteTextTracksDescription" class="description"><p>Get an array of remote text tracks</p></div><p class="vjs-only"><em id="remoteTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2486">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2486</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveRemoteTextTrack"><h3 id="removeRemoteTextTrackHeader">removeRemoteTextTrack( track )</h3><div id="removeRemoteTextTrackDescription" class="description"><p>Remove a remote text track</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>track</td><td>Object</td><td>yes</td><td>Remote text track to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2530">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2530</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsreportUserActivity"><h3 id="reportUserActivityHeader">reportUserActivity( event )</h3><div id="reportUserActivityDescription" class="description"><p>Report user activity</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="reportUserActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2229">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2229</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsrequestFullscreen"><h3 id="requestFullscreenHeader">requestFullscreen()</h3><div id="requestFullscreenDescription" class="description"><p>Increase the size of the video to full screen</p> +<pre class="prettyprint source lang-js"><code> myPlayer.requestFullscreen();</code></pre><p>In some browsers, full screen is not supported natively, so it enters +"full window mode", where the video fills the browser window. +In browsers and devices that support native full screen, sometimes the +browser's default controls will be shown, and not the Video.js custom skin. +This includes most mobile devices (iOS, Android) and older versions of +Safari.</p></div><p class="vjs-only"><em id="requestFullscreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1539">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1539</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsreset"><h3 id="resetHeader">reset()</h3><div id="resetDescription" class="description"><p>Reset the player. Loads the first tech in the techOrder, +and calls <code>reset</code> on the tech`.</p></div><p class="vjs-only"><em id="resetFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1927">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1927</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsscrubbing"><h3 id="scrubbingHeader">scrubbing( isScrubbing )</h3><div id="scrubbingDescription" class="description"><p>Returns whether or not the user is "scrubbing". Scrubbing is when the user +has clicked the progress bar handle and is dragging it along the progress bar.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>isScrubbing</td><td>Boolean</td><td>yes</td><td>True/false the user is scrubbing</td></tr></tbody></table><p class="vjs-only"><em id="scrubbingFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsseekable"><h3 id="seekableHeader">seekable()</h3><div id="seekableDescription" class="description"><p>Returns the TimeRanges of the media that are currently available +for seeking to.</p></div><p class="vjs-only"><em id="seekableFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2220">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2220</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsseeking"><h3 id="seekingHeader">seeking()</h3><div id="seekingDescription" class="description"><p>Returns whether or not the player is in the "seeking" state.</p></div><p class="vjs-only"><em id="seekingFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2212">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2212</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsselectSource"><h3 id="selectSourceHeader">selectSource( sources )</h3><div id="selectSourceDescription" class="description"><p>Select source based on tech-order or source-order +Uses source-order selection if <code>options.sourceOrder</code> is truthy. Otherwise, +defaults to tech-order selection</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>sources</td><td>Array</td><td>yes</td><td>The sources for a media asset</td></tr></tbody></table><p class="vjs-only"><em id="selectSourceFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1720">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1720</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodssrc"><h3 id="srcHeader">src( source )</h3><div id="srcDescription" class="description"><p>The source function updates the video source +There are three types of variables you can pass as the argument. +<strong>URL String</strong>: A URL to the the video file. Use this method if you are sure +the current playback technology (HTML5/Flash) can support the source you +provide. Currently only MP4 files can be used in both HTML5 and Flash.</p> +<pre class="prettyprint source lang-js"><code> myPlayer.src("http://www.example.com/path/to/video.mp4");</code></pre><p><em>*Source Object (or element):</em> * A javascript object containing information +about the source file. Use this method if you want the player to determine if +it can support the file using the type information.</p> +<pre class="prettyprint source lang-js"><code> myPlayer.src({ type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" });</code></pre><p><em>*Array of Source Objects:</em> * To provide multiple versions of the source so +that it can be played using HTML5 across browsers you can use an array of +source objects. Video.js will detect which version is supported and load that +file.</p> +<pre class="prettyprint source lang-js"><code> myPlayer.src([ + { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" }, + { type: "video/webm", src: "http://www.example.com/path/to/video.webm" }, + { type: "video/ogg", src: "http://www.example.com/path/to/video.ogv" } + ]);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>source</td><td>String|Object|Array</td><td>yes</td><td>The source URL, object, or array of sources</td></tr></tbody></table><p class="vjs-only"><em id="srcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1792">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1792</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssupportsFullScreen"><h3 id="supportsFullScreenHeader">supportsFullScreen()</h3><div id="supportsFullScreenDescription" class="description"><p>Check to see if fullscreen is supported</p></div><p class="vjs-only"><em id="supportsFullScreenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1504">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1504</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstech"><h3 id="techHeader">tech( )</h3><div id="techDescription" class="description"><p>Return a reference to the current tech. +It will only return a reference to the tech if given an object with the +<code>IWillNotUseThisInPlugins</code> property on it. This is try and prevent misuse +of techs by plugins.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>undefined</td><td>Object</td></tr></tbody></table><p class="vjs-only"><em id="techFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L616">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 616</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstextTracks"><h3 id="textTracksHeader">textTracks()</h3><div id="textTracksDescription" class="description"><p>Get an array of associated text tracks. captions, subtitles, chapters, descriptions +http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks</p></div><p class="vjs-only"><em id="textTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2473">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2473</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoJSON"><h3 id="toJSONHeader">toJSON()</h3><div id="toJSONDescription" class="description"><p>Converts track info to JSON</p></div><p class="vjs-only"><em id="toJSONFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2601">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2601</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateStyleEl_"><h3 id="updateStyleEl_Header">updateStyleEl_()</h3><div id="updateStyleEl_Description" class="description"><p>Update styles of the player element (height, width and aspect ratio)</p></div><p class="vjs-only"><em id="updateStyleEl_Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L410">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 410</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsuserActive"><h3 id="userActiveHeader">userActive( bool )</h3><div id="userActiveDescription" class="description"><p>Get/set if user is active</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>bool</td><td>Boolean</td><td>yes</td><td>Value when setting</td></tr></tbody></table><p class="vjs-only"><em id="userActiveFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2239">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2239</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsvideoHeight"><h3 id="videoHeightHeader">videoHeight()</h3><div id="videoHeightDescription" class="description"><p>Get video height</p></div><p class="vjs-only"><em id="videoHeightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2550">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2550</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsvideoWidth"><h3 id="videoWidthHeader">videoWidth()</h3><div id="videoWidthDescription" class="description"><p>Get video width</p></div><p class="vjs-only"><em id="videoWidthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2540">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2540</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsvolume"><h3 id="volumeHeader">volume( percentAsDecimal )</h3><div id="volumeDescription" class="description"><p>Get or set the current volume of the media</p> +<pre class="prettyprint source lang-js"><code> // get + var howLoudIsIt = myPlayer.volume(); + // set + myPlayer.volume(0.5); // Set volume to half</code></pre><p>0 is off (muted), 1.0 is all the way up, 0.5 is half way.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>percentAsDecimal</td><td>Number</td><td>yes</td><td>The new volume as a decimal percent</td></tr></tbody></table><p class="vjs-only"><em id="volumeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L1448">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 1448</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( [value] )</h3><div id="widthDescription" class="description"><p>Get/set player width</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Number</td><td>no</td><td>Value for width</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L310">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 310</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div></section><section id="events" class="section"><h2>Events</h2><div id="Eventsended"><h3 id="endedHeader">ended</h3><div id="endedDescription" class="description"><p>Fired when video playback ends</p></div><p class="vjs-only"><em id="endedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2801">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2801</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventserror"><h3 id="errorHeader">error</h3><div id="errorDescription" class="description"><p>Fired when an error occurs</p></div><p class="vjs-only"><em id="errorFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2815">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2815</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventsloadeddata"><h3 id="loadeddataHeader">loadeddata</h3><div id="loadeddataDescription" class="description"><p>Fired when the player has downloaded data at the current playback position</p></div><p class="vjs-only"><em id="loadeddataFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2771">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2771</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventsloadedmetadata"><h3 id="loadedmetadataHeader">loadedmetadata</h3><div id="loadedmetadataDescription" class="description"><p>Fired when the player has initial duration and dimension information</p></div><p class="vjs-only"><em id="loadedmetadataFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2764">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2764</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventstimeupdate"><h3 id="timeupdateHeader">timeupdate</h3><div id="timeupdateDescription" class="description"><p>Fired when the current playback position has changed * +During playback this is fired every 15-250 milliseconds, depending on the +playback technology in use.</p></div><p class="vjs-only"><em id="timeupdateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2792">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2792</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventsuseractive"><h3 id="useractiveHeader">useractive</h3><div id="useractiveDescription" class="description"><p>Fired when the user is active, e.g. moves the mouse over the player</p></div><p class="vjs-only"><em id="useractiveFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2778">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2778</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventsuserinactive"><h3 id="userinactiveHeader">userinactive</h3><div id="userinactiveDescription" class="description"><p>Fired when the user is inactive, e.g. a short delay after the last mouse move or control interaction</p></div><p class="vjs-only"><em id="userinactiveFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2785">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2785</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Eventsvolumechange"><h3 id="volumechangeHeader">volumechange</h3><div id="volumechangeDescription" class="description"><p>Fired when the volume changes</p></div><p class="vjs-only"><em id="volumechangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/player.js#L2808">https://github.com/videojs/video.js/blob/master/src/js/player.js line number: 2808</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/popup-button.html b/javascript/videojs/docs/legacy-docs/api/popup-button.html new file mode 100644 index 0000000..6ce5a57 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/popup-button.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PopupButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>PopupButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreatePopup">createPopup</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>PopupButton</h1><div style="border:none" id="classDescription" class="description"><p>A button class with a popup control</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L11">popup-button.js line number: 11</a></p><p>EXTENDS: <a href="clickable-component.html">clickable-component.js</a></p><h3>Constructor</h3><pre><code>PopupButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L69">https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 69</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreatePopup"><h3 id="createPopupHeader">createPopup()</h3><div id="createPopupDescription" class="description"><p>Create popup - Override with specific functionality for component</p></div><p class="vjs-only"><em id="createPopupFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L49">https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 49</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update popup</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L27">https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 27</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this clickable-component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L112">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 112</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle Click - Override with specific functionality for component</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L132">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L148">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 148</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/popup.html b/javascript/videojs/docs/legacy-docs/api/popup.html new file mode 100644 index 0000000..90306b0 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/popup.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Popup</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Popup Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddItem">addItem</a></li><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Popup</h1><div style="border:none" id="classDescription" class="description"><p>The Popup component is used to build pop up controls.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup.js#L9">popup.js line number: 9</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>Popup()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddItem"><h3 id="addItemHeader">addItem( component )</h3><div id="addItemDescription" class="description"><p>Add a popup item to the popup</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Object|String</td><td>yes</td><td>Component or component type to add</td></tr></tbody></table><p class="vjs-only"><em id="addItemFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup.js#L17">https://github.com/videojs/video.js/blob/master/src/js/popup/popup.js line number: 17</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup.js#L30">https://github.com/videojs/video.js/blob/master/src/js/popup/popup.js line number: 30</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/poster-image.html b/javascript/videojs/docs/legacy-docs/api/poster-image.html new file mode 100644 index 0000000..b993e93 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/poster-image.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PosterImage</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/PosterImage.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/PosterImage.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>PosterImage Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodssetSrc">setSrc</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>PosterImage</h1><div style="border:none" id="classDescription" class="description"><p>The component that handles showing the poster image.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/poster-image.js#L10">poster-image.js line number: 10</a></p><p>EXTENDS: <a href="button.html">button.js</a></p><h3>Constructor</h3><pre><code>PosterImage( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the poster's image element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/poster-image.js#L37">https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 37</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Clean up the poster image</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/poster-image.js#L27">https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 27</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Event handler for clicks on the poster image</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/poster-image.js#L103">https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 103</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetSrc"><h3 id="setSrcHeader">setSrc( url )</h3><div id="setSrcDescription" class="description"><p>Set the poster source depending on the display method</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>url</td><td>String</td><td>yes</td><td>The URL to the poster source</td></tr></tbody></table><p class="vjs-only"><em id="setSrcFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/poster-image.js#L82">https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 82</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Event handler for updates to the player's poster source</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/poster-image.js#L63">https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 63</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/progress-control.html b/javascript/videojs/docs/legacy-docs/api/progress-control.html new file mode 100644 index 0000000..67e5063 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/progress-control.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>ProgressControl</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/ProgressControl.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/ProgressControl.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>ProgressControl Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>ProgressControl</h1><div style="border:none" id="classDescription" class="description"><p>The Progress Control component contains the seek bar, load progress, +and play progress</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/progress-control.js#L8">progress-control.js line number: 8</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>ProgressControl( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/progress-control.js#L19">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/progress-control.js line number: 19</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/remaining-time-display.html b/javascript/videojs/docs/legacy-docs/api/remaining-time-display.html new file mode 100644 index 0000000..b131ffd --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/remaining-time-display.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>RemainingTimeDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/RemainingTimeDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/RemainingTimeDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>RemainingTimeDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodsupdateContent">updateContent</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>RemainingTimeDisplay</h1><div style="border:none" id="classDescription" class="description"><p>Displays the time left in the video</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/remaining-time-display.js#L8">remaining-time-display.js line number: 8</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>RemainingTimeDisplay( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/remaining-time-display.js#L24">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/remaining-time-display.js line number: 24</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateContent"><h3 id="updateContentHeader">updateContent()</h3><div id="updateContentDescription" class="description"><p>Update remaining time display</p></div><p class="vjs-only"><em id="updateContentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/remaining-time-display.js#L48">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/remaining-time-display.js line number: 48</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/seek-bar.html b/javascript/videojs/docs/legacy-docs/api/seek-bar.html new file mode 100644 index 0000000..2eef907 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/seek-bar.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>SeekBar</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/SeekBar.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/SeekBar.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>SeekBar Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodsgetPercent">getPercent</a></li><li><a href="#MethodshandleMouseDown">handleMouseDown</a></li><li><a href="#MethodshandleMouseMove">handleMouseMove</a></li><li><a href="#MethodshandleMouseUp">handleMouseUp</a></li><li><a href="#MethodsstepBack">stepBack</a></li><li><a href="#MethodsstepForward">stepForward</a></li><li><a href="#MethodsupdateARIAAttributes">updateARIAAttributes</a></li></ul><h4>Inherited Methods from Slider</h4><ul><li><a href="#MethodscalculateDistance">calculateDistance</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#Methodsupdate">update</a></li><li><a href="#Methodsvertical">vertical</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>SeekBar</h1><div style="border:none" id="classDescription" class="description"><p>Seek Bar and holder for the progress bars</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L12">seek-bar.js line number: 12</a></p><p>EXTENDS: <a href="slider.html">slider.js</a></p><h3>Constructor</h3><pre><code>SeekBar( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L28">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 28</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetPercent"><h3 id="getPercentHeader">getPercent()</h3><div id="getPercentDescription" class="description"><p>Get percentage of video played</p></div><p class="vjs-only"><em id="getPercentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L54">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 54</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseDown"><h3 id="handleMouseDownHeader">handleMouseDown()</h3><div id="handleMouseDownDescription" class="description"><p>Handle mouse down on seek bar</p></div><p class="vjs-only"><em id="handleMouseDownFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L65">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseMove"><h3 id="handleMouseMoveHeader">handleMouseMove()</h3><div id="handleMouseMoveDescription" class="description"><p>Handle mouse move on seek bar</p></div><p class="vjs-only"><em id="handleMouseMoveFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L79">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 79</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseUp"><h3 id="handleMouseUpHeader">handleMouseUp()</h3><div id="handleMouseUpDescription" class="description"><p>Handle mouse up on seek bar</p></div><p class="vjs-only"><em id="handleMouseUpFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L94">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 94</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstepBack"><h3 id="stepBackHeader">stepBack()</h3><div id="stepBackDescription" class="description"><p>Move more quickly rewind for keyboard-only users</p></div><p class="vjs-only"><em id="stepBackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L117">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 117</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstepForward"><h3 id="stepForwardHeader">stepForward()</h3><div id="stepForwardDescription" class="description"><p>Move more quickly fast forward for keyboard-only users</p></div><p class="vjs-only"><em id="stepForwardFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L108">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 108</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateARIAAttributes"><h3 id="updateARIAAttributesHeader">updateARIAAttributes()</h3><div id="updateARIAAttributesDescription" class="description"><p>Update ARIA accessibility attributes</p></div><p class="vjs-only"><em id="updateARIAAttributesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js#L42">https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control/seek-bar.js line number: 42</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscalculateDistance"><h3 id="calculateDistanceHeader">calculateDistance( event )</h3><div id="calculateDistanceDescription" class="description"><p>Calculate distance for slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="calculateDistanceFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L149">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 149</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle on blur for slider</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L188">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 188</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick( event )</h3><div id="handleClickDescription" class="description"><p>Listener for click events on slider, used to prevent clicks + from bubbling up to parent elements like button menus.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L197">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 197</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle on focus for slider</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L163">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press for slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L172">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 172</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update slider</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L111">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsvertical"><h3 id="verticalHeader">vertical( bool )</h3><div id="verticalDescription" class="description"><p>Get/set if slider is horizontal for vertical</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>bool</td><td>Boolean</td><td>yes</td><td>True if slider is vertical, false is horizontal</td></tr></tbody></table><p class="vjs-only"><em id="verticalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L209">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 209</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/seekhandle.html b/javascript/videojs/docs/legacy-docs/api/seekhandle.html new file mode 100644 index 0000000..142aec3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/seekhandle.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-docs.css"> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> + <link rel="canonical" href="https://docs.videojs.com"> +</head> + <body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/slider.html b/javascript/videojs/docs/legacy-docs/api/slider.html new file mode 100644 index 0000000..05372b6 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/slider.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Slider</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Slider.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Slider.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Slider Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscalculateDistance">calculateDistance</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleMouseDown">handleMouseDown</a></li><li><a href="#MethodshandleMouseMove">handleMouseMove</a></li><li><a href="#MethodshandleMouseUp">handleMouseUp</a></li><li><a href="#Methodsupdate">update</a></li><li><a href="#Methodsvertical">vertical</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Slider</h1><div style="border:none" id="classDescription" class="description"><p>The base functionality for sliders like the volume bar and seek bar</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L9">slider.js line number: 9</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>Slider( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscalculateDistance"><h3 id="calculateDistanceHeader">calculateDistance( event )</h3><div id="calculateDistanceDescription" class="description"><p>Calculate distance for slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="calculateDistanceFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L149">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 149</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( type, [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>yes</td><td>Type of element to create</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>List of properties in Object form</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L38">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 38</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle on blur for slider</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L188">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 188</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick( event )</h3><div id="handleClickDescription" class="description"><p>Listener for click events on slider, used to prevent clicks + from bubbling up to parent elements like button menus.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L197">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 197</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle on focus for slider</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L163">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press for slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L172">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 172</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseDown"><h3 id="handleMouseDownHeader">handleMouseDown( event )</h3><div id="handleMouseDownDescription" class="description"><p>Handle mouse down on slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Mouse down event object</td></tr></tbody></table><p class="vjs-only"><em id="handleMouseDownFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L64">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 64</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseMove"><h3 id="handleMouseMoveHeader">handleMouseMove()</h3><div id="handleMouseMoveDescription" class="description"><p>To be overridden by a subclass</p></div><p class="vjs-only"><em id="handleMouseMoveFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L85">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 85</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseUp"><h3 id="handleMouseUpHeader">handleMouseUp()</h3><div id="handleMouseUpDescription" class="description"><p>Handle mouse up on Slider</p></div><p class="vjs-only"><em id="handleMouseUpFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L92">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 92</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update slider</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L111">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsvertical"><h3 id="verticalHeader">vertical( bool )</h3><div id="verticalDescription" class="description"><p>Get/set if slider is horizontal for vertical</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>bool</td><td>Boolean</td><td>yes</td><td>True if slider is vertical, false is horizontal</td></tr></tbody></table><p class="vjs-only"><em id="verticalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L209">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 209</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/spacer.html b/javascript/videojs/docs/legacy-docs/api/spacer.html new file mode 100644 index 0000000..8712eb6 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/spacer.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Spacer</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Spacer.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Spacer.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Spacer Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Spacer</h1><div style="border:none" id="classDescription" class="description"><p>Just an empty spacer element that can be used as an append point for plugins, etc. +Also can be used to create space between elements when necessary.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/spacer.js#L6">spacer.js line number: 6</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>Spacer()</code></pre></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/spacer.js#L15">https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/spacer.js line number: 15</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/spacer.js#L25">https://github.com/videojs/video.js/blob/master/src/js/control-bar/spacer-controls/spacer.js line number: 25</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/subtitles-button.html b/javascript/videojs/docs/legacy-docs/api/subtitles-button.html new file mode 100644 index 0000000..d413906 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/subtitles-button.html @@ -0,0 +1,150 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>SubtitlesButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/SubtitlesButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/SubtitlesButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>SubtitlesButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li></ul><h4>Inherited Methods from MenuButton</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateItems">createItems</a></li><li><a href="#MethodscreateMenu">createMenu</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>SubtitlesButton</h1><div style="border:none" id="classDescription" class="description"><p>The button component for toggling and selecting subtitles</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/subtitles-button.js#L7">subtitles-button.js line number: 7</a></p><p>EXTENDS: <a href="text-track-button.html">text-track-button.js</a></p><h3>Constructor</h3><pre><code>SubtitlesButton( player,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Player object</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/subtitles-button.js#L23">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/subtitles-button.js line number: 23</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L99">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 99</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateItems"><h3 id="createItemsHeader">createItems()</h3><div id="createItemsDescription" class="description"><p>Create the list of menu items. Specific to each subclass.</p></div><p class="vjs-only"><em id="createItemsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L92">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 92</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateMenu"><h3 id="createMenuHeader">createMenu()</h3><div id="createMenuDescription" class="description"><p>Create menu</p></div><p class="vjs-only"><em id="createMenuFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L62">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 62</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>When you click the button it adds focus, which +will show the menu indefinitely. +So we'll remove focus when the mouse leaves the button. +Focus is needed for tab navigation. +Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L130">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 130</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press on menu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L151">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 151</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleSubmenuKeyPress"><h3 id="handleSubmenuKeyPressHeader">handleSubmenuKeyPress( event )</h3><div id="handleSubmenuKeyPressDescription" class="description"><p>Handle key press on submenu</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Key press event</td></tr></tbody></table><p class="vjs-only"><em id="handleSubmenuKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L179">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 179</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodspressButton"><h3 id="pressButtonHeader">pressButton()</h3><div id="pressButtonDescription" class="description"><p>Makes changes based on button pressed</p></div><p class="vjs-only"><em id="pressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L199">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 199</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsunpressButton"><h3 id="unpressButtonHeader">unpressButton()</h3><div id="unpressButtonDescription" class="description"><p>Makes changes based on button unpressed</p></div><p class="vjs-only"><em id="unpressButtonFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L211">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 211</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update menu</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js#L31">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 31</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/subtitlestrack.html b/javascript/videojs/docs/legacy-docs/api/subtitlestrack.html new file mode 100644 index 0000000..142aec3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/subtitlestrack.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-docs.css"> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> + <link rel="canonical" href="https://docs.videojs.com"> +</head> + <body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/tech.html b/javascript/videojs/docs/legacy-docs/api/tech.html new file mode 100644 index 0000000..6615856 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/tech.html @@ -0,0 +1,170 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Tech</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/Tech.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Tech.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>Tech Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddRemoteTextTrack">addRemoteTextTrack</a></li><li><a href="#MethodsaddTextTrack">addTextTrack</a></li><li><a href="#Methodsbuffered">buffered</a></li><li><a href="#MethodsbufferedPercent">bufferedPercent</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#MethodsemulateTextTracks">emulateTextTracks</a></li><li><a href="#Methodserror">error</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodsinitTextTrackListeners">initTextTrackListeners</a></li><li><a href="#MethodsmanualProgressOff">manualProgressOff</a></li><li><a href="#MethodsmanualProgressOn">manualProgressOn</a></li><li><a href="#MethodsmanualTimeUpdatesOff">manualTimeUpdatesOff</a></li><li><a href="#MethodsmanualTimeUpdatesOn">manualTimeUpdatesOn</a></li><li><a href="#MethodsonDurationChange">onDurationChange</a></li><li><a href="#Methodsplayed">played</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoteTextTrackEls">remoteTextTrackEls</a></li><li><a href="#MethodsremoteTextTracks">remoteTextTracks</a></li><li><a href="#MethodsremoveRemoteTextTrack">removeRemoteTextTrack</a></li><li><a href="#Methodsreset">reset</a></li><li><a href="#MethodssetCurrentTime">setCurrentTime</a></li><li><a href="#MethodssetPoster">setPoster</a></li><li><a href="#MethodsstopTrackingCurrentTime">stopTrackingCurrentTime</a></li><li><a href="#MethodsstopTrackingProgress">stopTrackingProgress</a></li><li><a href="#MethodstextTracks">textTracks</a></li><li><a href="#MethodstrackCurrentTime">trackCurrentTime</a></li><li><a href="#MethodstrackProgress">trackProgress</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>Tech</h1><div style="border:none" id="classDescription" class="description"><p>Base class for media (HTML5 Video, Flash) controllers</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L21">tech.js line number: 21</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>Tech( [options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>no</td><td>Options object</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddRemoteTextTrack"><h3 id="addRemoteTextTrackHeader">addRemoteTextTrack( options )</h3><div id="addRemoteTextTrackDescription" class="description"><p>Creates a remote text track object and returns a emulated html track element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td>Object</td><td>yes</td><td>The object should contain values for +kind, language, label and src (location of the WebVTT file)</td></tr></tbody></table><p class="vjs-only"><em id="addRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L412">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 412</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddTextTrack"><h3 id="addTextTrackHeader">addTextTrack( kind, [label], [language] )</h3><div id="addTextTrackDescription" class="description"><p>Creates and returns a remote text track object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>kind</td><td>String</td><td>yes</td><td>Text track kind (subtitles, captions, descriptions + chapters and metadata)</td></tr><tr><td>label</td><td>String</td><td>no</td><td>Label to identify the text track</td></tr><tr><td>language</td><td>String</td><td>no</td><td>Two letter language abbreviation</td></tr></tbody></table><p class="vjs-only"><em id="addTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L394">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 394</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsbuffered"><h3 id="bufferedHeader">buffered()</h3><div id="bufferedDescription" class="description"><p>Create and get TimeRange object for buffering</p></div><p class="vjs-only"><em id="bufferedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L136">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 136</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbufferedPercent"><h3 id="bufferedPercentHeader">bufferedPercent()</h3><div id="bufferedPercentDescription" class="description"><p>Get buffered percent</p></div><p class="vjs-only"><em id="bufferedPercentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L146">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 146</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Turn off any manual progress or timeupdate tracking</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L215">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 215</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsemulateTextTracks"><h3 id="emulateTextTracksHeader">emulateTextTracks()</h3><div id="emulateTextTracksDescription" class="description"><p>Emulate texttracks</p></div><p class="vjs-only"><em id="emulateTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L316">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 316</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodserror"><h3 id="errorHeader">error( [err] )</h3><div id="errorDescription" class="description"><p>When invoked without an argument, returns a MediaError object +representing the current error state of the player or null if +there is no error. When invoked with an argument, set the current +error state of the player.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>err</td><td>MediaError</td><td>no</td><td>Optional an error object</td></tr></tbody></table><p class="vjs-only"><em id="errorFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L246">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 246</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L509">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 509</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitTextTrackListeners"><h3 id="initTextTrackListenersHeader">initTextTrackListeners()</h3><div id="initTextTrackListenersDescription" class="description"><p>Initialize texttrack listeners</p></div><p class="vjs-only"><em id="initTextTrackListenersFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L293">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 293</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualProgressOff"><h3 id="manualProgressOffHeader">manualProgressOff()</h3><div id="manualProgressOffDescription" class="description"><p>Turn off progress events</p></div><p class="vjs-only"><em id="manualProgressOffFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L91">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 91</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualProgressOn"><h3 id="manualProgressOnHeader">manualProgressOn()</h3><div id="manualProgressOnDescription" class="description"><p>Turn on progress events</p></div><p class="vjs-only"><em id="manualProgressOnFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L77">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 77</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualTimeUpdatesOff"><h3 id="manualTimeUpdatesOffHeader">manualTimeUpdatesOff()</h3><div id="manualTimeUpdatesOffDescription" class="description"><p>Remove event listeners for on play and pause and tracking current time</p></div><p class="vjs-only"><em id="manualTimeUpdatesOffFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L178">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 178</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmanualTimeUpdatesOn"><h3 id="manualTimeUpdatesOnHeader">manualTimeUpdatesOn()</h3><div id="manualTimeUpdatesOnDescription" class="description"><p>Set event listeners for on play and pause and tracking current time</p></div><p class="vjs-only"><em id="manualTimeUpdatesOnFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L166">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 166</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsonDurationChange"><h3 id="onDurationChangeHeader">onDurationChange()</h3><div id="onDurationChangeDescription" class="description"><p>Update duration</p></div><p class="vjs-only"><em id="onDurationChangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L127">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 127</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayed"><h3 id="playedHeader">played()</h3><div id="playedDescription" class="description"><p>Return the time ranges that have been played through for the +current source. This implementation is incomplete. It does not +track the played time ranges, only whether the source has played +at all or not.</p></div><p class="vjs-only"><em id="playedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L267">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 267</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, tech )</h3><div id="registerComponentDescription" class="description"><p>Registers a Tech</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the Tech to register</td></tr><tr><td>tech</td><td>Object</td><td>yes</td><td>The tech to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L488">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 488</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTrackEls"><h3 id="remoteTextTrackElsHeader">remoteTextTrackEls()</h3><div id="remoteTextTrackElsDescription" class="description"><p>Get remote htmltrackelements</p></div><p class="vjs-only"><em id="remoteTextTrackElsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L383">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 383</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoteTextTracks"><h3 id="remoteTextTracksHeader">remoteTextTracks()</h3><div id="remoteTextTracksDescription" class="description"><p>Get remote texttracks</p></div><p class="vjs-only"><em id="remoteTextTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L372">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 372</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveRemoteTextTrack"><h3 id="removeRemoteTextTrackHeader">removeRemoteTextTrack( track )</h3><div id="removeRemoteTextTrackDescription" class="description"><p>Remove remote texttrack</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>track</td><td>TextTrackObject</td><td>yes</td><td>Texttrack to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeRemoteTextTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L437">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 437</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsreset"><h3 id="resetHeader">reset()</h3><div id="resetDescription" class="description"><p>Reset the tech. Removes all sources and resets readyState.</p></div><p class="vjs-only"><em id="resetFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L239">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 239</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetCurrentTime"><h3 id="setCurrentTimeHeader">setCurrentTime()</h3><div id="setCurrentTimeDescription" class="description"><p>Set current time</p></div><p class="vjs-only"><em id="setCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L283">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 283</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetPoster"><h3 id="setPosterHeader">setPoster()</h3><div id="setPosterDescription" class="description"><p>Provide a default setPoster method for techs +Poster support for techs should be optional, so we don't want techs to +break if they don't have a way to set a poster.</p></div><p class="vjs-only"><em id="setPosterFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L453">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 453</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstopTrackingCurrentTime"><h3 id="stopTrackingCurrentTimeHeader">stopTrackingCurrentTime()</h3><div id="stopTrackingCurrentTimeDescription" class="description"><p>Turn off play progress tracking (when paused or dragging)</p></div><p class="vjs-only"><em id="stopTrackingCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L202">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 202</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstopTrackingProgress"><h3 id="stopTrackingProgressHeader">stopTrackingProgress()</h3><div id="stopTrackingProgressDescription" class="description"><p>Stops tracking progress by clearing progress interval</p></div><p class="vjs-only"><em id="stopTrackingProgressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L156">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 156</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstextTracks"><h3 id="textTracksHeader">textTracks()</h3><div id="textTracksDescription" class="description"><p>Get texttracks</p></div><p class="vjs-only"><em id="textTracksFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L361">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 361</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstrackCurrentTime"><h3 id="trackCurrentTimeHeader">trackCurrentTime()</h3><div id="trackCurrentTimeDescription" class="description"><p>Tracks current time</p></div><p class="vjs-only"><em id="trackCurrentTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L190">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 190</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstrackProgress"><h3 id="trackProgressHeader">trackProgress()</h3><div id="trackProgressDescription" class="description"><p>Track progress</p></div><p class="vjs-only"><em id="trackProgressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L103">https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js line number: 103</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [tagName], [properties], [attributes] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tagName</td><td>String</td><td>no</td><td>Element's node type. e.g. 'div'</td></tr><tr><td>properties</td><td>Object</td><td>no</td><td>An object of properties that should be set</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>An object of attributes that should be set</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L208">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 208</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/text-track-button.html b/javascript/videojs/docs/legacy-docs/api/text-track-button.html new file mode 100644 index 0000000..7bb0caf --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/text-track-button.html @@ -0,0 +1,10 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>TextTrackButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/TextTrackButton.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/TextTrackButton.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h4>Inherited Methods from MenuButton</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateItems">createItems</a></li><li><a href="#MethodscreateMenu">createMenu</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleSubmenuKeyPress">handleSubmenuKeyPress</a></li><li><a href="#MethodspressButton">pressButton</a></li><li><a href="#MethodsunpressButton">unpressButton</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>TextTrackButton</h1><div style="border:none" id="classDescription" class="description"><p>The base class for buttons that toggle specific text track types (e.g. subtitles)</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-button.js#L10">text-track-button.js line number: 10</a></p><p>EXTENDS: <a href="menu-button.html">menu-button.js</a></p><h3>Constructor</h3><pre><code>TextTrackButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/text-track-display.html b/javascript/videojs/docs/legacy-docs/api/text-track-display.html new file mode 100644 index 0000000..1d2cfc3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/text-track-display.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>TextTrackDisplay</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/TextTrackDisplay.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/TextTrackDisplay.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>TextTrackDisplay Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsclearDisplay">clearDisplay</a></li><li><a href="#MethodsconstructColor">constructColor</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodstoggleDisplay">toggleDisplay</a></li><li><a href="#MethodstryUpdateStyle">tryUpdateStyle</a></li><li><a href="#MethodsupdateDisplay">updateDisplay</a></li><li><a href="#MethodsupdateForTrack">updateForTrack</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>TextTrackDisplay</h1><div style="border:none" id="classDescription" class="description"><p>The component for displaying text track cues</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L27">text-track-display.js line number: 27</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>TextTrackDisplay( player,[options],[ready] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Ready callback function</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsclearDisplay"><h3 id="clearDisplayHeader">clearDisplay()</h3><div id="clearDisplayDescription" class="description"><p>Clear display texttracks</p></div><p class="vjs-only"><em id="clearDisplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L89">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 89</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsconstructColor"><h3 id="constructColorHeader">constructColor( color, opacity )</h3><div id="constructColorDescription" class="description"><p>Add cue HTML to display</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>color</td><td>Number</td><td>yes</td><td>Hex number for color, like #f0e</td></tr><tr><td>opacity</td><td>Number</td><td>yes</td><td>Value for opacity,0.0 - 1.0</td></tr></tbody></table><p class="vjs-only"><em id="constructColorFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L207">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 207</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L77">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 77</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleDisplay"><h3 id="toggleDisplayHeader">toggleDisplay()</h3><div id="toggleDisplayDescription" class="description"><p>Toggle display texttracks</p></div><p class="vjs-only"><em id="toggleDisplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L64">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 64</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstryUpdateStyle"><h3 id="tryUpdateStyleHeader">tryUpdateStyle( el, style, rule )</h3><div id="tryUpdateStyleDescription" class="description"><p>Try to update style +Some style changes will throw an error, particularly in IE8. Those should be noops.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>The element to be styles</td></tr><tr><td>style</td><td>CSSProperty</td><td>yes</td><td>The CSS property to be styled</td></tr><tr><td>rule</td><td>CSSStyle</td><td>yes</td><td>The actual style to be applied to the property</td></tr></tbody></table><p class="vjs-only"><em id="tryUpdateStyleFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L224">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 224</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateDisplay"><h3 id="updateDisplayHeader">updateDisplay()</h3><div id="updateDisplayDescription" class="description"><p>Update display texttracks</p></div><p class="vjs-only"><em id="updateDisplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L100">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 100</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateForTrack"><h3 id="updateForTrackHeader">updateForTrack( track )</h3><div id="updateForTrackDescription" class="description"><p>Add texttrack to texttrack list</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>track</td><td>TextTrackObject</td><td>yes</td><td>Texttrack object to be added to list</td></tr></tbody></table><p class="vjs-only"><em id="updateForTrackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js#L122">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 122</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/text-track-menu-item.html b/javascript/videojs/docs/legacy-docs/api/text-track-menu-item.html new file mode 100644 index 0000000..b928063 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/text-track-menu-item.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>TextTrackMenuItem</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/TextTrackMenuItem.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/TextTrackMenuItem.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>TextTrackMenuItem Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleTracksChange">handleTracksChange</a></li></ul><h4>Inherited Methods from MenuItem</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsselected">selected</a></li></ul><h4>Inherited Methods from Button</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>TextTrackMenuItem</h1><div style="border:none" id="classDescription" class="description"><p>The specific menu item type for selecting a language within a text track kind</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js#L10">text-track-menu-item.js line number: 10</a></p><p>EXTENDS: <a href="menu-item.html">menu-item.js</a></p><h3>Constructor</h3><pre><code>TextTrackMenuItem( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on text track</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js#L68">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js line number: 68</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleTracksChange"><h3 id="handleTracksChangeHeader">handleTracksChange()</h3><div id="handleTracksChangeDescription" class="description"><p>Handle text track change</p></div><p class="vjs-only"><em id="handleTracksChangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js#L96">https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/text-track-menu-item.js line number: 96</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [type], [props] )</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>String</td><td>no</td><td>Desc</td></tr><tr><td>props</td><td>Object</td><td>no</td><td>Desc</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L34">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsselected"><h3 id="selectedHeader">selected( selected )</h3><div id="selectedDescription" class="description"><p>Set this menu item as selected or not</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selected</td><td>Boolean</td></tr></tbody></table><p class="vjs-only"><em id="selectedFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js#L59">https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )<em class="deprecated"> (deprecated)</em></h3><div id="addChildDescription" class="description"><p>Adds a child component inside this button</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Extend with specific functionality for button</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/button.js#L74">https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L102">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/text-track-settings.html b/javascript/videojs/docs/legacy-docs/api/text-track-settings.html new file mode 100644 index 0000000..ad5f873 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/text-track-settings.html @@ -0,0 +1,178 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>TextTrackSettings</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/TextTrackSettings.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/TextTrackSettings.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>TextTrackSettings Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodsgetValues">getValues</a></li><li><a href="#MethodsrestoreSettings">restoreSettings</a></li><li><a href="#MethodssaveSettings">saveSettings</a></li><li><a href="#MethodssetValues">setValues</a></li><li><a href="#MethodsupdateDisplay">updateDisplay</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>TextTrackSettings</h1><div style="border:none" id="classDescription" class="description"><p>Manipulate settings of texttracks</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L11">text-track-settings.js line number: 11</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>TextTrackSettings( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Object</td><td>yes</td><td>Main Player</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Object of option names and values</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L63">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js line number: 63</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetValues"><h3 id="getValuesHeader">getValues()</h3><div id="getValuesDescription" class="description"><p>Get texttrack settings +Settings are +.vjs-edge-style +.vjs-font-family +.vjs-fg-color +.vjs-text-opacity +.vjs-bg-color +.vjs-bg-opacity +.window-color +.vjs-window-opacity</p></div><p class="vjs-only"><em id="getValuesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L76">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js line number: 76</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsrestoreSettings"><h3 id="restoreSettingsHeader">restoreSettings()</h3><div id="restoreSettingsDescription" class="description"><p>Restore texttrack settings</p></div><p class="vjs-only"><em id="restoreSettingsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L155">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js line number: 155</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssaveSettings"><h3 id="saveSettingsHeader">saveSettings()</h3><div id="saveSettingsDescription" class="description"><p>Save texttrack settings to local storage</p></div><p class="vjs-only"><em id="saveSettingsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L172">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js line number: 172</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetValues"><h3 id="setValuesHeader">setValues( values )</h3><div id="setValuesDescription" class="description"><p>Set texttrack settings +Settings are +.vjs-edge-style +.vjs-font-family +.vjs-fg-color +.vjs-text-opacity +.vjs-bg-color +.vjs-bg-opacity +.window-color +.vjs-window-opacity</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>values</td><td>Object</td><td>yes</td><td>Object with texttrack setting values</td></tr></tbody></table><p class="vjs-only"><em id="setValuesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L121">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js line number: 121</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateDisplay"><h3 id="updateDisplayHeader">updateDisplay()</h3><div id="updateDisplayDescription" class="description"><p>Update display of texttrack settings</p></div><p class="vjs-only"><em id="updateDisplayFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js#L192">https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-settings.js line number: 192</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/texttrack.html b/javascript/videojs/docs/legacy-docs/api/texttrack.html new file mode 100644 index 0000000..df7cfc0 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/texttrack.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title></title> + <script src="//use.edgefonts.net/source-code-pro.js"></script> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'> + <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --> + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"> + <link rel="stylesheet" type="text/css" href="css/api-docs.css"> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> + <link rel="canonical" href="https://docs.videojs.com/Texttrack.html"> +</head> + <body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/Texttrack.html">documentation for the current release</a>. + + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script> + <script src="js/doc-data.js"></script> + </body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/api/time-divider.html b/javascript/videojs/docs/legacy-docs/api/time-divider.html new file mode 100644 index 0000000..e6f5120 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/time-divider.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>TimeDivider</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/TimeDivider.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/TimeDivider.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>TimeDivider Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>TimeDivider</h1><div style="border:none" id="classDescription" class="description"><p>The separator between the current time and duration. +Can be hidden if it's not needed in the design.</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/time-divider.js#L6">time-divider.js line number: 6</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>TimeDivider( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/time-divider.js#L17">https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-controls/time-divider.js line number: 17</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/video.html b/javascript/videojs/docs/legacy-docs/api/video.html new file mode 100644 index 0000000..6249ec4 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/video.html @@ -0,0 +1,286 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>videojs</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>videojs Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsaddLanguage">addLanguage</a></li><li><a href="#MethodsappendContent">appendContent</a></li><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodscreateTimeRange">createTimeRange</a></li><li><a href="#MethodsemptyEl">emptyEl</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsformatTime">formatTime</a></li><li><a href="#MethodsgetAttributes">getAttributes</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodsgetPlayers">getPlayers</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#MethodsinsertContent">insertContent</a></li><li><a href="#MethodsisCrossOrigin">isCrossOrigin</a></li><li><a href="#MethodsisEl">isEl</a></li><li><a href="#MethodsisTextNode">isTextNode</a></li><li><a href="#MethodsmergeOptions">mergeOptions</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#MethodsparseUrl">parseUrl</a></li><li><a href="#Methodsplugin">plugin</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsregisterTech">registerTech</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetAttributes">setAttributes</a></li><li><a href="#MethodstoggleElClass">toggleElClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#Methodsvideojs">videojs</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>videojs</h1><div style="border:none" id="classDescription" class="description"><p>Doubles as the main function for users to create a player instance and also +the main library object. +The <code>videojs</code> function can be used to initialize or retrieve a player.</p> +<pre class="prettyprint source lang-js"><code> var myPlayer = videojs('my_video_id');</code></pre></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L40">video.js line number: 40</a></p><p>EXTENDS: <a href="component.html">component.js</a></p></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( element, classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to an element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>element</td><td>Element</td><td>yes</td><td>Element to add class name to</td></tr><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L586">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 586</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddLanguage"><h3 id="addLanguageHeader">addLanguage( code, data )</h3><div id="addLanguageDescription" class="description"><p>Adding languages so that they're available to all players.</p> +<pre class="prettyprint source lang-js"><code> videojs.addLanguage('es', { 'Hello': 'Hola' });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>code</td><td>String</td><td>yes</td><td>The language code or dictionary property</td></tr><tr><td>data</td><td>Object</td><td>yes</td><td>The data values to be translated</td></tr></tbody></table><p class="vjs-only"><em id="addLanguageFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L403">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 403</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsappendContent"><h3 id="appendContentHeader">appendContent( el, content )</h3><div id="appendContentDescription" class="description"><p>Normalizes and appends content to an element.</p> +<p>The content for an element can be passed in multiple types and +combinations, whose behavior is as follows:</p> +<ul> +<li><p>String +Normalized into a text node.</p> +</li> +<li><p>Element, TextNode +Passed through.</p> +</li> +<li><p>Array +A one-dimensional array of strings, elements, nodes, or functions (which +return single strings, elements, or nodes).</p> +</li> +<li><p>Function +If the sole argument, is expected to produce a string, element, +node, or array.</p> +</li> +</ul></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td></tr><tr><td>content</td><td>String|Element|TextNode|Array|function</td></tr></tbody></table><p class="vjs-only"><em id="appendContentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L648">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 648</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl( [tagName], [properties], [attributes] )</h3><div id="createElDescription" class="description"><p>Creates an element and applies properties.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tagName</td><td>String</td><td>no</td><td>Name of tag to be created.</td></tr><tr><td>properties</td><td>Object</td><td>no</td><td>Element properties to be applied.</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>Element attributes to be applied.</td></tr></tbody></table><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L566">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 566</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateTimeRange"><h3 id="createTimeRangeHeader">createTimeRange( start, end )</h3><div id="createTimeRangeDescription" class="description"><p>Creates an emulated TimeRange object.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>start</td><td>Number|Array</td><td>yes</td><td>Start time in seconds or an array of ranges</td></tr><tr><td>end</td><td>Number</td><td>yes</td><td>End time in seconds</td></tr></tbody></table><p class="vjs-only"><em id="createTimeRangeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L427">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 427</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsemptyEl"><h3 id="emptyElHeader">emptyEl( el )</h3><div id="emptyElDescription" class="description"><p>Empties the contents of an element.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td></tr></tbody></table><p class="vjs-only"><em id="emptyElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L639">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 639</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">extend( The, An )</h3><div id="extendDescription" class="description"><p>Subclass an existing class +Mimics ES6 subclassing with the <code>extend</code> keyword</p> +<pre class="prettyprint source lang-js"><code> // Create a basic javascript 'class' + function MyClass(name){ + // Set a property at initialization + this.myName = name; + } + // Create an instance method + MyClass.prototype.sayMyName = function(){ + alert(this.myName); + }; + // Subclass the exisitng class and change the name + // when initializing + var MySubClass = videojs.extend(MyClass, { + constructor: function(name) { + // Call the super class constructor for the subclass + MyClass.call(this, name) + } + }); + // Create an instance of the new sub class + var myInstance = new MySubClass('John'); + myInstance.sayMyName(); // -> should alert "John"</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>The</td><td>function</td><td>yes</td><td>Class to subclass</td></tr><tr><td>An</td><td>Object</td><td>yes</td><td>object including instace methods for the new class + Optionally including a <code>constructor</code> function</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L269">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsformatTime"><h3 id="formatTimeHeader">formatTime( seconds, guide )</h3><div id="formatTimeDescription" class="description"><p>Format seconds as a time string, H:MM:SS or M:SS +Supplying a guide (in seconds) will force a number of leading zeros +to cover the length of the guide</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>seconds</td><td>Number</td><td>yes</td><td>Number of seconds to be turned into a string</td></tr><tr><td>guide</td><td>Number</td><td>yes</td><td>Number (in seconds) to model the string after</td></tr></tbody></table><p class="vjs-only"><em id="formatTimeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L437">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 437</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetAttributes"><h3 id="getAttributesHeader">getAttributes( tag )</h3><div id="getAttributesDescription" class="description"><p>Get an element's attribute values, as defined on the HTML tag +Attributes are not the same as properties. They're defined on the tag +or with setAttribute (which shouldn't be used with HTML) +This will return true or false for boolean attributes.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>tag</td><td>Element</td><td>yes</td><td>Element from which to get tag attributes</td></tr></tbody></table><p class="vjs-only"><em id="getAttributesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L627">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 627</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">getComponent()</h3><div id="getComponentDescription" class="description"><p>Get a component class object by name</p> +<pre class="prettyprint source lang-js"><code> var VjsButton = videojs.getComponent('Button'); + // Create a new instance of the component + var myButton = new VjsButton(myPlayer);</code></pre></div><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L166">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 166</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetPlayers"><h3 id="getPlayersHeader">getPlayers()</h3><div id="getPlayersDescription" class="description"><p>Get an object with the currently created players, keyed by player ID</p></div><p class="vjs-only"><em id="getPlayersFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L143">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 143</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( element, classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if an element has a CSS class</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>element</td><td>Element</td><td>yes</td><td>Element to check</td></tr><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L577">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 577</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinsertContent"><h3 id="insertContentHeader">insertContent( el, content )</h3><div id="insertContentDescription" class="description"><p>Normalizes and inserts content into an element; this is identical to +<code>appendContent()</code>, except it empties the element first.</p> +<p>The content for an element can be passed in multiple types and +combinations, whose behavior is as follows:</p> +<ul> +<li><p>String +Normalized into a text node.</p> +</li> +<li><p>Element, TextNode +Passed through.</p> +</li> +<li><p>Array +A one-dimensional array of strings, elements, nodes, or functions (which +return single strings, elements, or nodes).</p> +</li> +<li><p>Function +If the sole argument, is expected to produce a string, element, +node, or array.</p> +</li> +</ul></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td></tr><tr><td>content</td><td>String|Element|TextNode|Array|function</td></tr></tbody></table><p class="vjs-only"><em id="insertContentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L675">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 675</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsisCrossOrigin"><h3 id="isCrossOriginHeader">isCrossOrigin( url )</h3><div id="isCrossOriginDescription" class="description"><p>Returns whether the url passed is a cross domain request or not.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>url</td><td>String</td><td>yes</td><td>The url to check</td></tr></tbody></table><p class="vjs-only"><em id="isCrossOriginFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L458">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 458</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsisEl"><h3 id="isElHeader">isEl( value )</h3><div id="isElDescription" class="description"><p>Determines, via duck typing, whether or not a value is a DOM element.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Mixed</td></tr></tbody></table><p class="vjs-only"><em id="isElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L548">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 548</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsisTextNode"><h3 id="isTextNodeHeader">isTextNode( value )</h3><div id="isTextNodeDescription" class="description"><p>Determines, via duck typing, whether or not a value is a text node.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Mixed</td></tr></tbody></table><p class="vjs-only"><em id="isTextNodeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L557">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 557</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsmergeOptions"><h3 id="mergeOptionsHeader">mergeOptions( defaults, overrides, etc )</h3><div id="mergeOptionsDescription" class="description"><p>Merge two options objects recursively +Performs a deep merge like lodash.merge but <strong>only merges plain objects</strong> +(not arrays, elements, anything else) +Other values will be copied directly from the second object.</p> +<pre class="prettyprint source lang-js"><code> var defaultOptions = { + foo: true, + bar: { + a: true, + b: [1,2,3] + } + }; + var newOptions = { + foo: false, + bar: { + b: [4,5,6] + } + }; + var result = videojs.mergeOptions(defaultOptions, newOptions); + // result.foo = false; + // result.bar.a = true; + // result.bar.b = [4,5,6];</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>defaults</td><td>Object</td><td>yes</td><td>The options object whose values will be overriden</td></tr><tr><td>overrides</td><td>Object</td><td>yes</td><td>The options object with values to override the first</td></tr><tr><td>etc</td><td>Object</td><td>yes</td><td>Any number of additional options objects</td></tr></tbody></table><p class="vjs-only"><em id="mergeOptionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L304">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 304</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( elem, type, fn )</h3><div id="offDescription" class="description"><p>Removes event listeners from an element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>elem</td><td>Element|Object</td><td>yes</td><td>Object to remove listeners from</td></tr><tr><td>type</td><td>String|Array</td><td>yes</td><td>Type of listener to remove. Don't include to remove all events from element.</td></tr><tr><td>fn</td><td>function</td><td>yes</td><td>Specific listener to remove. Don't include to remove listeners for an event type.</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L497">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 497</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( elem, type, fn )</h3><div id="onDescription" class="description"><p>Add an event listener to element +It stores the handler function in a separate cache object +and adds a generic handler to the element's event, +along with a unique id (guid) to the element.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>elem</td><td>Element|Object</td><td>yes</td><td>Element or object to bind listeners to</td></tr><tr><td>type</td><td>String|Array</td><td>yes</td><td>Type of event to bind to.</td></tr><tr><td>fn</td><td>function</td><td>yes</td><td>Event listener.</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L474">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 474</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( elem, type, fn )</h3><div id="oneDescription" class="description"><p>Trigger a listener only once for an event</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>elem</td><td>Element|Object</td><td>yes</td><td>Element or object to</td></tr><tr><td>type</td><td>String|Array</td><td>yes</td><td>Name/type of event</td></tr><tr><td>fn</td><td>function</td><td>yes</td><td>Event handler function</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L487">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 487</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsparseUrl"><h3 id="parseUrlHeader">parseUrl( url )</h3><div id="parseUrlDescription" class="description"><p>Resolve and parse the elements of a URL</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>url</td><td>String</td><td>yes</td><td>The url to parse</td></tr></tbody></table><p class="vjs-only"><em id="parseUrlFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L449">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 449</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplugin"><h3 id="pluginHeader">plugin( name, fn )</h3><div id="pluginDescription" class="description"><p>Create a Video.js player plugin +Plugins are only initialized when options for the plugin are included +in the player options, or the plugin function on the player instance is +called. +<strong>See the plugin guide in the docs for a more detailed example</strong></p> +<pre class="prettyprint source lang-js"><code> // Make a plugin that alerts when the player plays + videojs.plugin('myPlugin', function(myPluginOptions) { + myPluginOptions = myPluginOptions || {}; + + var player = this; + var alertText = myPluginOptions.text || 'Player is playing!' + + player.on('play', function(){ + alert(alertText); + }); + }); + // USAGE EXAMPLES + // EXAMPLE 1: New player with plugin options, call plugin immediately + var player1 = videojs('idOne', { + myPlugin: { + text: 'Custom text!' + } + }); + // Click play + // --> Should alert 'Custom text!' + // EXAMPLE 3: New player, initialize plugin later + var player3 = videojs('idThree'); + // Click play + // --> NO ALERT + // Click pause + // Initialize plugin using the plugin function on the player instance + player3.myPlugin({ + text: 'Plugin added later!' + }); + // Click play + // --> Should alert 'Plugin added later!'</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>The plugin name</td></tr><tr><td>fn</td><td>function</td><td>yes</td><td>The plugin function that will be called with options</td></tr></tbody></table><p class="vjs-only"><em id="pluginFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L356">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 356</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">registerComponent( The, The )</h3><div id="registerComponentDescription" class="description"><p>Register a component so it can referred to by name +Used when adding to other +components, either through addChild +<code>component.addChild('myComponent')</code> +or through default children options +<code>{ children: ['myComponent'] }</code>.</p> +<pre class="prettyprint source lang-js"><code> // Get a component to subclass + var VjsButton = videojs.getComponent('Button'); + // Subclass the component (see 'extend' doc for more info) + var MySpecialButton = videojs.extend(VjsButton, {}); + // Register the new component + VjsButton.registerComponent('MySepcialButton', MySepcialButton); + // (optionally) add the new component as a default player child + myPlayer.addChild('MySepcialButton');</code></pre><p>NOTE: You could also just initialize the component before adding. +<code>component.addChild(new MyComponent());</code></p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>The</td><td>String</td><td>yes</td><td>class name of the component</td></tr><tr><td>The</td><td>Component</td><td>yes</td><td>component class</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L180">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 180</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterTech"><h3 id="registerTechHeader">registerTech( The, The )</h3><div id="registerTechDescription" class="description"><p>Register a Tech so it can referred to by name. +This is used in the tech order for the player.</p> +<pre class="prettyprint source lang-js"><code> // get the Html5 Tech + var Html5 = videojs.getTech('Html5'); + var MyTech = videojs.extend(Html5, {}); + // Register the new Tech + VjsButton.registerTech('Tech', MyTech); + var player = videojs('myplayer', { + techOrder: ['myTech', 'html5'] + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>The</td><td>String</td><td>yes</td><td>class name of the tech</td></tr><tr><td>The</td><td>Tech</td><td>yes</td><td>tech class</td></tr></tbody></table><p class="vjs-only"><em id="registerTechFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L228">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 228</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( element, classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from an element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>element</td><td>Element</td><td>yes</td><td>Element to remove from class name</td></tr><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L595">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 595</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetAttributes"><h3 id="setAttributesHeader">setAttributes( el, [attributes] )</h3><div id="setAttributesDescription" class="description"><p>Apply attributes to an HTML element.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Target element.</td></tr><tr><td>attributes</td><td>Object</td><td>no</td><td>Element attributes to be applied.</td></tr></tbody></table><p class="vjs-only"><em id="setAttributesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L618">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 618</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleElClass"><h3 id="toggleElClassHeader">toggleElClass( element, classToToggle, [predicate] )</h3><div id="toggleElClassDescription" class="description"><p>Adds or removes a CSS class name on an element depending on an optional +condition or the presence/absence of the class name.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>element</td><td>Element</td></tr><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleElClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L604">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 604</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( elem, event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event for an element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>elem</td><td>Element|Object</td><td>yes</td><td>Element to trigger an event on</td></tr><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L507">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 507</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsvideojs"><h3 id="videojsHeader">videojs( id, [options], [ready] )</h3><div id="videojsDescription" class="description"><p>Doubles as the main function for users to create a player instance and also +the main library object. +The <code>videojs</code> function can be used to initialize or retrieve a player.</p> +<pre class="prettyprint source lang-js"><code> var myPlayer = videojs('my_video_id');</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>String|Element</td><td>yes</td><td>Video element or video element ID</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Optional options object for config/settings</td></tr><tr><td>ready</td><td>function</td><td>no</td><td>Optional ready callback</td></tr></tbody></table><p class="vjs-only"><em id="videojsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/video.js#L40">https://github.com/videojs/video.js/blob/master/src/js/video.js line number: 40</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/volume-bar.html b/javascript/videojs/docs/legacy-docs/api/volume-bar.html new file mode 100644 index 0000000..c70f41d --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/volume-bar.html @@ -0,0 +1,161 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>VolumeBar</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/VolumeBar.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/VolumeBar.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>VolumeBar Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#MethodsgetPercent">getPercent</a></li><li><a href="#MethodshandleMouseMove">handleMouseMove</a></li><li><a href="#MethodsstepBack">stepBack</a></li><li><a href="#MethodsstepForward">stepForward</a></li><li><a href="#MethodsupdateARIAAttributes">updateARIAAttributes</a></li></ul><h4>Inherited Methods from Slider</h4><ul><li><a href="#MethodscalculateDistance">calculateDistance</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleClick">handleClick</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li><li><a href="#MethodshandleMouseDown">handleMouseDown</a></li><li><a href="#MethodshandleMouseUp">handleMouseUp</a></li><li><a href="#Methodsupdate">update</a></li><li><a href="#Methodsvertical">vertical</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>VolumeBar</h1><div style="border:none" id="classDescription" class="description"><p>The bar that contains the volume level and can be clicked on to adjust the level</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L11">volume-bar.js line number: 11</a></p><p>EXTENDS: <a href="slider.html">slider.js</a></p><h3>Constructor</h3><pre><code>VolumeBar( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L27">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js line number: 27</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetPercent"><h3 id="getPercentHeader">getPercent()</h3><div id="getPercentDescription" class="description"><p>Get percent of volume level</p></div><p class="vjs-only"><em id="getPercentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L57">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseMove"><h3 id="handleMouseMoveHeader">handleMouseMove()</h3><div id="handleMouseMoveDescription" class="description"><p>Handle mouse move on volume bar</p></div><p class="vjs-only"><em id="handleMouseMoveFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L41">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js line number: 41</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstepBack"><h3 id="stepBackHeader">stepBack()</h3><div id="stepBackDescription" class="description"><p>Decrease volume level for keyboard users</p></div><p class="vjs-only"><em id="stepBackFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L81">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js line number: 81</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsstepForward"><h3 id="stepForwardHeader">stepForward()</h3><div id="stepForwardDescription" class="description"><p>Increase volume level for keyboard users</p></div><p class="vjs-only"><em id="stepForwardFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L71">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js line number: 71</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsupdateARIAAttributes"><h3 id="updateARIAAttributesHeader">updateARIAAttributes()</h3><div id="updateARIAAttributesDescription" class="description"><p>Update ARIA accessibility attributes</p></div><p class="vjs-only"><em id="updateARIAAttributesFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js#L91">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-bar.js line number: 91</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscalculateDistance"><h3 id="calculateDistanceHeader">calculateDistance( event )</h3><div id="calculateDistanceDescription" class="description"><p>Calculate distance for slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="calculateDistanceFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L149">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 149</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle on blur for slider</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L188">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 188</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick( event )</h3><div id="handleClickDescription" class="description"><p>Listener for click events on slider, used to prevent clicks + from bubbling up to parent elements like button menus.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L197">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 197</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle on focus for slider</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L163">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress( event )</h3><div id="handleKeyPressDescription" class="description"><p>Handle key press for slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Event object</td></tr></tbody></table><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L172">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 172</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseDown"><h3 id="handleMouseDownHeader">handleMouseDown( event )</h3><div id="handleMouseDownDescription" class="description"><p>Handle mouse down on slider</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Object</td><td>yes</td><td>Mouse down event object</td></tr></tbody></table><p class="vjs-only"><em id="handleMouseDownFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L64">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 64</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleMouseUp"><h3 id="handleMouseUpHeader">handleMouseUp()</h3><div id="handleMouseUpDescription" class="description"><p>Handle mouse up on Slider</p></div><p class="vjs-only"><em id="handleMouseUpFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L92">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 92</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update slider</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L111">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 111</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsvertical"><h3 id="verticalHeader">vertical( bool )</h3><div id="verticalDescription" class="description"><p>Get/set if slider is horizontal for vertical</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>bool</td><td>Boolean</td><td>yes</td><td>True if slider is vertical, false is horizontal</td></tr></tbody></table><p class="vjs-only"><em id="verticalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js#L209">https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 209</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/volume-control.html b/javascript/videojs/docs/legacy-docs/api/volume-control.html new file mode 100644 index 0000000..df288b3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/volume-control.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>VolumeControl</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/VolumeControl.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/VolumeControl.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>VolumeControl Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>VolumeControl</h1><div style="border:none" id="classDescription" class="description"><p>The component for controlling the volume level</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-control.js#L9">volume-control.js line number: 9</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>VolumeControl( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-control.js#L35">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-control.js line number: 35</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/volume-level.html b/javascript/videojs/docs/legacy-docs/api/volume-level.html new file mode 100644 index 0000000..cf2cfad --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/volume-level.html @@ -0,0 +1,160 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>VolumeLevel</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com/VolumeLevel.html"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/VolumeLevel.html">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>VolumeLevel Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodscreateEl">createEl</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>VolumeLevel</h1><div style="border:none" id="classDescription" class="description"><p>Shows volume level</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-level.js#L6">volume-level.js line number: 6</a></p><p>EXTENDS: <a href="component.html">component.js</a></p><h3>Constructor</h3><pre><code>VolumeLevel( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-level.js#L16">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control/volume-level.js line number: 16</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this component</p> +<pre class="prettyprint source lang-js"><code> myComponent.el(); + // -> <div class='my-component'></div> + myComponent.children(); + // [empty array] + + var myButton = myComponent.addChild('MyButton'); + // -> <div class='my-component'><div class="my-button">myButton<div></div> + // -> myButton === myComponent.children()[0];</code></pre><p>Pass in options for child constructors and options for children of the child</p> +<pre class="prettyprint source lang-js"><code> var myButton = myComponent.addChild('MyButton', { + text: 'Press Me', + buttonChildExample: { + buttonChildOption: true + } + });</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L315">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 315</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allows sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L593">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 593</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/api/volume-menu-button.html b/javascript/videojs/docs/legacy-docs/api/volume-menu-button.html new file mode 100644 index 0000000..0cba07c --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/api/volume-menu-button.html @@ -0,0 +1,146 @@ +<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>VolumeMenuButton</title><script src="//use.edgefonts.net/source-code-pro.js"> + // font for code blocks +</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css"/> <!-- there are many other style for highlighted code here: https://cdnjs.com/libraries/highlight.js --><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css"/><link rel="stylesheet" type="text/css" href="css/api-docs.css"/><link rel="canonical" href="https://docs.videojs.com"> +</head><body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. +<section id="index" class="side-nav"><h2 class="sideNavHeader"><a href="index.html">API Index</a></h2><div id="memberIndex" class="member-index"><h3>VolumeMenuButton Methods</h3><h4>Class Methods</h4><ul id="methodsList"><li><a href="#MethodsbuildCSSClass">buildCSSClass</a></li><li><a href="#MethodscreatePopup">createPopup</a></li><li><a href="#MethodshandleClick">handleClick</a></li></ul><h4>Inherited Methods from PopupButton</h4><ul><li><a href="#MethodscreateEl">createEl</a></li><li><a href="#Methodsupdate">update</a></li></ul><h4>Inherited Methods from ClickableComponent</h4><ul><li><a href="#MethodsaddChild">addChild</a></li><li><a href="#MethodscontrolText">controlText</a></li><li><a href="#MethodshandleBlur">handleBlur</a></li><li><a href="#MethodshandleFocus">handleFocus</a></li><li><a href="#MethodshandleKeyPress">handleKeyPress</a></li></ul><h4>Inherited Methods from Component</h4><ul><li><a href="#Methods$">$</a></li><li><a href="#Methods$$">$$</a></li><li><a href="#MethodsaddClass">addClass</a></li><li><a href="#Methodschildren">children</a></li><li><a href="#MethodsclearInterval">clearInterval</a></li><li><a href="#MethodsclearTimeout">clearTimeout</a></li><li><a href="#MethodscontentEl">contentEl</a></li><li><a href="#Methodsdimensions">dimensions</a></li><li><a href="#Methodsdispose">dispose</a></li><li><a href="#Methodsel">el</a></li><li><a href="#MethodsenableTouchActivity">enableTouchActivity</a></li><li><a href="#Methodsextend">extend</a></li><li><a href="#MethodsgetChild">getChild</a></li><li><a href="#MethodsgetChildById">getChildById</a></li><li><a href="#MethodsgetComponent">getComponent</a></li><li><a href="#MethodshasClass">hasClass</a></li><li><a href="#Methodsheight">height</a></li><li><a href="#Methodshide">hide</a></li><li><a href="#Methodsid">id</a></li><li><a href="#MethodsinitChildren">initChildren</a></li><li><a href="#Methodsname">name</a></li><li><a href="#Methodsoff">off</a></li><li><a href="#Methodson">on</a></li><li><a href="#Methodsone">one</a></li><li><a href="#Methodsoptions">options</a></li><li><a href="#Methodsplayer">player</a></li><li><a href="#Methodsready">ready</a></li><li><a href="#MethodsregisterComponent">registerComponent</a></li><li><a href="#MethodsremoveChild">removeChild</a></li><li><a href="#MethodsremoveClass">removeClass</a></li><li><a href="#MethodssetInterval">setInterval</a></li><li><a href="#MethodssetTimeout">setTimeout</a></li><li><a href="#Methodsshow">show</a></li><li><a href="#MethodstoggleClass">toggleClass</a></li><li><a href="#Methodstrigger">trigger</a></li><li><a href="#MethodstriggerReady">triggerReady</a></li><li><a href="#Methodswidth">width</a></li></ul></div></section><div id="main" class="section"><section id="top" class="section"><h1>VolumeMenuButton</h1><div style="border:none" id="classDescription" class="description"><p>Button for volume popup</p></div><p>DEFINED IN: <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js#L12">volume-menu-button.js line number: 12</a></p><p>EXTENDS: <a href="popup-button.html">popup-button.js</a></p><h3>Constructor</h3><pre><code>VolumeMenuButton( player,[options] )</code></pre><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>player</td><td>Player|Object</td></tr><tr><td>options</td><td>Object</td></tr></tbody></table></section><section id="methods" class="section"><h2>Methods</h2><div id="MethodsbuildCSSClass"><h3 id="buildCSSClassHeader">buildCSSClass()</h3><div id="buildCSSClassDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="buildCSSClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js#L79">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js line number: 79</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreatePopup"><h3 id="createPopupHeader">createPopup()</h3><div id="createPopupDescription" class="description"><p>Allow sub components to stack CSS class names</p></div><p class="vjs-only"><em id="createPopupFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js#L96">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js line number: 96</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleClick"><h3 id="handleClickHeader">handleClick()</h3><div id="handleClickDescription" class="description"><p>Handle click on volume popup and calls super</p></div><p class="vjs-only"><em id="handleClickFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js#L118">https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js line number: 118</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscreateEl"><h3 id="createElHeader">createEl()</h3><div id="createElDescription" class="description"><p>Create the component's DOM element</p></div><p class="vjs-only"><em id="createElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L57">https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 57</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsupdate"><h3 id="updateHeader">update()</h3><div id="updateDescription" class="description"><p>Update popup</p></div><p class="vjs-only"><em id="updateFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js#L27">https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 27</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddChild"><h3 id="addChildHeader">addChild( child, [options] )</h3><div id="addChildDescription" class="description"><p>Adds a child component inside this clickable-component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>child</td><td>String|Component</td><td>yes</td><td>The class name or instance of a child to add</td></tr><tr><td>options</td><td>Object</td><td>no</td><td>Options, including options to be passed to children of the child.</td></tr></tbody></table><p class="vjs-only"><em id="addChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L112">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 112</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontrolText"><h3 id="controlTextHeader">controlText( el )</h3><div id="controlTextDescription" class="description"><p>create control text</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>el</td><td>Element</td><td>yes</td><td>Parent element for the control text</td></tr></tbody></table><p class="vjs-only"><em id="controlTextFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L65">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleBlur"><h3 id="handleBlurHeader">handleBlur()</h3><div id="handleBlurDescription" class="description"><p>Handle Blur - Remove keyboard triggers</p></div><p class="vjs-only"><em id="handleBlurFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L163">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 163</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleFocus"><h3 id="handleFocusHeader">handleFocus()</h3><div id="handleFocusDescription" class="description"><p>Handle Focus - Add keyboard functionality to element</p></div><p class="vjs-only"><em id="handleFocusFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L139">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshandleKeyPress"><h3 id="handleKeyPressHeader">handleKeyPress()</h3><div id="handleKeyPressDescription" class="description"><p>Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed</p></div><p class="vjs-only"><em id="handleKeyPressFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js#L148">https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 148</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$"><h3 id="$Header">$( selector, [context] )</h3><div id="$Description" class="description"><p>Finds a single DOM element matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelector</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L841">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 841</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methods$$"><h3 id="$$Header">$$( selector, [context] )</h3><div id="$$Description" class="description"><p>Finds a all DOM elements matching <code>selector</code> within the component's +<code>contentEl</code> or another custom context.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>selector</td><td>String</td><td>yes</td><td>A valid CSS selector, which will be passed to <code>querySelectorAll</code>.</td></tr><tr><td>context</td><td>Element|String</td><td>no</td><td>A DOM element within which to query. Can also be a selector + string in which case the first matching element will be used + as context. If missing (or no element matches selector), falls + back to <code>document</code>.</td></tr></tbody></table><p class="vjs-only"><em id="$$Footer">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L861">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 861</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsaddClass"><h3 id="addClassHeader">addClass( classToAdd )</h3><div id="addClassDescription" class="description"><p>Add a CSS class name to the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToAdd</td><td>String</td><td>yes</td><td>Classname to add</td></tr></tbody></table><p class="vjs-only"><em id="addClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L892">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 892</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodschildren"><h3 id="childrenHeader">children()</h3><div id="childrenDescription" class="description"><p>Get an array of all child components</p> +<pre class="prettyprint source lang-js"><code> var kids = myComponent.children();</code></pre></div><p class="vjs-only"><em id="childrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L282">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 282</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearInterval"><h3 id="clearIntervalHeader">clearInterval( intervalId )</h3><div id="clearIntervalDescription" class="description"><p>Clears an interval and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>intervalId</td><td>Number</td><td>yes</td><td>The id of the interval to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsclearTimeout"><h3 id="clearTimeoutHeader">clearTimeout( timeoutId )</h3><div id="clearTimeoutDescription" class="description"><p>Clears a timeout and removes the associated dispose listener</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>timeoutId</td><td>Number</td><td>yes</td><td>The id of the timeout to clear</td></tr></tbody></table><p class="vjs-only"><em id="clearTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1252">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1252</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodscontentEl"><h3 id="contentElHeader">contentEl()</h3><div id="contentElDescription" class="description"><p>Return the component's DOM element where children are inserted. +Will either be the same as el() or a new element defined in createEl().</p></div><p class="vjs-only"><em id="contentElFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L245">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 245</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdimensions"><h3 id="dimensionsHeader">dimensions( width, height )</h3><div id="dimensionsDescription" class="description"><p>Set both width and height at the same time</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>Number|String</td><td>yes</td><td>Width of player</td></tr><tr><td>height</td><td>Number|String</td><td>yes</td><td>Height of player</td></tr></tbody></table><p class="vjs-only"><em id="dimensionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1015">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1015</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsdispose"><h3 id="disposeHeader">dispose()</h3><div id="disposeDescription" class="description"><p>Dispose of the component and all child components</p></div><p class="vjs-only"><em id="disposeFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L101">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 101</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsel"><h3 id="elHeader">el()</h3><div id="elDescription" class="description"><p>Get the component's DOM element</p> +<pre class="prettyprint source lang-js"><code> var domEl = myComponent.el();</code></pre></div><p class="vjs-only"><em id="elFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L195">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 195</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsenableTouchActivity"><h3 id="enableTouchActivityHeader">enableTouchActivity()</h3><div id="enableTouchActivityDescription" class="description"><p>Report user touch activity when touch events occur +User activity is used to determine when controls should show/hide. It's +relatively simple when it comes to mouse events, because any mouse event +should show the controls. So we capture mouse events that bubble up to the +player and report activity when that happens. +With touch events it isn't as easy. We can't rely on touch events at the +player level, because a tap (touchstart + touchend) on the video itself on +mobile devices is meant to turn controls off (and on). User activity is +checked asynchronously, so what could happen is a tap event on the video +turns the controls off, then the touchend event bubbles up to the player, +which if it reported user activity, would turn the controls right back on. +(We also don't want to completely block touch events from bubbling up) +Also a touchmove, touch+hold, and anything other than a tap is not supposed +to turn the controls back on on a mobile device. +Here we're setting the default component behavior to report user activity +whenever touch events happen, and this can be turned off by components that +want touch events to act differently.</p></div><p class="vjs-only"><em id="enableTouchActivityFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1174">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1174</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsextend"><h3 id="extendHeader">static extend( props )<em class="deprecated"> (deprecated)</em></h3><div id="extendDescription" class="description"><p>Sets up the constructor using the supplied init method +or uses the init of the parent object</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>props</td><td>Object</td><td>yes</td><td>An object of properties</td></tr></tbody></table><p class="vjs-only"><em id="extendFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1350">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1350</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChild"><h3 id="getChildHeader">getChild()</h3><div id="getChildDescription" class="description"><p>Returns a child component with the provided name</p></div><p class="vjs-only"><em id="getChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L305">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 305</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetChildById"><h3 id="getChildByIdHeader">getChildById()</h3><div id="getChildByIdDescription" class="description"><p>Returns a child component with the provided ID</p></div><p class="vjs-only"><em id="getChildByIdFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L295">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 295</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsgetComponent"><h3 id="getComponentHeader">static getComponent( name )</h3><div id="getComponentDescription" class="description"><p>Gets a component by name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to get</td></tr></tbody></table><p class="vjs-only"><em id="getComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1331">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1331</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodshasClass"><h3 id="hasClassHeader">hasClass( classToCheck )</h3><div id="hasClassDescription" class="description"><p>Check if a component's element has a CSS class name</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToCheck</td><td>String</td><td>yes</td><td>Classname to check</td></tr></tbody></table><p class="vjs-only"><em id="hasClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L881">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 881</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsheight"><h3 id="heightHeader">height( num, [skipListeners] )</h3><div id="heightDescription" class="description"><p>Get or set the height of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>New component height</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>no</td><td>Skip the resize event trigger</td></tr></tbody></table><p class="vjs-only"><em id="heightFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L998">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 998</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodshide"><h3 id="hideHeader">hide()</h3><div id="hideDescription" class="description"><p>Hide the component element if currently showing</p></div><p class="vjs-only"><em id="hideFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L944">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 944</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsid"><h3 id="idHeader">id()</h3><div id="idDescription" class="description"><p>Get the component's ID</p> +<pre class="prettyprint source lang-js"><code> var id = myComponent.id();</code></pre></div><p class="vjs-only"><em id="idFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L256">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 256</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsinitChildren"><h3 id="initChildrenHeader">initChildren()</h3><div id="initChildrenDescription" class="description"><p>Add and initialize default child components from options</p> +<pre class="prettyprint source lang-js"><code> // when an instance of MyComponent is created, all children in options + // will be added to the instance by their name strings and options + MyComponent.prototype.options_ = { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + }; + + // Or when creating the component + var myComp = new MyComponent(player, { + children: [ + 'myChildComponent' + ], + myChildComponent: { + myChildOption: true + } + });</code></pre><p>The children option can also be an array of +child options objects (that also include a 'name' key). +This can be used if you have two child components of the +same type that need different options.</p> +<pre class="prettyprint source lang-js"><code> var myComp = new MyComponent(player, { + children: [ + 'button', + { + name: 'button', + someOtherOption: true + }, + { + name: 'button', + someOtherOption: false + } + ] + });</code></pre></div><p class="vjs-only"><em id="initChildrenFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L455">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 455</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsname"><h3 id="nameHeader">name()</h3><div id="nameDescription" class="description"><p>Get the component's name. The name is often used to reference the component.</p> +<pre class="prettyprint source lang-js"><code> var name = myComponent.name();</code></pre></div><p class="vjs-only"><em id="nameFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L269">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 269</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoff"><h3 id="offHeader">off( first, second, [third] )</h3><div id="offDescription" class="description"><p>Remove an event listener from this component's element</p> +<pre class="prettyprint source lang-js"><code> myComponent.off('eventType', myFunc);</code></pre><p>If myFunc is excluded, ALL listeners for the event type will be removed. +If eventType is excluded, ALL listeners will be removed from the component. +Alternatively you can use <code>off</code> to remove listeners that were added to other +elements or components using <code>myComponent.on(otherComponent...</code>. +In this case both the event type and listener function are REQUIRED.</p> +<pre class="prettyprint source lang-js"><code> myComponent.off(otherElement, 'eventType', myFunc); + myComponent.off(otherComponent, 'eventType', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener for other component</td></tr></tbody></table><p class="vjs-only"><em id="offFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L680">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 680</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodson"><h3 id="onHeader">on( first, second, third )</h3><div id="onDescription" class="description"><p>Add an event listener to this component's element</p> +<pre class="prettyprint source lang-js"><code> var myFunc = function(){ + var myComponent = this; + // Do something when the event is fired + }; + + myComponent.on('eventType', myFunc);</code></pre><p>The context of myFunc will be myComponent unless previously bound. +Alternatively, you can add a listener to another element or component.</p> +<pre class="prettyprint source lang-js"><code> myComponent.on(otherElement, 'eventName', myFunc); + myComponent.on(otherComponent, 'eventName', myFunc);</code></pre><p>The benefit of using this over <code>VjsEvents.on(otherElement, 'eventName', myFunc)</code> +and <code>otherComponent.on('eventName', myFunc)</code> is that this way the listeners +will be automatically cleaned up when either component is disposed. +It will also bind myComponent as the context of myFunc. +<strong>NOTE</strong>: When using this on elements in the page other than window +and document (both permanent), if you remove the element from the DOM +you need to call <code>myComponent.trigger(el, 'dispose')</code> on it to clean up +references to it and allow the browser to garbage collect it.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The event handler or event type</td></tr><tr><td>third</td><td>function</td><td>yes</td><td>The event handler</td></tr></tbody></table><p class="vjs-only"><em id="onFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L605">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 605</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsone"><h3 id="oneHeader">one( first, second, [third] )</h3><div id="oneDescription" class="description"><p>Add an event listener to be triggered only once and then removed</p> +<pre class="prettyprint source lang-js"><code> myComponent.one('eventName', myFunc);</code></pre><p>Alternatively you can add a listener to another element or component +that will be triggered only once.</p> +<pre class="prettyprint source lang-js"><code> myComponent.one(otherElement, 'eventName', myFunc); + myComponent.one(otherComponent, 'eventName', myFunc);</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>first</td><td>String|Component</td><td>yes</td><td>The event type or other component</td></tr><tr><td>second</td><td>function|String</td><td>yes</td><td>The listener function or event type</td></tr><tr><td>third</td><td>function</td><td>no</td><td>The listener function for other component</td></tr></tbody></table><p class="vjs-only"><em id="oneFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L728">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 728</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsoptions"><h3 id="optionsHeader">options( obj )</h3><div id="optionsDescription" class="description"><p>Deep merge of options objects +Whenever a property is an object on both options objects +the two properties will be merged using mergeOptions.</p> +<pre class="prettyprint source lang-js"><code> Parent.prototype.options_ = { + optionSet: { + 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' }, + 'childTwo': {}, + 'childThree': {} + } + } + newOptions = { + optionSet: { + 'childOne': { 'foo': 'baz', 'abc': '123' } + 'childTwo': null, + 'childFour': {} + } + } + + this.options(newOptions);</code></pre><p>RESULT</p> +<pre class="prettyprint source lang-js"><code> { + optionSet: { + 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' }, + 'childTwo': null, // Disabled. Won't be initialized. + 'childThree': {}, + 'childFour': {} + } + }</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>obj</td><td>Object</td><td>yes</td><td>Object of new option values</td></tr></tbody></table><p class="vjs-only"><em id="optionsFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L145">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 145</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsplayer"><h3 id="playerHeader">player()</h3><div id="playerDescription" class="description"><p>Return the component's player</p></div><p class="vjs-only"><em id="playerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L135">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 135</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsready"><h3 id="readyHeader">ready( fn, sync )</h3><div id="readyDescription" class="description"><p>Bind a listener to the component's ready state. +Different from event listeners in that if the ready event has already happened +it will trigger the function immediately.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>Ready listener</td></tr><tr><td>sync</td><td>Boolean</td><td>yes</td><td>Exec the listener synchronously if component is ready</td></tr></tbody></table><p class="vjs-only"><em id="readyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L787">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 787</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsregisterComponent"><h3 id="registerComponentHeader">static registerComponent( name, comp )</h3><div id="registerComponentDescription" class="description"><p>Registers a component</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>yes</td><td>Name of the component to register</td></tr><tr><td>comp</td><td>Object</td><td>yes</td><td>The component to register</td></tr></tbody></table><p class="vjs-only"><em id="registerComponentFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1314">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1314</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveChild"><h3 id="removeChildHeader">removeChild( component )</h3><div id="removeChildDescription" class="description"><p>Remove a child component from this component's list of children, and the +child component's element from this component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>component</td><td>Component</td><td>yes</td><td>Component to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeChildFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L415">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 415</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodsremoveClass"><h3 id="removeClassHeader">removeClass( classToRemove )</h3><div id="removeClassDescription" class="description"><p>Remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToRemove</td><td>String</td><td>yes</td><td>Classname to remove</td></tr></tbody></table><p class="vjs-only"><em id="removeClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L904">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 904</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetInterval"><h3 id="setIntervalHeader">setInterval( fn, interval )</h3><div id="setIntervalDescription" class="description"><p>Creates an interval and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run every N seconds.</td></tr><tr><td>interval</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setIntervalFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1271">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1271</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodssetTimeout"><h3 id="setTimeoutHeader">setTimeout( fn, timeout )</h3><div id="setTimeoutDescription" class="description"><p>Creates timeout and sets up disposal automatically.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>fn</td><td>function</td><td>yes</td><td>The function to run after the timeout.</td></tr><tr><td>timeout</td><td>Number</td><td>yes</td><td>Number of ms to delay before executing specified function.</td></tr></tbody></table><p class="vjs-only"><em id="setTimeoutFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L1227">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 1227</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodsshow"><h3 id="showHeader">show()</h3><div id="showDescription" class="description"><p>Show the component element if hidden</p></div><p class="vjs-only"><em id="showFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L933">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 933</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstoggleClass"><h3 id="toggleClassHeader">toggleClass( classToToggle, [predicate] )</h3><div id="toggleClassDescription" class="description"><p>Add or remove a CSS class name from the component's element</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>classToToggle</td><td>String</td></tr><tr><td>predicate</td><td>Boolean|function</td><td>no</td><td>Can be a function that returns a Boolean. If <code>true</code>, the class + will be added; if <code>false</code>, the class will be removed. If not + given, the class will be added if not present and vice versa.</td></tr></tbody></table><p class="vjs-only"><em id="toggleClassFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L916">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 916</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodstrigger"><h3 id="triggerHeader">trigger( event, [hash] )</h3><div id="triggerDescription" class="description"><p>Trigger an event on an element</p> +<pre class="prettyprint source lang-js"><code> myComponent.trigger('eventName'); + myComponent.trigger({'type':'eventName'}); + myComponent.trigger('eventName', {data: 'some data'}); + myComponent.trigger({'type':'eventName'}, {data: 'some data'});</code></pre></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>Event|Object|String</td><td>yes</td><td>A string (the type) or an event object with a type attribute</td></tr><tr><td>hash</td><td>Object</td><td>no</td><td>data hash to pass along with the event</td></tr></tbody></table><p class="vjs-only"><em id="triggerFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L768">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 768</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="MethodstriggerReady"><h3 id="triggerReadyHeader">triggerReady()</h3><div id="triggerReadyDescription" class="description"><p>Trigger the ready listeners</p></div><p class="vjs-only"><em id="triggerReadyFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L814">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 814</a></em></p><p><a href="#top">[back to top]</a></p></div><div id="Methodswidth"><h3 id="widthHeader">width( num, skipListeners )</h3><div id="widthDescription" class="description"><p>Set or get the width of the component (CSS values) +Setting the video tag dimension values only works with values in pixels. +Percent values will not work. +Some percents can be used, but width()/height() will return the number + %, +not the actual computed width/height.</p></div><h4>Parameters</h4><table><thead><tr><th>name</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>num</td><td>Number|String</td><td>yes</td><td>Optional width number</td></tr><tr><td>skipListeners</td><td>Boolean</td><td>yes</td><td>Skip the 'resize' event trigger</td></tr></tbody></table><p class="vjs-only"><em id="widthFooter">Defined in <a href="https://github.com/videojs/video.js/blob/master/src/js/component.js#L981">https://github.com/videojs/video.js/blob/master/src/js/component.js line number: 981</a></em></p><p><a href="#top">[back to top]</a></p></div></section></div><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"> + // syntax highlighter for code samples +</script><script src="./js/highlight-syntax.js"> + // activates syntax highlighting +</script></body></html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/css/guides-gh.css b/javascript/videojs/docs/legacy-docs/css/guides-gh.css new file mode 100644 index 0000000..820f07b --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/css/guides-gh.css @@ -0,0 +1,675 @@ +html, +body { + margin: 0; + padding: 0; +} +body { padding: 4em 6em; } +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +cite, +code, +del, +dfn, +em, +img, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +dd, +dl, +dt, +li, +ol, +ul, +fieldset, +form, +label, +legend, +button, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td { + margin: 0; + padding: 0; + border: 0; + font-weight: normal; + font-style: normal; + font-size: 100%; + line-height: 1; + font-family: inherit; +} +table { + border-collapse: collapse; + border-spacing: 0; +} +ol, +ul { list-style: none } +q:before, +q:after, +blockquote:before, +blockquote:after { content: "" } +html { + overflow-y: scroll; + font-size: 100%; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} +a:focus { outline: thin dotted } +a:hover, +a:active { outline: 0 } +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +nav, +section { display: block } +audio, +canvas, +video { + display: inline-block; + *display: inline; + *zoom: 1; +} +audio:not([controls]) { display: none } +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { top: -0.5em } +sub { bottom: -0.25em } +img { + border: 0; + -ms-interpolation-mode: bicubic; +} +button, +input, +select, +textarea { + font-size: 100%; + margin: 0; + vertical-align: baseline; + *vertical-align: middle; +} +button, +input { + line-height: normal; + *overflow: visible; +} +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} +button, +input[type="button"], +input[type="reset"], +input[type="submit"] { + cursor: pointer; + -webkit-appearance: button; +} +input[type="search"] { + -webkit-appearance: textfield; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +input[type="search"]::-webkit-search-decoration { -webkit-appearance: none } +textarea { + overflow: auto; + vertical-align: top; +} +html, +body { background-color: #ffffff } +body { + margin: 0; + font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; + font-size: 13px; + font-weight: normal; + line-height: 18px; + color: #404040; +} +.container { + width: 940px; + margin-left: auto; + margin-right: auto; + zoom: 1; +} +.container:before, +.container:after { + display: table; + content: ""; + zoom: 1; + *display: inline; +} +.container:after { clear: both } +.container-fluid { + position: relative; + min-width: 940px; + padding-left: 20px; + padding-right: 20px; + zoom: 1; +} +.container-fluid:before, +.container-fluid:after { + display: table; + content: ""; + zoom: 1; + *display: inline; +} +.container-fluid:after { clear: both } +.container-fluid>.sidebar { + float: left; + width: 220px; +} +.container-fluid>.content { margin-left: 240px } +a { + color: #0069d6; + text-decoration: none; + line-height: inherit; + font-weight: inherit; +} +a:hover { + color: #00438a; + text-decoration: underline; +} +.pull-right { float: right } +.pull-left { float: left } +.hide { display: none } +.show { display: block } +.row { + zoom: 1; + margin-left: -20px; +} +.row:before, +.row:after { + display: table; + content: ""; + zoom: 1; + *display: inline; +} +.row:after { clear: both } +p { + font-size: 13px; + font-weight: normal; + line-height: 18px; + margin-bottom: 9px; +} + p small { + font-size: 11px; + color: #bfbfbf; + } +h1, +h2, +h3, +h4, +h5, +h6 { + font-weight: bold; + color: #404040; +} + h1 small, + h2 small, + h3 small, + h4 small, + h5 small, + h6 small { color: #bfbfbf } +h1 { + margin-bottom: 18px; + font-size: 30px; + line-height: 36px; +} + h1 small { font-size: 18px } +h2 { + font-size: 24px; + line-height: 36px; +} + h2 small { font-size: 14px } +h3, +h4, +h5, +h6 { line-height: 36px } +h3 { font-size: 18px } + h3 small { font-size: 14px } +h4 { font-size: 16px } + h4 small { font-size: 12px } +h5 { font-size: 14px } +h6 { + font-size: 13px; + color: #bfbfbf; + text-transform: uppercase; +} +ul, +ol { margin: 0 0 18px 25px } + ul ul, + ul ol, + ol ol, + ol ul { margin-bottom: 0 } +ul { list-style: disc } +ol { list-style: decimal } +li { + line-height: 18px; + color: #808080; +} +ul.unstyled { + list-style: none; + margin-left: 0; +} +dl { margin-bottom: 18px } + dl dt, + dl dd { line-height: 18px } + dl dt { font-weight: bold } + dl dd { margin-left: 9px } +hr { + margin: 20px 0 19px; + border: 0; + border-bottom: 1px solid #eee; +} +strong { + font-style: inherit; + font-weight: bold; +} +em { + font-style: italic; + font-weight: inherit; + line-height: inherit; +} +.muted { color: #bfbfbf } +blockquote { + margin-bottom: 18px; + border-left: 5px solid #eee; + padding-left: 15px; +} + blockquote p { + font-size: 14px; + font-weight: 300; + line-height: 18px; + margin-bottom: 0; + } + blockquote small { + display: block; + font-size: 12px; + font-weight: 300; + line-height: 18px; + color: #bfbfbf; + } + blockquote small:before { content: '\2014 \00A0' } +address { + display: block; + line-height: 18px; + margin-bottom: 18px; +} +code, +pre { + padding: 0 3px 2px; + font-family: Monaco, Andale Mono, Courier New, monospace; + font-size: 12px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +code { padding: 1px 3px } +pre { + background-color: #f5f5f5; + display: block; + padding: 8.5px; + margin: 0 0 18px; + line-height: 18px; + font-size: 12px; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.15); + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} +form { margin-bottom: 18px } +fieldset { + margin-bottom: 18px; + padding-top: 18px; +} + fieldset legend { + display: block; + padding-left: 150px; + font-size: 19.5px; + line-height: 1; + color: #404040; + *padding: 0 0 5px 145px; + *line-height: 1.5; + } +form .clearfix { + margin-bottom: 18px; + zoom: 1; +} +form .clearfix:before, +form .clearfix:after { + display: table; + content: ""; + zoom: 1; + *display: inline; +} +form .clearfix:after { clear: both } +label, +input, +select, +textarea { + font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; + font-size: 13px; + font-weight: normal; + line-height: normal; +} +label { + padding-top: 6px; + font-size: 13px; + line-height: 18px; + float: left; + width: 130px; + text-align: right; + color: #404040; +} +form .input { margin-left: 150px } +input[type=checkbox], +input[type=radio] { cursor: pointer } +input, +textarea, +select, +.uneditable-input { + display: inline-block; + width: 210px; + height: 18px; + padding: 4px; + font-size: 13px; + line-height: 18px; + color: #808080; + border: 1px solid #ccc; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +input[type=checkbox], +input[type=radio] { + width: auto; + height: auto; + padding: 0; + margin: 3px 0; + *margin-top: 0; + line-height: normal; + border: none; +} +input[type=file] { + background-color: #ffffff; + padding: initial; + border: initial; + line-height: initial; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +input[type=button], +input[type=reset], +input[type=submit] { + width: auto; + height: auto; +} +select, +input[type=file] { + height: 27px; + line-height: 27px; + *margin-top: 4px; +} +select[multiple] { height: inherit } +textarea { height: auto } +.uneditable-input { + background-color: #ffffff; + display: block; + border-color: #eee; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); + -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); + cursor: not-allowed; +} +:-moz-placeholder { color: #bfbfbf } +::-webkit-input-placeholder { color: #bfbfbf } +input, +textarea { + -webkit-transition: border linear 0.2s,box-shadow linear 0.2s; + -moz-transition: border linear 0.2s,box-shadow linear 0.2s; + -ms-transition: border linear 0.2s,box-shadow linear 0.2s; + -o-transition: border linear 0.2s,box-shadow linear 0.2s; + transition: border linear 0.2s,box-shadow linear 0.2s; + -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); + -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); +} +input:focus, +textarea:focus { + outline: 0; + border-color: rgba(82, 168, 236, 0.8); + -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1),0 0 8px rgba(82, 168, 236, 0.6); + -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1),0 0 8px rgba(82, 168, 236, 0.6); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1),0 0 8px rgba(82, 168, 236, 0.6); +} +input[type=file]:focus, +input[type=checkbox]:focus, +select:focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + outline: 1px dotted #666; +} +form div.clearfix.error { + background: #fae5e3; + padding: 10px 0; + margin: -10px 0 10px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + form div.clearfix.error>label, + form div.clearfix.error span.help-inline, + form div.clearfix.error span.help-block { color: #9d261d } + form div.clearfix.error input, + form div.clearfix.error textarea { + border-color: #c87872; + -webkit-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25); + -moz-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25); + box-shadow: 0 0 3px rgba(171, 41, 32, 0.25); + } + form div.clearfix.error input:focus, + form div.clearfix.error textarea:focus { + border-color: #b9554d; + -webkit-box-shadow: 0 0 6px rgba(171, 41, 32, 0.5); + -moz-box-shadow: 0 0 6px rgba(171, 41, 32, 0.5); + box-shadow: 0 0 6px rgba(171, 41, 32, 0.5); + } + form div.clearfix.error .input-prepend span.add-on, + form div.clearfix.error .input-append span.add-on { + background: #f4c8c5; + border-color: #c87872; + color: #b9554d; + } +table { + width: 100%; + margin-bottom: 18px; + padding: 0; + border-collapse: separate; + *border-collapse: collapse; + font-size: 13px; + border: 1px solid #ddd; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + table th, + table td { + padding: 10px 10px 9px; + line-height: 18px; + text-align: left; + } + table th { + padding-top: 9px; + font-weight: bold; + vertical-align: middle; + border-bottom: 1px solid #ddd; + } + table td { vertical-align: top } + table th+th, + table td+td { border-left: 1px solid #ddd } + table tr+tr td { border-top: 1px solid #ddd } + table tbody tr:first-child td:first-child { + -webkit-border-radius: 4px 0 0 0; + -moz-border-radius: 4px 0 0 0; + border-radius: 4px 0 0 0; + } + table tbody tr:first-child td:last-child { + -webkit-border-radius: 0 4px 0 0; + -moz-border-radius: 0 4px 0 0; + border-radius: 0 4px 0 0; + } + table tbody tr:last-child td:first-child { + -webkit-border-radius: 0 0 0 4px; + -moz-border-radius: 0 0 0 4px; + border-radius: 0 0 0 4px; + } + table tbody tr:last-child td:last-child { + -webkit-border-radius: 0 0 4px 0; + -moz-border-radius: 0 0 4px 0; + border-radius: 0 0 4px 0; + } +.zebra-striped tbody tr:nth-child(odd) td { background-color: #f9f9f9 } +.zebra-striped tbody tr:hover td { background-color: #f5f5f5 } +.zebra-striped .header { cursor: pointer } +.zebra-striped .header:after { + content: ""; + float: right; + margin-top: 7px; + border-width: 0 4px 4px; + border-style: solid; + border-color: #000 transparent; + visibility: hidden; +} +.zebra-striped .header:hover:after { visibility: visible } +footer { + margin-top: 17px; + padding-top: 17px; + border-top: 1px solid #eee; +} +.page-header { + margin-bottom: 17px; + border-bottom: 1px solid #ddd; + -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); +} + .page-header h1 { margin-bottom: 8px } +.close { + float: right; + color: #000000; + font-size: 20px; + font-weight: bold; + line-height: 13.5px; + text-shadow: 0 1px 0 #ffffff; + filter: alpha(opacity=20); + -khtml-opacity: 0.2; + -moz-opacity: 0.2; + opacity: 0.2; +} +.close:hover { + color: #000000; + text-decoration: none; + filter: alpha(opacity=40); + -khtml-opacity: 0.4; + -moz-opacity: 0.4; + opacity: 0.4; +} +pre { + padding: 0; + margin: 10px 0px 10px; + overflow: auto; /*--If the Code exceeds the width, a scrolling is available--*/ + overflow-Y: hidden; /*--Hides vertical scroll created by IE--*/ +} + pre code { + margin: 5px; /*--Left Margin--*/ + padding: 0px; + display: block; + line-height: 18px; + } +.center { text-align: center } +.left { text-align: left } +.right { text-align: right } +body { + font-family: "Geneva", Arial, sans-serif; + font-size: 13px; + margin: 10px; +} +a, +a:visited { color: #09c } +a:hover { + color: #336699; + text-decoration: none; +} +h1 { + margin: 0px 0px 10px; + font-weight: bold; +} +h2 { + border-bottom: 2px dotted #ccc; + margin: 5px 0px 15px; +} +h6 { color: #09c } +blockquote { + font-family: "Georgia", Courier New, courier, sans-serif; + background: #efefef; + padding: 5px 10px; + border: solid 1px #ddd; + margin: 15px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + color: #333; +} +ul, +ol { margin-bottom: 15px } +li { padding: 3px } +code { + background-color: #f1f1f1; + color: #336699; +} +pre { background-color: #f1f1f1 } + pre > code { + margin: 0px; + padding: 5px; + border: 0px; + background-color: #f1f1f1; + } diff --git a/javascript/videojs/docs/legacy-docs/css/guides.css b/javascript/videojs/docs/legacy-docs/css/guides.css new file mode 100644 index 0000000..894fe21 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/css/guides.css @@ -0,0 +1,173 @@ +body { + color: #333; + /*margin: 6em;*/ + margin-top: 2em; + margin-right: 3em; + margin-left: 1em; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + position: relative; +} + +.sidenav { + position: fixed; + height: 100%; + right: 1em; + max-width: 18%; + display: inline-block; + font-size: .7em; + border: none; + border-left: 1px solid #DDD; +} + +.sidenav-list { + list-style-type: none; +} +.sidenav-list>li { + margin-bottom: .6em; +} +.main { + position: absolute; + right: 25%; + padding-bottom: 40px; + display: inline-block; + max-width: 70%; +} +.footer { + bottom: 0; + right: 0; + left: 0; + position: fixed; + width: 100%; + text-align: center; + padding: .2em; + background-color: #EEE; +} + +@media (max-width: 700px) { + .member-index { + display: none; + } + .side-nav { + float: none; + } +} + +a { + color: #437ABE; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +h1, h2, h3 { + margin-left: -1em; +} + +h1 { + border-bottom: 1px #CCC solid; + font-size: 2.5em; +} +h2 { + border-bottom: 1px #DDD solid; + font-size: 1.5em; +} + +h3 { + font-size: 1.5em; +} + +#memberIndex h4 { + font-size: 1em; + font-weight: normal; + font-style: italic; +} + +div { + border-bottom: 1px #DDD solid; + font-size: 1em; +} + +pre { + background-color: #FDF6E3; + font-size: .8em; + margin-bottom: 1.3rem; + padding: .5rem; + padding-left: 1rem; + margin-top: 1rem; + border-left: 5px solid rgb(99,99,99); + -webkit-box-shadow: 5px 5px 10px rgba(192, 192, 192, 1.000); + -moz-box-shadow: 5px 5px 10px rgba(192, 192, 192, 1.000); + box-shadow: 5px 5px 10px rgba(192, 192, 192, 1.000); +} +code { + font-size: 1em; + font-family: source-code-pro, Monaco, Consolas, Menlo, "Lucida Console", monospace; + border: none; +} + +table { + border-collapse: collapse; + border: 1px #CCC solid; + padding: 0; +} + + +th { + background-color: #F4F3EC; + border: 1px #CCC solid; + margin: 0; + padding: .5em; +} + +td { + border: 1px #DDD solid; + margin: 0; + padding: .5em; +} + +.side-nav { + float: right; + width: 15%; + padding-left: 3em; + margin-left: 2em; + margin-right: 1em; + border: none; +} +.side-nav div { + border: none; +} + +.side-nav h2, .side-nav h3 { + margin-left: 0; +} +#main { + width: 70%; +} + +div.section { + border: none; +} +.description { + border: none; +} + +.deprecated { + color: #990001; +} + +.legacydocsnote { + background-color: #ffdddd; + border: 2px solid #ff0000; + text-align: center; + margin: 1em auto; + padding: 1em; + width: 80%; +} + +.legacydocsnote::before { + content: "⚠️"; + font-size: 200%; + vertical-align: middle; +}
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/css/main.css b/javascript/videojs/docs/legacy-docs/css/main.css new file mode 100644 index 0000000..5744b9d --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/css/main.css @@ -0,0 +1,8 @@ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block;}audio,canvas,progress,video{display:inline-block;vertical-align:baseline;}audio:not([controls]){display:none;height:0;}[hidden],template{display:none;}a{background-color:transparent;}a:active,a:hover{outline:0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}h1{font-size:2em;margin:0.67em 0;}mark{background:#ff0;color:#000;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:1em 40px;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}pre{overflow:auto;}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em;}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;}button{overflow:visible;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}input{line-height:normal;}input[type="checkbox"],input[type="radio"]{-moz-box-sizing:border-box;box-sizing:border-box;padding:0;}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}textarea{overflow:auto;}optgroup{font-weight:bold;}table{border-collapse:collapse;border-spacing:0;}td,th{padding:0;}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,*:before,*:after{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important;}a,a:visited{text-decoration:underline;}a[href]:after{content:" (" attr(href) ")";}abbr[title]:after{content:" (" attr(title) ")";}a[href^="#"]:after,a[href^="javascript:"]:after{content:"";}pre,blockquote{border:1px solid #999;page-break-inside:avoid;}thead{display:table-header-group;}tr,img{page-break-inside:avoid;}img{max-width:100% !important;}p,h2,h3{orphans:3;widows:3;}h2,h3{page-break-after:avoid;}.navbar,header nav{display:none;}.btn>.caret,.btn>.button,.dropup>.btn>.caret,.dropup>.btn>.button{border-top-color:#000 !important;}.label{border:1px solid #000;}.table{border-collapse:collapse !important;}.table td,.table th{background-color:#fff !important;}.table-bordered th,.table-bordered td{border:1px solid #ddd !important;}}@at-root{@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/bootstrap/glyphicons-halflings-regular.eot');src:url('../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/bootstrap/glyphicons-halflings-regular.woff2') format('woff2'),url('../fonts/bootstrap/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/bootstrap/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');}}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.glyphicon-asterisk:before{content:"\2a";}.glyphicon-plus:before{content:"\2b";}.glyphicon-euro:before,.glyphicon-eur:before{content:"\20ac";}.glyphicon-minus:before{content:"\2212";}.glyphicon-cloud:before{content:"\2601";}.glyphicon-envelope:before{content:"\2709";}.glyphicon-pencil:before{content:"\270f";}.glyphicon-glass:before{content:"\e001";}.glyphicon-music:before{content:"\e002";}.glyphicon-search:before{content:"\e003";}.glyphicon-heart:before{content:"\e005";}.glyphicon-star:before{content:"\e006";}.glyphicon-star-empty:before{content:"\e007";}.glyphicon-user:before{content:"\e008";}.glyphicon-film:before{content:"\e009";}.glyphicon-th-large:before{content:"\e010";}.glyphicon-th:before{content:"\e011";}.glyphicon-th-list:before{content:"\e012";}.glyphicon-ok:before{content:"\e013";}.glyphicon-remove:before{content:"\e014";}.glyphicon-zoom-in:before{content:"\e015";}.glyphicon-zoom-out:before{content:"\e016";}.glyphicon-off:before{content:"\e017";}.glyphicon-signal:before{content:"\e018";}.glyphicon-cog:before{content:"\e019";}.glyphicon-trash:before{content:"\e020";}.glyphicon-home:before{content:"\e021";}.glyphicon-file:before{content:"\e022";}.glyphicon-time:before{content:"\e023";}.glyphicon-road:before{content:"\e024";}.glyphicon-download-alt:before{content:"\e025";}.glyphicon-download:before{content:"\e026";}.glyphicon-upload:before{content:"\e027";}.glyphicon-inbox:before{content:"\e028";}.glyphicon-play-circle:before{content:"\e029";}.glyphicon-repeat:before{content:"\e030";}.glyphicon-refresh:before{content:"\e031";}.glyphicon-list-alt:before{content:"\e032";}.glyphicon-lock:before{content:"\e033";}.glyphicon-flag:before{content:"\e034";}.glyphicon-headphones:before{content:"\e035";}.glyphicon-volume-off:before{content:"\e036";}.glyphicon-volume-down:before{content:"\e037";}.glyphicon-volume-up:before{content:"\e038";}.glyphicon-qrcode:before{content:"\e039";}.glyphicon-barcode:before{content:"\e040";}.glyphicon-tag:before{content:"\e041";}.glyphicon-tags:before{content:"\e042";}.glyphicon-book:before{content:"\e043";}.glyphicon-bookmark:before{content:"\e044";}.glyphicon-print:before{content:"\e045";}.glyphicon-camera:before{content:"\e046";}.glyphicon-font:before{content:"\e047";}.glyphicon-bold:before{content:"\e048";}.glyphicon-italic:before{content:"\e049";}.glyphicon-text-height:before{content:"\e050";}.glyphicon-text-width:before{content:"\e051";}.glyphicon-align-left:before{content:"\e052";}.glyphicon-align-center:before{content:"\e053";}.glyphicon-align-right:before{content:"\e054";}.glyphicon-align-justify:before{content:"\e055";}.glyphicon-list:before{content:"\e056";}.glyphicon-indent-left:before{content:"\e057";}.glyphicon-indent-right:before{content:"\e058";}.glyphicon-facetime-video:before{content:"\e059";}.glyphicon-picture:before{content:"\e060";}.glyphicon-map-marker:before{content:"\e062";}.glyphicon-adjust:before{content:"\e063";}.glyphicon-tint:before{content:"\e064";}.glyphicon-edit:before{content:"\e065";}.glyphicon-share:before{content:"\e066";}.glyphicon-check:before{content:"\e067";}.glyphicon-move:before{content:"\e068";}.glyphicon-step-backward:before{content:"\e069";}.glyphicon-fast-backward:before{content:"\e070";}.glyphicon-backward:before{content:"\e071";}.glyphicon-play:before{content:"\e072";}.glyphicon-pause:before{content:"\e073";}.glyphicon-stop:before{content:"\e074";}.glyphicon-forward:before{content:"\e075";}.glyphicon-fast-forward:before{content:"\e076";}.glyphicon-step-forward:before{content:"\e077";}.glyphicon-eject:before{content:"\e078";}.glyphicon-chevron-left:before{content:"\e079";}.glyphicon-chevron-right:before{content:"\e080";}.glyphicon-plus-sign:before{content:"\e081";}.glyphicon-minus-sign:before{content:"\e082";}.glyphicon-remove-sign:before{content:"\e083";}.glyphicon-ok-sign:before{content:"\e084";}.glyphicon-question-sign:before{content:"\e085";}.glyphicon-info-sign:before{content:"\e086";}.glyphicon-screenshot:before{content:"\e087";}.glyphicon-remove-circle:before{content:"\e088";}.glyphicon-ok-circle:before{content:"\e089";}.glyphicon-ban-circle:before{content:"\e090";}.glyphicon-arrow-left:before{content:"\e091";}.glyphicon-arrow-right:before{content:"\e092";}.glyphicon-arrow-up:before{content:"\e093";}.glyphicon-arrow-down:before{content:"\e094";}.glyphicon-share-alt:before{content:"\e095";}.glyphicon-resize-full:before{content:"\e096";}.glyphicon-resize-small:before{content:"\e097";}.glyphicon-exclamation-sign:before{content:"\e101";}.glyphicon-gift:before{content:"\e102";}.glyphicon-leaf:before{content:"\e103";}.glyphicon-fire:before{content:"\e104";}.glyphicon-eye-open:before{content:"\e105";}.glyphicon-eye-close:before{content:"\e106";}.glyphicon-warning-sign:before{content:"\e107";}.glyphicon-plane:before{content:"\e108";}.glyphicon-calendar:before{content:"\e109";}.glyphicon-random:before{content:"\e110";}.glyphicon-comment:before{content:"\e111";}.glyphicon-magnet:before{content:"\e112";}.glyphicon-chevron-up:before{content:"\e113";}.glyphicon-chevron-down:before{content:"\e114";}.glyphicon-retweet:before{content:"\e115";}.glyphicon-shopping-cart:before{content:"\e116";}.glyphicon-folder-close:before{content:"\e117";}.glyphicon-folder-open:before{content:"\e118";}.glyphicon-resize-vertical:before{content:"\e119";}.glyphicon-resize-horizontal:before{content:"\e120";}.glyphicon-hdd:before{content:"\e121";}.glyphicon-bullhorn:before{content:"\e122";}.glyphicon-bell:before{content:"\e123";}.glyphicon-certificate:before{content:"\e124";}.glyphicon-thumbs-up:before{content:"\e125";}.glyphicon-thumbs-down:before{content:"\e126";}.glyphicon-hand-right:before{content:"\e127";}.glyphicon-hand-left:before{content:"\e128";}.glyphicon-hand-up:before{content:"\e129";}.glyphicon-hand-down:before{content:"\e130";}.glyphicon-circle-arrow-right:before{content:"\e131";}.glyphicon-circle-arrow-left:before{content:"\e132";}.glyphicon-circle-arrow-up:before{content:"\e133";}.glyphicon-circle-arrow-down:before{content:"\e134";}.glyphicon-globe:before{content:"\e135";}.glyphicon-wrench:before{content:"\e136";}.glyphicon-tasks:before{content:"\e137";}.glyphicon-filter:before{content:"\e138";}.glyphicon-briefcase:before{content:"\e139";}.glyphicon-fullscreen:before{content:"\e140";}.glyphicon-dashboard:before{content:"\e141";}.glyphicon-paperclip:before{content:"\e142";}.glyphicon-heart-empty:before{content:"\e143";}.glyphicon-link:before{content:"\e144";}.glyphicon-phone:before{content:"\e145";}.glyphicon-pushpin:before{content:"\e146";}.glyphicon-usd:before{content:"\e148";}.glyphicon-gbp:before{content:"\e149";}.glyphicon-sort:before{content:"\e150";}.glyphicon-sort-by-alphabet:before{content:"\e151";}.glyphicon-sort-by-alphabet-alt:before{content:"\e152";}.glyphicon-sort-by-order:before{content:"\e153";}.glyphicon-sort-by-order-alt:before{content:"\e154";}.glyphicon-sort-by-attributes:before{content:"\e155";}.glyphicon-sort-by-attributes-alt:before{content:"\e156";}.glyphicon-unchecked:before{content:"\e157";}.glyphicon-expand:before{content:"\e158";}.glyphicon-collapse-down:before{content:"\e159";}.glyphicon-collapse-up:before{content:"\e160";}.glyphicon-log-in:before{content:"\e161";}.glyphicon-flash:before{content:"\e162";}.glyphicon-log-out:before{content:"\e163";}.glyphicon-new-window:before{content:"\e164";}.glyphicon-record:before{content:"\e165";}.glyphicon-save:before{content:"\e166";}.glyphicon-open:before{content:"\e167";}.glyphicon-saved:before{content:"\e168";}.glyphicon-import:before{content:"\e169";}.glyphicon-export:before{content:"\e170";}.glyphicon-send:before{content:"\e171";}.glyphicon-floppy-disk:before{content:"\e172";}.glyphicon-floppy-saved:before{content:"\e173";}.glyphicon-floppy-remove:before{content:"\e174";}.glyphicon-floppy-save:before{content:"\e175";}.glyphicon-floppy-open:before{content:"\e176";}.glyphicon-credit-card:before{content:"\e177";}.glyphicon-transfer:before{content:"\e178";}.glyphicon-cutlery:before{content:"\e179";}.glyphicon-header:before{content:"\e180";}.glyphicon-compressed:before{content:"\e181";}.glyphicon-earphone:before{content:"\e182";}.glyphicon-phone-alt:before{content:"\e183";}.glyphicon-tower:before{content:"\e184";}.glyphicon-stats:before{content:"\e185";}.glyphicon-sd-video:before{content:"\e186";}.glyphicon-hd-video:before{content:"\e187";}.glyphicon-subtitles:before{content:"\e188";}.glyphicon-sound-stereo:before{content:"\e189";}.glyphicon-sound-dolby:before{content:"\e190";}.glyphicon-sound-5-1:before{content:"\e191";}.glyphicon-sound-6-1:before{content:"\e192";}.glyphicon-sound-7-1:before{content:"\e193";}.glyphicon-copyright-mark:before{content:"\e194";}.glyphicon-registration-mark:before{content:"\e195";}.glyphicon-cloud-download:before{content:"\e197";}.glyphicon-cloud-upload:before{content:"\e198";}.glyphicon-tree-conifer:before{content:"\e199";}.glyphicon-tree-deciduous:before{content:"\e200";}.glyphicon-cd:before{content:"\e201";}.glyphicon-save-file:before{content:"\e202";}.glyphicon-open-file:before{content:"\e203";}.glyphicon-level-up:before{content:"\e204";}.glyphicon-copy:before{content:"\e205";}.glyphicon-paste:before{content:"\e206";}.glyphicon-alert:before{content:"\e209";}.glyphicon-equalizer:before{content:"\e210";}.glyphicon-king:before{content:"\e211";}.glyphicon-queen:before{content:"\e212";}.glyphicon-pawn:before{content:"\e213";}.glyphicon-bishop:before{content:"\e214";}.glyphicon-knight:before{content:"\e215";}.glyphicon-baby-formula:before{content:"\e216";}.glyphicon-tent:before{content:"\26fa";}.glyphicon-blackboard:before{content:"\e218";}.glyphicon-bed:before{content:"\e219";}.glyphicon-apple:before{content:"\f8ff";}.glyphicon-erase:before{content:"\e221";}.glyphicon-hourglass:before{content:"\231b";}.glyphicon-lamp:before{content:"\e223";}.glyphicon-duplicate:before{content:"\e224";}.glyphicon-piggy-bank:before{content:"\e225";}.glyphicon-scissors:before{content:"\e226";}.glyphicon-bitcoin:before{content:"\e227";}.glyphicon-btc:before{content:"\e227";}.glyphicon-xbt:before{content:"\e227";}.glyphicon-yen:before{content:"\00a5";}.glyphicon-jpy:before{content:"\00a5";}.glyphicon-ruble:before{content:"\20bd";}.glyphicon-rub:before{content:"\20bd";}.glyphicon-scale:before{content:"\e230";}.glyphicon-ice-lolly:before{content:"\e231";}.glyphicon-ice-lolly-tasted:before{content:"\e232";}.glyphicon-education:before{content:"\e233";}.glyphicon-option-horizontal:before{content:"\e234";}.glyphicon-option-vertical:before{content:"\e235";}.glyphicon-menu-hamburger:before{content:"\e236";}.glyphicon-modal-window:before{content:"\e237";}.glyphicon-oil:before{content:"\e238";}.glyphicon-grain:before{content:"\e239";}.glyphicon-sunglasses:before{content:"\e240";}.glyphicon-text-size:before{content:"\e241";}.glyphicon-text-color:before{content:"\e242";}.glyphicon-text-background:before{content:"\e243";}.glyphicon-object-align-top:before{content:"\e244";}.glyphicon-object-align-bottom:before{content:"\e245";}.glyphicon-object-align-horizontal:before{content:"\e246";}.glyphicon-object-align-left:before{content:"\e247";}.glyphicon-object-align-vertical:before{content:"\e248";}.glyphicon-object-align-right:before{content:"\e249";}.glyphicon-triangle-right:before{content:"\e250";}.glyphicon-triangle-left:before{content:"\e251";}.glyphicon-triangle-bottom:before{content:"\e252";}.glyphicon-triangle-top:before{content:"\e253";}.glyphicon-console:before{content:"\e254";}.glyphicon-superscript:before{content:"\e255";}.glyphicon-subscript:before{content:"\e256";}.glyphicon-menu-left:before{content:"\e257";}.glyphicon-menu-right:before{content:"\e258";}.glyphicon-menu-down:before{content:"\e259";}.glyphicon-menu-up:before{content:"\e260";}*{-moz-box-sizing:border-box;box-sizing:border-box;}*:before,*:after{-moz-box-sizing:border-box;box-sizing:border-box;}html{font-size:10px;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857;color:#333333;background-color:#fff;}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;}a{color:#66A8CC;text-decoration:none;}a:hover,a:focus{color:#3984ac;text-decoration:underline;}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}figure{margin:0;}img{vertical-align:middle;}.img-responsive{display:block;max-width:100%;height:auto;}.img-rounded{border-radius:6px;}.img-thumbnail{padding:4px;line-height:1.42857;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;display:inline-block;max-width:100%;height:auto;}.img-circle{border-radius:50%;}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eeeeee;}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;}[role="button"]{cursor:pointer;}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;}h1 small,h1 .small,h2 small,h2 .small,h3 small,h3 .small,h4 small,h4 .small,h5 small,h5 .small,h6 small,h6 .small,.h1 small,.h1 .small,.h2 small,.h2 .small,.h3 small,.h3 .small,.h4 small,.h4 .small,.h5 small,.h5 .small,.h6 small,.h6 .small{font-weight:normal;line-height:1;color:#777777;}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px;}h1 small,h1 .small,.h1 small,.h1 .small,h2 small,h2 .small,.h2 small,.h2 .small,h3 small,h3 .small,.h3 small,.h3 .small{font-size:65%;}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px;}h4 small,h4 .small,.h4 small,.h4 .small,h5 small,h5 .small,.h5 small,.h5 .small,h6 small,h6 .small,.h6 small,.h6 .small{font-size:75%;}h1,.h1{font-size:36px;}h2,.h2{font-size:30px;}h3,.h3{font-size:24px;}h4,.h4{font-size:18px;}h5,.h5{font-size:14px;}h6,.h6{font-size:12px;}p{margin:0 0 10px;}.lead,.plugin-readme p:nth-child(2){margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4;}@media (min-width: 768px){.lead{font-size:21px;}}small,.small{font-size:85%;}mark,.mark{background-color:#fcf8e3;padding:0.2em;}.text-left{text-align:left;}.text-right{text-align:right;}.text-center{text-align:center;}.text-justify{text-align:justify;}.text-nowrap{white-space:nowrap;}.text-lowercase{text-transform:lowercase;}.text-uppercase,.initialism{text-transform:uppercase;}.text-capitalize{text-transform:capitalize;}.text-muted{color:#777777;}.text-primary{color:#66A8CC;}a.text-primary:hover,a.text-primary:focus{color:#4093bf;}.text-success{color:#3c763d;}a.text-success:hover,a.text-success:focus{color:#2b542b;}.text-info{color:#31708f;}a.text-info:hover,a.text-info:focus{color:#245369;}.text-warning{color:#8a6d3b;}a.text-warning:hover,a.text-warning:focus{color:#66502c;}.text-danger{color:#a94442;}a.text-danger:hover,a.text-danger:focus{color:#843534;}.bg-primary{color:#fff;}.bg-primary{background-color:#66A8CC;}a.bg-primary:hover,a.bg-primary:focus{background-color:#4093bf;}.bg-success{background-color:#dff0d8;}a.bg-success:hover,a.bg-success:focus{background-color:#c1e2b3;}.bg-info{background-color:#d9edf7;}a.bg-info:hover,a.bg-info:focus{background-color:#afdaee;}.bg-warning{background-color:#fcf8e3;}a.bg-warning:hover,a.bg-warning:focus{background-color:#f7ecb5;}.bg-danger{background-color:#f2dede;}a.bg-danger:hover,a.bg-danger:focus{background-color:#e4b9b9;}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eeeeee;}ul,ol{margin-top:0;margin-bottom:10px;}ul ul,ul ol,ol ul,ol ol{margin-bottom:0;}.list-unstyled{padding-left:0;list-style:none;}.list-inline{padding-left:0;list-style:none;margin-left:-5px;}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px;}dl{margin-top:0;margin-bottom:20px;}dt,dd{line-height:1.42857;}dt{font-weight:bold;}dd{margin-left:0;}.dl-horizontal dd:before,.dl-horizontal dd:after{content:" ";display:table;}.dl-horizontal dd:after{clear:both;}@media (min-width: 768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.dl-horizontal dd{margin-left:180px;}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777777;}.initialism{font-size:90%;}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eeeeee;}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0;}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857;color:#777777;}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0';}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eeeeee;border-left:0;text-align:right;}.blockquote-reverse footer:before,.blockquote-reverse small:before,.blockquote-reverse .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before,blockquote.pull-right .small:before{content:'';}.blockquote-reverse footer:after,.blockquote-reverse small:after,.blockquote-reverse .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after,blockquote.pull-right .small:after{content:'\00A0 \2014';}address{margin-bottom:20px;font-style:normal;line-height:1.42857;}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px;}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.25);}kbd kbd{padding:0;font-size:100%;font-weight:bold;box-shadow:none;}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:#333333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px;}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0;}.pre-scrollable{max-height:340px;overflow-y:scroll;}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px;}.container:before,.container:after{content:" ";display:table;}.container:after{clear:both;}@media (min-width: 768px){.container{width:750px;}}@media (min-width: 992px){.container{width:970px;}}@media (min-width: 1200px){.container{width:1170px;}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px;}.container-fluid:before,.container-fluid:after{content:" ";display:table;}.container-fluid:after{clear:both;}.row{margin-left:-15px;margin-right:-15px;}.row:before,.row:after{content:" ";display:table;}.row:after{clear:both;}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px;}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left;}.col-xs-1{width:8.33333%;}.col-xs-2{width:16.66667%;}.col-xs-3{width:25%;}.col-xs-4{width:33.33333%;}.col-xs-5{width:41.66667%;}.col-xs-6{width:50%;}.col-xs-7{width:58.33333%;}.col-xs-8{width:66.66667%;}.col-xs-9{width:75%;}.col-xs-10{width:83.33333%;}.col-xs-11{width:91.66667%;}.col-xs-12{width:100%;}.col-xs-pull-0{right:auto;}.col-xs-pull-1{right:8.33333%;}.col-xs-pull-2{right:16.66667%;}.col-xs-pull-3{right:25%;}.col-xs-pull-4{right:33.33333%;}.col-xs-pull-5{right:41.66667%;}.col-xs-pull-6{right:50%;}.col-xs-pull-7{right:58.33333%;}.col-xs-pull-8{right:66.66667%;}.col-xs-pull-9{right:75%;}.col-xs-pull-10{right:83.33333%;}.col-xs-pull-11{right:91.66667%;}.col-xs-pull-12{right:100%;}.col-xs-push-0{left:auto;}.col-xs-push-1{left:8.33333%;}.col-xs-push-2{left:16.66667%;}.col-xs-push-3{left:25%;}.col-xs-push-4{left:33.33333%;}.col-xs-push-5{left:41.66667%;}.col-xs-push-6{left:50%;}.col-xs-push-7{left:58.33333%;}.col-xs-push-8{left:66.66667%;}.col-xs-push-9{left:75%;}.col-xs-push-10{left:83.33333%;}.col-xs-push-11{left:91.66667%;}.col-xs-push-12{left:100%;}.col-xs-offset-0{margin-left:0%;}.col-xs-offset-1{margin-left:8.33333%;}.col-xs-offset-2{margin-left:16.66667%;}.col-xs-offset-3{margin-left:25%;}.col-xs-offset-4{margin-left:33.33333%;}.col-xs-offset-5{margin-left:41.66667%;}.col-xs-offset-6{margin-left:50%;}.col-xs-offset-7{margin-left:58.33333%;}.col-xs-offset-8{margin-left:66.66667%;}.col-xs-offset-9{margin-left:75%;}.col-xs-offset-10{margin-left:83.33333%;}.col-xs-offset-11{margin-left:91.66667%;}.col-xs-offset-12{margin-left:100%;}@media (min-width: 768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left;}.col-sm-1{width:8.33333%;}.col-sm-2{width:16.66667%;}.col-sm-3{width:25%;}.col-sm-4{width:33.33333%;}.col-sm-5{width:41.66667%;}.col-sm-6{width:50%;}.col-sm-7{width:58.33333%;}.col-sm-8{width:66.66667%;}.col-sm-9{width:75%;}.col-sm-10{width:83.33333%;}.col-sm-11{width:91.66667%;}.col-sm-12{width:100%;}.col-sm-pull-0{right:auto;}.col-sm-pull-1{right:8.33333%;}.col-sm-pull-2{right:16.66667%;}.col-sm-pull-3{right:25%;}.col-sm-pull-4{right:33.33333%;}.col-sm-pull-5{right:41.66667%;}.col-sm-pull-6{right:50%;}.col-sm-pull-7{right:58.33333%;}.col-sm-pull-8{right:66.66667%;}.col-sm-pull-9{right:75%;}.col-sm-pull-10{right:83.33333%;}.col-sm-pull-11{right:91.66667%;}.col-sm-pull-12{right:100%;}.col-sm-push-0{left:auto;}.col-sm-push-1{left:8.33333%;}.col-sm-push-2{left:16.66667%;}.col-sm-push-3{left:25%;}.col-sm-push-4{left:33.33333%;}.col-sm-push-5{left:41.66667%;}.col-sm-push-6{left:50%;}.col-sm-push-7{left:58.33333%;}.col-sm-push-8{left:66.66667%;}.col-sm-push-9{left:75%;}.col-sm-push-10{left:83.33333%;}.col-sm-push-11{left:91.66667%;}.col-sm-push-12{left:100%;}.col-sm-offset-0{margin-left:0%;}.col-sm-offset-1{margin-left:8.33333%;}.col-sm-offset-2{margin-left:16.66667%;}.col-sm-offset-3{margin-left:25%;}.col-sm-offset-4{margin-left:33.33333%;}.col-sm-offset-5{margin-left:41.66667%;}.col-sm-offset-6{margin-left:50%;}.col-sm-offset-7{margin-left:58.33333%;}.col-sm-offset-8{margin-left:66.66667%;}.col-sm-offset-9{margin-left:75%;}.col-sm-offset-10{margin-left:83.33333%;}.col-sm-offset-11{margin-left:91.66667%;}.col-sm-offset-12{margin-left:100%;}}@media (min-width: 992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left;}.col-md-1{width:8.33333%;}.col-md-2{width:16.66667%;}.col-md-3{width:25%;}.col-md-4{width:33.33333%;}.col-md-5{width:41.66667%;}.col-md-6{width:50%;}.col-md-7{width:58.33333%;}.col-md-8{width:66.66667%;}.col-md-9{width:75%;}.col-md-10{width:83.33333%;}.col-md-11{width:91.66667%;}.col-md-12{width:100%;}.col-md-pull-0{right:auto;}.col-md-pull-1{right:8.33333%;}.col-md-pull-2{right:16.66667%;}.col-md-pull-3{right:25%;}.col-md-pull-4{right:33.33333%;}.col-md-pull-5{right:41.66667%;}.col-md-pull-6{right:50%;}.col-md-pull-7{right:58.33333%;}.col-md-pull-8{right:66.66667%;}.col-md-pull-9{right:75%;}.col-md-pull-10{right:83.33333%;}.col-md-pull-11{right:91.66667%;}.col-md-pull-12{right:100%;}.col-md-push-0{left:auto;}.col-md-push-1{left:8.33333%;}.col-md-push-2{left:16.66667%;}.col-md-push-3{left:25%;}.col-md-push-4{left:33.33333%;}.col-md-push-5{left:41.66667%;}.col-md-push-6{left:50%;}.col-md-push-7{left:58.33333%;}.col-md-push-8{left:66.66667%;}.col-md-push-9{left:75%;}.col-md-push-10{left:83.33333%;}.col-md-push-11{left:91.66667%;}.col-md-push-12{left:100%;}.col-md-offset-0{margin-left:0%;}.col-md-offset-1{margin-left:8.33333%;}.col-md-offset-2{margin-left:16.66667%;}.col-md-offset-3{margin-left:25%;}.col-md-offset-4{margin-left:33.33333%;}.col-md-offset-5{margin-left:41.66667%;}.col-md-offset-6{margin-left:50%;}.col-md-offset-7{margin-left:58.33333%;}.col-md-offset-8{margin-left:66.66667%;}.col-md-offset-9{margin-left:75%;}.col-md-offset-10{margin-left:83.33333%;}.col-md-offset-11{margin-left:91.66667%;}.col-md-offset-12{margin-left:100%;}}@media (min-width: 1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left;}.col-lg-1{width:8.33333%;}.col-lg-2{width:16.66667%;}.col-lg-3{width:25%;}.col-lg-4{width:33.33333%;}.col-lg-5{width:41.66667%;}.col-lg-6{width:50%;}.col-lg-7{width:58.33333%;}.col-lg-8{width:66.66667%;}.col-lg-9{width:75%;}.col-lg-10{width:83.33333%;}.col-lg-11{width:91.66667%;}.col-lg-12{width:100%;}.col-lg-pull-0{right:auto;}.col-lg-pull-1{right:8.33333%;}.col-lg-pull-2{right:16.66667%;}.col-lg-pull-3{right:25%;}.col-lg-pull-4{right:33.33333%;}.col-lg-pull-5{right:41.66667%;}.col-lg-pull-6{right:50%;}.col-lg-pull-7{right:58.33333%;}.col-lg-pull-8{right:66.66667%;}.col-lg-pull-9{right:75%;}.col-lg-pull-10{right:83.33333%;}.col-lg-pull-11{right:91.66667%;}.col-lg-pull-12{right:100%;}.col-lg-push-0{left:auto;}.col-lg-push-1{left:8.33333%;}.col-lg-push-2{left:16.66667%;}.col-lg-push-3{left:25%;}.col-lg-push-4{left:33.33333%;}.col-lg-push-5{left:41.66667%;}.col-lg-push-6{left:50%;}.col-lg-push-7{left:58.33333%;}.col-lg-push-8{left:66.66667%;}.col-lg-push-9{left:75%;}.col-lg-push-10{left:83.33333%;}.col-lg-push-11{left:91.66667%;}.col-lg-push-12{left:100%;}.col-lg-offset-0{margin-left:0%;}.col-lg-offset-1{margin-left:8.33333%;}.col-lg-offset-2{margin-left:16.66667%;}.col-lg-offset-3{margin-left:25%;}.col-lg-offset-4{margin-left:33.33333%;}.col-lg-offset-5{margin-left:41.66667%;}.col-lg-offset-6{margin-left:50%;}.col-lg-offset-7{margin-left:58.33333%;}.col-lg-offset-8{margin-left:66.66667%;}.col-lg-offset-9{margin-left:75%;}.col-lg-offset-10{margin-left:83.33333%;}.col-lg-offset-11{margin-left:91.66667%;}.col-lg-offset-12{margin-left:100%;}}table{background-color:transparent;}caption{padding-top:8px;padding-bottom:8px;color:#777777;text-align:left;}th{text-align:left;}.table{width:100%;max-width:100%;margin-bottom:20px;}.table>thead>tr>th,.table>thead>tr>td,.table>tbody>tr>th,.table>tbody>tr>td,.table>tfoot>tr>th,.table>tfoot>tr>td{padding:8px;line-height:1.42857;vertical-align:top;border-top:1px solid #ddd;}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd;}.table>caption+thead>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>th,.table>thead:first-child>tr:first-child>td{border-top:0;}.table>tbody+tbody{border-top:2px solid #ddd;}.table .table{background-color:#fff;}.table-condensed>thead>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>tfoot>tr>td{padding:5px;}.table-bordered{border:1px solid #ddd;}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>tfoot>tr>td{border:1px solid #ddd;}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px;}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9;}.table-hover>tbody>tr:hover{background-color:#f5f5f5;}table col[class*="col-"]{position:static;float:none;display:table-column;}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell;}.table>thead>tr>td.active,.table>thead>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th{background-color:#f5f5f5;}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8;}.table>thead>tr>td.success,.table>thead>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th{background-color:#dff0d8;}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6;}.table>thead>tr>td.info,.table>thead>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th{background-color:#d9edf7;}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e4f3;}.table>thead>tr>td.warning,.table>thead>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th{background-color:#fcf8e3;}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc;}.table>thead>tr>td.danger,.table>thead>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th{background-color:#f2dede;}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc;}.table-responsive{overflow-x:auto;min-height:0.01%;}@media screen and (max-width: 767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;}.table-responsive>.table{margin-bottom:0;}.table-responsive>.table>thead>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>tfoot>tr>td{white-space:nowrap;}.table-responsive>.table-bordered{border:0;}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0;}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0;}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0;}}fieldset{padding:0;margin:0;border:0;min-width:0;}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333333;border:0;border-bottom:1px solid #e5e5e5;}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold;}input[type="search"]{-moz-box-sizing:border-box;box-sizing:border-box;}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal;}input[type="file"]{display:block;}input[type="range"]{display:block;width:100%;}select[multiple],select[size]{height:auto;}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857;color:#555555;}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857;color:#555555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;}.form-control:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(102, 175, 233, 0.6);}.form-control::-moz-placeholder{color:#999;opacity:1;}.form-control:-ms-input-placeholder{color:#999;}.form-control::-webkit-input-placeholder{color:#999;}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eeeeee;opacity:1;}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed;}textarea.form-control{height:auto;}input[type="search"]{-webkit-appearance:none;}@media screen and (-webkit-min-device-pixel-ratio: 0){input[type="date"].form-control,input[type="time"].form-control,input[type="datetime-local"].form-control,input[type="month"].form-control{line-height:34px;}input[type="date"].input-sm,.input-group-sm>input[type="date"].form-control,.input-group-sm>input[type="date"].input-group-addon,.input-group-sm>.input-group-btn>input[type="date"].btn,input[type="date"].button,.input-group-sm input[type="date"],input[type="time"].input-sm,.input-group-sm>input[type="time"].form-control,.input-group-sm>input[type="time"].input-group-addon,.input-group-sm>.input-group-btn>input[type="time"].btn,input[type="time"].button,.input-group-sm input[type="time"],input[type="datetime-local"].input-sm,.input-group-sm>input[type="datetime-local"].form-control,.input-group-sm>input[type="datetime-local"].input-group-addon,.input-group-sm>.input-group-btn>input[type="datetime-local"].btn,input[type="datetime-local"].button,.input-group-sm input[type="datetime-local"],input[type="month"].input-sm,.input-group-sm>input[type="month"].form-control,.input-group-sm>input[type="month"].input-group-addon,.input-group-sm>.input-group-btn>input[type="month"].btn,input[type="month"].button,.input-group-sm input[type="month"]{line-height:30px;}input[type="date"].input-lg,.input-group-lg>input[type="date"].form-control,.input-group-lg>input[type="date"].input-group-addon,.input-group-lg>.input-group-btn>input[type="date"].btn,input[type="date"].button,.input-group-lg input[type="date"],input[type="time"].input-lg,.input-group-lg>input[type="time"].form-control,.input-group-lg>input[type="time"].input-group-addon,.input-group-lg>.input-group-btn>input[type="time"].btn,input[type="time"].button,.input-group-lg input[type="time"],input[type="datetime-local"].input-lg,.input-group-lg>input[type="datetime-local"].form-control,.input-group-lg>input[type="datetime-local"].input-group-addon,.input-group-lg>.input-group-btn>input[type="datetime-local"].btn,input[type="datetime-local"].button,.input-group-lg input[type="datetime-local"],input[type="month"].input-lg,.input-group-lg>input[type="month"].form-control,.input-group-lg>input[type="month"].input-group-addon,.input-group-lg>.input-group-btn>input[type="month"].btn,input[type="month"].button,.input-group-lg input[type="month"]{line-height:46px;}}.form-group{margin-bottom:15px;}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px;}.radio label,.checkbox label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer;}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-left:-20px;margin-top:4px \9;}.radio+.radio,.checkbox+.checkbox{margin-top:-5px;}.radio-inline,.checkbox-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer;}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px;}input[type="radio"][disabled],input[type="radio"].disabled,fieldset[disabled] input[type="radio"],input[type="checkbox"][disabled],input[type="checkbox"].disabled,fieldset[disabled] input[type="checkbox"]{cursor:not-allowed;}.radio-inline.disabled,fieldset[disabled] .radio-inline,.checkbox-inline.disabled,fieldset[disabled] .checkbox-inline{cursor:not-allowed;}.radio.disabled label,fieldset[disabled] .radio label,.checkbox.disabled label,fieldset[disabled] .checkbox label{cursor:not-allowed;}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px;}.form-control-static.input-lg,.input-group-lg>.form-control-static.form-control,.input-group-lg>.form-control-static.input-group-addon,.input-group-lg>.input-group-btn>.form-control-static.btn,.form-control-static.button,.form-control-static.input-sm,.input-group-sm>.form-control-static.form-control,.input-group-sm>.form-control-static.input-group-addon,.input-group-sm>.input-group-btn>.form-control-static.btn,.form-control-static.button{padding-left:0;padding-right:0;}.input-sm,.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn,.button{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;}select.input-sm,.input-group-sm>select.form-control,.input-group-sm>select.input-group-addon,.input-group-sm>.input-group-btn>select.btn,select.button{height:30px;line-height:30px;}textarea.input-sm,.input-group-sm>textarea.form-control,.input-group-sm>textarea.input-group-addon,.input-group-sm>.input-group-btn>textarea.btn,textarea.button,select[multiple].input-sm,.input-group-sm>select[multiple].form-control,.input-group-sm>select[multiple].input-group-addon,.input-group-sm>.input-group-btn>select[multiple].btn,select[multiple].button{height:auto;}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;}.form-group-sm select.form-control{height:30px;line-height:30px;}.form-group-sm textarea.form-control,.form-group-sm select[multiple].form-control{height:auto;}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5;}.input-lg,.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn,.button{height:46px;padding:10px 16px;font-size:18px;line-height:1.33333;border-radius:6px;}select.input-lg,.input-group-lg>select.form-control,.input-group-lg>select.input-group-addon,.input-group-lg>.input-group-btn>select.btn,select.button{height:46px;line-height:46px;}textarea.input-lg,.input-group-lg>textarea.form-control,.input-group-lg>textarea.input-group-addon,.input-group-lg>.input-group-btn>textarea.btn,textarea.button,select[multiple].input-lg,.input-group-lg>select[multiple].form-control,.input-group-lg>select[multiple].input-group-addon,.input-group-lg>.input-group-btn>select[multiple].btn,select[multiple].button{height:auto;}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.33333;border-radius:6px;}.form-group-lg select.form-control{height:46px;line-height:46px;}.form-group-lg textarea.form-control,.form-group-lg select[multiple].form-control{height:auto;}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.33333;}.has-feedback{position:relative;}.has-feedback .form-control{padding-right:42.5px;}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none;}.input-lg+.form-control-feedback,.input-lg+.input-group-lg>.form-control,.input-group-lg>.input-lg+.form-control,.input-lg+.input-group-lg>.input-group-addon,.input-group-lg>.input-lg+.input-group-addon,.input-lg+.input-group-lg>.input-group-btn>.btn,.input-group-lg>.input-group-btn>.input-lg+.btn,.input-lg+.button,.input-group-lg+.form-control-feedback,.form-group-lg .form-control+.form-control-feedback{width:46px;height:46px;line-height:46px;}.input-sm+.form-control-feedback,.input-sm+.input-group-sm>.form-control,.input-group-sm>.input-sm+.form-control,.input-sm+.input-group-sm>.input-group-addon,.input-group-sm>.input-sm+.input-group-addon,.input-sm+.input-group-sm>.input-group-btn>.btn,.input-group-sm>.input-group-btn>.input-sm+.btn,.input-sm+.button,.input-group-sm+.form-control-feedback,.form-group-sm .form-control+.form-control-feedback{width:30px;height:30px;line-height:30px;}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3c763d;}.has-success .form-control{border-color:#3c763d;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);}.has-success .form-control:focus{border-color:#2b542b;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #67b168;}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8;}.has-success .form-control-feedback{color:#3c763d;}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#8a6d3b;}.has-warning .form-control{border-color:#8a6d3b;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);}.has-warning .form-control:focus{border-color:#66502c;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #c09f6b;}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3;}.has-warning .form-control-feedback{color:#8a6d3b;}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#a94442;}.has-error .form-control{border-color:#a94442;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);}.has-error .form-control:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #ce8483;}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede;}.has-error .form-control-feedback{color:#a94442;}.has-feedback label ~ .form-control-feedback{top:25px;}.has-feedback label.sr-only ~ .form-control-feedback{top:0;}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373;}@media (min-width: 768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle;}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle;}.form-inline .form-control-static{display:inline-block;}.form-inline .input-group{display:inline-table;vertical-align:middle;}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto;}.form-inline .input-group>.form-control{width:100%;}.form-inline .control-label{margin-bottom:0;vertical-align:middle;}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle;}.form-inline .radio label,.form-inline .checkbox label{padding-left:0;}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0;}.form-inline .has-feedback .form-control-feedback{top:0;}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px;}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px;}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px;}.form-horizontal .form-group:before,.form-horizontal .form-group:after{content:" ";display:table;}.form-horizontal .form-group:after{clear:both;}@media (min-width: 768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px;}}.form-horizontal .has-feedback .form-control-feedback{right:15px;}@media (min-width: 768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33333px;font-size:18px;}}@media (min-width: 768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px;}}.btn,.button{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.btn:focus,.button:focus,.btn.focus,.focus.button,.btn:active:focus,.button:active:focus,.btn:active.focus,.button:active.focus,.btn.active:focus,.active.button:focus,.btn.active.focus,.active.focus.button{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}.btn:hover,.button:hover,.btn:focus,.button:focus,.btn.focus,.focus.button{color:#333;text-decoration:none;}.btn:active,.button:active,.btn.active,.active.button{outline:0;background-image:none;box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);}.btn.disabled,.disabled.button,.btn[disabled],[disabled].button,fieldset[disabled] .btn,fieldset[disabled] .button{cursor:not-allowed;opacity:0.65;filter:alpha(opacity=65);box-shadow:none;}a.btn.disabled,a.disabled.button,fieldset[disabled] a.btn,fieldset[disabled] a.button{pointer-events:none;}.btn-default{color:#333;background-color:#fff;border-color:#ccc;}.btn-default:focus,.btn-default.focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c;}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad;}.btn-default:active,.btn-default.active,.open>.btn-default.dropdown-toggle{color:#333;background-color:#e6e6e6;border-color:#adadad;}.btn-default:active:hover,.btn-default:active:focus,.btn-default:active.focus,.btn-default.active:hover,.btn-default.active:focus,.btn-default.active.focus,.open>.btn-default.dropdown-toggle:hover,.open>.btn-default.dropdown-toggle:focus,.open>.btn-default.dropdown-toggle.focus{color:#333;background-color:#d4d4d4;border-color:#8c8c8c;}.btn-default:active,.btn-default.active,.open>.btn-default.dropdown-toggle{background-image:none;}.btn-default.disabled,.btn-default.disabled:hover,.btn-default.disabled:focus,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled.active,.btn-default[disabled],.btn-default[disabled]:hover,.btn-default[disabled]:focus,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled].active,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default:hover,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc;}.btn-default .badge{color:#fff;background-color:#333;}.btn-primary{color:#fff;background-color:#66A8CC;border-color:#539dc6;}.btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#4093bf;border-color:#265873;}.btn-primary:hover{color:#fff;background-color:#4093bf;border-color:#377ea4;}.btn-primary:active,.btn-primary.active,.open>.btn-primary.dropdown-toggle{color:#fff;background-color:#4093bf;border-color:#377ea4;}.btn-primary:active:hover,.btn-primary:active:focus,.btn-primary:active.focus,.btn-primary.active:hover,.btn-primary.active:focus,.btn-primary.active.focus,.open>.btn-primary.dropdown-toggle:hover,.open>.btn-primary.dropdown-toggle:focus,.open>.btn-primary.dropdown-toggle.focus{color:#fff;background-color:#377ea4;border-color:#265873;}.btn-primary:active,.btn-primary.active,.open>.btn-primary.dropdown-toggle{background-image:none;}.btn-primary.disabled,.btn-primary.disabled:hover,.btn-primary.disabled:focus,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled.active,.btn-primary[disabled],.btn-primary[disabled]:hover,.btn-primary[disabled]:focus,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary:hover,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary.active{background-color:#66A8CC;border-color:#539dc6;}.btn-primary .badge{color:#66A8CC;background-color:#fff;}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4eae4c;}.btn-success:focus,.btn-success.focus{color:#fff;background-color:#469d44;border-color:#265625;}.btn-success:hover{color:#fff;background-color:#469d44;border-color:#3b8439;}.btn-success:active,.btn-success.active,.open>.btn-success.dropdown-toggle{color:#fff;background-color:#469d44;border-color:#3b8439;}.btn-success:active:hover,.btn-success:active:focus,.btn-success:active.focus,.btn-success.active:hover,.btn-success.active:focus,.btn-success.active.focus,.open>.btn-success.dropdown-toggle:hover,.open>.btn-success.dropdown-toggle:focus,.open>.btn-success.dropdown-toggle.focus{color:#fff;background-color:#3b8439;border-color:#265625;}.btn-success:active,.btn-success.active,.open>.btn-success.dropdown-toggle{background-image:none;}.btn-success.disabled,.btn-success.disabled:hover,.btn-success.disabled:focus,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled.active,.btn-success[disabled],.btn-success[disabled]:hover,.btn-success[disabled]:focus,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled].active,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success:hover,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4eae4c;}.btn-success .badge{color:#5cb85c;background-color:#fff;}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46bada;}.btn-info:focus,.btn-info.focus{color:#fff;background-color:#31b2d5;border-color:#1b6e85;}.btn-info:hover{color:#fff;background-color:#31b2d5;border-color:#269cbc;}.btn-info:active,.btn-info.active,.open>.btn-info.dropdown-toggle{color:#fff;background-color:#31b2d5;border-color:#269cbc;}.btn-info:active:hover,.btn-info:active:focus,.btn-info:active.focus,.btn-info.active:hover,.btn-info.active:focus,.btn-info.active.focus,.open>.btn-info.dropdown-toggle:hover,.open>.btn-info.dropdown-toggle:focus,.open>.btn-info.dropdown-toggle.focus{color:#fff;background-color:#269cbc;border-color:#1b6e85;}.btn-info:active,.btn-info.active,.open>.btn-info.dropdown-toggle{background-image:none;}.btn-info.disabled,.btn-info.disabled:hover,.btn-info.disabled:focus,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled.active,.btn-info[disabled],.btn-info[disabled]:hover,.btn-info[disabled]:focus,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled].active,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info:hover,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46bada;}.btn-info .badge{color:#5bc0de;background-color:#fff;}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236;}.btn-warning:focus,.btn-warning.focus{color:#fff;background-color:#ec971f;border-color:#985c0d;}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58112;}.btn-warning:active,.btn-warning.active,.open>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;border-color:#d58112;}.btn-warning:active:hover,.btn-warning:active:focus,.btn-warning:active.focus,.btn-warning.active:hover,.btn-warning.active:focus,.btn-warning.active.focus,.open>.btn-warning.dropdown-toggle:hover,.open>.btn-warning.dropdown-toggle:focus,.open>.btn-warning.dropdown-toggle.focus{color:#fff;background-color:#d58412;border-color:#985c0d;}.btn-warning:active,.btn-warning.active,.open>.btn-warning.dropdown-toggle{background-image:none;}.btn-warning.disabled,.btn-warning.disabled:hover,.btn-warning.disabled:focus,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled.active,.btn-warning[disabled],.btn-warning[disabled]:hover,.btn-warning[disabled]:focus,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning:hover,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236;}.btn-warning .badge{color:#f0ad4e;background-color:#fff;}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43d3a;}.btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#c92e2c;border-color:#761919;}.btn-danger:hover{color:#fff;background-color:#c92e2c;border-color:#ac2525;}.btn-danger:active,.btn-danger.active,.open>.btn-danger.dropdown-toggle{color:#fff;background-color:#c92e2c;border-color:#ac2525;}.btn-danger:active:hover,.btn-danger:active:focus,.btn-danger:active.focus,.btn-danger.active:hover,.btn-danger.active:focus,.btn-danger.active.focus,.open>.btn-danger.dropdown-toggle:hover,.open>.btn-danger.dropdown-toggle:focus,.open>.btn-danger.dropdown-toggle.focus{color:#fff;background-color:#ac2725;border-color:#761919;}.btn-danger:active,.btn-danger.active,.open>.btn-danger.dropdown-toggle{background-image:none;}.btn-danger.disabled,.btn-danger.disabled:hover,.btn-danger.disabled:focus,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled.active,.btn-danger[disabled],.btn-danger[disabled]:hover,.btn-danger[disabled]:focus,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger:hover,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43d3a;}.btn-danger .badge{color:#d9534f;background-color:#fff;}.btn-link{color:#66A8CC;font-weight:normal;border-radius:0;}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;box-shadow:none;}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent;}.btn-link:hover,.btn-link:focus{color:#3984ac;text-decoration:underline;background-color:transparent;}.btn-link[disabled]:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:hover,fieldset[disabled] .btn-link:focus{color:#777777;text-decoration:none;}.btn-lg,.btn-group-lg>.btn,.button{padding:10px 16px;font-size:18px;line-height:1.33333;border-radius:6px;}.btn-sm,.btn-group-sm>.btn,.button{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;}.btn-xs,.btn-group-xs>.btn,.button,footer .button{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px;}.btn-block{display:block;width:100%;}.btn-block+.btn-block{margin-top:5px;}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%;}.fade{opacity:0;-webkit-transition:opacity 0.15s linear;transition:opacity 0.15s linear;}.fade.in{opacity:1;}.collapse{display:none;}.collapse.in{display:block;}tr.collapse.in{display:table-row;}tbody.collapse.in{display:table-row-group;}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-property:height,visibility;transition-property:height,visibility;-webkit-transition-duration:0.35s;transition-duration:0.35s;-webkit-transition-timing-function:ease;transition-timing-function:ease;}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid \9;border-right:4px solid transparent;border-left:4px solid transparent;}.dropup,.dropdown{position:relative;}.dropdown-toggle:focus{outline:0;}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.15);border-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);background-clip:padding-box;}.dropdown-menu.pull-right{right:0;left:auto;}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5;}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857;color:#333333;white-space:nowrap;}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5;}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#66A8CC;}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777777;}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:not-allowed;}.open>.dropdown-menu{display:block;}.open>a{outline:0;}.dropdown-menu-right{left:auto;right:0;}.dropdown-menu-left{left:0;right:auto;}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857;color:#777777;white-space:nowrap;}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990;}.pull-right>.dropdown-menu{right:0;left:auto;}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px dashed;border-bottom:4px solid \9;content:"";}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px;}@media (min-width: 768px){.navbar-right .dropdown-menu{right:0;left:auto;}.navbar-right .dropdown-menu-left{left:0;right:auto;}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle;}.btn-group>.btn,.btn-group>.button,.btn-group-vertical>.btn,.btn-group-vertical>.button{position:relative;float:left;}.btn-group>.btn:hover,.btn-group>.button:hover,.btn-group>.btn:focus,.btn-group>.button:focus,.btn-group>.btn:active,.btn-group>.button:active,.btn-group>.btn.active,.btn-group>.active.button,.btn-group-vertical>.btn:hover,.btn-group-vertical>.button:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.button:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.button:active,.btn-group-vertical>.btn.active,.btn-group-vertical>.active.button{z-index:2;}.btn-group .btn+.btn,.btn-group .btn+.button,.btn-group .btn+.button,.btn-group .btn+.btn-group,.btn-group .btn+.button,.btn-group .btn-group+.btn,.btn-group .btn-group+.button,.btn-group .btn-group+.btn-group{margin-left:-1px;}.btn-toolbar{margin-left:-5px;}.btn-toolbar:before,.btn-toolbar:after{content:" ";display:table;}.btn-toolbar:after{clear:both;}.btn-toolbar .btn,.btn-toolbar .button,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left;}.btn-toolbar>.btn,.btn-toolbar>.button,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px;}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle),.btn-group>.button:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0;}.btn-group>.btn:first-child,.btn-group>.button:first-child{margin-left:0;}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle),.btn-group>.button:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0;}.btn-group>.btn:last-child:not(:first-child),.btn-group>.button:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;}.btn-group>.btn-group{float:left;}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.btn-group>.btn-group:not(:first-child):not(:last-child)>.button{border-radius:0;}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.button:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0;}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child,.btn-group>.btn-group:last-child:not(:first-child)>.button:first-child{border-bottom-left-radius:0;border-top-left-radius:0;}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0;}.btn-group>.btn+.dropdown-toggle,.btn-group>.btn+.button{padding-left:8px;padding-right:8px;}.btn-group>.btn-lg+.dropdown-toggle,.btn-group>.btn-lg+.btn-group-lg>.btn,.btn-group-lg>.btn-group>.btn-lg+.btn,.btn-group>.btn-lg+.button{padding-left:12px;padding-right:12px;}.btn-group.open .dropdown-toggle{box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);}.btn-group.open .dropdown-toggle.btn-link{box-shadow:none;}.btn .caret,.btn .button{margin-left:0;}.btn-lg .caret,.btn-lg .btn-group-lg>.btn,.btn-group-lg>.btn-lg .btn,.btn-lg .button{border-width:5px 5px 0;border-bottom-width:0;}.dropup .btn-lg .caret,.dropup .btn-lg .btn-group-lg>.btn,.btn-group-lg>.dropup .btn-lg .btn,.dropup .btn-lg .button{border-width:0 5px 5px;}.btn-group-vertical>.btn,.btn-group-vertical>.button,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn,.btn-group-vertical>.btn-group>.button{display:block;float:none;width:100%;max-width:100%;}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{content:" ";display:table;}.btn-group-vertical>.btn-group:after{clear:both;}.btn-group-vertical>.btn-group>.btn,.btn-group-vertical>.btn-group>.button{float:none;}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.button,.btn-group-vertical>.btn+.button,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn+.button,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.button,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0;}.btn-group-vertical>.btn:not(:first-child):not(:last-child),.btn-group-vertical>.button:not(:first-child):not(:last-child){border-radius:0;}.btn-group-vertical>.btn:first-child:not(:last-child),.btn-group-vertical>.button:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;}.btn-group-vertical>.btn:last-child:not(:first-child),.btn-group-vertical>.button:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0;}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn,.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.button{border-radius:0;}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.button:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0;}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child,.btn-group-vertical>.btn-group:last-child:not(:first-child)>.button:first-child{border-top-right-radius:0;border-top-left-radius:0;}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate;}.btn-group-justified>.btn,.btn-group-justified>.button,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%;}.btn-group-justified>.btn-group .btn,.btn-group-justified>.btn-group .button{width:100%;}.btn-group-justified>.btn-group .dropdown-menu{left:auto;}[data-toggle="buttons"]>.btn input[type="radio"],[data-toggle="buttons"]>.btn .button,[data-toggle="buttons"]>.btn input[type="checkbox"],[data-toggle="buttons"]>.btn .button,[data-toggle="buttons"]>.btn-group>.btn input[type="radio"],[data-toggle="buttons"]>.btn-group>.btn .button,[data-toggle="buttons"]>.btn-group>.btn input[type="checkbox"],[data-toggle="buttons"]>.btn-group>.btn .button{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none;}.input-group{position:relative;display:table;border-collapse:separate;}.input-group[class*="col-"]{float:none;padding-left:0;padding-right:0;}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0;}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell;}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0;}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle;}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555555;text-align:center;background-color:#eeeeee;border:1px solid #ccc;border-radius:4px;}.input-group-addon.input-sm,.input-group-sm>.input-group-addon.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.input-group-addon.btn,.input-group-addon.button{padding:5px 10px;font-size:12px;border-radius:3px;}.input-group-addon.input-lg,.input-group-lg>.input-group-addon.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.input-group-addon.btn,.input-group-addon.button{padding:10px 16px;font-size:18px;border-radius:6px;}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0;}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.button,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.btn-group>.button,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.button:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn-group:not(:last-child)>.button{border-bottom-right-radius:0;border-top-right-radius:0;}.input-group-addon:first-child{border-right:0;}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.button,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.btn-group>.button,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.button:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn-group:not(:first-child)>.button{border-bottom-left-radius:0;border-top-left-radius:0;}.input-group-addon:last-child{border-left:0;}.input-group-btn{position:relative;font-size:0;white-space:nowrap;}.input-group-btn>.btn,.input-group-btn>.button{position:relative;}.input-group-btn>.btn+.btn,.input-group-btn>.btn+.button,.input-group-btn>.btn+.button{margin-left:-1px;}.input-group-btn>.btn:hover,.input-group-btn>.button:hover,.input-group-btn>.btn:focus,.input-group-btn>.button:focus,.input-group-btn>.btn:active,.input-group-btn>.button:active{z-index:2;}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.button,.input-group-btn:first-child>.btn-group{margin-right:-1px;}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.button,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px;}.nav{margin-bottom:0;padding-left:0;list-style:none;}.nav:before,.nav:after{content:" ";display:table;}.nav:after{clear:both;}.nav>li{position:relative;display:block;}.nav>li>a{position:relative;display:block;padding:10px 15px;}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eeeeee;}.nav>li.disabled>a{color:#777777;}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#777777;text-decoration:none;background-color:transparent;cursor:not-allowed;}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eeeeee;border-color:#66A8CC;}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5;}.nav>li>a>img{max-width:none;}.nav-tabs{border-bottom:1px solid #ddd;}.nav-tabs>li{float:left;margin-bottom:-1px;}.nav-tabs>li>a{margin-right:2px;line-height:1.42857;border:1px solid transparent;border-radius:4px 4px 0 0;}.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #ddd;}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default;}.nav-pills>li{float:left;}.nav-pills>li>a{border-radius:4px;}.nav-pills>li+li{margin-left:2px;}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#66A8CC;}.nav-stacked>li{float:none;}.nav-stacked>li+li{margin-top:2px;margin-left:0;}.nav-justified,.nav-tabs.nav-justified{width:100%;}.nav-justified>li,.nav-justified>.nav-tabs.nav-justified{float:none;}.nav-justified>li>a,.nav-justified>li>.nav-tabs.nav-justified{text-align:center;margin-bottom:5px;}.nav-justified>.dropdown .dropdown-menu,.nav-justified>.dropdown .nav-tabs.nav-justified{top:auto;left:auto;}@media (min-width: 768px){.nav-justified>li,.nav-justified>.nav-tabs.nav-justified{display:table-cell;width:1%;}.nav-justified>li>a,.nav-justified>li>.nav-tabs.nav-justified{margin-bottom:0;}}.nav-tabs-justified,.nav-tabs.nav-justified,.nav-tabs.nav-justified{border-bottom:0;}.nav-tabs-justified>li>a,.nav-tabs-justified>li>.nav-tabs.nav-justified,.nav-tabs-justified>li>.nav-tabs.nav-justified{margin-right:0;border-radius:4px;}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>.nav-tabs.nav-justified{border:1px solid #ddd;}@media (min-width: 768px){.nav-tabs-justified>li>a,.nav-tabs-justified>li>.nav-tabs.nav-justified,.nav-tabs-justified>li>.nav-tabs.nav-justified{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0;}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>.nav-tabs.nav-justified,.nav-tabs-justified>.active>.nav-tabs.nav-justified{border-bottom-color:#fff;}}.tab-content>.tab-pane{display:none;}.tab-content>.active{display:block;}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0;}.navbar,header nav{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent;}.navbar:before,header nav:before,.navbar:after,header nav:after{content:" ";display:table;}.navbar:after,header nav:after{clear:both;}@media (min-width: 768px){.navbar{border-radius:4px;}}.navbar-header:before,.navbar-header:after{content:" ";display:table;}.navbar-header:after{clear:both;}@media (min-width: 768px){.navbar-header{float:left;}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1);-webkit-overflow-scrolling:touch;}.navbar-collapse:before,.navbar-collapse:after{content:" ";display:table;}.navbar-collapse:after{clear:both;}.navbar-collapse.in{overflow-y:auto;}@media (min-width: 768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none;}.navbar-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important;}.navbar-collapse.in{overflow-y:visible;}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-left:0;padding-right:0;}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px;}@media (max-device-width: 480px) and (orientation: landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px;}}.container>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-header,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px;}@media (min-width: 768px){.container>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-header,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0;}}.navbar-static-top{z-index:1000;border-width:0 0 1px;}@media (min-width: 768px){.navbar-static-top{border-radius:0;}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;}@media (min-width: 768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0;}}.navbar-fixed-top{top:0;border-width:0 0 1px;}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0;}.navbar-brand{float:left;padding:15px 15px;font-size:18px;line-height:20px;height:50px;}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none;}.navbar-brand>img{display:block;}@media (min-width: 768px){.navbar>.container .navbar-brand,.navbar>.container header nav,header .navbar>.container nav,.navbar>.container-fluid .navbar-brand,.navbar>.container-fluid header nav,header .navbar>.container-fluid nav{margin-left:-15px;}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px;}.navbar-toggle:focus{outline:0;}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px;}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px;}@media (min-width: 768px){.navbar-toggle{display:none;}}.navbar-nav{margin:7.5px -15px;}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px;}@media (max-width: 767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none;}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px;}.navbar-nav .open .dropdown-menu>li>a{line-height:20px;}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none;}}@media (min-width: 768px){.navbar-nav{float:left;margin:0;}.navbar-nav>li{float:left;}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px;}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.1);margin-top:8px;margin-bottom:8px;}@media (min-width: 768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle;}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle;}.navbar-form .form-control-static{display:inline-block;}.navbar-form .input-group{display:inline-table;vertical-align:middle;}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto;}.navbar-form .input-group>.form-control{width:100%;}.navbar-form .control-label{margin-bottom:0;vertical-align:middle;}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle;}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0;}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{position:relative;margin-left:0;}.navbar-form .has-feedback .form-control-feedback{top:0;}}@media (max-width: 767px){.navbar-form .form-group{margin-bottom:5px;}.navbar-form .form-group:last-child{margin-bottom:0;}}@media (min-width: 768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;box-shadow:none;}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0;}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;}.navbar-btn{margin-top:8px;margin-bottom:8px;}.navbar-btn.btn-sm,.btn-group-sm>.navbar-btn.btn,.navbar-btn.button{margin-top:10px;margin-bottom:10px;}.navbar-btn.btn-xs,.btn-group-xs>.navbar-btn.btn,.navbar-btn.button,footer .navbar-btn.button{margin-top:14px;margin-bottom:14px;}.navbar-text{margin-top:15px;margin-bottom:15px;}@media (min-width: 768px){.navbar-text{float:left;margin-left:15px;margin-right:15px;}}@media (min-width: 768px){.navbar-left{float:left !important;}.navbar-right{float:right !important;margin-right:-15px;}.navbar-right ~ .navbar-right{margin-right:0;}}.navbar-default,header nav{background-color:#f8f8f8;border-color:#e7e7e7;}.navbar-default .navbar-brand,.navbar-default header nav,header .navbar-default nav{color:#777;}.navbar-default .navbar-brand:hover,.navbar-default header nav,header .navbar-default nav,.navbar-default .navbar-brand:focus,.navbar-default header nav,header .navbar-default nav{color:#5e5e5e;background-color:transparent;}.navbar-default .navbar-text,.navbar-default header nav,header .navbar-default nav{color:#777;}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-nav>li>header nav,header .navbar-default .navbar-nav>li>nav{color:#777;}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>header nav,header .navbar-default .navbar-nav>li>nav,.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>header nav,header .navbar-default .navbar-nav>li>nav{color:#333;background-color:transparent;}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>header nav,header .navbar-default .navbar-nav>.active>nav,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>header nav,header .navbar-default .navbar-nav>.active>nav,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>header nav,header .navbar-default .navbar-nav>.active>nav{color:#555;background-color:#e7e7e7;}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>header nav,header .navbar-default .navbar-nav>.disabled>nav,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>header nav,header .navbar-default .navbar-nav>.disabled>nav,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>header nav,header .navbar-default .navbar-nav>.disabled>nav{color:#ccc;background-color:transparent;}.navbar-default .navbar-toggle,.navbar-default header nav,header .navbar-default nav{border-color:#ddd;}.navbar-default .navbar-toggle:hover,.navbar-default header nav,header .navbar-default nav,.navbar-default .navbar-toggle:focus,.navbar-default header nav,header .navbar-default nav{background-color:#ddd;}.navbar-default .navbar-toggle .icon-bar,.navbar-default .navbar-toggle header nav,header .navbar-default .navbar-toggle nav{background-color:#888;}.navbar-default .navbar-collapse,.navbar-default header nav,header .navbar-default nav,.navbar-default .navbar-form,.navbar-default header nav,header .navbar-default nav{border-color:#e7e7e7;}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>header nav,header .navbar-default .navbar-nav>.open>nav,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>header nav,header .navbar-default .navbar-nav>.open>nav,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>header nav,header .navbar-default .navbar-nav>.open>nav{background-color:#e7e7e7;color:#555;}@media (max-width: 767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a,.navbar-default .navbar-nav .open .dropdown-menu>li>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>li>nav{color:#777;}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>li>nav,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>li>nav{color:#333;background-color:transparent;}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>.active>nav,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>.active>nav,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>.active>nav{color:#555;background-color:#e7e7e7;}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>.disabled>nav,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>.disabled>nav,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>header nav,header .navbar-default .navbar-nav .open .dropdown-menu>.disabled>nav{color:#ccc;background-color:transparent;}}.navbar-default .navbar-link,.navbar-default header nav,header .navbar-default nav{color:#777;}.navbar-default .navbar-link:hover,.navbar-default header nav,header .navbar-default nav{color:#333;}.navbar-default .btn-link,.navbar-default header nav,header .navbar-default nav{color:#777;}.navbar-default .btn-link:hover,.navbar-default header nav,header .navbar-default nav,.navbar-default .btn-link:focus,.navbar-default header nav,header .navbar-default nav{color:#333;}.navbar-default .btn-link[disabled]:hover,.navbar-default header nav,header .navbar-default nav,.navbar-default .btn-link[disabled]:focus,.navbar-default header nav,header .navbar-default nav,fieldset[disabled] .navbar-default .btn-link:hover,fieldset[disabled] .navbar-default header nav,header fieldset[disabled] .navbar-default nav,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default header nav,header fieldset[disabled] .navbar-default nav{color:#ccc;}.navbar-inverse{background-color:#222;border-color:#090909;}.navbar-inverse .navbar-brand{color:#9d9d9d;}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent;}.navbar-inverse .navbar-text{color:#9d9d9d;}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d;}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent;}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#090909;}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent;}.navbar-inverse .navbar-toggle{border-color:#333;}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333;}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff;}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010;}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{background-color:#090909;color:#fff;}@media (max-width: 767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#090909;}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#090909;}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d;}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent;}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#090909;}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent;}}.navbar-inverse .navbar-link{color:#9d9d9d;}.navbar-inverse .navbar-link:hover{color:#fff;}.navbar-inverse .btn-link{color:#9d9d9d;}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#fff;}.navbar-inverse .btn-link[disabled]:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:hover,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#444;}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px;}.breadcrumb>li{display:inline-block;}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc;}.breadcrumb>.active{color:#777777;}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px;}.pagination>li{display:inline;}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857;text-decoration:none;color:#66A8CC;background-color:#fff;border:1px solid #ddd;margin-left:-1px;}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px;}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px;}.pagination>li>a:hover,.pagination>li>a:focus,.pagination>li>span:hover,.pagination>li>span:focus{z-index:3;color:#3984ac;background-color:#eeeeee;border-color:#ddd;}.pagination>.active>a,.pagination>.active>a:hover,.pagination>.active>a:focus,.pagination>.active>span,.pagination>.active>span:hover,.pagination>.active>span:focus{z-index:2;color:#fff;background-color:#66A8CC;border-color:#66A8CC;cursor:default;}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#777777;background-color:#fff;border-color:#ddd;cursor:not-allowed;}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.33333;}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px;}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px;}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5;}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px;}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px;}.pager{padding-left:0;margin:20px 0;list-style:none;text-align:center;}.pager:before,.pager:after{content:" ";display:table;}.pager:after{clear:both;}.pager li{display:inline;}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px;}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eeeeee;}.pager .next>a,.pager .next>span{float:right;}.pager .previous>a,.pager .previous>span{float:left;}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#777777;background-color:#fff;cursor:not-allowed;}.label{display:inline;padding:0.2em 0.6em 0.3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:0.25em;}.label:empty{display:none;}.btn .label,.btn .button{position:relative;top:-1px;}a.label:hover,a.label:focus{color:#fff;text-decoration:none;cursor:pointer;}.label-default{background-color:#777777;}.label-default[href]:hover,.label-default[href]:focus{background-color:#5e5e5e;}.label-primary{background-color:#66A8CC;}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#4093bf;}.label-success{background-color:#5cb85c;}.label-success[href]:hover,.label-success[href]:focus{background-color:#469d44;}.label-info{background-color:#5bc0de;}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b2d5;}.label-warning{background-color:#f0ad4e;}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f;}.label-danger{background-color:#d9534f;}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c92e2c;}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;color:#fff;line-height:1;vertical-align:middle;white-space:nowrap;text-align:center;background-color:#777777;border-radius:10px;}.badge:empty{display:none;}.btn .badge,.btn .button{position:relative;top:-1px;}.btn-xs .badge,.btn-xs .btn-group-xs>.btn,.btn-group-xs>.btn-xs .btn,.btn-xs .button,.btn-xs footer .button,footer .btn-xs .button,.btn-group-xs>.btn .badge,.btn-group-xs>.btn .button{top:0;padding:1px 5px;}.list-group-item.active>.badge,.list-group-item.active>.active.plugin-entry,.list-group-item.active>.active.plugin-list-empty,.nav-pills>.active>a>.badge{color:#66A8CC;background-color:#fff;}.list-group-item>.badge,.list-group-item>.plugin-entry,.list-group-item>.plugin-list-empty{float:right;}.list-group-item>.badge+.badge,.list-group-item>.badge+.plugin-entry,.list-group-item>.badge+.plugin-list-empty{margin-right:5px;}.nav-pills>li>a>.badge{margin-left:3px;}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer;}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eeeeee;}.jumbotron h1,.jumbotron .h1{color:inherit;}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200;}.jumbotron>hr{border-top-color:#d5d5d5;}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px;}.jumbotron .container{max-width:100%;}@media screen and (min-width: 768px){.jumbotron{padding-top:48px;padding-bottom:48px;}.container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px;}.jumbotron h1,.jumbotron .h1{font-size:63px;}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border 0.2s ease-in-out;transition:border 0.2s ease-in-out;}.thumbnail>img,.thumbnail a>img{display:block;max-width:100%;height:auto;margin-left:auto;margin-right:auto;}.thumbnail .caption{padding:9px;color:#333333;}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#66A8CC;}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px;}.alert h4{margin-top:0;color:inherit;}.alert .alert-link{font-weight:bold;}.alert>p,.alert>ul{margin-bottom:0;}.alert>p+p{margin-top:5px;}.alert-dismissable,.alert-dismissible{padding-right:35px;}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit;}.alert-success{background-color:#dff0d8;border-color:#d7e9c6;color:#3c763d;}.alert-success hr{border-top-color:#cae2b3;}.alert-success .alert-link{color:#2b542b;}.alert-info{background-color:#d9edf7;border-color:#bce9f1;color:#31708f;}.alert-info hr{border-top-color:#a6e2ec;}.alert-info .alert-link{color:#245369;}.alert-warning{background-color:#fcf8e3;border-color:#faeacc;color:#8a6d3b;}.alert-warning hr{border-top-color:#f7e0b5;}.alert-warning .alert-link{color:#66502c;}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442;}.alert-danger hr{border-top-color:#e4b9c0;}.alert-danger .alert-link{color:#843534;}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0;}to{background-position:0 0;}}@keyframes progress-bar-stripes{from{background-position:40px 0;}to{background-position:0 0;}}.progress{overflow:hidden;height:20px;margin-bottom:20px;background-color:#f5f5f5;border-radius:4px;box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);}.progress-bar{float:left;width:0%;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#66A8CC;box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-webkit-transition:width 0.6s ease;transition:width 0.6s ease;}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:40px 40px;}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite;}.progress-bar-success{background-color:#5cb85c;}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}.progress-bar-info{background-color:#5bc0de;}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}.progress-bar-warning{background-color:#f0ad4e;}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}.progress-bar-danger{background-color:#d9534f;}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}.media{margin-top:15px;}.media:first-child{margin-top:0;}.media,.media-body{zoom:1;overflow:hidden;}.media-body{width:10000px;}.media-object{display:block;}.media-object.img-thumbnail{max-width:none;}.media-right,.media>.pull-right{padding-left:10px;}.media-left,.media>.pull-left{padding-right:10px;}.media-left,.media-right,.media-body{display:table-cell;vertical-align:top;}.media-middle{vertical-align:middle;}.media-bottom{vertical-align:bottom;}.media-heading{margin-top:0;margin-bottom:5px;}.media-list{padding-left:0;list-style:none;}.list-group,.plugin-list{margin-bottom:20px;padding-left:0;}.list-group-item,.plugin-entry,.plugin-list-empty{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd;}.list-group-item:first-child,.plugin-entry:first-child,.plugin-list-empty:first-child{border-top-right-radius:4px;border-top-left-radius:4px;}.list-group-item:last-child,.plugin-entry:last-child,.plugin-list-empty:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px;}a.list-group-item,a.plugin-entry,a.plugin-list-empty,button.list-group-item,button.plugin-entry,button.plugin-list-empty{color:#555;}a.list-group-item .list-group-item-heading,a.list-group-item a.plugin-entry,a.list-group-item a.plugin-list-empty,button.list-group-item .list-group-item-heading,button.list-group-item button.plugin-entry,button.list-group-item button.plugin-list-empty{color:#333;}a.list-group-item:hover,a.plugin-entry:hover,a.plugin-list-empty:hover,a.list-group-item:focus,a.plugin-entry:focus,a.plugin-list-empty:focus,button.list-group-item:hover,button.plugin-entry:hover,button.plugin-list-empty:hover,button.list-group-item:focus,button.plugin-entry:focus,button.plugin-list-empty:focus{text-decoration:none;color:#555;background-color:#f5f5f5;}button.list-group-item,button.plugin-entry,button.plugin-list-empty{width:100%;text-align:left;}.list-group-item.disabled,.disabled.plugin-entry,.disabled.plugin-list-empty,.list-group-item.disabled:hover,.disabled.plugin-entry:hover,.disabled.plugin-list-empty:hover,.list-group-item.disabled:focus,.disabled.plugin-entry:focus,.disabled.plugin-list-empty:focus{background-color:#eeeeee;color:#777777;cursor:not-allowed;}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled .disabled.plugin-entry,.list-group-item.disabled .disabled.plugin-list-empty,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:hover .disabled.plugin-entry:hover,.list-group-item.disabled:hover .disabled.plugin-list-empty:hover,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:focus .disabled.plugin-entry:focus,.list-group-item.disabled:focus .disabled.plugin-list-empty:focus{color:inherit;}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled .disabled.plugin-entry,.list-group-item.disabled .disabled.plugin-list-empty,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:hover .disabled.plugin-entry:hover,.list-group-item.disabled:hover .disabled.plugin-list-empty:hover,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:focus .disabled.plugin-entry:focus,.list-group-item.disabled:focus .disabled.plugin-list-empty:focus{color:#777777;}.list-group-item.active,.active.plugin-entry,.active.plugin-list-empty,.list-group-item.active:hover,.active.plugin-entry:hover,.active.plugin-list-empty:hover,.list-group-item.active:focus,.active.plugin-entry:focus,.active.plugin-list-empty:focus{z-index:2;color:#fff;background-color:#66A8CC;border-color:#66A8CC;}.list-group-item.active .list-group-item-heading,.list-group-item.active .active.plugin-entry,.list-group-item.active .active.plugin-list-empty,.list-group-item.active .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.active.plugin-entry,.list-group-item.active .list-group-item-heading>.active.plugin-list-empty,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>.active.plugin-entry,.list-group-item.active .list-group-item-heading>.active.plugin-list-empty,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .active.plugin-entry:hover,.list-group-item.active:hover .active.plugin-list-empty:hover,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>.active.plugin-entry:hover,.list-group-item.active:hover .list-group-item-heading>.active.plugin-list-empty:hover,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.active.plugin-entry:hover,.list-group-item.active:hover .list-group-item-heading>.active.plugin-list-empty:hover,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .active.plugin-entry:focus,.list-group-item.active:focus .active.plugin-list-empty:focus,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>.active.plugin-entry:focus,.list-group-item.active:focus .list-group-item-heading>.active.plugin-list-empty:focus,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.active.plugin-entry:focus,.list-group-item.active:focus .list-group-item-heading>.active.plugin-list-empty:focus{color:inherit;}.list-group-item.active .list-group-item-text,.list-group-item.active .active.plugin-entry,.list-group-item.active .active.plugin-list-empty,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:hover .active.plugin-entry:hover,.list-group-item.active:hover .active.plugin-list-empty:hover,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:focus .active.plugin-entry:focus,.list-group-item.active:focus .active.plugin-list-empty:focus{color:white;}.list-group-item-success{color:#3c763d;background-color:#dff0d8;}a.list-group-item-success,button.list-group-item-success{color:#3c763d;}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit;}a.list-group-item-success:hover,a.list-group-item-success:focus,button.list-group-item-success:hover,button.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6;}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus,button.list-group-item-success.active,button.list-group-item-success.active:hover,button.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d;}.list-group-item-info{color:#31708f;background-color:#d9edf7;}a.list-group-item-info,button.list-group-item-info{color:#31708f;}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit;}a.list-group-item-info:hover,a.list-group-item-info:focus,button.list-group-item-info:hover,button.list-group-item-info:focus{color:#31708f;background-color:#c4e4f3;}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus,button.list-group-item-info.active,button.list-group-item-info.active:hover,button.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f;}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3;}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b;}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit;}a.list-group-item-warning:hover,a.list-group-item-warning:focus,button.list-group-item-warning:hover,button.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc;}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus,button.list-group-item-warning.active,button.list-group-item-warning.active:hover,button.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b;}.list-group-item-danger{color:#a94442;background-color:#f2dede;}a.list-group-item-danger,button.list-group-item-danger{color:#a94442;}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit;}a.list-group-item-danger:hover,a.list-group-item-danger:focus,button.list-group-item-danger:hover,button.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc;}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus,button.list-group-item-danger.active,button.list-group-item-danger.active:hover,button.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442;}.list-group-item-heading{margin-top:0;margin-bottom:5px;}.list-group-item-text{margin-bottom:0;line-height:1.3;}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.05);}.panel-body,.plugin-info{padding:15px;}.panel-body:before,.plugin-info:before,.panel-body:after,.plugin-info:after{content:" ";display:table;}.panel-body:after,.plugin-info:after{clear:both;}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px;}.panel-heading>.dropdown .dropdown-toggle{color:inherit;}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit;}.panel-title>a,.panel-title>small,.panel-title>.small,.panel-title>small>a,.panel-title>.small>a{color:inherit;}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px;}.panel>.list-group,.panel>.plugin-list,.panel>.panel-collapse>.list-group,.panel>.panel-collapse>.plugin-list{margin-bottom:0;}.panel>.list-group .list-group-item,.panel>.list-group .plugin-list,.panel>.list-group .plugin-entry,.panel>.list-group .plugin-list-empty,.panel>.panel-collapse>.list-group .list-group-item,.panel>.panel-collapse>.list-group .plugin-list,.panel>.panel-collapse>.list-group .plugin-entry,.panel>.panel-collapse>.list-group .plugin-list-empty{border-width:1px 0;border-radius:0;}.panel>.list-group:first-child .list-group-item:first-child,.panel>.list-group:first-child .plugin-list:first-child,.panel>.list-group:first-child .plugin-entry:first-child,.panel>.list-group:first-child .plugin-list-empty:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .plugin-list:first-child,.panel>.panel-collapse>.list-group:first-child .plugin-entry:first-child,.panel>.panel-collapse>.list-group:first-child .plugin-list-empty:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px;}.panel>.list-group:last-child .list-group-item:last-child,.panel>.list-group:last-child .plugin-list:last-child,.panel>.list-group:last-child .plugin-entry:last-child,.panel>.list-group:last-child .plugin-list-empty:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .plugin-list:last-child,.panel>.panel-collapse>.list-group:last-child .plugin-entry:last-child,.panel>.panel-collapse>.list-group:last-child .plugin-list-empty:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px;}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child,.panel>.panel-heading+.panel-collapse>.list-group .plugin-list,.panel>.panel-heading+.panel-collapse>.list-group .plugin-entry:first-child,.panel>.panel-heading+.panel-collapse>.list-group .plugin-list-empty:first-child{border-top-right-radius:0;border-top-left-radius:0;}.panel-heading+.list-group .list-group-item:first-child,.panel-heading+.list-group .plugin-list,.panel-heading+.list-group .plugin-entry:first-child,.panel-heading+.list-group .plugin-list-empty:first-child{border-top-width:0;}.list-group+.panel-footer,.list-group+.plugin-list{border-top-width:0;}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0;}.panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-left:15px;padding-right:15px;}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-right-radius:3px;border-top-left-radius:3px;}.panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px;}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px;}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px;}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px;}.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px;}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px;}.panel>.panel-body+.table,.panel>.panel-body+.plugin-info,.panel>.panel-body+.table-responsive,.panel>.panel-body+.plugin-info,.panel>.table+.panel-body,.panel>.table+.plugin-info,.panel>.table-responsive+.panel-body,.panel>.table-responsive+.plugin-info{border-top:1px solid #ddd;}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0;}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0;}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0;}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0;}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0;}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0;}.panel>.table-responsive{border:0;margin-bottom:0;}.panel-group{margin-bottom:20px;}.panel-group .panel{margin-bottom:0;border-radius:4px;}.panel-group .panel+.panel{margin-top:5px;}.panel-group .panel-heading{border-bottom:0;}.panel-group .panel-heading+.panel-collapse>.panel-body,.panel-group .panel-heading+.panel-collapse>.plugin-info,.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.plugin-list{border-top:1px solid #ddd;}.panel-group .panel-footer{border-top:0;}.panel-group .panel-footer+.panel-collapse .panel-body,.panel-group .panel-footer+.panel-collapse .plugin-info{border-bottom:1px solid #ddd;}.panel-default{border-color:#ddd;}.panel-default>.panel-heading{color:#333333;background-color:#f5f5f5;border-color:#ddd;}.panel-default>.panel-heading+.panel-collapse>.panel-body,.panel-default>.panel-heading+.panel-collapse>.plugin-info{border-top-color:#ddd;}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333333;}.panel-default>.panel-footer+.panel-collapse>.panel-body,.panel-default>.panel-footer+.panel-collapse>.plugin-info{border-bottom-color:#ddd;}.panel-primary{border-color:#66A8CC;}.panel-primary>.panel-heading{color:#fff;background-color:#66A8CC;border-color:#66A8CC;}.panel-primary>.panel-heading+.panel-collapse>.panel-body,.panel-primary>.panel-heading+.panel-collapse>.plugin-info{border-top-color:#66A8CC;}.panel-primary>.panel-heading .badge{color:#66A8CC;background-color:#fff;}.panel-primary>.panel-footer+.panel-collapse>.panel-body,.panel-primary>.panel-footer+.panel-collapse>.plugin-info{border-bottom-color:#66A8CC;}.panel-success{border-color:#d7e9c6;}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d7e9c6;}.panel-success>.panel-heading+.panel-collapse>.panel-body,.panel-success>.panel-heading+.panel-collapse>.plugin-info{border-top-color:#d7e9c6;}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d;}.panel-success>.panel-footer+.panel-collapse>.panel-body,.panel-success>.panel-footer+.panel-collapse>.plugin-info{border-bottom-color:#d7e9c6;}.panel-info{border-color:#bce9f1;}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce9f1;}.panel-info>.panel-heading+.panel-collapse>.panel-body,.panel-info>.panel-heading+.panel-collapse>.plugin-info{border-top-color:#bce9f1;}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f;}.panel-info>.panel-footer+.panel-collapse>.panel-body,.panel-info>.panel-footer+.panel-collapse>.plugin-info{border-bottom-color:#bce9f1;}.panel-warning{border-color:#faeacc;}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faeacc;}.panel-warning>.panel-heading+.panel-collapse>.panel-body,.panel-warning>.panel-heading+.panel-collapse>.plugin-info{border-top-color:#faeacc;}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b;}.panel-warning>.panel-footer+.panel-collapse>.panel-body,.panel-warning>.panel-footer+.panel-collapse>.plugin-info{border-bottom-color:#faeacc;}.panel-danger{border-color:#ebccd1;}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1;}.panel-danger>.panel-heading+.panel-collapse>.panel-body,.panel-danger>.panel-heading+.panel-collapse>.plugin-info{border-top-color:#ebccd1;}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442;}.panel-danger>.panel-footer+.panel-collapse>.panel-body,.panel-danger>.panel-footer+.panel-collapse>.plugin-info{border-bottom-color:#ebccd1;}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden;}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;}.embed-responsive-16by9{padding-bottom:56.25%;}.embed-responsive-4by3{padding-bottom:75%;}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well blockquote{border-color:#ddd;border-color:rgba(0, 0, 0, 0.15);}.well-lg{padding:24px;border-radius:6px;}.well-sm{padding:9px;border-radius:3px;}.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:0.2;filter:alpha(opacity=20);}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50);}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;}.modal-open{overflow:hidden;}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0;}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out;}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);transform:translate(0, 0);}.modal-open .modal{overflow-x:hidden;overflow-y:auto;}.modal-dialog{position:relative;width:auto;margin:10px;}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0, 0, 0, 0.2);border-radius:6px;box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);background-clip:padding-box;outline:0;}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000;}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0);}.modal-backdrop.in{opacity:0.5;filter:alpha(opacity=50);}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857px;}.modal-header .close{margin-top:-2px;}.modal-title{margin:0;line-height:1.42857;}.modal-body{position:relative;padding:15px;}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5;}.modal-footer:before,.modal-footer:after{content:" ";display:table;}.modal-footer:after{clear:both;}.modal-footer .btn+.btn,.modal-footer .btn+.button,.modal-footer .btn+.button{margin-left:5px;margin-bottom:0;}.modal-footer .btn-group .btn+.btn,.modal-footer .btn-group .btn+.button,.modal-footer .btn-group .btn+.button{margin-left:-1px;}.modal-footer .btn-block+.btn-block{margin-left:0;}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}@media (min-width: 768px){.modal-dialog{width:600px;margin:30px auto;}.modal-content{box-shadow:0 5px 15px rgba(0, 0, 0, 0.5);}.modal-sm{width:300px;}}@media (min-width: 992px){.modal-lg{width:900px;}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-style:normal;font-weight:normal;letter-spacing:normal;line-break:auto;line-height:1.42857;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:normal;font-size:12px;opacity:0;filter:alpha(opacity=0);}.tooltip.in{opacity:0.9;filter:alpha(opacity=90);}.tooltip.top{margin-top:-3px;padding:5px 0;}.tooltip.right{margin-left:3px;padding:0 5px;}.tooltip.bottom{margin-top:3px;padding:5px 0;}.tooltip.left{margin-left:-3px;padding:0 5px;}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px;}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000;}.tooltip.top-left .tooltip-arrow{bottom:0;right:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000;}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000;}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000;}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000;}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000;}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000;}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000;}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-style:normal;font-weight:normal;letter-spacing:normal;line-break:auto;line-height:1.42857;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:normal;font-size:14px;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.2);border-radius:6px;box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);}.popover.top{margin-top:-10px;}.popover.right{margin-left:10px;}.popover.bottom{margin-top:10px;}.popover.left{margin-left:-10px;}.popover-title{margin:0;padding:8px 14px;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0;}.popover-content{padding:9px 14px;}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;}.popover>.arrow{border-width:11px;}.popover>.arrow:after{border-width:10px;content:"";}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:rgba(0, 0, 0, 0.25);bottom:-11px;}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff;}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:rgba(0, 0, 0, 0.25);}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff;}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:rgba(0, 0, 0, 0.25);top:-11px;}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff;}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:rgba(0, 0, 0, 0.25);}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px;}.carousel{position:relative;}.carousel-inner{position:relative;overflow:hidden;width:100%;}.carousel-inner>.item{display:none;position:relative;-webkit-transition:0.6s ease-in-out left;transition:0.6s ease-in-out left;}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto;line-height:1;}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform 0.6s ease-in-out;transition:transform 0.6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px;}.carousel-inner>.item.next,.carousel-inner>.item.active.right{-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);left:0;}.carousel-inner>.item.prev,.carousel-inner>.item.active.left{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0;}.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right,.carousel-inner>.item.active{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);left:0;}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block;}.carousel-inner>.active{left:0;}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%;}.carousel-inner>.next{left:100%;}.carousel-inner>.prev{left:-100%;}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0;}.carousel-inner>.active.left{left:-100%;}.carousel-inner>.active.right{left:100%;}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:0.5;filter:alpha(opacity=50);font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0, 0, 0, 0.6);}.carousel-control.left{background-image:-webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);background-image:linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);}.carousel-control:hover,.carousel-control:focus{outline:0;color:#fff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90);}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;margin-top:-10px;z-index:5;display:inline-block;}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px;}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px;}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;line-height:1;font-family:serif;}.carousel-control .icon-prev:before{content:'\2039';}.carousel-control .icon-next:before{content:'\203a';}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center;}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:#000 \9;background-color:rgba(0, 0, 0, 0);}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff;}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0, 0, 0, 0.6);}.carousel-caption .btn,.carousel-caption .button{text-shadow:none;}@media screen and (min-width: 768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;font-size:30px;}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px;}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px;}.carousel-caption{left:20%;right:20%;padding-bottom:30px;}.carousel-indicators{bottom:20px;}}.clearfix:before,.clearfix:after{content:" ";display:table;}.clearfix:after{clear:both;}.center-block{display:block;margin-left:auto;margin-right:auto;}.pull-right{float:right !important;}.pull-left{float:left !important;}.hide{display:none !important;}.show{display:block !important;}.invisible{visibility:hidden;}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;}.hidden{display:none !important;}.affix{position:fixed;}@at-root{@-ms-viewport{width:device-width;}}.visible-xs{display:none !important;}.visible-sm{display:none !important;}.visible-md{display:none !important;}.visible-lg{display:none !important;}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none !important;}@media (max-width: 767px){.visible-xs{display:block !important;}table.visible-xs{display:table !important;}tr.visible-xs{display:table-row !important;}th.visible-xs,td.visible-xs{display:table-cell !important;}}@media (max-width: 767px){.visible-xs-block{display:block !important;}}@media (max-width: 767px){.visible-xs-inline{display:inline !important;}}@media (max-width: 767px){.visible-xs-inline-block{display:inline-block !important;}}@media (min-width: 768px) and (max-width: 991px){.visible-sm{display:block !important;}table.visible-sm{display:table !important;}tr.visible-sm{display:table-row !important;}th.visible-sm,td.visible-sm{display:table-cell !important;}}@media (min-width: 768px) and (max-width: 991px){.visible-sm-block{display:block !important;}}@media (min-width: 768px) and (max-width: 991px){.visible-sm-inline{display:inline !important;}}@media (min-width: 768px) and (max-width: 991px){.visible-sm-inline-block{display:inline-block !important;}}@media (min-width: 992px) and (max-width: 1199px){.visible-md{display:block !important;}table.visible-md{display:table !important;}tr.visible-md{display:table-row !important;}th.visible-md,td.visible-md{display:table-cell !important;}}@media (min-width: 992px) and (max-width: 1199px){.visible-md-block{display:block !important;}}@media (min-width: 992px) and (max-width: 1199px){.visible-md-inline{display:inline !important;}}@media (min-width: 992px) and (max-width: 1199px){.visible-md-inline-block{display:inline-block !important;}}@media (min-width: 1200px){.visible-lg{display:block !important;}table.visible-lg{display:table !important;}tr.visible-lg{display:table-row !important;}th.visible-lg,td.visible-lg{display:table-cell !important;}}@media (min-width: 1200px){.visible-lg-block{display:block !important;}}@media (min-width: 1200px){.visible-lg-inline{display:inline !important;}}@media (min-width: 1200px){.visible-lg-inline-block{display:inline-block !important;}}@media (max-width: 767px){.hidden-xs{display:none !important;}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important;}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important;}}@media (min-width: 1200px){.hidden-lg{display:none !important;}}.visible-print{display:none !important;}@media print{.visible-print{display:block !important;}table.visible-print{display:table !important;}tr.visible-print{display:table-row !important;}th.visible-print,td.visible-print{display:table-cell !important;}}.visible-print-block{display:none !important;}@media print{.visible-print-block{display:block !important;}}.visible-print-inline{display:none !important;}@media print{.visible-print-inline{display:inline !important;}}.visible-print-inline-block{display:none !important;}@media print{.visible-print-inline-block{display:inline-block !important;}}@media print{.hidden-print{display:none !important;}}/*! + * Font Awesome 4.4.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.4.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal;}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.fa-lg{font-size:1.33333em;line-height:0.75em;vertical-align:-15%;}.fa-2x{font-size:2em;}.fa-3x{font-size:3em;}.fa-4x{font-size:4em;}.fa-5x{font-size:5em;}.fa-fw{width:1.28571em;text-align:center;}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none;}.fa-ul>li{position:relative;}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:0.14286em;text-align:center;}.fa-li.fa-lg{left:-1.85714em;}.fa-border{padding:0.2em 0.25em 0.15em;border:solid 0.08em #eee;border-radius:0.1em;}.fa-pull-left{float:left;}.fa-pull-right{float:right;}.fa.fa-pull-left{margin-right:0.3em;}.fa.fa-pull-right{margin-left:0.3em;}.pull-right{float:right;}.pull-left{float:left;}.fa.pull-left{margin-right:0.3em;}.fa.pull-right{margin-left:0.3em;}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear;}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8);}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg);}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg);}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg);}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1);}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1);}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{-webkit-filter:none;filter:none;}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle;}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center;}.fa-stack-1x{line-height:inherit;}.fa-stack-2x{font-size:2em;}.fa-inverse{color:#fff;}.fa-glass:before{content:"\f000";}.fa-music:before{content:"\f001";}.fa-search:before{content:"\f002";}.fa-envelope-o:before{content:"\f003";}.fa-heart:before{content:"\f004";}.fa-star:before{content:"\f005";}.fa-star-o:before{content:"\f006";}.fa-user:before{content:"\f007";}.fa-film:before{content:"\f008";}.fa-th-large:before{content:"\f009";}.fa-th:before{content:"\f00a";}.fa-th-list:before{content:"\f00b";}.fa-check:before{content:"\f00c";}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d";}.fa-search-plus:before{content:"\f00e";}.fa-search-minus:before{content:"\f010";}.fa-power-off:before{content:"\f011";}.fa-signal:before{content:"\f012";}.fa-gear:before,.fa-cog:before{content:"\f013";}.fa-trash-o:before{content:"\f014";}.fa-home:before{content:"\f015";}.fa-file-o:before{content:"\f016";}.fa-clock-o:before{content:"\f017";}.fa-road:before{content:"\f018";}.fa-download:before{content:"\f019";}.fa-arrow-circle-o-down:before{content:"\f01a";}.fa-arrow-circle-o-up:before{content:"\f01b";}.fa-inbox:before{content:"\f01c";}.fa-play-circle-o:before{content:"\f01d";}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e";}.fa-refresh:before{content:"\f021";}.fa-list-alt:before{content:"\f022";}.fa-lock:before{content:"\f023";}.fa-flag:before{content:"\f024";}.fa-headphones:before{content:"\f025";}.fa-volume-off:before{content:"\f026";}.fa-volume-down:before{content:"\f027";}.fa-volume-up:before{content:"\f028";}.fa-qrcode:before{content:"\f029";}.fa-barcode:before{content:"\f02a";}.fa-tag:before{content:"\f02b";}.fa-tags:before{content:"\f02c";}.fa-book:before{content:"\f02d";}.fa-bookmark:before{content:"\f02e";}.fa-print:before{content:"\f02f";}.fa-camera:before{content:"\f030";}.fa-font:before{content:"\f031";}.fa-bold:before{content:"\f032";}.fa-italic:before{content:"\f033";}.fa-text-height:before{content:"\f034";}.fa-text-width:before{content:"\f035";}.fa-align-left:before{content:"\f036";}.fa-align-center:before{content:"\f037";}.fa-align-right:before{content:"\f038";}.fa-align-justify:before{content:"\f039";}.fa-list:before{content:"\f03a";}.fa-dedent:before,.fa-outdent:before{content:"\f03b";}.fa-indent:before{content:"\f03c";}.fa-video-camera:before{content:"\f03d";}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e";}.fa-pencil:before{content:"\f040";}.fa-map-marker:before{content:"\f041";}.fa-adjust:before{content:"\f042";}.fa-tint:before{content:"\f043";}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044";}.fa-share-square-o:before{content:"\f045";}.fa-check-square-o:before{content:"\f046";}.fa-arrows:before{content:"\f047";}.fa-step-backward:before{content:"\f048";}.fa-fast-backward:before{content:"\f049";}.fa-backward:before{content:"\f04a";}.fa-play:before{content:"\f04b";}.fa-pause:before{content:"\f04c";}.fa-stop:before{content:"\f04d";}.fa-forward:before{content:"\f04e";}.fa-fast-forward:before{content:"\f050";}.fa-step-forward:before{content:"\f051";}.fa-eject:before{content:"\f052";}.fa-chevron-left:before{content:"\f053";}.fa-chevron-right:before{content:"\f054";}.fa-plus-circle:before{content:"\f055";}.fa-minus-circle:before{content:"\f056";}.fa-times-circle:before{content:"\f057";}.fa-check-circle:before{content:"\f058";}.fa-question-circle:before{content:"\f059";}.fa-info-circle:before{content:"\f05a";}.fa-crosshairs:before{content:"\f05b";}.fa-times-circle-o:before{content:"\f05c";}.fa-check-circle-o:before{content:"\f05d";}.fa-ban:before{content:"\f05e";}.fa-arrow-left:before{content:"\f060";}.fa-arrow-right:before{content:"\f061";}.fa-arrow-up:before{content:"\f062";}.fa-arrow-down:before{content:"\f063";}.fa-mail-forward:before,.fa-share:before{content:"\f064";}.fa-expand:before{content:"\f065";}.fa-compress:before{content:"\f066";}.fa-plus:before{content:"\f067";}.fa-minus:before{content:"\f068";}.fa-asterisk:before{content:"\f069";}.fa-exclamation-circle:before{content:"\f06a";}.fa-gift:before{content:"\f06b";}.fa-leaf:before{content:"\f06c";}.fa-fire:before{content:"\f06d";}.fa-eye:before{content:"\f06e";}.fa-eye-slash:before{content:"\f070";}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071";}.fa-plane:before{content:"\f072";}.fa-calendar:before{content:"\f073";}.fa-random:before{content:"\f074";}.fa-comment:before{content:"\f075";}.fa-magnet:before{content:"\f076";}.fa-chevron-up:before{content:"\f077";}.fa-chevron-down:before{content:"\f078";}.fa-retweet:before{content:"\f079";}.fa-shopping-cart:before{content:"\f07a";}.fa-folder:before{content:"\f07b";}.fa-folder-open:before{content:"\f07c";}.fa-arrows-v:before{content:"\f07d";}.fa-arrows-h:before{content:"\f07e";}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080";}.fa-twitter-square:before{content:"\f081";}.fa-facebook-square:before{content:"\f082";}.fa-camera-retro:before{content:"\f083";}.fa-key:before{content:"\f084";}.fa-gears:before,.fa-cogs:before{content:"\f085";}.fa-comments:before{content:"\f086";}.fa-thumbs-o-up:before{content:"\f087";}.fa-thumbs-o-down:before{content:"\f088";}.fa-star-half:before{content:"\f089";}.fa-heart-o:before{content:"\f08a";}.fa-sign-out:before{content:"\f08b";}.fa-linkedin-square:before{content:"\f08c";}.fa-thumb-tack:before{content:"\f08d";}.fa-external-link:before{content:"\f08e";}.fa-sign-in:before{content:"\f090";}.fa-trophy:before{content:"\f091";}.fa-github-square:before{content:"\f092";}.fa-upload:before{content:"\f093";}.fa-lemon-o:before{content:"\f094";}.fa-phone:before{content:"\f095";}.fa-square-o:before{content:"\f096";}.fa-bookmark-o:before{content:"\f097";}.fa-phone-square:before{content:"\f098";}.fa-twitter:before{content:"\f099";}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a";}.fa-github:before{content:"\f09b";}.fa-unlock:before{content:"\f09c";}.fa-credit-card:before{content:"\f09d";}.fa-feed:before,.fa-rss:before{content:"\f09e";}.fa-hdd-o:before{content:"\f0a0";}.fa-bullhorn:before{content:"\f0a1";}.fa-bell:before{content:"\f0f3";}.fa-certificate:before{content:"\f0a3";}.fa-hand-o-right:before{content:"\f0a4";}.fa-hand-o-left:before{content:"\f0a5";}.fa-hand-o-up:before{content:"\f0a6";}.fa-hand-o-down:before{content:"\f0a7";}.fa-arrow-circle-left:before{content:"\f0a8";}.fa-arrow-circle-right:before{content:"\f0a9";}.fa-arrow-circle-up:before{content:"\f0aa";}.fa-arrow-circle-down:before{content:"\f0ab";}.fa-globe:before{content:"\f0ac";}.fa-wrench:before{content:"\f0ad";}.fa-tasks:before{content:"\f0ae";}.fa-filter:before{content:"\f0b0";}.fa-briefcase:before{content:"\f0b1";}.fa-arrows-alt:before{content:"\f0b2";}.fa-group:before,.fa-users:before{content:"\f0c0";}.fa-chain:before,.fa-link:before{content:"\f0c1";}.fa-cloud:before{content:"\f0c2";}.fa-flask:before{content:"\f0c3";}.fa-cut:before,.fa-scissors:before{content:"\f0c4";}.fa-copy:before,.fa-files-o:before{content:"\f0c5";}.fa-paperclip:before{content:"\f0c6";}.fa-save:before,.fa-floppy-o:before{content:"\f0c7";}.fa-square:before{content:"\f0c8";}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9";}.fa-list-ul:before{content:"\f0ca";}.fa-list-ol:before{content:"\f0cb";}.fa-strikethrough:before{content:"\f0cc";}.fa-underline:before{content:"\f0cd";}.fa-table:before{content:"\f0ce";}.fa-magic:before{content:"\f0d0";}.fa-truck:before{content:"\f0d1";}.fa-pinterest:before{content:"\f0d2";}.fa-pinterest-square:before{content:"\f0d3";}.fa-google-plus-square:before{content:"\f0d4";}.fa-google-plus:before{content:"\f0d5";}.fa-money:before{content:"\f0d6";}.fa-caret-down:before{content:"\f0d7";}.fa-caret-up:before{content:"\f0d8";}.fa-caret-left:before{content:"\f0d9";}.fa-caret-right:before{content:"\f0da";}.fa-columns:before{content:"\f0db";}.fa-unsorted:before,.fa-sort:before{content:"\f0dc";}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd";}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de";}.fa-envelope:before{content:"\f0e0";}.fa-linkedin:before{content:"\f0e1";}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2";}.fa-legal:before,.fa-gavel:before{content:"\f0e3";}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4";}.fa-comment-o:before{content:"\f0e5";}.fa-comments-o:before{content:"\f0e6";}.fa-flash:before,.fa-bolt:before{content:"\f0e7";}.fa-sitemap:before{content:"\f0e8";}.fa-umbrella:before{content:"\f0e9";}.fa-paste:before,.fa-clipboard:before{content:"\f0ea";}.fa-lightbulb-o:before{content:"\f0eb";}.fa-exchange:before{content:"\f0ec";}.fa-cloud-download:before{content:"\f0ed";}.fa-cloud-upload:before{content:"\f0ee";}.fa-user-md:before{content:"\f0f0";}.fa-stethoscope:before{content:"\f0f1";}.fa-suitcase:before{content:"\f0f2";}.fa-bell-o:before{content:"\f0a2";}.fa-coffee:before{content:"\f0f4";}.fa-cutlery:before{content:"\f0f5";}.fa-file-text-o:before{content:"\f0f6";}.fa-building-o:before{content:"\f0f7";}.fa-hospital-o:before{content:"\f0f8";}.fa-ambulance:before{content:"\f0f9";}.fa-medkit:before{content:"\f0fa";}.fa-fighter-jet:before{content:"\f0fb";}.fa-beer:before{content:"\f0fc";}.fa-h-square:before{content:"\f0fd";}.fa-plus-square:before{content:"\f0fe";}.fa-angle-double-left:before{content:"\f100";}.fa-angle-double-right:before{content:"\f101";}.fa-angle-double-up:before{content:"\f102";}.fa-angle-double-down:before{content:"\f103";}.fa-angle-left:before{content:"\f104";}.fa-angle-right:before{content:"\f105";}.fa-angle-up:before{content:"\f106";}.fa-angle-down:before{content:"\f107";}.fa-desktop:before{content:"\f108";}.fa-laptop:before{content:"\f109";}.fa-tablet:before{content:"\f10a";}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b";}.fa-circle-o:before{content:"\f10c";}.fa-quote-left:before{content:"\f10d";}.fa-quote-right:before{content:"\f10e";}.fa-spinner:before{content:"\f110";}.fa-circle:before{content:"\f111";}.fa-mail-reply:before,.fa-reply:before{content:"\f112";}.fa-github-alt:before{content:"\f113";}.fa-folder-o:before{content:"\f114";}.fa-folder-open-o:before{content:"\f115";}.fa-smile-o:before{content:"\f118";}.fa-frown-o:before{content:"\f119";}.fa-meh-o:before{content:"\f11a";}.fa-gamepad:before{content:"\f11b";}.fa-keyboard-o:before{content:"\f11c";}.fa-flag-o:before{content:"\f11d";}.fa-flag-checkered:before{content:"\f11e";}.fa-terminal:before{content:"\f120";}.fa-code:before{content:"\f121";}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122";}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123";}.fa-location-arrow:before{content:"\f124";}.fa-crop:before{content:"\f125";}.fa-code-fork:before{content:"\f126";}.fa-unlink:before,.fa-chain-broken:before{content:"\f127";}.fa-question:before{content:"\f128";}.fa-info:before{content:"\f129";}.fa-exclamation:before{content:"\f12a";}.fa-superscript:before{content:"\f12b";}.fa-subscript:before{content:"\f12c";}.fa-eraser:before{content:"\f12d";}.fa-puzzle-piece:before{content:"\f12e";}.fa-microphone:before{content:"\f130";}.fa-microphone-slash:before{content:"\f131";}.fa-shield:before{content:"\f132";}.fa-calendar-o:before{content:"\f133";}.fa-fire-extinguisher:before{content:"\f134";}.fa-rocket:before{content:"\f135";}.fa-maxcdn:before{content:"\f136";}.fa-chevron-circle-left:before{content:"\f137";}.fa-chevron-circle-right:before{content:"\f138";}.fa-chevron-circle-up:before{content:"\f139";}.fa-chevron-circle-down:before{content:"\f13a";}.fa-html5:before{content:"\f13b";}.fa-css3:before{content:"\f13c";}.fa-anchor:before{content:"\f13d";}.fa-unlock-alt:before{content:"\f13e";}.fa-bullseye:before{content:"\f140";}.fa-ellipsis-h:before{content:"\f141";}.fa-ellipsis-v:before{content:"\f142";}.fa-rss-square:before{content:"\f143";}.fa-play-circle:before{content:"\f144";}.fa-ticket:before{content:"\f145";}.fa-minus-square:before{content:"\f146";}.fa-minus-square-o:before{content:"\f147";}.fa-level-up:before{content:"\f148";}.fa-level-down:before{content:"\f149";}.fa-check-square:before{content:"\f14a";}.fa-pencil-square:before{content:"\f14b";}.fa-external-link-square:before{content:"\f14c";}.fa-share-square:before{content:"\f14d";}.fa-compass:before{content:"\f14e";}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150";}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151";}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152";}.fa-euro:before,.fa-eur:before{content:"\f153";}.fa-gbp:before{content:"\f154";}.fa-dollar:before,.fa-usd:before{content:"\f155";}.fa-rupee:before,.fa-inr:before{content:"\f156";}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157";}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158";}.fa-won:before,.fa-krw:before{content:"\f159";}.fa-bitcoin:before,.fa-btc:before{content:"\f15a";}.fa-file:before{content:"\f15b";}.fa-file-text:before{content:"\f15c";}.fa-sort-alpha-asc:before{content:"\f15d";}.fa-sort-alpha-desc:before{content:"\f15e";}.fa-sort-amount-asc:before{content:"\f160";}.fa-sort-amount-desc:before{content:"\f161";}.fa-sort-numeric-asc:before{content:"\f162";}.fa-sort-numeric-desc:before{content:"\f163";}.fa-thumbs-up:before{content:"\f164";}.fa-thumbs-down:before{content:"\f165";}.fa-youtube-square:before{content:"\f166";}.fa-youtube:before{content:"\f167";}.fa-xing:before{content:"\f168";}.fa-xing-square:before{content:"\f169";}.fa-youtube-play:before{content:"\f16a";}.fa-dropbox:before{content:"\f16b";}.fa-stack-overflow:before{content:"\f16c";}.fa-instagram:before{content:"\f16d";}.fa-flickr:before{content:"\f16e";}.fa-adn:before{content:"\f170";}.fa-bitbucket:before{content:"\f171";}.fa-bitbucket-square:before{content:"\f172";}.fa-tumblr:before{content:"\f173";}.fa-tumblr-square:before{content:"\f174";}.fa-long-arrow-down:before{content:"\f175";}.fa-long-arrow-up:before{content:"\f176";}.fa-long-arrow-left:before{content:"\f177";}.fa-long-arrow-right:before{content:"\f178";}.fa-apple:before{content:"\f179";}.fa-windows:before{content:"\f17a";}.fa-android:before{content:"\f17b";}.fa-linux:before{content:"\f17c";}.fa-dribbble:before{content:"\f17d";}.fa-skype:before{content:"\f17e";}.fa-foursquare:before{content:"\f180";}.fa-trello:before{content:"\f181";}.fa-female:before{content:"\f182";}.fa-male:before{content:"\f183";}.fa-gittip:before,.fa-gratipay:before{content:"\f184";}.fa-sun-o:before{content:"\f185";}.fa-moon-o:before{content:"\f186";}.fa-archive:before{content:"\f187";}.fa-bug:before{content:"\f188";}.fa-vk:before{content:"\f189";}.fa-weibo:before{content:"\f18a";}.fa-renren:before{content:"\f18b";}.fa-pagelines:before{content:"\f18c";}.fa-stack-exchange:before{content:"\f18d";}.fa-arrow-circle-o-right:before{content:"\f18e";}.fa-arrow-circle-o-left:before{content:"\f190";}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191";}.fa-dot-circle-o:before{content:"\f192";}.fa-wheelchair:before{content:"\f193";}.fa-vimeo-square:before{content:"\f194";}.fa-turkish-lira:before,.fa-try:before{content:"\f195";}.fa-plus-square-o:before{content:"\f196";}.fa-space-shuttle:before{content:"\f197";}.fa-slack:before{content:"\f198";}.fa-envelope-square:before{content:"\f199";}.fa-wordpress:before{content:"\f19a";}.fa-openid:before{content:"\f19b";}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c";}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d";}.fa-yahoo:before{content:"\f19e";}.fa-google:before{content:"\f1a0";}.fa-reddit:before{content:"\f1a1";}.fa-reddit-square:before{content:"\f1a2";}.fa-stumbleupon-circle:before{content:"\f1a3";}.fa-stumbleupon:before{content:"\f1a4";}.fa-delicious:before{content:"\f1a5";}.fa-digg:before{content:"\f1a6";}.fa-pied-piper:before{content:"\f1a7";}.fa-pied-piper-alt:before{content:"\f1a8";}.fa-drupal:before{content:"\f1a9";}.fa-joomla:before{content:"\f1aa";}.fa-language:before{content:"\f1ab";}.fa-fax:before{content:"\f1ac";}.fa-building:before{content:"\f1ad";}.fa-child:before{content:"\f1ae";}.fa-paw:before{content:"\f1b0";}.fa-spoon:before{content:"\f1b1";}.fa-cube:before{content:"\f1b2";}.fa-cubes:before{content:"\f1b3";}.fa-behance:before{content:"\f1b4";}.fa-behance-square:before{content:"\f1b5";}.fa-steam:before{content:"\f1b6";}.fa-steam-square:before{content:"\f1b7";}.fa-recycle:before{content:"\f1b8";}.fa-automobile:before,.fa-car:before{content:"\f1b9";}.fa-cab:before,.fa-taxi:before{content:"\f1ba";}.fa-tree:before{content:"\f1bb";}.fa-spotify:before{content:"\f1bc";}.fa-deviantart:before{content:"\f1bd";}.fa-soundcloud:before{content:"\f1be";}.fa-database:before{content:"\f1c0";}.fa-file-pdf-o:before{content:"\f1c1";}.fa-file-word-o:before{content:"\f1c2";}.fa-file-excel-o:before{content:"\f1c3";}.fa-file-powerpoint-o:before{content:"\f1c4";}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5";}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6";}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7";}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8";}.fa-file-code-o:before{content:"\f1c9";}.fa-vine:before{content:"\f1ca";}.fa-codepen:before{content:"\f1cb";}.fa-jsfiddle:before{content:"\f1cc";}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd";}.fa-circle-o-notch:before{content:"\f1ce";}.fa-ra:before,.fa-rebel:before{content:"\f1d0";}.fa-ge:before,.fa-empire:before{content:"\f1d1";}.fa-git-square:before{content:"\f1d2";}.fa-git:before{content:"\f1d3";}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4";}.fa-tencent-weibo:before{content:"\f1d5";}.fa-qq:before{content:"\f1d6";}.fa-wechat:before,.fa-weixin:before{content:"\f1d7";}.fa-send:before,.fa-paper-plane:before{content:"\f1d8";}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9";}.fa-history:before{content:"\f1da";}.fa-circle-thin:before{content:"\f1db";}.fa-header:before{content:"\f1dc";}.fa-paragraph:before{content:"\f1dd";}.fa-sliders:before{content:"\f1de";}.fa-share-alt:before{content:"\f1e0";}.fa-share-alt-square:before{content:"\f1e1";}.fa-bomb:before{content:"\f1e2";}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3";}.fa-tty:before{content:"\f1e4";}.fa-binoculars:before{content:"\f1e5";}.fa-plug:before{content:"\f1e6";}.fa-slideshare:before{content:"\f1e7";}.fa-twitch:before{content:"\f1e8";}.fa-yelp:before{content:"\f1e9";}.fa-newspaper-o:before{content:"\f1ea";}.fa-wifi:before{content:"\f1eb";}.fa-calculator:before{content:"\f1ec";}.fa-paypal:before{content:"\f1ed";}.fa-google-wallet:before{content:"\f1ee";}.fa-cc-visa:before{content:"\f1f0";}.fa-cc-mastercard:before{content:"\f1f1";}.fa-cc-discover:before{content:"\f1f2";}.fa-cc-amex:before{content:"\f1f3";}.fa-cc-paypal:before{content:"\f1f4";}.fa-cc-stripe:before{content:"\f1f5";}.fa-bell-slash:before{content:"\f1f6";}.fa-bell-slash-o:before{content:"\f1f7";}.fa-trash:before{content:"\f1f8";}.fa-copyright:before{content:"\f1f9";}.fa-at:before{content:"\f1fa";}.fa-eyedropper:before{content:"\f1fb";}.fa-paint-brush:before{content:"\f1fc";}.fa-birthday-cake:before{content:"\f1fd";}.fa-area-chart:before{content:"\f1fe";}.fa-pie-chart:before{content:"\f200";}.fa-line-chart:before{content:"\f201";}.fa-lastfm:before{content:"\f202";}.fa-lastfm-square:before{content:"\f203";}.fa-toggle-off:before{content:"\f204";}.fa-toggle-on:before{content:"\f205";}.fa-bicycle:before{content:"\f206";}.fa-bus:before{content:"\f207";}.fa-ioxhost:before{content:"\f208";}.fa-angellist:before{content:"\f209";}.fa-cc:before{content:"\f20a";}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b";}.fa-meanpath:before{content:"\f20c";}.fa-buysellads:before{content:"\f20d";}.fa-connectdevelop:before{content:"\f20e";}.fa-dashcube:before{content:"\f210";}.fa-forumbee:before{content:"\f211";}.fa-leanpub:before{content:"\f212";}.fa-sellsy:before{content:"\f213";}.fa-shirtsinbulk:before{content:"\f214";}.fa-simplybuilt:before{content:"\f215";}.fa-skyatlas:before{content:"\f216";}.fa-cart-plus:before{content:"\f217";}.fa-cart-arrow-down:before{content:"\f218";}.fa-diamond:before{content:"\f219";}.fa-ship:before{content:"\f21a";}.fa-user-secret:before{content:"\f21b";}.fa-motorcycle:before{content:"\f21c";}.fa-street-view:before{content:"\f21d";}.fa-heartbeat:before{content:"\f21e";}.fa-venus:before{content:"\f221";}.fa-mars:before{content:"\f222";}.fa-mercury:before{content:"\f223";}.fa-intersex:before,.fa-transgender:before{content:"\f224";}.fa-transgender-alt:before{content:"\f225";}.fa-venus-double:before{content:"\f226";}.fa-mars-double:before{content:"\f227";}.fa-venus-mars:before{content:"\f228";}.fa-mars-stroke:before{content:"\f229";}.fa-mars-stroke-v:before{content:"\f22a";}.fa-mars-stroke-h:before{content:"\f22b";}.fa-neuter:before{content:"\f22c";}.fa-genderless:before{content:"\f22d";}.fa-facebook-official:before{content:"\f230";}.fa-pinterest-p:before{content:"\f231";}.fa-whatsapp:before{content:"\f232";}.fa-server:before{content:"\f233";}.fa-user-plus:before{content:"\f234";}.fa-user-times:before{content:"\f235";}.fa-hotel:before,.fa-bed:before{content:"\f236";}.fa-viacoin:before{content:"\f237";}.fa-train:before{content:"\f238";}.fa-subway:before{content:"\f239";}.fa-medium:before{content:"\f23a";}.fa-yc:before,.fa-y-combinator:before{content:"\f23b";}.fa-optin-monster:before{content:"\f23c";}.fa-opencart:before{content:"\f23d";}.fa-expeditedssl:before{content:"\f23e";}.fa-battery-4:before,.fa-battery-full:before{content:"\f240";}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241";}.fa-battery-2:before,.fa-battery-half:before{content:"\f242";}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243";}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244";}.fa-mouse-pointer:before{content:"\f245";}.fa-i-cursor:before{content:"\f246";}.fa-object-group:before{content:"\f247";}.fa-object-ungroup:before{content:"\f248";}.fa-sticky-note:before{content:"\f249";}.fa-sticky-note-o:before{content:"\f24a";}.fa-cc-jcb:before{content:"\f24b";}.fa-cc-diners-club:before{content:"\f24c";}.fa-clone:before{content:"\f24d";}.fa-balance-scale:before{content:"\f24e";}.fa-hourglass-o:before{content:"\f250";}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251";}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252";}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253";}.fa-hourglass:before{content:"\f254";}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255";}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256";}.fa-hand-scissors-o:before{content:"\f257";}.fa-hand-lizard-o:before{content:"\f258";}.fa-hand-spock-o:before{content:"\f259";}.fa-hand-pointer-o:before{content:"\f25a";}.fa-hand-peace-o:before{content:"\f25b";}.fa-trademark:before{content:"\f25c";}.fa-registered:before{content:"\f25d";}.fa-creative-commons:before{content:"\f25e";}.fa-gg:before{content:"\f260";}.fa-gg-circle:before{content:"\f261";}.fa-tripadvisor:before{content:"\f262";}.fa-odnoklassniki:before{content:"\f263";}.fa-odnoklassniki-square:before{content:"\f264";}.fa-get-pocket:before{content:"\f265";}.fa-wikipedia-w:before{content:"\f266";}.fa-safari:before{content:"\f267";}.fa-chrome:before{content:"\f268";}.fa-firefox:before{content:"\f269";}.fa-opera:before{content:"\f26a";}.fa-internet-explorer:before{content:"\f26b";}.fa-tv:before,.fa-television:before{content:"\f26c";}.fa-contao:before{content:"\f26d";}.fa-500px:before{content:"\f26e";}.fa-amazon:before{content:"\f270";}.fa-calendar-plus-o:before{content:"\f271";}.fa-calendar-minus-o:before{content:"\f272";}.fa-calendar-times-o:before{content:"\f273";}.fa-calendar-check-o:before{content:"\f274";}.fa-industry:before{content:"\f275";}.fa-map-pin:before{content:"\f276";}.fa-map-signs:before{content:"\f277";}.fa-map-o:before{content:"\f278";}.fa-map:before{content:"\f279";}.fa-commenting:before{content:"\f27a";}.fa-commenting-o:before{content:"\f27b";}.fa-houzz:before{content:"\f27c";}.fa-vimeo:before{content:"\f27d";}.fa-black-tie:before{content:"\f27e";}.fa-fonticons:before{content:"\f280";}body{background-color:#FAFCFF;padding-top:40px;color:#868688;font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;}.transparent{opacity:0;}.opaque{opacity:1;}header nav{min-height:40px;background-color:#ECEEF1;border-bottom:2px solid #868688;}header nav.navbar-absolute-top{position:absolute;top:0;left:0;right:0;}header nav a{color:#868688;}header nav a:hover{color:#606062;text-decoration:none;}header nav ul{list-style:none;}header nav .nav-header{position:absolute;top:0;left:0;}header nav .logo{line-height:40px;float:left;height:40px;padding:5px;}header nav .logo h1{height:30px;width:50px;background-image:url('../images/logo.png');background-size:cover;text-indent:-99999px;margin:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;}@media (min-width: 650px){header nav .logo h1:hover{width:214px;}}header nav .nav-links{text-align:center;font-size:1.25em;line-height:40px;}@media (max-width: 320px){header nav .nav-links{text-align:right;padding-right:5px;}}header nav .nav-links ul{margin:0;padding:0;}header nav .nav-links li{display:inline;margin-right:40px;}header nav .nav-links li:last-child{margin-right:0;}@media (max-width: 360px){header nav .nav-links li{margin-right:10px;}}header nav .nav-other{position:absolute;right:0;top:0;font-size:2.5em;line-height:40px;padding-right:5px;}@media (max-width: 320px){header nav .nav-other{display:none;}}.affix{top:0;left:0;}.affixed-sidebar{font-size:1.4em;margin-top:40px;padding:30px;}.affixed-sidebar ul li ul li a{font-size:0.8em;padding-left:2em;}.affixed-sidebar a{display:block;border-left:2px solid #FAFCFF;}.affixed-sidebar .active>a,.affixed-sidebar a:hover{border-left:2px solid #66A8CC;}.button{border-radius:4px;padding:10px 30px;height:auto;}@media (max-width: 360px){.button{width:100%;margin-bottom:5px;}}.button.gray{background-color:#868688;border-color:#606062;color:#FAFCFF;}.button.gray:hover{background-color:#606062;}.button.blue{background-color:#66A8CC;border-color:#3984ac;color:#FAFCFF;}.button.blue:hover{background-color:#3984ac;}.button.white{background-color:#FAFCFF;border-color:#aecfff;color:#868688;}.button.white:hover{background-color:#aecfff;}section{padding:30px;}section .title{margin-top:0;}footer{background-color:#868688;color:#FAFCFF;min-height:40px;height:auto;line-height:20px;padding:10px 20px;}footer:after{content:"";display:table;clear:both;}footer a{color:#ECEEF1;}footer a:hover{color:#cfd4db;}footer .copyright{float:left;width:50%;}footer .other-links{margin:0;padding:0;float:right;}@media (max-width: 360px){footer .other-links{float:none;text-align:center;}}footer .other-links li{display:inline;}.hljs{display:block;overflow-x:auto;padding:0.5em;color:#333;background:#f8f8f8;-webkit-text-size-adjust:none;}.hljs-comment,.diff .hljs-header,.hljs-javadoc{color:#998;font-style:italic;}.hljs-keyword,.css .rule .hljs-keyword,.hljs-winutils,.nginx .hljs-title,.hljs-subst,.hljs-request,.hljs-status{color:#333;font-weight:bold;}.hljs-number,.hljs-hexcolor,.ruby .hljs-constant{color:#008080;}.hljs-string,.hljs-tag .hljs-value,.hljs-phpdoc,.hljs-dartdoc,.tex .hljs-formula{color:#d14;}.hljs-title,.hljs-id,.scss .hljs-preprocessor{color:#900;font-weight:bold;}.hljs-list .hljs-keyword,.hljs-subst{font-weight:normal;}.hljs-class .hljs-title,.hljs-type,.vhdl .hljs-literal,.tex .hljs-command{color:#458;font-weight:bold;}.hljs-tag,.hljs-tag .hljs-title,.hljs-rule .hljs-property,.django .hljs-tag .hljs-keyword{color:#000080;font-weight:normal;}.hljs-attribute,.hljs-variable,.lisp .hljs-body,.hljs-name{color:#008080;}.hljs-regexp{color:#009926;}.hljs-symbol,.ruby .hljs-symbol .hljs-string,.lisp .hljs-keyword,.clojure .hljs-keyword,.scheme .hljs-keyword,.tex .hljs-special,.hljs-prompt{color:#990073;}.hljs-built_in{color:#0086b3;}.hljs-preprocessor,.hljs-pragma,.hljs-pi,.hljs-doctype,.hljs-shebang,.hljs-cdata{color:#999;font-weight:bold;}.hljs-deletion{background:#fdd;}.hljs-addition{background:#dfd;}.diff .hljs-change{background:#0086b3;}.hljs-chunk{color:#aaa;}.main-preview-player{margin:0 auto;text-align:center;max-width:1920px;}.main-preview-player .button{text-transform:uppercase;}#btn-use-now{margin-right:20px;}#preview-player{margin:0 auto 30px;width:100%;padding-top:41.5625%;}.videojs-hero-overlay{position:absolute;text-align:center;top:37.5%;left:0;width:100%;margin:0;padding:0;background-color:rgba(250, 252, 255, 0.95);color:#757A7D;font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-transition:opacity 0.2s;transition:opacity 0.2s;}.videojs-hero-overlay .videojs-hero{margin:3% 2% 1%;}.videojs-hero-overlay .videojs-hero img.logo{width:30%;margin:0 auto;display:block;}.videojs-hero-overlay .videojs-hero .subhead{font-size:1.25vw;margin:1%;vertical-align:middle;line-height:1.5vw;}.videojs-hero-overlay .videojs-hero a{line-height:3.5vw;}.videojs-hero-overlay .videojs-hero img.npm-badge{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Greyscale=1)";-webkit-filter:grayscale(1);-moz-filter:grayscale(1);filter:grayscale(1);height:1.25vw;}.used-by{background-color:#ECEEF1;text-align:center;}.used-by ul{padding:0;margin:0;list-style:none;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;}.used-by li{width:200px;height:150px;margin:10px 10px 0 0;line-height:150px;color:white;font-weight:bold;text-align:center;}.used-by li img{max-width:75%;max-height:70%;-webkit-filter:grayscale(1);filter:grayscale(1);-webkit-transition:all 0.4s;transition:all 0.4s;}.used-by li img:hover{-webkit-filter:grayscale(0);filter:grayscale(0);}.sponsors{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-align-content:stretch;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;}.sponsor{background:#fff;padding:20px;margin:10px;-webkit-flex:1 1 200px;-ms-flex:1 1 200px;flex:1 1 200px;}.sponsor h3{margin-top:0;margin-bottom:30px;}.sponsor p{font-size:1.2em;line-height:1.75;}.shepherd{-webkit-flex-grow:4;-ms-flex-positive:4;flex-grow:4;}.shepherd .logo{height:200px;width:auto;float:left;margin:20px 50px 10px 0;}@media (max-width: 480px){.shepherd .logo{width:100%;height:auto;}}.cdn{text-align:center;}.cdn h3{text-align:left;}.cdn .logo{width:80%;}.overview{background-color:#66A8CC;color:#FAFCFF;}.overview h1{font-size:4em;}.overview p{font-size:1.2em;}.overview a{color:#FAFCFF;text-decoration:underline;}.overview a:hover{color:#c7deff;}.gallery-items{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-align-content:stretch;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;}.gallery .gallery-item{background:#fff;margin:10px;-webkit-flex:1 1 320px;-ms-flex:1 1 320px;flex:1 1 320px;text-align:center;padding:20px;}.gallery-item .gallery-item-wrapper{position:relative;width:100%;padding-bottom:56.25%;padding-top:25px;height:0;background:transparent;}.gallery-item .gallery-item-wrapper.guardian-fix{padding-bottom:49.25%;margin-bottom:7%;}.gallery-item-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%;}.gallery .gallery-item img{margin-top:25px;max-width:75%;max-height:70%;-webkit-filter:grayscale(1);filter:grayscale(1);-webkit-transition:all 0.4s;transition:all 0.4s;}.gallery .gallery-item img:hover{-webkit-filter:grayscale(0);filter:grayscale(0);}#plugin-container{margin-top:20px;}.plugin .panel-title span{margin-left:10px;}.plugin-nav{border-top:thin solid #868688;}.plugin-list-empty{min-height:200px;}.video-js.plugin-preview-player{margin:0 auto 30px;width:100%;padding-top:41.5625%;}.plugin-info{padding:0;margin:5px;list-style-type:none;}.plugin-readme h1{margin-bottom:20px;}#html5-video-support_index #no-js-support{text-align:center;}#html5-video-support_index .my-browser-support{margin-bottom:20px;}#html5-video-support_index table.html5-support th,#html5-video-support_index table.html5-support td{text-align:center;}#html5-video-support_index table.html5-support th{font-weight:bold;background-color:#eeeeee;}#html5-video-support_index table.html5-support td{width:33.333%;}#html5-video-support_index table.html5-support li{display:inline;}#html5-video-support_index table.html5-support .tooltip-arrow{display:none;}#html5-video-support_index table.html5-support .tooltip-inner{background-color:#3da2d9;}
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ar.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ar.vtt new file mode 100644 index 0000000..a68a442 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ar.vtt @@ -0,0 +1,330 @@ +WEBVTT + +1 +00:00:15.042 --> 00:00:18.625 +...إلى... إلى الشمال يمكن أن نرى +...يمكن أن نرى الـ + +2 +00:00:18.750 --> 00:00:20.958 +...إلى اليمين يمكن أن نرى الـ + +3 +00:00:21.000 --> 00:00:23.125 +طاحنات الرؤوس... + +4 +00:00:23.208 --> 00:00:25.208 +كل شيئ آمن +آمن كلية + +5 +00:00:26.333 --> 00:00:28.333 +إيمو ؟ + +6 +00:00:28.875 --> 00:00:30.958 +! حذاري + +7 +00:00:47.125 --> 00:00:49.167 +هل أصبت ؟ + +8 +00:00:52.125 --> 00:00:54.833 +...لا أظن ذلك +وأنت ؟ + +9 +00:00:55.625 --> 00:00:57.625 +أنا بخير + +10 +00:00:57.667 --> 00:01:01.667 +،قم يا إيمو +المكان هنا غير آمن + +11 +00:01:02.208 --> 00:01:04.083 +لنذهب + +12 +00:01:04.167 --> 00:01:06.167 +وماذا بعد ؟ + +13 +00:01:06.167 --> 00:01:08.583 +...سترى... سترى + +14 +00:01:16.167 --> 00:01:18.375 +إيمو، من هنا + +15 +00:01:34.958 --> 00:01:37.000 +! إتبعني + +16 +00:02:11.125 --> 00:02:13.625 +! أسرع يا إيمو + +17 +00:02:48.375 --> 00:02:50.375 +! لست منتبها + +18 +00:02:50.750 --> 00:02:54.500 +...أريد فقط أن أجيب الـ +الهاتف... + +19 +00:02:55.000 --> 00:02:58.500 +،إيمو، أنظر +أقصد أنصت + +20 +00:02:59.750 --> 00:03:03.292 +عليك أن تتعلم الإصغاء + +21 +00:03:03.625 --> 00:03:05.917 +هذا ليس ضربا من اللهو + +22 +00:03:06.083 --> 00:03:09.958 +...إنك +أقصد إننا قد نموت بسهولة في هذا المكان + +23 +00:03:10.208 --> 00:03:14.125 +...أنصت +أنصت إلى أصوات الآلة + +24 +00:03:18.333 --> 00:03:20.417 +أنصت إلى نَفَسِك + +25 +00:04:27.208 --> 00:04:29.250 +ألا تمل أبدا من هذا ؟ + +26 +00:04:29.583 --> 00:04:31.583 +أمل ؟!؟ +نعم - + +27 +00:04:31.750 --> 00:04:34.667 +إيمو؛ الآلة في دقتها... مثل الساعة + +28 +00:04:35.500 --> 00:04:37.708 +...حركة ناشزة واحدة قد + +29 +00:04:37.833 --> 00:04:39.875 +تطرحك معجونا + +30 +00:04:41.042 --> 00:04:43.083 +...أو ليست + +31 +00:04:43.125 --> 00:04:46.542 +! عجينة يا إيمو +أ هذا ما تريد ؟ أن تصبح عجينة ؟ + +32 +00:04:48.083 --> 00:04:50.083 +أيمو، أ هذا هدفك في الحياة ؟ + +33 +00:04:50.583 --> 00:04:52.667 +أن تصير عجينة ؟ + +34 +00:05:41.833 --> 00:05:43.875 +إيمو، أغمض عينيك + +35 +00:05:44.917 --> 00:05:47.000 +لماذا ؟ +! الآن - + +36 +00:05:53.750 --> 00:05:56.042 +حسن + +37 +00:05:59.542 --> 00:06:02.792 +ماذا ترى إلى شمالك يا إيمو ؟ + +38 +00:06:04.417 --> 00:06:06.500 +لا شيئ +حقا ؟ - + +39 +00:06:06.542 --> 00:06:08.625 +لا، لا شيئ البتة + +40 +00:06:08.625 --> 00:06:12.417 +وماذا ترى إلى جهتك اليمنى يا إيمو ؟ + +41 +00:06:13.667 --> 00:06:17.833 +،نفس الشيئ يا بروغ +! نفس الشيئ بالضبط؛ لا شيئ + +42 +00:06:17.875 --> 00:06:19.917 +عظيم + +43 +00:06:40.625 --> 00:06:42.958 +أنصت يا بروغ ! هل تسمع ذلك ؟ + +44 +00:06:43.625 --> 00:06:45.625 +هل نستطيع الذهاب إلى هناك ؟ + +45 +00:06:45.708 --> 00:06:47.792 +هناك ؟ +نعم - + +46 +00:06:47.833 --> 00:06:49.833 +إنه غير آمن يا إيمو + +47 +00:06:49.917 --> 00:06:52.500 +صدقني، إنه غير آمن + +48 +00:06:53.292 --> 00:06:55.375 +...لكن لعلي أستطيع + +49 +00:06:55.417 --> 00:06:57.417 +...لكن +! لا - + +50 +00:06:57.667 --> 00:06:59.667 +! لا + +51 +00:07:00.875 --> 00:07:03.750 +هل من أسئلة أخرى يا إيمو ؟ + +52 +00:07:04.250 --> 00:07:06.333 +لا + +53 +00:07:09.458 --> 00:07:11.542 +...إيمو +نعم - + +54 +00:07:11.875 --> 00:07:13.958 +...لماذا يا إيمو... لماذا + +55 +00:07:15.292 --> 00:07:18.792 +لماذا لا تستطيع أن ترى حُسْن هذا المكان + +56 +00:07:18.833 --> 00:07:20.833 +...والطريقة التي يعمل بها + +57 +00:07:20.875 --> 00:07:24.000 +وكيف... وكيف أنه غاية في الكمال + +58 +00:07:24.083 --> 00:07:27.417 +! لا يا بروغ، لا أرى ذلك + +59 +00:07:27.542 --> 00:07:30.333 +لا أرى ذلك لأنه لا يوجد شيئ هناك + +60 +00:07:31.500 --> 00:07:35.333 +ثم لماذا يجب علي أن أسلم حياتي +لشيئ لا وجود له ؟ + +61 +00:07:35.583 --> 00:07:37.625 +هل يمكنك أن تخبرني ؟ + +62 +00:07:37.708 --> 00:07:39.750 +! أجبني + +63 +00:07:43.208 --> 00:07:47.333 +...بروغ +! أنت معتوه يا هذا + +64 +00:07:47.375 --> 00:07:49.417 +! إبعد عني + +65 +00:07:52.583 --> 00:07:55.083 +! لا يا إيمو ! إنه فخ + +66 +00:07:55.833 --> 00:07:57.875 +...إنه فخ + +67 +00:07:57.917 --> 00:08:01.750 +إلى جنبك الأيسر يمكنك أن ترى +حدائق بابل المعلقة + +68 +00:08:02.250 --> 00:08:04.292 +هل تعجبك كفخ ؟ + +69 +00:08:05.458 --> 00:08:07.542 +لا يا أيمو + +70 +00:08:09.417 --> 00:08:12.792 +...إلى جنبك الأيمن يمكنك رؤية +حزر ماذا ؟ + +71 +00:08:13.000 --> 00:08:15.042 +! عملاق رودس + +72 +00:08:15.125 --> 00:08:16.417 +! لا + +73 +00:08:16.458 --> 00:08:20.500 +،عملاق رودس +وهو هنا خصيصا من أجلك يا بروغ + +74 +00:08:20.583 --> 00:08:22.583 +فقط من أجلك + +75 +00:08:51.333 --> 00:08:53.375 +إنه هناك + +76 +00:08:53.417 --> 00:08:55.500 +أنا أؤكد لك... إيمو + +77 +00:08:57.333 --> 00:09:00.000 +...إنه diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.en.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.en.vtt new file mode 100644 index 0000000..8b83d28 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.en.vtt @@ -0,0 +1,334 @@ +WEBVTT + +1 +00:00:15.000 --> 00:00:17.951 +At the left we can see... + +2 +00:00:18.166 --> 00:00:20.083 +At the right we can see the... + +3 +00:00:20.119 --> 00:00:21.962 +...the head-snarlers + +4 +00:00:21.999 --> 00:00:24.368 +Everything is safe. +Perfectly safe. + +5 +00:00:24.582 --> 00:00:27.035 +Emo? + +6 +00:00:28.206 --> 00:00:29.996 +Watch out! + +7 +00:00:47.037 --> 00:00:48.494 +Are you hurt? + +8 +00:00:51.994 --> 00:00:53.949 +I don't think so. +You? + +9 +00:00:55.160 --> 00:00:56.985 +I'm Ok. + +10 +00:00:57.118 --> 00:01:01.111 +Get up. +Emo. it's not safe here. + +11 +00:01:02.034 --> 00:01:03.573 +Let's go. + +12 +00:01:03.610 --> 00:01:05.114 +What's next? + +13 +00:01:05.200 --> 00:01:09.146 +You'll see! + +14 +00:01:16.032 --> 00:01:18.022 +Emo. +This way. + +15 +00:01:34.237 --> 00:01:35.481 +Follow me! + +16 +00:02:11.106 --> 00:02:12.480 +Hurry Emo! + +17 +00:02:48.059 --> 00:02:49.930 +You're not paying attention! + +18 +00:02:50.142 --> 00:02:54.052 +I just want to answer the... +...phone. + +19 +00:02:54.974 --> 00:02:57.972 +Emo. look. +I mean listen. + +20 +00:02:59.140 --> 00:03:02.008 +You have to learn to listen. + +21 +00:03:03.140 --> 00:03:04.965 +This is not some game. + +22 +00:03:05.056 --> 00:03:09.345 +You. I mean we. +we could easily die out here. + +23 +00:03:10.014 --> 00:03:13.959 +Listen. +listen to the sounds of the machine. + +24 +00:03:18.054 --> 00:03:20.009 +Listen to your breathing. + +25 +00:04:27.001 --> 00:04:28.956 +Well. don't you ever get tired of this? + +26 +00:04:29.084 --> 00:04:30.909 +Tired?!? + +27 +00:04:31.126 --> 00:04:34.491 +Emo. the machine is like clockwork. + +28 +00:04:35.083 --> 00:04:37.074 +One move out of place... + +29 +00:04:37.166 --> 00:04:39.121 +...and you're ground to a pulp. + +30 +00:04:40.958 --> 00:04:42.004 +But isn't it - + +31 +00:04:42.041 --> 00:04:46.034 +Pulp. Emo! +Is that what you want. pulp? + +32 +00:04:47.040 --> 00:04:48.995 +Emo. your goal in life... + +33 +00:04:50.081 --> 00:04:51.953 +...pulp? + +34 +00:05:41.156 --> 00:05:43.028 +Emo. close your eyes. + +35 +00:05:44.156 --> 00:05:46.027 +Why? +- Now! + +36 +00:05:51.155 --> 00:05:52.102 +Ok. + +37 +00:05:53.113 --> 00:05:54.688 +Good. + +38 +00:05:59.070 --> 00:06:02.103 +What do you see at your left side. Emo? + +39 +00:06:04.028 --> 00:06:05.899 +Nothing. +- Really? + +40 +00:06:06.027 --> 00:06:07.105 +No. nothing at all. + +41 +00:06:07.944 --> 00:06:11.984 +And at your right. +what do you see at your right side. Emo? + +42 +00:06:13.151 --> 00:06:16.102 +The same Proog. exactly the same... + +43 +00:06:16.942 --> 00:06:19.098 +...nothing! +- Great. + +44 +00:06:40.105 --> 00:06:42.724 +Listen Proog! Do you hear that! + +45 +00:06:43.105 --> 00:06:44.894 +Can we go here? + +46 +00:06:44.979 --> 00:06:47.894 +There? +It isn't safe. Emo. + +47 +00:06:49.145 --> 00:06:52.013 +But... +- Trust me. it's not. + +48 +00:06:53.020 --> 00:06:54.145 +Maybe I could... + +49 +00:06:54.181 --> 00:06:55.969 +No. + +50 +00:06:57.102 --> 00:06:59.934 +NO! + +51 +00:07:00.144 --> 00:07:03.058 +Any further questions. Emo? + +52 +00:07:03.976 --> 00:07:05.090 +No. + +53 +00:07:09.059 --> 00:07:10.089 +Emo? + +54 +00:07:11.142 --> 00:07:13.058 +Emo. why... + +55 +00:07:13.095 --> 00:07:14.022 +Emo... + +56 +00:07:14.058 --> 00:07:18.003 +...why can't you see +the beauty of this place? + +57 +00:07:18.141 --> 00:07:20.048 +The way it works. + +58 +00:07:20.140 --> 00:07:23.895 +How perfect it is. + +59 +00:07:23.932 --> 00:07:26.964 +No. Proog. I don't see. + +60 +00:07:27.056 --> 00:07:29.970 +I don't see because there's nothing there. + +61 +00:07:31.055 --> 00:07:34.965 +And why should I trust my +life to something that isn't there? + +62 +00:07:35.055 --> 00:07:36.926 +Well can you tell me that? + +63 +00:07:37.054 --> 00:07:38.926 +Answer me! + +64 +00:07:42.970 --> 00:07:44.000 +Proog... + +65 +00:07:45.053 --> 00:07:46.985 +...you're a sick man! + +66 +00:07:47.022 --> 00:07:48.918 +Stay away from me! + +67 +00:07:52.052 --> 00:07:54.884 +No! Emo! It's a trap! + +68 +00:07:55.135 --> 00:07:56.931 +Hah. it's a trap. + +69 +00:07:56.968 --> 00:08:01.043 +At the left side you can see +the hanging gardens of Babylon! + +70 +00:08:01.967 --> 00:08:03.957 +How's that for a trap? + +71 +00:08:05.050 --> 00:08:06.922 +No. Emo. + +72 +00:08:09.008 --> 00:08:12.088 +At the right side you can see... +...well guess what... + +73 +00:08:12.924 --> 00:08:14.665 +...the colossus of Rhodes! + +74 +00:08:15.132 --> 00:08:16.053 +No! + +75 +00:08:16.090 --> 00:08:21.919 +The colossus of Rhodes +and it is here just for you Proog. + +76 +00:08:51.001 --> 00:08:52.923 +It is there... + +77 +00:08:52.959 --> 00:08:56.040 +I'm telling you. +Emo... + +78 +00:08:57.000 --> 00:08:59.867 +...it is.
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ja.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ja.vtt new file mode 100644 index 0000000..4058648 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ja.vtt @@ -0,0 +1,326 @@ +WEBVTT + +1 +00:00:15.042 --> 00:00:18.042 +左に見えるのは… + +2 +00:00:18.750 --> 00:00:20.333 +右に見えるのは… + +3 +00:00:20.417 --> 00:00:21.917 +…首刈り機 + +4 +00:00:22.000 --> 00:00:24.625 +すべて安全 +完璧に安全だ + +5 +00:00:26.333 --> 00:00:27.333 +イーモ? + +6 +00:00:28.875 --> 00:00:30.250 +危ない! + +7 +00:00:47.125 --> 00:00:48.250 +ケガはないか? + +8 +00:00:51.917 --> 00:00:53.917 +ええ、多分… +あなたは? + +9 +00:00:55.625 --> 00:00:57.125 +わしは平気だ + +10 +00:00:57.583 --> 00:01:01.667 +起きてくれイーモ +ここは危ない + +11 +00:01:02.208 --> 00:01:03.667 +行こう + +12 +00:01:03.750 --> 00:01:04.917 +どこに? + +13 +00:01:05.875 --> 00:01:07.875 +すぐにわかるさ! + +14 +00:01:16.167 --> 00:01:18.375 +イーモ、こっちだ + +15 +00:01:34.958 --> 00:01:36.958 +ついて来るんだ! + +16 +00:02:11.583 --> 00:02:12.792 +イーモ、早く! + +17 +00:02:48.375 --> 00:02:50.083 +むやみにさわるな! + +18 +00:02:50.750 --> 00:02:54.500 +僕はただ、電話に +…出ようと + +19 +00:02:55.000 --> 00:02:58.208 +イーモ、見るんだ… +いや、聞いてくれ + +20 +00:02:59.750 --> 00:03:02.292 +君は「聞き方」を知る必要がある + +21 +00:03:03.625 --> 00:03:05.125 +これは遊びじゃない + +22 +00:03:06.167 --> 00:03:10.417 +我々はここでは +たやすく死ぬ + +23 +00:03:11.208 --> 00:03:14.125 +機械の声を聞くんだ + +24 +00:03:18.333 --> 00:03:22.417 +君の息づかいを聞くんだ + +25 +00:04:27.208 --> 00:04:29.250 +そんなことして疲れない? + +26 +00:04:29.583 --> 00:04:31.083 +疲れる?! + +27 +00:04:31.750 --> 00:04:34.667 +この機械は非常に正確で + +28 +00:04:35.500 --> 00:04:37.708 +一つ間違えば… + +29 +00:04:37.833 --> 00:04:40.792 +…地面に落ちてバラバラだ + +30 +00:04:41.042 --> 00:04:42.375 +え、でも― + +31 +00:04:42.417 --> 00:04:46.542 +バラバラだぞ、イーモ! +それでいいのか? + +32 +00:04:48.083 --> 00:04:50.000 +バラバラで死ぬんだぞ? + +33 +00:04:50.583 --> 00:04:52.250 +バラバラだ! + +34 +00:05:41.833 --> 00:05:43.458 +イーモ、目を閉じるんだ + +35 +00:05:44.917 --> 00:05:46.583 +なぜ? +―早く! + +36 +00:05:53.750 --> 00:05:56.042 +それでいい + +37 +00:05:59.542 --> 00:06:03.792 +左に見えるものは何だ、イーモ? + +38 +00:06:04.417 --> 00:06:06.000 +え…何も +―本当か? + +39 +00:06:06.333 --> 00:06:07.917 +全く何も + +40 +00:06:08.042 --> 00:06:12.833 +では右は +何か見えるか、イーモ? + +41 +00:06:13.875 --> 00:06:16.917 +同じだよプルーグ、全く同じ… + +42 +00:06:17.083 --> 00:06:18.583 +何もない! + +43 +00:06:40.625 --> 00:06:43.208 +プルーグ!何か聞こえない? + +44 +00:06:43.625 --> 00:06:45.042 +あそこに行かないか? + +45 +00:06:45.208 --> 00:06:48.042 +あそこ? +…安全じゃない + +46 +00:06:49.917 --> 00:06:52.500 +でも… +―本当に危ないぞ + +47 +00:06:53.292 --> 00:06:54.792 +大丈夫だよ… + +48 +00:06:54.833 --> 00:06:56.333 +だめだ + +49 +00:06:57.667 --> 00:07:00.167 +だめだ! + +50 +00:07:00.875 --> 00:07:03.750 +まだ続ける気か、イーモ? + +51 +00:07:04.250 --> 00:07:05.917 +いいえ… + +52 +00:07:09.458 --> 00:07:10.833 +イーモ? + +53 +00:07:11.875 --> 00:07:13.542 +イーモ、なぜ… + +54 +00:07:13.583 --> 00:07:14.458 +イーモ… + +55 +00:07:14.500 --> 00:07:18.500 +…なぜここの美しさが +見えない? + +56 +00:07:18.833 --> 00:07:20.750 +仕組みがこんなに… + +57 +00:07:20.875 --> 00:07:24.000 +こんなに完全なのに + +58 +00:07:24.083 --> 00:07:27.417 +もういいよ!プルーグ! + +59 +00:07:27.542 --> 00:07:30.333 +そこには何もないんだから + +60 +00:07:31.500 --> 00:07:35.333 +なぜ命を「ない」物に +ゆだねなきゃ? + +61 +00:07:35.583 --> 00:07:37.125 +教えてくれないか? + +62 +00:07:37.500 --> 00:07:39.167 +さあ! + +63 +00:07:43.208 --> 00:07:44.583 +プルーグ… + +64 +00:07:45.500 --> 00:07:47.333 +あなたは病気なんだ + +65 +00:07:47.375 --> 00:07:49.208 +僕から離れてくれ + +66 +00:07:52.583 --> 00:07:55.083 +いかん!イーモ!ワナだ! + +67 +00:07:55.833 --> 00:07:57.167 +ワナだ? ふーん + +68 +00:07:57.208 --> 00:08:01.750 +左に何が見える? +バビロンの空中庭園! + +69 +00:08:02.250 --> 00:08:04.292 +これがワナとでも? + +70 +00:08:05.458 --> 00:08:07.125 +だめだ、イーモ + +71 +00:08:09.417 --> 00:08:12.792 +右にあるのは… +…すごい!… + +72 +00:08:13.000 --> 00:08:14.750 +…ロードス島の巨像だ! + +73 +00:08:15.833 --> 00:08:16.708 +やめろ! + +74 +00:08:16.750 --> 00:08:22.167 +この巨像はあなたの物 +プルーグ、あなたのだよ + +75 +00:08:51.333 --> 00:08:53.167 +いってるじゃないか… + +76 +00:08:53.208 --> 00:08:55.500 +そこにあるって、イーモ… + +77 +00:08:57.333 --> 00:09:00.000 +…あるって
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ru.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ru.vtt new file mode 100644 index 0000000..aee7e49 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.ru.vtt @@ -0,0 +1,356 @@ +WEBVTT + +1 +00:00:14.958 --> 00:00:17.833 +Слева мы видим... + +2 +00:00:18.458 --> 00:00:20.208 +справа мы видим... + +3 +00:00:20.333 --> 00:00:21.875 +...голово-клацов. + +4 +00:00:22.000 --> 00:00:24.583 +всё в порядке. +в полном порядке. + +5 +00:00:26.333 --> 00:00:27.333 +Имо? + +6 +00:00:28.833 --> 00:00:30.250 +Осторожно! + +7 +00:00:47.125 --> 00:00:48.250 +Ты не ранен? + +8 +00:00:51.875 --> 00:00:53.875 +Вроде нет... +а ты? + +9 +00:00:55.583 --> 00:00:57.125 +Я в порядке. + +10 +00:00:57.542 --> 00:01:01.625 +Вставай. +Имо. здесь не безопасно. + +11 +00:01:02.208 --> 00:01:03.625 +Пойдём. + +12 +00:01:03.708 --> 00:01:05.708 +Что дальше? + +13 +00:01:05.833 --> 00:01:07.833 +Ты увидишь! + +14 +00:01:08.000 --> 00:01:08.833 +Ты увидишь... + +15 +00:01:16.167 --> 00:01:18.375 +Имо. сюда. + +16 +00:01:34.917 --> 00:01:35.750 +За мной! + +17 +00:02:11.542 --> 00:02:12.750 +Имо. быстрее! + +18 +00:02:48.375 --> 00:02:50.083 +Ты не обращаешь внимания! + +19 +00:02:50.708 --> 00:02:54.500 +Я только хотел ответить на ... +...звонок. + +20 +00:02:55.000 --> 00:02:58.208 +Имо. смотри. +то есть слушай... + +21 +00:02:59.708 --> 00:03:02.292 +Ты должен учиться слушать. + +22 +00:03:03.250 --> 00:03:05.333 +Это не какая-нибудь игра. + +23 +00:03:06.000 --> 00:03:08.833 +Ты. вернее мы. легко можем погибнуть здесь. + +24 +00:03:10.000 --> 00:03:11.167 +Слушай... + +25 +00:03:11.667 --> 00:03:14.125 +слушай звуки машины. + +26 +00:03:18.333 --> 00:03:20.417 +Слушай своё дыхание. + +27 +00:04:27.208 --> 00:04:29.250 +И не надоест тебе это? + +28 +00:04:29.542 --> 00:04:31.083 +Надоест?!? + +29 +00:04:31.708 --> 00:04:34.625 +Имо! Машина - +она как часовой механизм. + +30 +00:04:35.500 --> 00:04:37.667 +Одно движение не туда... + +31 +00:04:37.792 --> 00:04:39.750 +...и тебя размелют в месиво! + +32 +00:04:41.042 --> 00:04:42.375 +А разве это не - + +33 +00:04:42.417 --> 00:04:46.500 +Месиво. Имо! +ты этого хочешь? месиво? + +34 +00:04:48.083 --> 00:04:50.000 +Имо. твоя цель в жизни? + +35 +00:04:50.542 --> 00:04:52.250 +Месиво! + +36 +00:05:41.792 --> 00:05:43.458 +Имо. закрой глаза. + +37 +00:05:44.875 --> 00:05:46.542 +Зачем? +- Ну же! + +38 +00:05:51.500 --> 00:05:52.333 +Ладно. + +39 +00:05:53.708 --> 00:05:56.042 +Хорошо. + +40 +00:05:59.500 --> 00:06:02.750 +Что ты видишь слева от себя. Имо? + +41 +00:06:04.417 --> 00:06:06.000 +Ничего. +- Точно? + +42 +00:06:06.333 --> 00:06:07.875 +да. совсем ничего. + +43 +00:06:08.042 --> 00:06:12.708 +А справа от себя. +что ты видишь справа от себя. Имо? + +44 +00:06:13.833 --> 00:06:16.875 +Да то же Пруг. в точности то же... + +45 +00:06:17.042 --> 00:06:18.500 +Ничего! + +46 +00:06:18.667 --> 00:06:19.500 +Прекрасно... + +47 +00:06:40.583 --> 00:06:42.917 +Прислушайся. Пруг! Ты слышишь это? + +48 +00:06:43.583 --> 00:06:45.042 +Может. мы пойдём туда? + +49 +00:06:45.208 --> 00:06:48.042 +Туда? +Это не безопасно. Имо. + +50 +00:06:49.875 --> 00:06:52.500 +Но... +- Поверь мне. это так. + +51 +00:06:53.292 --> 00:06:54.750 +Может я бы ... + +52 +00:06:54.792 --> 00:06:56.333 +Нет. + +53 +00:06:57.625 --> 00:06:59.583 +- Но... +- НЕТ! + +54 +00:06:59.708 --> 00:07:00.833 +Нет! + +55 +00:07:00.833 --> 00:07:03.708 +Ещё вопросы. Имо? + +56 +00:07:04.250 --> 00:07:05.875 +Нет. + +57 +00:07:09.458 --> 00:07:10.792 +Имо? + +58 +00:07:11.833 --> 00:07:13.500 +Имо. почему... + +59 +00:07:13.542 --> 00:07:14.458 +Имо... + +60 +00:07:14.500 --> 00:07:18.500 +...почему? почему ты не видишь +красоты этого места? + +61 +00:07:18.792 --> 00:07:20.708 +То как оно работает. + +62 +00:07:20.833 --> 00:07:24.000 +Как совершенно оно. + +63 +00:07:24.083 --> 00:07:27.417 +Нет. Пруг. я не вижу. + +64 +00:07:27.500 --> 00:07:30.333 +Я не вижу. потому что здесь ничего нет. + +65 +00:07:31.375 --> 00:07:35.333 +И почему я должен доверять свою жизнь +чему-то. чего здесь нет? + +66 +00:07:35.542 --> 00:07:37.125 +это ты мне можешь сказать? + +67 +00:07:37.500 --> 00:07:39.167 +Ответь мне! + +68 +00:07:43.208 --> 00:07:44.542 +Пруг... + +69 +00:07:45.500 --> 00:07:47.333 +Ты просто больной! + +70 +00:07:47.375 --> 00:07:48.500 +Отстань от меня. + +71 +00:07:48.625 --> 00:07:49.917 +Имо... + +72 +00:07:52.542 --> 00:07:55.083 +Нет! Имо! Это ловушка! + +73 +00:07:55.792 --> 00:07:57.167 +Это ловушка! + +74 +00:07:57.208 --> 00:08:01.708 +Слева от себя вы можете увидеть +Висящие сады Семирамиды! + +75 +00:08:02.250 --> 00:08:04.292 +Сойдёт за ловушку? + +76 +00:08:05.458 --> 00:08:07.125 +Нет. Имо. + +77 +00:08:09.417 --> 00:08:12.750 +Справа от себя вы можете увидеть... +...угадай кого... + +78 +00:08:13.000 --> 00:08:14.708 +...Колосса Родосского! + +79 +00:08:15.500 --> 00:08:16.625 +Нет! + +80 +00:08:16.667 --> 00:08:21.125 +Колосс Родосский! +И он здесь специально для тебя. Пруг. + +81 +00:08:21.167 --> 00:08:22.208 +Специально для тебя... + +82 +00:08:51.333 --> 00:08:53.167 +Она здесь есть! + +83 +00:08:53.208 --> 00:08:55.500 +Говорю тебе. +Имо... + +84 +00:08:57.333 --> 00:09:00.000 +...она есть... есть...
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.sv.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.sv.vtt new file mode 100644 index 0000000..6666eed --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/captions.sv.vtt @@ -0,0 +1,349 @@ +WEBVTT + +1 +00:00:15.042 --> 00:00:18.250 +Till vänster kan vi se... +Ser vi... + +2 +00:00:18.708 --> 00:00:20.333 +Till höger ser vi... + +3 +00:00:20.417 --> 00:00:21.958 +...huvudkaparna. + +4 +00:00:22.000 --> 00:00:24.792 +Allt är säkert. +alldeles ofarligt. + +5 +00:00:24.917 --> 00:00:26.833 +Emo? + +6 +00:00:28.750 --> 00:00:30.167 +Se upp! + +7 +00:00:46.708 --> 00:00:48.750 +Är du skadad? + +8 +00:00:51.875 --> 00:00:54.458 +Jag tror inte det... +Är du? + +9 +00:00:55.292 --> 00:00:57.333 +Jag är ok. + +10 +00:00:57.542 --> 00:01:01.625 +Res dig upp Emo. +Det är inte säkert här. + +11 +00:01:02.208 --> 00:01:03.625 +Kom så går vi. + +12 +00:01:03.708 --> 00:01:05.708 +Vad nu då? + +13 +00:01:05.833 --> 00:01:07.833 +Du får se... + +14 +00:01:08.042 --> 00:01:10.417 +Du får se. + +15 +00:01:15.958 --> 00:01:18.375 +Emo. den här vägen. + +16 +00:01:34.417 --> 00:01:36.750 +Följ efter mig! + +17 +00:02:11.250 --> 00:02:13.250 +Skynda dig. Emo! + +18 +00:02:48.375 --> 00:02:50.583 +Du är inte uppmärksam! + +19 +00:02:50.708 --> 00:02:54.500 +Jag vill bara svara... +... i telefonen. + +20 +00:02:54.500 --> 00:02:58.208 +Emo. se här... +Lyssna menar jag. + +21 +00:02:59.708 --> 00:03:02.292 +Du måste lära dig att lyssna. + +22 +00:03:03.292 --> 00:03:05.208 +Det här är ingen lek. + +23 +00:03:05.250 --> 00:03:08.917 +Du... Jag menar vi. +vi skulle kunna dö här ute. + +24 +00:03:09.917 --> 00:03:11.417 +Lyssna... + +25 +00:03:11.708 --> 00:03:14.833 +Lyssna på ljuden från maskinen. + +26 +00:03:18.125 --> 00:03:21.417 +Lyssna på dina andetag. + +27 +00:04:26.625 --> 00:04:29.250 +Tröttnar du aldrig på det här? + +28 +00:04:29.542 --> 00:04:31.083 +Tröttnar!? + +29 +00:04:31.208 --> 00:04:33.458 +Emo. maskinen är som... + +30 +00:04:33.458 --> 00:04:35.333 +Som ett urverk. + +31 +00:04:35.417 --> 00:04:37.167 +Ett felsteg... + +32 +00:04:37.208 --> 00:04:39.750 +...och du blir krossad. + +33 +00:04:41.042 --> 00:04:42.292 +Men är det inte - + +34 +00:04:42.292 --> 00:04:47.000 +Krossad. Emo! +Är det vad du vill bli? Krossad till mos? + +35 +00:04:47.500 --> 00:04:50.542 +Emo. är det ditt mål i livet? + +36 +00:04:50.667 --> 00:04:53.250 +Att bli mos!? + +37 +00:05:41.375 --> 00:05:43.458 +Emo. blunda. + +38 +00:05:44.375 --> 00:05:46.542 +Varför då? +- Blunda! + +39 +00:05:51.292 --> 00:05:55.042 +Ok. +- Bra. + +40 +00:05:59.500 --> 00:06:02.750 +Vad ser du till vänster om dig Emo? + +41 +00:06:04.125 --> 00:06:06.292 +Ingenting. +- Säker? + +42 +00:06:06.333 --> 00:06:07.958 +Ingenting alls. + +43 +00:06:08.042 --> 00:06:12.625 +Jaså. och till höger om dig... +Vad ser du där. Emo? + +44 +00:06:13.750 --> 00:06:15.583 +Samma där Proog... + +45 +00:06:15.583 --> 00:06:18.083 +Exakt samma där. ingenting! + +46 +00:06:18.083 --> 00:06:19.667 +Perfekt. + +47 +00:06:40.500 --> 00:06:42.917 +Lyssna Proog! Hör du? + +48 +00:06:43.500 --> 00:06:45.125 +Kan vi gå dit? + +49 +00:06:45.208 --> 00:06:48.125 +Gå dit? +Det är inte tryggt. + +50 +00:06:49.583 --> 00:06:52.583 +Men. men... +- Tro mig. det inte säkert. + +51 +00:06:53.000 --> 00:06:54.292 +Men kanske om jag - + +52 +00:06:54.292 --> 00:06:56.333 +Nej. + +53 +00:06:57.208 --> 00:07:00.167 +Men - +- Nej. NEJ! + +54 +00:07:00.917 --> 00:07:03.792 +Några fler frågor Emo? + +55 +00:07:04.250 --> 00:07:05.875 +Nej. + +56 +00:07:09.542 --> 00:07:11.375 +Emo? +- Ja? + +57 +00:07:11.542 --> 00:07:15.667 +Emo. varför... + +58 +00:07:15.792 --> 00:07:18.583 +Varför kan du inte se skönheten i det här? + +59 +00:07:18.792 --> 00:07:21.708 +Hur det fungerar. + +60 +00:07:21.833 --> 00:07:24.000 +Hur perfekt det är. + +61 +00:07:24.083 --> 00:07:27.333 +Nej Proog. jag kan inte se det. + +62 +00:07:27.333 --> 00:07:30.333 +Jag ser det inte. för det finns inget där. + +63 +00:07:31.292 --> 00:07:35.333 +Och varför skulle jag lägga mitt liv +i händerna på något som inte finns? + +64 +00:07:35.333 --> 00:07:37.083 +Kan du berätta det för mig? +- Emo... + +65 +00:07:37.083 --> 00:07:39.167 +Svara mig! + +66 +00:07:43.500 --> 00:07:45.208 +Proog... + +67 +00:07:45.208 --> 00:07:47.083 +Du är inte frisk! + +68 +00:07:47.167 --> 00:07:49.292 +Håll dig borta från mig! + +69 +00:07:52.292 --> 00:07:55.083 +Nej! Emo! +Det är en fälla! + +70 +00:07:55.375 --> 00:07:57.208 +Heh. det är en fälla. + +71 +00:07:57.208 --> 00:08:01.708 +På vänster sida ser vi... +Babylons hängande trädgårdar! + +72 +00:08:01.958 --> 00:08:04.000 +Vad sägs om den fällan? + +73 +00:08:05.458 --> 00:08:07.333 +Nej. Emo. + +74 +00:08:08.917 --> 00:08:12.667 +Till höger ser vi... +Gissa! + +75 +00:08:12.750 --> 00:08:15.125 +Rhodos koloss! + +76 +00:08:15.375 --> 00:08:16.500 +Nej! + +77 +00:08:16.500 --> 00:08:20.250 +Kolossen på Rhodos! +Och den är här för din skull. Proog... + +78 +00:08:20.250 --> 00:08:23.250 +Bara för din skull. + +79 +00:08:50.917 --> 00:08:53.250 +Den är där... + +80 +00:08:53.625 --> 00:08:56.417 +Tro mig. +Emo... + +81 +00:08:57.000 --> 00:09:00.000 +Det är den. +Det är den...
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/chapters.en.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/chapters.en.vtt new file mode 100644 index 0000000..9740a41 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/chapters.en.vtt @@ -0,0 +1,44 @@ +WEBVTT + +NOTE Created by Owen Edwards 2015. http://creativecommons.org/licenses/by/2.5/ +NOTE Based on 'finalbreakdown.rtf', part of the prepoduction notes, which are: +NOTE (c) Copyright 2006, Blender Foundation / +NOTE Netherlands Media Art Institute / +NOTE www.elephantsdream.org + +1 +00:00:00.000 --> 00:00:27.500 +Prologue + +2 +00:00:27.500 --> 00:01:10.000 +Switchboard trap + +3 +00:01:10.000 --> 00:03:25.000 +Telephone/Lecture + +4 +00:03:25.000 --> 00:04:52.000 +Typewriter + +5 +00:04:52.000 --> 00:06:19.500 +Proog shows Emo stuff + +6 +00:06:19.500 --> 00:07:09.000 +Which way + +7 +00:07:09.000 --> 00:07:45.000 +Emo flips out + +8 +00:07:45.000 --> 00:09:25.000 +Emo creates + +9 +00:09:25.000 --> 00:10:53.000 +Closing credits + diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/descriptions.en.vtt b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/descriptions.en.vtt new file mode 100644 index 0000000..8835b70 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/descriptions.en.vtt @@ -0,0 +1,280 @@ +WEBVTT
+License: CC BY 4.0 http://creativecommons.org/licenses/by/4.0/
+Author: Silvia Pfeiffer
+
+1
+00:00:00.000 --> 00:00:05.000
+The orange open movie project presents
+
+2
+00:00:05.010 --> 00:00:12.000
+Introductory titles are showing on the background of a water pool with fishes swimming and mechanical objects lying on a stone floor.
+
+3
+00:00:12.010 --> 00:00:14.800
+elephants dream
+
+4
+00:00:26.100 --> 00:00:28.206
+Two people stand on a small bridge.
+
+5
+00:00:30.010 --> 00:00:40.000
+The old man, Proog, shoves the younger and less experienced Emo on the ground to save him from being mowed down by a barrage of jack plugs that whir back and forth between the two massive switch-board-like walls.
+
+6
+00:00:40.000 --> 00:00:47.000
+The plugs are oblivious of the two, endlessly channeling streams of bizarre sounds and data.
+
+7
+00:00:48.494 --> 00:00:51.994
+Emo sits on the bridge and checks his limbs.
+
+8
+00:01:09.150 --> 00:01:16.030
+After the squealing plugs move on, Proog makes sure that Emo is unharmed and urges him onwards through a crack in one of the plug-walls.
+
+9
+00:01:18.050 --> 00:01:24.000
+They walk through the narrow hall into a massive room that fades away into blackness on all sides.
+
+10
+00:01:24.050 --> 00:01:34.200
+Only one path is visible, suspended in mid-air that runs between thousands of dangling electric cables on which sit crowds of robin-like robotic birds.
+
+11
+00:01:36.000 --> 00:01:40.000
+As Proog and Emo enter the room, the birds begin to wake up and notice them.
+
+12
+00:01:42.000 --> 00:01:50.000
+Realizing the danger, Proog grabs Emo by the arm.
+
+13
+00:01:50.050 --> 00:02:00.000
+They run along the increasingly bizarre path as the birds begin to swarm.
+
+14
+00:02:00.050 --> 00:02:11.000
+All sound is blocked out by the birds which are making the same noises as the jack-plugs, garbled screaming and obscure sentences and static.
+
+15
+00:02:12.600 --> 00:02:17.000
+The path dead-ends, stopping in the middle of no-where above the infinite drop.
+
+16
+00:02:17.600 --> 00:02:22.000
+Proog turns around as the birds reach them and begin to dive-bomb at them.
+
+17
+00:02:22.600 --> 00:02:28.000
+At the last moment, Proog takes out an old candlestick phone and the birds dive into the speaker piece.
+
+18
+00:02:28.600 --> 00:02:31.000
+The screen cuts to black.
+
+19
+00:02:31.600 --> 00:02:38.000
+In the next scene, Proog stands at one end of a room, suspiciously watching what is probably the same candlestick phone, which is ringing.
+
+20
+00:02:38.500 --> 00:02:41.000
+Emo watches from the other side of the room.
+
+21
+00:02:41.500 --> 00:02:43.000
+The phone continues to ring.
+
+22
+00:02:43.500 --> 00:02:48.000
+After a while Emo approaches it to answer it, but Proog slaps his hand away.
+
+23
+00:02:57.972 --> 00:02:59.100
+Proog takes the ear-piece off the hook.
+
+24
+00:03:13.500 --> 00:03:18.054
+The phone speaker revealed a mass of clawed, fleshy polyps which scream and gibber obscenely.
+
+25
+00:03:25.000 --> 00:03:33.000
+There is a solemn silence as Emo looks around the room and the technical objects therein.
+
+26
+00:03:38.000 --> 00:03:44.000
+Emo laughs disbelievingly and Proog walks away.
+
+27
+00:03:46.000 --> 00:03:54.000
+In the next scene, the two enter another massive black room.
+
+28
+00:03:54.500 --> 00:04:04.000
+There is no path, the entry platform is the only structure that seems to be there except for another exit, lit distantly at the far side.
+
+29
+00:04:04.500 --> 00:04:14.000
+Proog takes a step forward into the void, and his feet are suddenly caught by giant typewriter arms that rocket up out of the blackness to catch his feet as he dances across mid-air.
+
+30
+00:04:14.500 --> 00:04:22.000
+Emo follows Proog with somewhat less enthusiasm as the older man leads the way.
+
+31
+00:04:52.000 --> 00:04:58.000
+They reach the end of the room and go through a hall into a small compartment.
+
+32
+00:05:02.000 --> 00:05:06.000
+Proog presses a button, and the door shuts.
+
+33
+00:05:06.500 --> 00:05:09.000
+It is an elevator.
+
+34
+00:05:09.500 --> 00:05:24.000
+The elevator lurches suddenly as it is grabbed by a giant mechanical arm and thrown upwards, rushing up through an ever-widening tunnel.
+
+35
+00:05:26.500 --> 00:05:32.000
+When it begins to slow down, another arm grabs the capsule and throws it even further up.
+
+36
+00:05:32.500 --> 00:05:40.000
+As it moves up, the walls unlock and fall away, leaving only the floor with the two on it, rushing higher and higher.
+
+37
+00:05:54.500 --> 00:05:59.000
+They exit the tunnel into a black sky and the platform reaches the peak of its arc.
+
+38
+00:06:19.500 --> 00:06:26.000
+The elevator begins to drop down another shaft, coming to rest as it slams into the floor of another room and bringing the two to a level stop.
+
+39
+00:06:26.500 --> 00:06:28.000
+A camera flashes.
+
+40
+00:06:28.010 --> 00:06:34.000
+They are in a large, dingy room filled with strange, generator-like devices and dotted with boxy holographic projectors.
+
+41
+00:06:34.500 --> 00:06:38.000
+One of them is projecting a portion of wall with a door in it right beside them.
+
+42
+00:06:38.500 --> 00:06:40.000
+The door seems harmless enough.
+
+43
+00:06:42.800 --> 00:06:45.100
+From behind the door comes light music.
+
+44
+00:06:56.000 --> 00:07:00.100
+Proog presses a button on his cane, which changes the holograph to another wall.
+
+45
+00:07:05.100 --> 00:07:11.000
+Proog finishes the wall, and boxes them into a Safe Room, out of the view of anything outside.
+
+46
+00:07:39.000 --> 00:07:42.500
+Proog slaps him, trying to bring him to his senses.
+
+47
+00:07:45.000 --> 00:07:52.000
+Emo storms away down the length of the room towards a wall he apparently cannot see and the wall begins to move, extending the length of the room.
+
+48
+00:08:00.000 --> 00:08:07.000
+The walls begin to discolour and mechanical roots start tearing through the walls to his left.
+
+49
+00:08:07.010 --> 00:08:09.000
+The roots move forwards toward Proog.
+
+50
+00:08:22.000 --> 00:08:31.000
+The rest of the safety wall crumples away as a pair of massive hands heave out of the ground and begin to attack.
+
+51
+00:08:31.010 --> 00:08:37.000
+Proog is knocked down by the shockwave, while Emo turns and begins to walk away, waving his finger around his temple in the 'crazy' sign.
+
+52
+00:08:37.010 --> 00:08:44.000
+In a last effort, Proog extricates himself from the tentacle roots, and cracks Emo over the back of the head with his cane.
+
+53
+00:08:44.500 --> 00:08:51.000
+As Emo collapses, everything falls away, and Proog and Emo are left in one tiny patch of light in the middle of blackness.
+
+54
+00:09:00.000 --> 00:09:20.000
+The scene fades to black while panning over a pile of tentacle roots lying on the ground.
+
+55
+00:09:26.000 --> 00:09:28.000
+Credits begin:
+
+56
+00:09:28.500 --> 00:09:35.000
+Orange Open Movie Team
+Director: Bassum Kurdali
+Art Director: Andreas Goralczyk
+
+57
+00:09:35.500 --> 00:09:39.000
+Music and Sound Design: Jan Morgenstern
+
+58
+00:09:39.500 --> 00:09:44.000
+Emo: Cas Jansen
+Proog: Tygo Gernandt
+
+59
+00:09:44.500 --> 00:09:50.000
+Screenplay: Pepijn Zwanenberg
+Original Concept & Scenario: Andreas Goralczyk, Bassam Kurdali, Ton Roosendaal
+
+60
+00:09:50.500 --> 00:10:24.000
+More people for
+Additional Artwork and Animation
+Texture Photography
+Software Development
+3D Modelling, Animation, Rendering, Compiling Software
+Special Thanks to Open Source Projects
+Rendering Services Provided
+Hardware Sponsored
+Casting
+Sound FX, Foley, Dialogue Editing, Audio Mix and Post
+Voice Recording
+HDCam conversion
+Netherlands Media Art Institute Staff
+Blender Foundation Staff
+
+61
+00:10:24.500 --> 00:10:30.000
+Many Thanks to our Donation and DVD sponsors
+
+62
+00:10:30.500 --> 00:10:47.000
+Elephants Dream has been realised with financial support from
+The Netherlands Film Fund
+Mondriaan Foundation
+VSBfonds
+Uni-Verse / EU Sixth Framework Programme
+
+63
+00:10:47.500 --> 00:10:53.000
+Produced By
+Ton Roosendaal
+Copyright 2006
+Netherlands Media Art Institute / Montevideo
+Blender Foundation
diff --git a/javascript/videojs/docs/legacy-docs/examples/elephantsdream/index.html b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/index.html new file mode 100644 index 0000000..cf24c36 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/elephantsdream/index.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>Video.js Text Descriptions, Chapters & Captions Example</title> + + <link href="../../video-js.css" rel="stylesheet" type="text/css"> + + <script src="../../video.js"></script> + + <!-- Set the location of the flash SWF --> + <script> + videojs.setGlobalOptions({ + flash: { + swf: '../../video-js.swf' + } + }); + </script> + +<link rel="canonical" href="https://docs.videojs.com"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + + <p style="background-color:#eee; border: 1px solid #777; padding: 10px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">This page demonstrates a text descriptions track (intended primarily for blind and visually impaired consumers of visual media)</p> + + <!-- NOTE: we have to disable native Text Track support for the HTML5 tech, + since even HTML5 video players with native Text Track support + don't currently support 'description' text tracks in any + useful way! --> + <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="360" + data-setup='{ "html5" : { "nativeTextTracks" : false } }'> + <source src="https://archive.org/download/ElephantsDream/ed_hd.mp4" type="video/mp4"> + <source src="https://archive.org/download/ElephantsDream/ed_hd.ogv" type="video/ogv"> + + <track kind="captions" src="captions.en.vtt" srclang="en" label="English" default></track><!-- Tracks need an ending tag thanks to IE9 --> + <track kind="captions" src="captions.sv.vtt" srclang="sv" label="Swedish"></track> + <track kind="captions" src="captions.ru.vtt" srclang="ru" label="Russian"></track> + <track kind="captions" src="captions.ja.vtt" srclang="ja" label="Japanese"></track> + <track kind="captions" src="captions.ar.vtt" srclang="ar" label="Arabic"></track> + + <track kind="descriptions" src="descriptions.en.vtt" srclang="en" label="English"></track> + + <track kind="chapters" src="chapters.en.vtt" srclang="en" label="English"></track> + + <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> + </video> +</body> +</html> diff --git a/javascript/videojs/docs/legacy-docs/examples/shared/example-captions.vtt b/javascript/videojs/docs/legacy-docs/examples/shared/example-captions.vtt new file mode 100644 index 0000000..e598be1 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/shared/example-captions.vtt @@ -0,0 +1,41 @@ +WEBVTT + +00:00.700 --> 00:04.110 +Captions describe all relevant audio for the hearing impaired. +[ Heroic music playing for a seagull ] + +00:04.500 --> 00:05.000 +[ Splash!!! ] + +00:05.100 --> 00:06.000 +[ Sploosh!!! ] + +00:08.000 --> 00:09.225 +[ Splash...splash...splash splash splash ] + +00:10.525 --> 00:11.255 +[ Splash, Sploosh again ] + +00:13.500 --> 00:14.984 +Dolphin: eeeEEEEEeeee! + +00:14.984 --> 00:16.984 +Dolphin: Squawk! eeeEEE? + +00:25.000 --> 00:28.284 +[ A whole ton of splashes ] + +00:29.500 --> 00:31.000 +Mine. Mine. Mine. + +00:34.300 --> 00:36.000 +Shark: Chomp + +00:36.800 --> 00:37.900 +Shark: CHOMP!!! + +00:37.861 --> 00:41.193 +EEEEEEOOOOOOOOOOWHALENOISE + +00:42.593 --> 00:45.611 +[ BIG SPLASH ]
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/examples/simple-embed/index.html b/javascript/videojs/docs/legacy-docs/examples/simple-embed/index.html new file mode 100644 index 0000000..606fefb --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/examples/simple-embed/index.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + + <title>Video.js | HTML5 Video Player</title> + <link href="https://vjs.zencdn.net/5.0.2/video-js.css" rel="stylesheet"> + <script src="https://vjs.zencdn.net/ie8/1.1.0/videojs-ie8.min.js"></script> + <script src="https://vjs.zencdn.net/5.0.2/video.js"></script> + +<link rel="canonical" href="https://docs.videojs.com"> +</head> + +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + + + <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264" poster="https://vjs.zencdn.net/v/oceans.png" data-setup="{}"> + <source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4"> + <source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm"> + <source src="https://vjs.zencdn.net/v/oceans.ogv" type="video/ogg"> + <track kind="captions" src="../shared/example-captions.vtt" srclang="en" label="English"></track> + <!-- Tracks need an ending tag thanks to IE9 --> + <track kind="subtitles" src="../shared/example-captions.vtt" srclang="en" label="English"></track> + <!-- Tracks need an ending tag thanks to IE9 --> + <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> + </video> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/fonts/FontAwesome.otf b/javascript/videojs/docs/legacy-docs/fonts/FontAwesome.otf Binary files differnew file mode 100644 index 0000000..3ed7f8b --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/fonts/FontAwesome.otf diff --git a/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.eot b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.eot Binary files differnew file mode 100644 index 0000000..9b6afae --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.eot diff --git a/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.svg b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..d05688e --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.svg @@ -0,0 +1,655 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > +<svg xmlns="http://www.w3.org/2000/svg"> +<metadata></metadata> +<defs> +<font id="fontawesomeregular" horiz-adv-x="1536" > +<font-face units-per-em="1792" ascent="1536" descent="-256" /> +<missing-glyph horiz-adv-x="448" /> +<glyph unicode=" " horiz-adv-x="448" /> +<glyph unicode="	" horiz-adv-x="448" /> +<glyph unicode=" " horiz-adv-x="448" /> +<glyph unicode="¨" horiz-adv-x="1792" /> +<glyph unicode="©" horiz-adv-x="1792" /> +<glyph unicode="®" horiz-adv-x="1792" /> +<glyph unicode="´" horiz-adv-x="1792" /> +<glyph unicode="Æ" horiz-adv-x="1792" /> +<glyph unicode="Ø" horiz-adv-x="1792" /> +<glyph unicode=" " horiz-adv-x="768" /> +<glyph unicode=" " horiz-adv-x="1537" /> +<glyph unicode=" " horiz-adv-x="768" /> +<glyph unicode=" " horiz-adv-x="1537" /> +<glyph unicode=" " horiz-adv-x="512" /> +<glyph unicode=" " horiz-adv-x="384" /> +<glyph unicode=" " horiz-adv-x="256" /> +<glyph unicode=" " horiz-adv-x="256" /> +<glyph unicode=" " horiz-adv-x="192" /> +<glyph unicode=" " horiz-adv-x="307" /> +<glyph unicode=" " horiz-adv-x="85" /> +<glyph unicode=" " horiz-adv-x="307" /> +<glyph unicode=" " horiz-adv-x="384" /> +<glyph unicode="™" horiz-adv-x="1792" /> +<glyph unicode="∞" horiz-adv-x="1792" /> +<glyph unicode="≠" horiz-adv-x="1792" /> +<glyph unicode="◼" horiz-adv-x="500" d="M0 0z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" /> +<glyph unicode="" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " /> +<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" /> +<glyph unicode="" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z " /> +<glyph unicode="" d="M896 992v-448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136 q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" /> +<glyph unicode="" d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273 t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198 t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" /> +<glyph unicode="" d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q14 0 25 -9 l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" /> +<glyph unicode="" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" /> +<glyph unicode="" horiz-adv-x="1152" d="M320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" /> +<glyph unicode="" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" /> +<glyph unicode="" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" /> +<glyph unicode="" horiz-adv-x="1792" d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" /> +<glyph unicode="" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" /> +<glyph unicode="" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" /> +<glyph unicode="" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M725 977l-170 -450q33 0 136.5 -2t160.5 -2q19 0 57 2q-87 253 -184 452zM0 -128l2 79q23 7 56 12.5t57 10.5t49.5 14.5t44.5 29t31 50.5l237 616l280 724h75h53q8 -14 11 -21l205 -480q33 -78 106 -257.5t114 -274.5q15 -34 58 -144.5t72 -168.5q20 -45 35 -57 q19 -15 88 -29.5t84 -20.5q6 -38 6 -57q0 -4 -0.5 -13t-0.5 -13q-63 0 -190 8t-191 8q-76 0 -215 -7t-178 -8q0 43 4 78l131 28q1 0 12.5 2.5t15.5 3.5t14.5 4.5t15 6.5t11 8t9 11t2.5 14q0 16 -31 96.5t-72 177.5t-42 100l-450 2q-26 -58 -76.5 -195.5t-50.5 -162.5 q0 -22 14 -37.5t43.5 -24.5t48.5 -13.5t57 -8.5t41 -4q1 -19 1 -58q0 -9 -2 -27q-58 0 -174.5 10t-174.5 10q-8 0 -26.5 -4t-21.5 -4q-80 -14 -188 -14z" /> +<glyph unicode="" horiz-adv-x="1408" d="M555 15q74 -32 140 -32q376 0 376 335q0 114 -41 180q-27 44 -61.5 74t-67.5 46.5t-80.5 25t-84 10.5t-94.5 2q-73 0 -101 -10q0 -53 -0.5 -159t-0.5 -158q0 -8 -1 -67.5t-0.5 -96.5t4.5 -83.5t12 -66.5zM541 761q42 -7 109 -7q82 0 143 13t110 44.5t74.5 89.5t25.5 142 q0 70 -29 122.5t-79 82t-108 43.5t-124 14q-50 0 -130 -13q0 -50 4 -151t4 -152q0 -27 -0.5 -80t-0.5 -79q0 -46 1 -69zM0 -128l2 94q15 4 85 16t106 27q7 12 12.5 27t8.5 33.5t5.5 32.5t3 37.5t0.5 34v35.5v30q0 982 -22 1025q-4 8 -22 14.5t-44.5 11t-49.5 7t-48.5 4.5 t-30.5 3l-4 83q98 2 340 11.5t373 9.5q23 0 68.5 -0.5t67.5 -0.5q70 0 136.5 -13t128.5 -42t108 -71t74 -104.5t28 -137.5q0 -52 -16.5 -95.5t-39 -72t-64.5 -57.5t-73 -45t-84 -40q154 -35 256.5 -134t102.5 -248q0 -100 -35 -179.5t-93.5 -130.5t-138 -85.5t-163.5 -48.5 t-176 -14q-44 0 -132 3t-132 3q-106 0 -307 -11t-231 -12z" /> +<glyph unicode="" horiz-adv-x="1024" d="M0 -126l17 85q6 2 81.5 21.5t111.5 37.5q28 35 41 101q1 7 62 289t114 543.5t52 296.5v25q-24 13 -54.5 18.5t-69.5 8t-58 5.5l19 103q33 -2 120 -6.5t149.5 -7t120.5 -2.5q48 0 98.5 2.5t121 7t98.5 6.5q-5 -39 -19 -89q-30 -10 -101.5 -28.5t-108.5 -33.5 q-8 -19 -14 -42.5t-9 -40t-7.5 -45.5t-6.5 -42q-27 -148 -87.5 -419.5t-77.5 -355.5q-2 -9 -13 -58t-20 -90t-16 -83.5t-6 -57.5l1 -18q17 -4 185 -31q-3 -44 -16 -99q-11 0 -32.5 -1.5t-32.5 -1.5q-29 0 -87 10t-86 10q-138 2 -206 2q-51 0 -143 -9t-121 -11z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1744 128q33 0 42 -18.5t-11 -44.5l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80zM81 1407l54 -27q12 -5 211 -5q44 0 132 2 t132 2q36 0 107.5 -0.5t107.5 -0.5h293q6 0 21 -0.5t20.5 0t16 3t17.5 9t15 17.5l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 48t-14.5 73.5t-7.5 35.5q-6 8 -12 12.5t-15.5 6t-13 2.5t-18 0.5t-16.5 -0.5 q-17 0 -66.5 0.5t-74.5 0.5t-64 -2t-71 -6q-9 -81 -8 -136q0 -94 2 -388t2 -455q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27 q19 42 19 383q0 101 -3 303t-3 303v117q0 2 0.5 15.5t0.5 25t-1 25.5t-3 24t-5 14q-11 12 -162 12q-33 0 -93 -12t-80 -26q-19 -13 -34 -72.5t-31.5 -111t-42.5 -53.5q-42 26 -56 44v383z" /> +<glyph unicode="" d="M81 1407l54 -27q12 -5 211 -5q44 0 132 2t132 2q70 0 246.5 1t304.5 0.5t247 -4.5q33 -1 56 31l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 47.5t-15 73.5t-7 36q-10 13 -27 19q-5 2 -66 2q-30 0 -93 1t-103 1 t-94 -2t-96 -7q-9 -81 -8 -136l1 -152v52q0 -55 1 -154t1.5 -180t0.5 -153q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27 q7 16 11.5 74t6 145.5t1.5 155t-0.5 153.5t-0.5 89q0 7 -2.5 21.5t-2.5 22.5q0 7 0.5 44t1 73t0 76.5t-3 67.5t-6.5 32q-11 12 -162 12q-41 0 -163 -13.5t-138 -24.5q-19 -12 -34 -71.5t-31.5 -111.5t-42.5 -54q-42 26 -56 44v383zM1310 125q12 0 42 -19.5t57.5 -41.5 t59.5 -49t36 -30q26 -21 26 -49t-26 -49q-4 -3 -36 -30t-59.5 -49t-57.5 -41.5t-42 -19.5q-13 0 -20.5 10.5t-10 28.5t-2.5 33.5t1.5 33t1.5 19.5h-1024q0 -2 1.5 -19.5t1.5 -33t-2.5 -33.5t-10 -28.5t-20.5 -10.5q-12 0 -42 19.5t-57.5 41.5t-59.5 49t-36 30q-26 21 -26 49 t26 49q4 3 36 30t59.5 49t57.5 41.5t42 19.5q13 0 20.5 -10.5t10 -28.5t2.5 -33.5t-1.5 -33t-1.5 -19.5h1024q0 2 -1.5 19.5t-1.5 33t2.5 33.5t10 28.5t20.5 10.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5 q39 -17 39 -59z" /> +<glyph unicode="" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" /> +<glyph unicode="" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" /> +<glyph unicode="" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" /> +<glyph unicode="" d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" /> +<glyph unicode="" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" /> +<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" /> +<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" /> +<glyph unicode="" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" /> +<glyph unicode="" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" /> +<glyph unicode="" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1171 1235l-531 -531l531 -531q19 -19 19 -45t-19 -45l-166 -166q-19 -19 -45 -19t-45 19l-742 742q-19 19 -19 45t19 45l742 742q19 19 45 19t45 -19l166 -166q19 -19 19 -45t-19 -45z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1107 659l-742 -742q-19 -19 -45 -19t-45 19l-166 166q-19 19 -19 45t19 45l531 531l-531 531q-19 19 -19 45t19 45l166 166q19 19 45 19t45 -19l742 -742q19 -19 19 -45t-19 -45z" /> +<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" /> +<glyph unicode="" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59 q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" /> +<glyph unicode="" d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23 l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198 t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61 t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" /> +<glyph unicode="" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" /> +<glyph unicode="" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" /> +<glyph unicode="" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" /> +<glyph unicode="" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" /> +<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" /> +<glyph unicode="" d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5 t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" /> +<glyph unicode="" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " /> +<glyph unicode="" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1376 1376q44 -52 12 -148t-108 -172l-161 -161l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-259 -259l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9 q6 0 8 -1l194 -53l259 259l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l160 160q76 76 172 108t148 -12z" /> +<glyph unicode="" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" /> +<glyph unicode="" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1683 205l-166 -165q-19 -19 -45 -19t-45 19l-531 531l-531 -531q-19 -19 -45 -19t-45 19l-166 165q-19 19 -19 45.5t19 45.5l742 741q19 19 45 19t45 -19l742 -741q19 -19 19 -45.5t-19 -45.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1683 728l-742 -741q-19 -19 -45 -19t-45 19l-742 741q-19 19 -19 45.5t19 45.5l166 165q19 19 45 19t45 -19l531 -531l531 531q19 19 45 19t45 -19l166 -165q19 -19 19 -45.5t-19 -45.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " /> +<glyph unicode="" horiz-adv-x="1664" d="M640 0q0 -52 -38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38t38 -90zM1536 0q0 -52 -38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38t38 -90zM1664 1088v-512q0 -24 -16.5 -42.5t-40.5 -21.5l-1044 -122q13 -60 13 -70q0 -16 -24 -64h920q26 0 45 -19t19 -45 t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 11 8 31.5t16 36t21.5 40t15.5 29.5l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t19.5 -15.5t13 -24.5t8 -26t5.5 -29.5t4.5 -26h1201q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" /> +<glyph unicode="" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="2048" d="M640 640v-512h-256v512h256zM1024 1152v-1024h-256v1024h256zM2048 0v-128h-2048v1536h128v-1408h1920zM1408 896v-768h-256v768h256zM1792 1280v-1152h-256v1152h256z" /> +<glyph unicode="" d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4 q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5 t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-188v595h199l30 232h-229v148q0 56 23.5 84t91.5 28l122 1v207q-63 9 -178 9q-136 0 -217.5 -80t-81.5 -226v-171h-200v-232h200v-595h-532q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960z" /> +<glyph unicode="" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" /> +<glyph unicode="" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" /> +<glyph unicode="" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" /> +<glyph unicode="" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" /> +<glyph unicode="" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" /> +<glyph unicode="" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" /> +<glyph unicode="" d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5 q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" /> +<glyph unicode="" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" /> +<glyph unicode="" d="M394 184q-8 -9 -20 3q-13 11 -4 19q8 9 20 -3q12 -11 4 -19zM352 245q9 -12 0 -19q-8 -6 -17 7t0 18q9 7 17 -6zM291 305q-5 -7 -13 -2q-10 5 -7 12q3 5 13 2q10 -5 7 -12zM322 271q-6 -7 -16 3q-9 11 -2 16q6 6 16 -3q9 -11 2 -16zM451 159q-4 -12 -19 -6q-17 4 -13 15 t19 7q16 -5 13 -16zM514 154q0 -11 -16 -11q-17 -2 -17 11q0 11 16 11q17 2 17 -11zM572 164q2 -10 -14 -14t-18 8t14 15q16 2 18 -9zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-224q-16 0 -24.5 1t-19.5 5t-16 14.5t-5 27.5v239q0 97 -52 142q57 6 102.5 18t94 39 t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103 q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -103t0.5 -68q0 -22 -11 -33.5t-22 -13t-33 -1.5 h-224q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92 t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" /> +<glyph unicode="" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" /> +<glyph unicode="" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" /> +<glyph unicode="" horiz-adv-x="1024" d="M959 1524v-264h-157q-86 0 -116 -36t-30 -108v-189h293l-39 -296h-254v-759h-306v759h-255v296h255v218q0 186 104 288.5t277 102.5q147 0 228 -12z" /> +<glyph unicode="" d="M1536 640q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -39.5 7t-12.5 30v211q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5 q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23 q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -89t0.5 -54q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1664 960v-256q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5 t316.5 -131.5t131.5 -316.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" /> +<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" /> +<glyph unicode="" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" /> +<glyph unicode="" horiz-adv-x="1792" d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM246 128h1300q-266 300 -266 832q0 51 -24 105t-69 103t-121.5 80.5t-169.5 31.5t-169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -532 -266 -832z M1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5 t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" /> +<glyph unicode="" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" /> +<glyph unicode="" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" /> +<glyph unicode="" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" /> +<glyph unicode="" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33 t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580 q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100 q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" /> +<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1042 887q-2 -1 -9.5 -9.5t-13.5 -9.5q2 0 4.5 5t5 11t3.5 7q6 7 22 15q14 6 52 12q34 8 51 -11 q-2 2 9.5 13t14.5 12q3 2 15 4.5t15 7.5l2 22q-12 -1 -17.5 7t-6.5 21q0 -2 -6 -8q0 7 -4.5 8t-11.5 -1t-9 -1q-10 3 -15 7.5t-8 16.5t-4 15q-2 5 -9.5 10.5t-9.5 10.5q-1 2 -2.5 5.5t-3 6.5t-4 5.5t-5.5 2.5t-7 -5t-7.5 -10t-4.5 -5q-3 2 -6 1.5t-4.5 -1t-4.5 -3t-5 -3.5 q-3 -2 -8.5 -3t-8.5 -2q15 5 -1 11q-10 4 -16 3q9 4 7.5 12t-8.5 14h5q-1 4 -8.5 8.5t-17.5 8.5t-13 6q-8 5 -34 9.5t-33 0.5q-5 -6 -4.5 -10.5t4 -14t3.5 -12.5q1 -6 -5.5 -13t-6.5 -12q0 -7 14 -15.5t10 -21.5q-3 -8 -16 -16t-16 -12q-5 -8 -1.5 -18.5t10.5 -16.5 q2 -2 1.5 -4t-3.5 -4.5t-5.5 -4t-6.5 -3.5l-3 -2q-11 -5 -20.5 6t-13.5 26q-7 25 -16 30q-23 8 -29 -1q-5 13 -41 26q-25 9 -58 4q6 1 0 15q-7 15 -19 12q3 6 4 17.5t1 13.5q3 13 12 23q1 1 7 8.5t9.5 13.5t0.5 6q35 -4 50 11q5 5 11.5 17t10.5 17q9 6 14 5.5t14.5 -5.5 t14.5 -5q14 -1 15.5 11t-7.5 20q12 -1 3 17q-5 7 -8 9q-12 4 -27 -5q-8 -4 2 -8q-1 1 -9.5 -10.5t-16.5 -17.5t-16 5q-1 1 -5.5 13.5t-9.5 13.5q-8 0 -16 -15q3 8 -11 15t-24 8q19 12 -8 27q-7 4 -20.5 5t-19.5 -4q-5 -7 -5.5 -11.5t5 -8t10.5 -5.5t11.5 -4t8.5 -3 q14 -10 8 -14q-2 -1 -8.5 -3.5t-11.5 -4.5t-6 -4q-3 -4 0 -14t-2 -14q-5 5 -9 17.5t-7 16.5q7 -9 -25 -6l-10 1q-4 0 -16 -2t-20.5 -1t-13.5 8q-4 8 0 20q1 4 4 2q-4 3 -11 9.5t-10 8.5q-46 -15 -94 -41q6 -1 12 1q5 2 13 6.5t10 5.5q34 14 42 7l5 5q14 -16 20 -25 q-7 4 -30 1q-20 -6 -22 -12q7 -12 5 -18q-4 3 -11.5 10t-14.5 11t-15 5q-16 0 -22 -1q-146 -80 -235 -222q7 -7 12 -8q4 -1 5 -9t2.5 -11t11.5 3q9 -8 3 -19q1 1 44 -27q19 -17 21 -21q3 -11 -10 -18q-1 2 -9 9t-9 4q-3 -5 0.5 -18.5t10.5 -12.5q-7 0 -9.5 -16t-2.5 -35.5 t-1 -23.5l2 -1q-3 -12 5.5 -34.5t21.5 -19.5q-13 -3 20 -43q6 -8 8 -9q3 -2 12 -7.5t15 -10t10 -10.5q4 -5 10 -22.5t14 -23.5q-2 -6 9.5 -20t10.5 -23q-1 0 -2.5 -1t-2.5 -1q3 -7 15.5 -14t15.5 -13q1 -3 2 -10t3 -11t8 -2q2 20 -24 62q-15 25 -17 29q-3 5 -5.5 15.5 t-4.5 14.5q2 0 6 -1.5t8.5 -3.5t7.5 -4t2 -3q-3 -7 2 -17.5t12 -18.5t17 -19t12 -13q6 -6 14 -19.5t0 -13.5q9 0 20 -10t17 -20q5 -8 8 -26t5 -24q2 -7 8.5 -13.5t12.5 -9.5l16 -8t13 -7q5 -2 18.5 -10.5t21.5 -11.5q10 -4 16 -4t14.5 2.5t13.5 3.5q15 2 29 -15t21 -21 q36 -19 55 -11q-2 -1 0.5 -7.5t8 -15.5t9 -14.5t5.5 -8.5q5 -6 18 -15t18 -15q6 4 7 9q-3 -8 7 -20t18 -10q14 3 14 32q-31 -15 -49 18q0 1 -2.5 5.5t-4 8.5t-2.5 8.5t0 7.5t5 3q9 0 10 3.5t-2 12.5t-4 13q-1 8 -11 20t-12 15q-5 -9 -16 -8t-16 9q0 -1 -1.5 -5.5t-1.5 -6.5 q-13 0 -15 1q1 3 2.5 17.5t3.5 22.5q1 4 5.5 12t7.5 14.5t4 12.5t-4.5 9.5t-17.5 2.5q-19 -1 -26 -20q-1 -3 -3 -10.5t-5 -11.5t-9 -7q-7 -3 -24 -2t-24 5q-13 8 -22.5 29t-9.5 37q0 10 2.5 26.5t3 25t-5.5 24.5q3 2 9 9.5t10 10.5q2 1 4.5 1.5t4.5 0t4 1.5t3 6q-1 1 -4 3 q-3 3 -4 3q7 -3 28.5 1.5t27.5 -1.5q15 -11 22 2q0 1 -2.5 9.5t-0.5 13.5q5 -27 29 -9q3 -3 15.5 -5t17.5 -5q3 -2 7 -5.5t5.5 -4.5t5 0.5t8.5 6.5q10 -14 12 -24q11 -40 19 -44q7 -3 11 -2t4.5 9.5t0 14t-1.5 12.5l-1 8v18l-1 8q-15 3 -18.5 12t1.5 18.5t15 18.5q1 1 8 3.5 t15.5 6.5t12.5 8q21 19 15 35q7 0 11 9q-1 0 -5 3t-7.5 5t-4.5 2q9 5 2 16q5 3 7.5 11t7.5 10q9 -12 21 -2q7 8 1 16q5 7 20.5 10.5t18.5 9.5q7 -2 8 2t1 12t3 12q4 5 15 9t13 5l17 11q3 4 0 4q18 -2 31 11q10 11 -6 20q3 6 -3 9.5t-15 5.5q3 1 11.5 0.5t10.5 1.5 q15 10 -7 16q-17 5 -43 -12zM879 10q206 36 351 189q-3 3 -12.5 4.5t-12.5 3.5q-18 7 -24 8q1 7 -2.5 13t-8 9t-12.5 8t-11 7q-2 2 -7 6t-7 5.5t-7.5 4.5t-8.5 2t-10 -1l-3 -1q-3 -1 -5.5 -2.5t-5.5 -3t-4 -3t0 -2.5q-21 17 -36 22q-5 1 -11 5.5t-10.5 7t-10 1.5t-11.5 -7 q-5 -5 -6 -15t-2 -13q-7 5 0 17.5t2 18.5q-3 6 -10.5 4.5t-12 -4.5t-11.5 -8.5t-9 -6.5t-8.5 -5.5t-8.5 -7.5q-3 -4 -6 -12t-5 -11q-2 4 -11.5 6.5t-9.5 5.5q2 -10 4 -35t5 -38q7 -31 -12 -48q-27 -25 -29 -40q-4 -22 12 -26q0 -7 -8 -20.5t-7 -21.5q0 -6 2 -16z" /> +<glyph unicode="" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" /> +<glyph unicode="" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " /> +<glyph unicode="" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " /> +<glyph unicode="" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" /> +<glyph unicode="" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" /> +<glyph unicode="" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" /> +<glyph unicode="" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" /> +<glyph unicode="" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" /> +<glyph unicode="" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" /> +<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" /> +<glyph unicode="" d="M917 631q0 26 -6 64h-362v-132h217q-3 -24 -16.5 -50t-37.5 -53t-66.5 -44.5t-96.5 -17.5q-99 0 -169 71t-70 171t70 171t169 71q92 0 153 -59l104 101q-108 100 -257 100q-160 0 -272 -112.5t-112 -271.5t112 -271.5t272 -112.5q165 0 266.5 105t101.5 270zM1262 585 h109v110h-109v110h-110v-110h-110v-110h110v-110h110v110zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1437 623q0 -208 -87 -370.5t-248 -254t-369 -91.5q-149 0 -285 58t-234 156t-156 234t-58 285t58 285t156 234t234 156t285 58q286 0 491 -192l-199 -191q-117 113 -292 113q-123 0 -227.5 -62t-165.5 -168.5t-61 -232.5t61 -232.5t165.5 -168.5t227.5 -62 q83 0 152.5 23t114.5 57.5t78.5 78.5t49 83t21.5 74h-416v252h692q12 -63 12 -122zM2304 745v-210h-209v-209h-210v209h-209v210h209v209h210v-209h209z" /> +<glyph unicode="" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" /> +<glyph unicode="" d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329 q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" /> +<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" /> +<glyph unicode="" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" /> +<glyph unicode="" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" /> +<glyph unicode="" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" /> +<glyph unicode="" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" /> +<glyph unicode="" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" /> +<glyph unicode="" horiz-adv-x="1792" d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5 t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M384 736q0 14 9 23t23 9h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64zM1120 512q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704zM1120 256q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704 q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704z" /> +<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96 q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q261 -58 287 -93z" /> +<glyph unicode="" horiz-adv-x="1664" d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" /> +<glyph unicode="" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" /> +<glyph unicode="" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" /> +<glyph unicode="" d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103 t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" /> +<glyph unicode="" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" /> +<glyph unicode="" horiz-adv-x="1792" d="M526 142q0 -53 -37.5 -90.5t-90.5 -37.5q-52 0 -90 38t-38 90q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1024 -64q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -53 -37.5 -90.5t-90.5 -37.5 t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1522 142q0 -52 -38 -90t-90 -38q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM558 1138q0 -66 -47 -113t-113 -47t-113 47t-47 113t47 113t113 47t113 -47t47 -113z M1728 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1088 1344q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1618 1138q0 -93 -66 -158.5t-158 -65.5q-93 0 -158.5 65.5t-65.5 158.5 q0 92 65.5 158t158.5 66q92 0 158 -66t66 -158z" /> +<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" /> +<glyph unicode="" horiz-adv-x="1664" d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320 q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86 t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218 q0 -87 -27 -168q136 -160 136 -398z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5 t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204 t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150 t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" /> +<glyph unicode="" horiz-adv-x="1920" d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16 h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16 h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96 q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896 h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9 h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102 q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" /> +<glyph unicode="" horiz-adv-x="1792" d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2 q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266 q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8 q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" /> +<glyph unicode="" horiz-adv-x="1664" d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9 t9 -23z" /> +<glyph unicode="" horiz-adv-x="1920" d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5 l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1 q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5 l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23 v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1024" d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5 q-2 -287 -226 -414q-68 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497 q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" /> +<glyph unicode="" horiz-adv-x="1664" d="M439 265l-256 -256q-10 -9 -23 -9q-12 0 -23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320 q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18 l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9 t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" /> +<glyph unicode="" horiz-adv-x="1024" d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5 t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" /> +<glyph unicode="" horiz-adv-x="640" d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192 q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="640" d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" /> +<glyph unicode="" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1534 846v-206h-514l-3 27 q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5t-65.5 -51.5t-30.5 -63h232v80 h126z" /> +<glyph unicode="" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1536 -50v-206h-514l-4 27 q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73h232v80h126z" /> +<glyph unicode="" horiz-adv-x="1920" d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5 t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89 q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117 q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5 t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" /> +<glyph unicode="" horiz-adv-x="1408" d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128 q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23 t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150 t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1408" d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800 q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113 q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1 q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1745 763l-164 -763h-334l178 832q13 56 -15 88q-27 33 -83 33h-169l-204 -953h-334l204 953h-286l-204 -953h-334l204 953l-153 327h1276q101 0 189.5 -40.5t147.5 -113.5q60 -73 81 -168.5t0 -194.5z" /> +<glyph unicode="" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" /> +<glyph unicode="" horiz-adv-x="1792" d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" /> +<glyph unicode="" horiz-adv-x="1792" d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1792 352v-352q0 -22 -20 -30q-8 -2 -12 -2q-13 0 -23 9l-93 93q-119 -143 -318.5 -226.5t-429.5 -83.5t-429.5 83.5t-318.5 226.5l-93 -93q-9 -9 -23 -9q-4 0 -12 2q-20 8 -20 30v352 q0 14 9 23t23 9h352q22 0 30 -20q8 -19 -7 -35l-100 -100q67 -91 189.5 -153.5t271.5 -82.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19 t19 -45v-128q0 -26 -19 -45t-45 -19h-192v-647q149 20 271.5 82.5t189.5 153.5l-100 100q-15 16 -7 35q8 20 30 20h352q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181 v-320h736z" /> +<glyph unicode="" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150 t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" /> +<glyph unicode="" horiz-adv-x="384" d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" /> +<glyph unicode="" d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 232 -177 396t-396 177q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128q13 0 23 10 t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56 q16 -8 32 -8q17 0 32 9z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136 t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" /> +<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5 t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" /> +<glyph unicode="" horiz-adv-x="1024" d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" /> +<glyph unicode="" d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5 t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q10 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5 t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M640 448l256 128l-256 128v-256zM1024 1039v-542l-512 -256v542zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1145 861q18 -35 -5 -66l-320 -448q-19 -27 -52 -27t-52 27l-320 448q-23 31 -5 66q17 35 57 35h640q40 0 57 -35zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1145 419q-17 -35 -57 -35h-640q-40 0 -57 35q-18 35 5 66l320 448q19 27 52 27t52 -27l320 -448q23 -31 5 -66zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1088 640q0 -33 -27 -52l-448 -320q-31 -23 -66 -5q-35 17 -35 57v640q0 40 35 57q35 18 66 -5l448 -320q27 -19 27 -52zM1280 160v960q0 14 -9 23t-23 9h-960q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h960q14 0 23 9t9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M976 229l35 -159q3 -12 -3 -22.5t-17 -14.5l-5 -1q-4 -2 -10.5 -3.5t-16 -4.5t-21.5 -5.5t-25.5 -5t-30 -5t-33.5 -4.5t-36.5 -3t-38.5 -1q-234 0 -409 130.5t-238 351.5h-95q-13 0 -22.5 9.5t-9.5 22.5v113q0 13 9.5 22.5t22.5 9.5h66q-2 57 1 105h-67q-14 0 -23 9 t-9 23v114q0 14 9 23t23 9h98q67 210 243.5 338t400.5 128q102 0 194 -23q11 -3 20 -15q6 -11 3 -24l-43 -159q-3 -13 -14 -19.5t-24 -2.5l-4 1q-4 1 -11.5 2.5l-17.5 3.5t-22.5 3.5t-26 3t-29 2.5t-29.5 1q-126 0 -226 -64t-150 -176h468q16 0 25 -12q10 -12 7 -26 l-24 -114q-5 -26 -32 -26h-488q-3 -37 0 -105h459q15 0 25 -12q9 -12 6 -27l-24 -112q-2 -11 -11 -18.5t-20 -7.5h-387q48 -117 149.5 -185.5t228.5 -68.5q18 0 36 1.5t33.5 3.5t29.5 4.5t24.5 5t18.5 4.5l12 3l5 2q13 5 26 -2q12 -7 15 -21z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1020 399v-367q0 -14 -9 -23t-23 -9h-956q-14 0 -23 9t-9 23v150q0 13 9.5 22.5t22.5 9.5h97v383h-95q-14 0 -23 9.5t-9 22.5v131q0 14 9 23t23 9h95v223q0 171 123.5 282t314.5 111q185 0 335 -125q9 -8 10 -20.5t-7 -22.5l-103 -127q-9 -11 -22 -12q-13 -2 -23 7 q-5 5 -26 19t-69 32t-93 18q-85 0 -137 -47t-52 -123v-215h305q13 0 22.5 -9t9.5 -23v-131q0 -13 -9.5 -22.5t-22.5 -9.5h-305v-379h414v181q0 13 9 22.5t23 9.5h162q14 0 23 -9.5t9 -22.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M978 351q0 -153 -99.5 -263.5t-258.5 -136.5v-175q0 -14 -9 -23t-23 -9h-135q-13 0 -22.5 9.5t-9.5 22.5v175q-66 9 -127.5 31t-101.5 44.5t-74 48t-46.5 37.5t-17.5 18q-17 21 -2 41l103 135q7 10 23 12q15 2 24 -9l2 -2q113 -99 243 -125q37 -8 74 -8q81 0 142.5 43 t61.5 122q0 28 -15 53t-33.5 42t-58.5 37.5t-66 32t-80 32.5q-39 16 -61.5 25t-61.5 26.5t-62.5 31t-56.5 35.5t-53.5 42.5t-43.5 49t-35.5 58t-21 66.5t-8.5 78q0 138 98 242t255 134v180q0 13 9.5 22.5t22.5 9.5h135q14 0 23 -9t9 -23v-176q57 -6 110.5 -23t87 -33.5 t63.5 -37.5t39 -29t15 -14q17 -18 5 -38l-81 -146q-8 -15 -23 -16q-14 -3 -27 7q-3 3 -14.5 12t-39 26.5t-58.5 32t-74.5 26t-85.5 11.5q-95 0 -155 -43t-60 -111q0 -26 8.5 -48t29.5 -41.5t39.5 -33t56 -31t60.5 -27t70 -27.5q53 -20 81 -31.5t76 -35t75.5 -42.5t62 -50 t53 -63.5t31.5 -76.5t13 -94z" /> +<glyph unicode="" horiz-adv-x="898" d="M898 1066v-102q0 -14 -9 -23t-23 -9h-168q-23 -144 -129 -234t-276 -110q167 -178 459 -536q14 -16 4 -34q-8 -18 -29 -18h-195q-16 0 -25 12q-306 367 -498 571q-9 9 -9 22v127q0 13 9.5 22.5t22.5 9.5h112q132 0 212.5 43t102.5 125h-427q-14 0 -23 9t-9 23v102 q0 14 9 23t23 9h413q-57 113 -268 113h-145q-13 0 -22.5 9.5t-9.5 22.5v133q0 14 9 23t23 9h832q14 0 23 -9t9 -23v-102q0 -14 -9 -23t-23 -9h-233q47 -61 64 -144h171q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1027" d="M603 0h-172q-13 0 -22.5 9t-9.5 23v330h-288q-13 0 -22.5 9t-9.5 23v103q0 13 9.5 22.5t22.5 9.5h288v85h-288q-13 0 -22.5 9t-9.5 23v104q0 13 9.5 22.5t22.5 9.5h214l-321 578q-8 16 0 32q10 16 28 16h194q19 0 29 -18l215 -425q19 -38 56 -125q10 24 30.5 68t27.5 61 l191 420q8 19 29 19h191q17 0 27 -16q9 -14 1 -31l-313 -579h215q13 0 22.5 -9.5t9.5 -22.5v-104q0 -14 -9.5 -23t-22.5 -9h-290v-85h290q13 0 22.5 -9.5t9.5 -22.5v-103q0 -14 -9.5 -23t-22.5 -9h-290v-330q0 -13 -9.5 -22.5t-22.5 -9.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1043 971q0 100 -65 162t-171 62h-320v-448h320q106 0 171 62t65 162zM1280 971q0 -193 -126.5 -315t-326.5 -122h-340v-118h505q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-505v-192q0 -14 -9.5 -23t-22.5 -9h-167q-14 0 -23 9t-9 23v192h-224q-14 0 -23 9t-9 23v128 q0 14 9 23t23 9h224v118h-224q-14 0 -23 9t-9 23v149q0 13 9 22.5t23 9.5h224v629q0 14 9 23t23 9h539q200 0 326.5 -122t126.5 -315z" /> +<glyph unicode="" horiz-adv-x="1792" d="M514 341l81 299h-159l75 -300q1 -1 1 -3t1 -3q0 1 0.5 3.5t0.5 3.5zM630 768l35 128h-292l32 -128h225zM822 768h139l-35 128h-70zM1271 340l78 300h-162l81 -299q0 -1 0.5 -3.5t1.5 -3.5q0 1 0.5 3t0.5 3zM1382 768l33 128h-297l34 -128h230zM1792 736v-64q0 -14 -9 -23 t-23 -9h-213l-164 -616q-7 -24 -31 -24h-159q-24 0 -31 24l-166 616h-209l-167 -616q-7 -24 -31 -24h-159q-11 0 -19.5 7t-10.5 17l-160 616h-208q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h175l-33 128h-142q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h109l-89 344q-5 15 5 28 q10 12 26 12h137q26 0 31 -24l90 -360h359l97 360q7 24 31 24h126q24 0 31 -24l98 -360h365l93 360q5 24 31 24h137q16 0 26 -12q10 -13 5 -28l-91 -344h111q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-145l-34 -128h179q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1167 896q18 -182 -131 -258q117 -28 175 -103t45 -214q-7 -71 -32.5 -125t-64.5 -89t-97 -58.5t-121.5 -34.5t-145.5 -15v-255h-154v251q-80 0 -122 1v-252h-154v255q-18 0 -54 0.5t-55 0.5h-200l31 183h111q50 0 58 51v402h16q-6 1 -16 1v287q-13 68 -89 68h-111v164 l212 -1q64 0 97 1v252h154v-247q82 2 122 2v245h154v-252q79 -7 140 -22.5t113 -45t82.5 -78t36.5 -114.5zM952 351q0 36 -15 64t-37 46t-57.5 30.5t-65.5 18.5t-74 9t-69 3t-64.5 -1t-47.5 -1v-338q8 0 37 -0.5t48 -0.5t53 1.5t58.5 4t57 8.5t55.5 14t47.5 21t39.5 30 t24.5 40t9.5 51zM881 827q0 33 -12.5 58.5t-30.5 42t-48 28t-55 16.5t-61.5 8t-58 2.5t-54 -1t-39.5 -0.5v-307q5 0 34.5 -0.5t46.5 0t50 2t55 5.5t51.5 11t48.5 18.5t37 27t27 38.5t9 51z" /> +<glyph unicode="" d="M1024 1024v472q22 -14 36 -28l408 -408q14 -14 28 -36h-472zM896 992q0 -40 28 -68t68 -28h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544z" /> +<glyph unicode="" d="M1468 1060q14 -14 28 -36h-472v472q22 -14 36 -28zM992 896h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544q0 -40 28 -68t68 -28zM1152 160v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704 q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1191 1128h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1572 -23 v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -11v-2l14 2q9 2 30 2h248v119h121zM1661 874v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162 l230 -662h70z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1191 104h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1661 -150 v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162l230 -662h70zM1572 1001v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -10v-3l14 3q9 1 30 1h248 v119h121z" /> +<glyph unicode="" horiz-adv-x="1792" d="M736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1792 -32v-192q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832 q14 0 23 -9t9 -23zM1600 480v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1408 992v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1216 1504v-192q0 -14 -9 -23t-23 -9h-256 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1216 -32v-192q0 -14 -9 -23t-23 -9h-256q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192 q14 0 23 -9t9 -23zM1408 480v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1600 992v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1792 1504v-192q0 -14 -9 -23t-23 -9h-832 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832q14 0 23 -9t9 -23z" /> +<glyph unicode="" d="M1346 223q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23 zM1486 165q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5 t82 -252.5zM1456 882v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165z" /> +<glyph unicode="" d="M1346 1247q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9 t9 -23zM1456 -142v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165zM1486 1189q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13 q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5t82 -252.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M256 192q0 26 -19 45t-45 19q-27 0 -45.5 -19t-18.5 -45q0 -27 18.5 -45.5t45.5 -18.5q26 0 45 18.5t19 45.5zM416 704v-640q0 -26 -19 -45t-45 -19h-288q-26 0 -45 19t-19 45v640q0 26 19 45t45 19h288q26 0 45 -19t19 -45zM1600 704q0 -86 -55 -149q15 -44 15 -76 q3 -76 -43 -137q17 -56 0 -117q-15 -57 -54 -94q9 -112 -49 -181q-64 -76 -197 -78h-36h-76h-17q-66 0 -144 15.5t-121.5 29t-120.5 39.5q-123 43 -158 44q-26 1 -45 19.5t-19 44.5v641q0 25 18 43.5t43 20.5q24 2 76 59t101 121q68 87 101 120q18 18 31 48t17.5 48.5 t13.5 60.5q7 39 12.5 61t19.5 52t34 50q19 19 45 19q46 0 82.5 -10.5t60 -26t40 -40.5t24 -45t12 -50t5 -45t0.5 -39q0 -38 -9.5 -76t-19 -60t-27.5 -56q-3 -6 -10 -18t-11 -22t-8 -24h277q78 0 135 -57t57 -135z" /> +<glyph unicode="" horiz-adv-x="1664" d="M256 960q0 -26 -19 -45t-45 -19q-27 0 -45.5 19t-18.5 45q0 27 18.5 45.5t45.5 18.5q26 0 45 -18.5t19 -45.5zM416 448v640q0 26 -19 45t-45 19h-288q-26 0 -45 -19t-19 -45v-640q0 -26 19 -45t45 -19h288q26 0 45 19t19 45zM1545 597q55 -61 55 -149q-1 -78 -57.5 -135 t-134.5 -57h-277q4 -14 8 -24t11 -22t10 -18q18 -37 27 -57t19 -58.5t10 -76.5q0 -24 -0.5 -39t-5 -45t-12 -50t-24 -45t-40 -40.5t-60 -26t-82.5 -10.5q-26 0 -45 19q-20 20 -34 50t-19.5 52t-12.5 61q-9 42 -13.5 60.5t-17.5 48.5t-31 48q-33 33 -101 120q-49 64 -101 121 t-76 59q-25 2 -43 20.5t-18 43.5v641q0 26 19 44.5t45 19.5q35 1 158 44q77 26 120.5 39.5t121.5 29t144 15.5h17h76h36q133 -2 197 -78q58 -69 49 -181q39 -37 54 -94q17 -61 0 -117q46 -61 43 -137q0 -32 -15 -76z" /> +<glyph unicode="" d="M919 233v157q0 50 -29 50q-17 0 -33 -16v-224q16 -16 33 -16q29 0 29 49zM1103 355h66v34q0 51 -33 51t-33 -51v-34zM532 621v-70h-80v-423h-74v423h-78v70h232zM733 495v-367h-67v40q-39 -45 -76 -45q-33 0 -42 28q-6 16 -6 54v290h66v-270q0 -24 1 -26q1 -15 15 -15 q20 0 42 31v280h67zM985 384v-146q0 -52 -7 -73q-12 -42 -53 -42q-35 0 -68 41v-36h-67v493h67v-161q32 40 68 40q41 0 53 -42q7 -21 7 -74zM1236 255v-9q0 -29 -2 -43q-3 -22 -15 -40q-27 -40 -80 -40q-52 0 -81 38q-21 27 -21 86v129q0 59 20 86q29 38 80 38t78 -38 q21 -28 21 -86v-76h-133v-65q0 -51 34 -51q24 0 30 26q0 1 0.5 7t0.5 16.5v21.5h68zM785 1079v-156q0 -51 -32 -51t-32 51v156q0 52 32 52t32 -52zM1318 366q0 177 -19 260q-10 44 -43 73.5t-76 34.5q-136 15 -412 15q-275 0 -411 -15q-44 -5 -76.5 -34.5t-42.5 -73.5 q-20 -87 -20 -260q0 -176 20 -260q10 -43 42.5 -73t75.5 -35q137 -15 412 -15t412 15q43 5 75.5 35t42.5 73q20 84 20 260zM563 1017l90 296h-75l-51 -195l-53 195h-78l24 -69t23 -69q35 -103 46 -158v-201h74v201zM852 936v130q0 58 -21 87q-29 38 -78 38q-51 0 -78 -38 q-21 -29 -21 -87v-130q0 -58 21 -87q27 -38 78 -38q49 0 78 38q21 27 21 87zM1033 816h67v370h-67v-283q-22 -31 -42 -31q-15 0 -16 16q-1 2 -1 26v272h-67v-293q0 -37 6 -55q11 -27 43 -27q36 0 77 45v-40zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M971 292v-211q0 -67 -39 -67q-23 0 -45 22v301q22 22 45 22q39 0 39 -67zM1309 291v-46h-90v46q0 68 45 68t45 -68zM343 509h107v94h-312v-94h105v-569h100v569zM631 -60h89v494h-89v-378q-30 -42 -57 -42q-18 0 -21 21q-1 3 -1 35v364h-89v-391q0 -49 8 -73 q12 -37 58 -37q48 0 102 61v-54zM1060 88v197q0 73 -9 99q-17 56 -71 56q-50 0 -93 -54v217h-89v-663h89v48q45 -55 93 -55q54 0 71 55q9 27 9 100zM1398 98v13h-91q0 -51 -2 -61q-7 -36 -40 -36q-46 0 -46 69v87h179v103q0 79 -27 116q-39 51 -106 51q-68 0 -107 -51 q-28 -37 -28 -116v-173q0 -79 29 -116q39 -51 108 -51q72 0 108 53q18 27 21 54q2 9 2 58zM790 1011v210q0 69 -43 69t-43 -69v-210q0 -70 43 -70t43 70zM1509 260q0 -234 -26 -350q-14 -59 -58 -99t-102 -46q-184 -21 -555 -21t-555 21q-58 6 -102.5 46t-57.5 99 q-26 112 -26 350q0 234 26 350q14 59 58 99t103 47q183 20 554 20t555 -20q58 -7 102.5 -47t57.5 -99q26 -112 26 -350zM511 1536h102l-121 -399v-271h-100v271q-14 74 -61 212q-37 103 -65 187h106l71 -263zM881 1203v-175q0 -81 -28 -118q-37 -51 -106 -51q-67 0 -105 51 q-28 38 -28 118v175q0 80 28 117q38 51 105 51q69 0 106 -51q28 -37 28 -117zM1216 1365v-499h-91v55q-53 -62 -103 -62q-46 0 -59 37q-8 24 -8 75v394h91v-367q0 -33 1 -35q3 -22 21 -22q27 0 57 43v381h91z" /> +<glyph unicode="" horiz-adv-x="1408" d="M597 869q-10 -18 -257 -456q-27 -46 -65 -46h-239q-21 0 -31 17t0 36l253 448q1 0 0 1l-161 279q-12 22 -1 37q9 15 32 15h239q40 0 66 -45zM1403 1511q11 -16 0 -37l-528 -934v-1l336 -615q11 -20 1 -37q-10 -15 -32 -15h-239q-42 0 -66 45l-339 622q18 32 531 942 q25 45 64 45h241q22 0 31 -15z" /> +<glyph unicode="" d="M685 771q0 1 -126 222q-21 34 -52 34h-184q-18 0 -26 -11q-7 -12 1 -29l125 -216v-1l-196 -346q-9 -14 0 -28q8 -13 24 -13h185q31 0 50 36zM1309 1268q-7 12 -24 12h-187q-30 0 -49 -35l-411 -729q1 -2 262 -481q20 -35 52 -35h184q18 0 25 12q8 13 -1 28l-260 476v1 l409 723q8 16 0 28zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1280 640q0 37 -30 54l-512 320q-31 20 -65 2q-33 -18 -33 -56v-640q0 -38 33 -56q16 -8 31 -8q20 0 34 10l512 320q30 17 30 54zM1792 640q0 -96 -1 -150t-8.5 -136.5t-22.5 -147.5q-16 -73 -69 -123t-124 -58q-222 -25 -671 -25t-671 25q-71 8 -124.5 58t-69.5 123 q-14 65 -21.5 147.5t-8.5 136.5t-1 150t1 150t8.5 136.5t22.5 147.5q16 73 69 123t124 58q222 25 671 25t671 -25q71 -8 124.5 -58t69.5 -123q14 -65 21.5 -147.5t8.5 -136.5t1 -150z" /> +<glyph unicode="" horiz-adv-x="1792" d="M402 829l494 -305l-342 -285l-490 319zM1388 274v-108l-490 -293v-1l-1 1l-1 -1v1l-489 293v108l147 -96l342 284v2l1 -1l1 1v-2l343 -284zM554 1418l342 -285l-494 -304l-338 270zM1390 829l338 -271l-489 -319l-343 285zM1239 1418l489 -319l-338 -270l-494 304z" /> +<glyph unicode="" d="M1289 -96h-1118v480h-160v-640h1438v640h-160v-480zM347 428l33 157l783 -165l-33 -156zM450 802l67 146l725 -339l-67 -145zM651 1158l102 123l614 -513l-102 -123zM1048 1536l477 -641l-128 -96l-477 641zM330 65v159h800v-159h-800z" /> +<glyph unicode="" d="M1362 110v648h-135q20 -63 20 -131q0 -126 -64 -232.5t-174 -168.5t-240 -62q-197 0 -337 135.5t-140 327.5q0 68 20 131h-141v-648q0 -26 17.5 -43.5t43.5 -17.5h1069q25 0 43 17.5t18 43.5zM1078 643q0 124 -90.5 211.5t-218.5 87.5q-127 0 -217.5 -87.5t-90.5 -211.5 t90.5 -211.5t217.5 -87.5q128 0 218.5 87.5t90.5 211.5zM1362 1003v165q0 28 -20 48.5t-49 20.5h-174q-29 0 -49 -20.5t-20 -48.5v-165q0 -29 20 -49t49 -20h174q29 0 49 20t20 49zM1536 1211v-1142q0 -81 -58 -139t-139 -58h-1142q-81 0 -139 58t-58 139v1142q0 81 58 139 t139 58h1142q81 0 139 -58t58 -139z" /> +<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM698 640q0 88 -62 150t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150zM1262 640q0 88 -62 150 t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150z" /> +<glyph unicode="" d="M768 914l201 -306h-402zM1133 384h94l-459 691l-459 -691h94l104 160h522zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M815 677q8 -63 -50.5 -101t-111.5 -6q-39 17 -53.5 58t-0.5 82t52 58q36 18 72.5 12t64 -35.5t27.5 -67.5zM926 698q-14 107 -113 164t-197 13q-63 -28 -100.5 -88.5t-34.5 -129.5q4 -91 77.5 -155t165.5 -56q91 8 152 84t50 168zM1165 1240q-20 27 -56 44.5t-58 22 t-71 12.5q-291 47 -566 -2q-43 -7 -66 -12t-55 -22t-50 -43q30 -28 76 -45.5t73.5 -22t87.5 -11.5q228 -29 448 -1q63 8 89.5 12t72.5 21.5t75 46.5zM1222 205q-8 -26 -15.5 -76.5t-14 -84t-28.5 -70t-58 -56.5q-86 -48 -189.5 -71.5t-202 -22t-201.5 18.5q-46 8 -81.5 18 t-76.5 27t-73 43.5t-52 61.5q-25 96 -57 292l6 16l18 9q223 -148 506.5 -148t507.5 148q21 -6 24 -23t-5 -45t-8 -37zM1403 1166q-26 -167 -111 -655q-5 -30 -27 -56t-43.5 -40t-54.5 -31q-252 -126 -610 -88q-248 27 -394 139q-15 12 -25.5 26.5t-17 35t-9 34t-6 39.5 t-5.5 35q-9 50 -26.5 150t-28 161.5t-23.5 147.5t-22 158q3 26 17.5 48.5t31.5 37.5t45 30t46 22.5t48 18.5q125 46 313 64q379 37 676 -50q155 -46 215 -122q16 -20 16.5 -51t-5.5 -54z" /> +<glyph unicode="" d="M848 666q0 43 -41 66t-77 1q-43 -20 -42.5 -72.5t43.5 -70.5q39 -23 81 4t36 72zM928 682q8 -66 -36 -121t-110 -61t-119 40t-56 113q-2 49 25.5 93t72.5 64q70 31 141.5 -10t81.5 -118zM1100 1073q-20 -21 -53.5 -34t-53 -16t-63.5 -8q-155 -20 -324 0q-44 6 -63 9.5 t-52.5 16t-54.5 32.5q13 19 36 31t40 15.5t47 8.5q198 35 408 1q33 -5 51 -8.5t43 -16t39 -31.5zM1142 327q0 7 5.5 26.5t3 32t-17.5 16.5q-161 -106 -365 -106t-366 106l-12 -6l-5 -12q26 -154 41 -210q47 -81 204 -108q249 -46 428 53q34 19 49 51.5t22.5 85.5t12.5 71z M1272 1020q9 53 -8 75q-43 55 -155 88q-216 63 -487 36q-132 -12 -226 -46q-38 -15 -59.5 -25t-47 -34t-29.5 -54q8 -68 19 -138t29 -171t24 -137q1 -5 5 -31t7 -36t12 -27t22 -28q105 -80 284 -100q259 -28 440 63q24 13 39.5 23t31 29t19.5 40q48 267 80 473zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M944 207l80 -237q-23 -35 -111 -66t-177 -32q-104 -2 -190.5 26t-142.5 74t-95 106t-55.5 120t-16.5 118v544h-168v215q72 26 129 69.5t91 90t58 102t34 99t15 88.5q1 5 4.5 8.5t7.5 3.5h244v-424h333v-252h-334v-518q0 -30 6.5 -56t22.5 -52.5t49.5 -41.5t81.5 -14 q78 2 134 29z" /> +<glyph unicode="" d="M1136 75l-62 183q-44 -22 -103 -22q-36 -1 -62 10.5t-38.5 31.5t-17.5 40.5t-5 43.5v398h257v194h-256v326h-188q-8 0 -9 -10q-5 -44 -17.5 -87t-39 -95t-77 -95t-118.5 -68v-165h130v-418q0 -57 21.5 -115t65 -111t121 -85.5t176.5 -30.5q69 1 136.5 25t85.5 50z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="768" d="M765 237q8 -19 -5 -35l-350 -384q-10 -10 -23 -10q-14 0 -24 10l-355 384q-13 16 -5 35q9 19 29 19h224v1248q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1248h224q21 0 29 -19z" /> +<glyph unicode="" horiz-adv-x="768" d="M765 1043q-9 -19 -29 -19h-224v-1248q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1248h-224q-21 0 -29 19t5 35l350 384q10 10 23 10q14 0 24 -10l355 -384q13 -16 5 -35z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 736v-192q0 -14 -9 -23t-23 -9h-1248v-224q0 -21 -19 -29t-35 5l-384 350q-10 10 -10 23q0 14 10 24l384 354q16 14 35 6q19 -9 19 -29v-224h1248q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1728 643q0 -14 -10 -24l-384 -354q-16 -14 -35 -6q-19 9 -19 29v224h-1248q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h1248v224q0 21 19 29t35 -5l384 -350q10 -10 10 -23z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1393 321q-39 -125 -123 -250q-129 -196 -257 -196q-49 0 -140 32q-86 32 -151 32q-61 0 -142 -33q-81 -34 -132 -34q-152 0 -301 259q-147 261 -147 503q0 228 113 374q112 144 284 144q72 0 177 -30q104 -30 138 -30q45 0 143 34q102 34 173 34q119 0 213 -65 q52 -36 104 -100q-79 -67 -114 -118q-65 -94 -65 -207q0 -124 69 -223t158 -126zM1017 1494q0 -61 -29 -136q-30 -75 -93 -138q-54 -54 -108 -72q-37 -11 -104 -17q3 149 78 257q74 107 250 148q1 -3 2.5 -11t2.5 -11q0 -4 0.5 -10t0.5 -10z" /> +<glyph unicode="" horiz-adv-x="1664" d="M682 530v-651l-682 94v557h682zM682 1273v-659h-682v565zM1664 530v-786l-907 125v661h907zM1664 1408v-794h-907v669z" /> +<glyph unicode="" horiz-adv-x="1408" d="M493 1053q16 0 27.5 11.5t11.5 27.5t-11.5 27.5t-27.5 11.5t-27 -11.5t-11 -27.5t11 -27.5t27 -11.5zM915 1053q16 0 27 11.5t11 27.5t-11 27.5t-27 11.5t-27.5 -11.5t-11.5 -27.5t11.5 -27.5t27.5 -11.5zM103 869q42 0 72 -30t30 -72v-430q0 -43 -29.5 -73t-72.5 -30 t-73 30t-30 73v430q0 42 30 72t73 30zM1163 850v-666q0 -46 -32 -78t-77 -32h-75v-227q0 -43 -30 -73t-73 -30t-73 30t-30 73v227h-138v-227q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73l-1 227h-74q-46 0 -78 32t-32 78v666h918zM931 1255q107 -55 171 -153.5t64 -215.5 h-925q0 117 64 215.5t172 153.5l-71 131q-7 13 5 20q13 6 20 -6l72 -132q95 42 201 42t201 -42l72 132q7 12 20 6q12 -7 5 -20zM1408 767v-430q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73v430q0 43 30 72.5t72 29.5q43 0 73 -29.5t30 -72.5z" /> +<glyph unicode="" d="M663 1125q-11 -1 -15.5 -10.5t-8.5 -9.5q-5 -1 -5 5q0 12 19 15h10zM750 1111q-4 -1 -11.5 6.5t-17.5 4.5q24 11 32 -2q3 -6 -3 -9zM399 684q-4 1 -6 -3t-4.5 -12.5t-5.5 -13.5t-10 -13q-7 -10 -1 -12q4 -1 12.5 7t12.5 18q1 3 2 7t2 6t1.5 4.5t0.5 4v3t-1 2.5t-3 2z M1254 325q0 18 -55 42q4 15 7.5 27.5t5 26t3 21.5t0.5 22.5t-1 19.5t-3.5 22t-4 20.5t-5 25t-5.5 26.5q-10 48 -47 103t-72 75q24 -20 57 -83q87 -162 54 -278q-11 -40 -50 -42q-31 -4 -38.5 18.5t-8 83.5t-11.5 107q-9 39 -19.5 69t-19.5 45.5t-15.5 24.5t-13 15t-7.5 7 q-14 62 -31 103t-29.5 56t-23.5 33t-15 40q-4 21 6 53.5t4.5 49.5t-44.5 25q-15 3 -44.5 18t-35.5 16q-8 1 -11 26t8 51t36 27q37 3 51 -30t4 -58q-11 -19 -2 -26.5t30 -0.5q13 4 13 36v37q-5 30 -13.5 50t-21 30.5t-23.5 15t-27 7.5q-107 -8 -89 -134q0 -15 -1 -15 q-9 9 -29.5 10.5t-33 -0.5t-15.5 5q1 57 -16 90t-45 34q-27 1 -41.5 -27.5t-16.5 -59.5q-1 -15 3.5 -37t13 -37.5t15.5 -13.5q10 3 16 14q4 9 -7 8q-7 0 -15.5 14.5t-9.5 33.5q-1 22 9 37t34 14q17 0 27 -21t9.5 -39t-1.5 -22q-22 -15 -31 -29q-8 -12 -27.5 -23.5 t-20.5 -12.5q-13 -14 -15.5 -27t7.5 -18q14 -8 25 -19.5t16 -19t18.5 -13t35.5 -6.5q47 -2 102 15q2 1 23 7t34.5 10.5t29.5 13t21 17.5q9 14 20 8q5 -3 6.5 -8.5t-3 -12t-16.5 -9.5q-20 -6 -56.5 -21.5t-45.5 -19.5q-44 -19 -70 -23q-25 -5 -79 2q-10 2 -9 -2t17 -19 q25 -23 67 -22q17 1 36 7t36 14t33.5 17.5t30 17t24.5 12t17.5 2.5t8.5 -11q0 -2 -1 -4.5t-4 -5t-6 -4.5t-8.5 -5t-9 -4.5t-10 -5t-9.5 -4.5q-28 -14 -67.5 -44t-66.5 -43t-49 -1q-21 11 -63 73q-22 31 -25 22q-1 -3 -1 -10q0 -25 -15 -56.5t-29.5 -55.5t-21 -58t11.5 -63 q-23 -6 -62.5 -90t-47.5 -141q-2 -18 -1.5 -69t-5.5 -59q-8 -24 -29 -3q-32 31 -36 94q-2 28 4 56q4 19 -1 18l-4 -5q-36 -65 10 -166q5 -12 25 -28t24 -20q20 -23 104 -90.5t93 -76.5q16 -15 17.5 -38t-14 -43t-45.5 -23q8 -15 29 -44.5t28 -54t7 -70.5q46 24 7 92 q-4 8 -10.5 16t-9.5 12t-2 6q3 5 13 9.5t20 -2.5q46 -52 166 -36q133 15 177 87q23 38 34 30q12 -6 10 -52q-1 -25 -23 -92q-9 -23 -6 -37.5t24 -15.5q3 19 14.5 77t13.5 90q2 21 -6.5 73.5t-7.5 97t23 70.5q15 18 51 18q1 37 34.5 53t72.5 10.5t60 -22.5zM626 1152 q3 17 -2.5 30t-11.5 15q-9 2 -9 -7q2 -5 5 -6q10 0 7 -15q-3 -20 8 -20q3 0 3 3zM1045 955q-2 8 -6.5 11.5t-13 5t-14.5 5.5q-5 3 -9.5 8t-7 8t-5.5 6.5t-4 4t-4 -1.5q-14 -16 7 -43.5t39 -31.5q9 -1 14.5 8t3.5 20zM867 1168q0 11 -5 19.5t-11 12.5t-9 3q-14 -1 -7 -7l4 -2 q14 -4 18 -31q0 -3 8 2zM921 1401q0 2 -2.5 5t-9 7t-9.5 6q-15 15 -24 15q-9 -1 -11.5 -7.5t-1 -13t-0.5 -12.5q-1 -4 -6 -10.5t-6 -9t3 -8.5q4 -3 8 0t11 9t15 9q1 1 9 1t15 2t9 7zM1486 60q20 -12 31 -24.5t12 -24t-2.5 -22.5t-15.5 -22t-23.5 -19.5t-30 -18.5 t-31.5 -16.5t-32 -15.5t-27 -13q-38 -19 -85.5 -56t-75.5 -64q-17 -16 -68 -19.5t-89 14.5q-18 9 -29.5 23.5t-16.5 25.5t-22 19.5t-47 9.5q-44 1 -130 1q-19 0 -57 -1.5t-58 -2.5q-44 -1 -79.5 -15t-53.5 -30t-43.5 -28.5t-53.5 -11.5q-29 1 -111 31t-146 43q-19 4 -51 9.5 t-50 9t-39.5 9.5t-33.5 14.5t-17 19.5q-10 23 7 66.5t18 54.5q1 16 -4 40t-10 42.5t-4.5 36.5t10.5 27q14 12 57 14t60 12q30 18 42 35t12 51q21 -73 -32 -106q-32 -20 -83 -15q-34 3 -43 -10q-13 -15 5 -57q2 -6 8 -18t8.5 -18t4.5 -17t1 -22q0 -15 -17 -49t-14 -48 q3 -17 37 -26q20 -6 84.5 -18.5t99.5 -20.5q24 -6 74 -22t82.5 -23t55.5 -4q43 6 64.5 28t23 48t-7.5 58.5t-19 52t-20 36.5q-121 190 -169 242q-68 74 -113 40q-11 -9 -15 15q-3 16 -2 38q1 29 10 52t24 47t22 42q8 21 26.5 72t29.5 78t30 61t39 54q110 143 124 195 q-12 112 -16 310q-2 90 24 151.5t106 104.5q39 21 104 21q53 1 106 -13.5t89 -41.5q57 -42 91.5 -121.5t29.5 -147.5q-5 -95 30 -214q34 -113 133 -218q55 -59 99.5 -163t59.5 -191q8 -49 5 -84.5t-12 -55.5t-20 -22q-10 -2 -23.5 -19t-27 -35.5t-40.5 -33.5t-61 -14 q-18 1 -31.5 5t-22.5 13.5t-13.5 15.5t-11.5 20.5t-9 19.5q-22 37 -41 30t-28 -49t7 -97q20 -70 1 -195q-10 -65 18 -100.5t73 -33t85 35.5q59 49 89.5 66.5t103.5 42.5q53 18 77 36.5t18.5 34.5t-25 28.5t-51.5 23.5q-33 11 -49.5 48t-15 72.5t15.5 47.5q1 -31 8 -56.5 t14.5 -40.5t20.5 -28.5t21 -19t21.5 -13t16.5 -9.5z" /> +<glyph unicode="" d="M1024 36q-42 241 -140 498h-2l-2 -1q-16 -6 -43 -16.5t-101 -49t-137 -82t-131 -114.5t-103 -148l-15 11q184 -150 418 -150q132 0 256 52zM839 643q-21 49 -53 111q-311 -93 -673 -93q-1 -7 -1 -21q0 -124 44 -236.5t124 -201.5q50 89 123.5 166.5t142.5 124.5t130.5 81 t99.5 48l37 13q4 1 13 3.5t13 4.5zM732 855q-120 213 -244 378q-138 -65 -234 -186t-128 -272q302 0 606 80zM1416 536q-210 60 -409 29q87 -239 128 -469q111 75 185 189.5t96 250.5zM611 1277q-1 0 -2 -1q1 1 2 1zM1201 1132q-185 164 -433 164q-76 0 -155 -19 q131 -170 246 -382q69 26 130 60.5t96.5 61.5t65.5 57t37.5 40.5zM1424 647q-3 232 -149 410l-1 -1q-9 -12 -19 -24.5t-43.5 -44.5t-71 -60.5t-100 -65t-131.5 -64.5q25 -53 44 -95q2 -6 6.5 -17.5t7.5 -16.5q36 5 74.5 7t73.5 2t69 -1.5t64 -4t56.5 -5.5t48 -6.5t36.5 -6 t25 -4.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1173 473q0 50 -19.5 91.5t-48.5 68.5t-73 49t-82.5 34t-87.5 23l-104 24q-30 7 -44 10.5t-35 11.5t-30 16t-16.5 21t-7.5 30q0 77 144 77q43 0 77 -12t54 -28.5t38 -33.5t40 -29t48 -12q47 0 75.5 32t28.5 77q0 55 -56 99.5t-142 67.5t-182 23q-68 0 -132 -15.5 t-119.5 -47t-89 -87t-33.5 -128.5q0 -61 19 -106.5t56 -75.5t80 -48.5t103 -32.5l146 -36q90 -22 112 -36q32 -20 32 -60q0 -39 -40 -64.5t-105 -25.5q-51 0 -91.5 16t-65 38.5t-45.5 45t-46 38.5t-54 16q-50 0 -75.5 -30t-25.5 -75q0 -92 122 -157.5t291 -65.5 q73 0 140 18.5t122.5 53.5t88.5 93.5t33 131.5zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5q-130 0 -234 80q-77 -16 -150 -16q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5q0 73 16 150q-80 104 -80 234q0 159 112.5 271.5t271.5 112.5q130 0 234 -80 q77 16 150 16q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -73 -16 -150q80 -104 80 -234z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1000 1102l37 194q5 23 -9 40t-35 17h-712q-23 0 -38.5 -17t-15.5 -37v-1101q0 -7 6 -1l291 352q23 26 38 33.5t48 7.5h239q22 0 37 14.5t18 29.5q24 130 37 191q4 21 -11.5 40t-36.5 19h-294q-29 0 -48 19t-19 48v42q0 29 19 47.5t48 18.5h346q18 0 35 13.5t20 29.5z M1227 1324q-15 -73 -53.5 -266.5t-69.5 -350t-35 -173.5q-6 -22 -9 -32.5t-14 -32.5t-24.5 -33t-38.5 -21t-58 -10h-271q-13 0 -22 -10q-8 -9 -426 -494q-22 -25 -58.5 -28.5t-48.5 5.5q-55 22 -55 98v1410q0 55 38 102.5t120 47.5h888q95 0 127 -53t10 -159zM1227 1324 l-158 -790q4 17 35 173.5t69.5 350t53.5 266.5z" /> +<glyph unicode="" d="M704 192v1024q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-1024q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1376 576v640q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-640q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408 q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1280 480q0 -40 -28 -68t-68 -28q-51 0 -80 43l-227 341h-45v-132l247 -411q9 -15 9 -33q0 -26 -19 -45t-45 -19h-192v-272q0 -46 -33 -79t-79 -33h-160q-46 0 -79 33t-33 79v272h-192q-26 0 -45 19t-19 45q0 18 9 33l247 411v132h-45l-227 -341q-29 -43 -80 -43 q-40 0 -68 28t-28 68q0 29 16 53l256 384q73 107 176 107h384q103 0 176 -107l256 -384q16 -24 16 -53zM864 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 832v-416q0 -40 -28 -68t-68 -28t-68 28t-28 68v352h-64v-912q0 -46 -33 -79t-79 -33t-79 33t-33 79v464h-64v-464q0 -46 -33 -79t-79 -33t-79 33t-33 79v912h-64v-352q0 -40 -28 -68t-68 -28t-68 28t-28 68v416q0 80 56 136t136 56h640q80 0 136 -56t56 -136z M736 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" /> +<glyph unicode="" d="M773 234l350 473q16 22 24.5 59t-6 85t-61.5 79q-40 26 -83 25.5t-73.5 -17.5t-54.5 -45q-36 -40 -96 -40q-59 0 -95 40q-24 28 -54.5 45t-73.5 17.5t-84 -25.5q-46 -31 -60.5 -79t-6 -85t24.5 -59zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1472 640q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5t223.5 45.5t184 123t123 184t45.5 223.5zM1748 363q-4 -15 -20 -20l-292 -96v-306q0 -16 -13 -26q-15 -10 -29 -4 l-292 94l-180 -248q-10 -13 -26 -13t-26 13l-180 248l-292 -94q-14 -6 -29 4q-13 10 -13 26v306l-292 96q-16 5 -20 20q-5 17 4 29l180 248l-180 248q-9 13 -4 29q4 15 20 20l292 96v306q0 16 13 26q15 10 29 4l292 -94l180 248q9 12 26 12t26 -12l180 -248l292 94 q14 6 29 -4q13 -10 13 -26v-306l292 -96q16 -5 20 -20q5 -16 -4 -29l-180 -248l180 -248q9 -12 4 -29z" /> +<glyph unicode="" d="M1262 233q-54 -9 -110 -9q-182 0 -337 90t-245 245t-90 337q0 192 104 357q-201 -60 -328.5 -229t-127.5 -384q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51q144 0 273.5 61.5t220.5 171.5zM1465 318q-94 -203 -283.5 -324.5t-413.5 -121.5q-156 0 -298 61 t-245 164t-164 245t-61 298q0 153 57.5 292.5t156 241.5t235.5 164.5t290 68.5q44 2 61 -39q18 -41 -15 -72q-86 -78 -131.5 -181.5t-45.5 -218.5q0 -148 73 -273t198 -198t273 -73q118 0 228 51q41 18 72 -13q14 -14 17.5 -34t-4.5 -38z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1088 704q0 26 -19 45t-45 19h-256q-26 0 -45 -19t-19 -45t19 -45t45 -19h256q26 0 45 19t19 45zM1664 896v-960q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v960q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1728 1344v-256q0 -26 -19 -45t-45 -19h-1536 q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1536q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1632 576q0 -26 -19 -45t-45 -19h-224q0 -171 -67 -290l208 -209q19 -19 19 -45t-19 -45q-18 -19 -45 -19t-45 19l-198 197q-5 -5 -15 -13t-42 -28.5t-65 -36.5t-82 -29t-97 -13v896h-128v-896q-51 0 -101.5 13.5t-87 33t-66 39t-43.5 32.5l-15 14l-183 -207 q-20 -21 -48 -21q-24 0 -43 16q-19 18 -20.5 44.5t15.5 46.5l202 227q-58 114 -58 274h-224q-26 0 -45 19t-19 45t19 45t45 19h224v294l-173 173q-19 19 -19 45t19 45t45 19t45 -19l173 -173h844l173 173q19 19 45 19t45 -19t19 -45t-19 -45l-173 -173v-294h224q26 0 45 -19 t19 -45zM1152 1152h-640q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M675 252q21 34 11 69t-45 50q-34 14 -73 1t-60 -46q-22 -34 -13 -68.5t43 -50.5t74.5 -2.5t62.5 47.5zM769 373q8 13 3.5 26.5t-17.5 18.5q-14 5 -28.5 -0.5t-21.5 -18.5q-17 -31 13 -45q14 -5 29 0.5t22 18.5zM943 266q-45 -102 -158 -150t-224 -12 q-107 34 -147.5 126.5t6.5 187.5q47 93 151.5 139t210.5 19q111 -29 158.5 -119.5t2.5 -190.5zM1255 426q-9 96 -89 170t-208.5 109t-274.5 21q-223 -23 -369.5 -141.5t-132.5 -264.5q9 -96 89 -170t208.5 -109t274.5 -21q223 23 369.5 141.5t132.5 264.5zM1563 422 q0 -68 -37 -139.5t-109 -137t-168.5 -117.5t-226 -83t-270.5 -31t-275 33.5t-240.5 93t-171.5 151t-65 199.5q0 115 69.5 245t197.5 258q169 169 341.5 236t246.5 -7q65 -64 20 -209q-4 -14 -1 -20t10 -7t14.5 0.5t13.5 3.5l6 2q139 59 246 59t153 -61q45 -63 0 -178 q-2 -13 -4.5 -20t4.5 -12.5t12 -7.5t17 -6q57 -18 103 -47t80 -81.5t34 -116.5zM1489 1046q42 -47 54.5 -108.5t-6.5 -117.5q-8 -23 -29.5 -34t-44.5 -4q-23 8 -34 29.5t-4 44.5q20 63 -24 111t-107 35q-24 -5 -45 8t-25 37q-5 24 8 44.5t37 25.5q60 13 119 -5.5t101 -65.5z M1670 1209q87 -96 112.5 -222.5t-13.5 -241.5q-9 -27 -34 -40t-52 -4t-40 34t-5 52q28 82 10 172t-80 158q-62 69 -148 95.5t-173 8.5q-28 -6 -52 9.5t-30 43.5t9.5 51.5t43.5 29.5q123 26 244 -11.5t208 -134.5z" /> +<glyph unicode="" d="M1133 -34q-171 -94 -368 -94q-196 0 -367 94q138 87 235.5 211t131.5 268q35 -144 132.5 -268t235.5 -211zM638 1394v-485q0 -252 -126.5 -459.5t-330.5 -306.5q-181 215 -181 495q0 187 83.5 349.5t229.5 269.5t325 137zM1536 638q0 -280 -181 -495 q-204 99 -330.5 306.5t-126.5 459.5v485q179 -30 325 -137t229.5 -269.5t83.5 -349.5z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1402 433q-32 -80 -76 -138t-91 -88.5t-99 -46.5t-101.5 -14.5t-96.5 8.5t-86.5 22t-69.5 27.5t-46 22.5l-17 10q-113 -228 -289.5 -359.5t-384.5 -132.5q-19 0 -32 13t-13 32t13 31.5t32 12.5q173 1 322.5 107.5t251.5 294.5q-36 -14 -72 -23t-83 -13t-91 2.5t-93 28.5 t-92 59t-84.5 100t-74.5 146q114 47 214 57t167.5 -7.5t124.5 -56.5t88.5 -77t56.5 -82q53 131 79 291q-7 -1 -18 -2.5t-46.5 -2.5t-69.5 0.5t-81.5 10t-88.5 23t-84 42.5t-75 65t-54.5 94.5t-28.5 127.5q70 28 133.5 36.5t112.5 -1t92 -30t73.5 -50t56 -61t42 -63t27.5 -56 t16 -39.5l4 -16q12 122 12 195q-8 6 -21.5 16t-49 44.5t-63.5 71.5t-54 93t-33 112.5t12 127t70 138.5q73 -25 127.5 -61.5t84.5 -76.5t48 -85t20.5 -89t-0.5 -85.5t-13 -76.5t-19 -62t-17 -42l-7 -15q1 -5 1 -50.5t-1 -71.5q3 7 10 18.5t30.5 43t50.5 58t71 55.5t91.5 44.5 t112 14.5t132.5 -24q-2 -78 -21.5 -141.5t-50 -104.5t-69.5 -71.5t-81.5 -45.5t-84.5 -24t-80 -9.5t-67.5 1t-46.5 4.5l-17 3q-23 -147 -73 -283q6 7 18 18.5t49.5 41t77.5 52.5t99.5 42t117.5 20t129 -23.5t137 -77.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1259 283v-66q0 -85 -57.5 -144.5t-138.5 -59.5h-57l-260 -269v269h-529q-81 0 -138.5 59.5t-57.5 144.5v66h1238zM1259 609v-255h-1238v255h1238zM1259 937v-255h-1238v255h1238zM1259 1077v-67h-1238v67q0 84 57.5 143.5t138.5 59.5h846q81 0 138.5 -59.5t57.5 -143.5z " /> +<glyph unicode="" d="M1152 640q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1152 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-192q0 -14 -9 -23t-23 -9q-12 0 -24 10l-319 319q-9 9 -9 23t9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h352q13 0 22.5 -9.5t9.5 -22.5zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M1024 960v-640q0 -26 -19 -45t-45 -19q-20 0 -37 12l-448 320q-27 19 -27 52t27 52l448 320q17 12 37 12q26 0 45 -19t19 -45zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5 t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1023 349l102 -204q-58 -179 -210 -290t-339 -111q-156 0 -288.5 77.5t-210 210t-77.5 288.5q0 181 104.5 330t274.5 211l17 -131q-122 -54 -195 -165.5t-73 -244.5q0 -185 131.5 -316.5t316.5 -131.5q126 0 232.5 65t165 175.5t49.5 236.5zM1571 249l58 -114l-256 -128 q-13 -7 -29 -7q-40 0 -57 35l-239 477h-472q-24 0 -42.5 16.5t-21.5 40.5l-96 779q-2 16 6 42q14 51 57 82.5t97 31.5q66 0 113 -47t47 -113q0 -69 -52 -117.5t-120 -41.5l37 -289h423v-128h-407l16 -128h455q40 0 57 -35l228 -455z" /> +<glyph unicode="" d="M1292 898q10 216 -161 222q-231 8 -312 -261q44 19 82 19q85 0 74 -96q-4 -57 -74 -167t-105 -110q-43 0 -82 169q-13 54 -45 255q-30 189 -160 177q-59 -7 -164 -100l-81 -72l-81 -72l52 -67q76 52 87 52q57 0 107 -179q15 -55 45 -164.5t45 -164.5q68 -179 164 -179 q157 0 383 294q220 283 226 444zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1152" d="M1152 704q0 -191 -94.5 -353t-256.5 -256.5t-353 -94.5h-160q-14 0 -23 9t-9 23v611l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v93l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v250q0 14 9 23t23 9h160 q14 0 23 -9t9 -23v-181l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-93l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-487q188 13 318 151t130 328q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-352v-352q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v352h-352q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h352v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-352h352q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832 q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="2176" d="M620 416q-110 -64 -268 -64h-128v64h-64q-13 0 -22.5 23.5t-9.5 56.5q0 24 7 49q-58 2 -96.5 10.5t-38.5 20.5t38.5 20.5t96.5 10.5q-7 25 -7 49q0 33 9.5 56.5t22.5 23.5h64v64h128q158 0 268 -64h1113q42 -7 106.5 -18t80.5 -14q89 -15 150 -40.5t83.5 -47.5t22.5 -40 t-22.5 -40t-83.5 -47.5t-150 -40.5q-16 -3 -80.5 -14t-106.5 -18h-1113zM1739 668q53 -36 53 -92t-53 -92l81 -30q68 48 68 122t-68 122zM625 400h1015q-217 -38 -456 -80q-57 0 -113 -24t-83 -48l-28 -24l-288 -288q-26 -26 -70.5 -45t-89.5 -19h-96l-93 464h29 q157 0 273 64zM352 816h-29l93 464h96q46 0 90 -19t70 -45l288 -288q4 -4 11 -10.5t30.5 -23t48.5 -29t61.5 -23t72.5 -10.5l456 -80h-1015q-116 64 -273 64z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1519 760q62 0 103.5 -40.5t41.5 -101.5q0 -97 -93 -130l-172 -59l56 -167q7 -21 7 -47q0 -59 -42 -102t-101 -43q-47 0 -85.5 27t-53.5 72l-55 165l-310 -106l55 -164q8 -24 8 -47q0 -59 -42 -102t-102 -43q-47 0 -85 27t-53 72l-55 163l-153 -53q-29 -9 -50 -9 q-61 0 -101.5 40t-40.5 101q0 47 27.5 85t71.5 53l156 53l-105 313l-156 -54q-26 -8 -48 -8q-60 0 -101 40.5t-41 100.5q0 47 27.5 85t71.5 53l157 53l-53 159q-8 24 -8 47q0 60 42 102.5t102 42.5q47 0 85 -27t53 -72l54 -160l310 105l-54 160q-8 24 -8 47q0 59 42.5 102 t101.5 43q47 0 85.5 -27.5t53.5 -71.5l53 -161l162 55q21 6 43 6q60 0 102.5 -39.5t42.5 -98.5q0 -45 -30 -81.5t-74 -51.5l-157 -54l105 -316l164 56q24 8 46 8zM725 498l310 105l-105 315l-310 -107z" /> +<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM1280 352v436q-31 -35 -64 -55q-34 -22 -132.5 -85t-151.5 -99q-98 -69 -164 -69v0v0q-66 0 -164 69 q-46 32 -141.5 92.5t-142.5 92.5q-12 8 -33 27t-31 27v-436q0 -40 28 -68t68 -28h832q40 0 68 28t28 68zM1280 925q0 41 -27.5 70t-68.5 29h-832q-40 0 -68 -28t-28 -68q0 -37 30.5 -76.5t67.5 -64.5q47 -32 137.5 -89t129.5 -83q3 -2 17 -11.5t21 -14t21 -13t23.5 -13 t21.5 -9.5t22.5 -7.5t20.5 -2.5t20.5 2.5t22.5 7.5t21.5 9.5t23.5 13t21 13t21 14t17 11.5l267 174q35 23 66.5 62.5t31.5 73.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M127 640q0 163 67 313l367 -1005q-196 95 -315 281t-119 411zM1415 679q0 -19 -2.5 -38.5t-10 -49.5t-11.5 -44t-17.5 -59t-17.5 -58l-76 -256l-278 826q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-75 1 -202 10q-12 1 -20.5 -5t-11.5 -15t-1.5 -18.5t9 -16.5 t19.5 -8l80 -8l120 -328l-168 -504l-280 832q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-7 0 -23 0.5t-26 0.5q105 160 274.5 253.5t367.5 93.5q147 0 280.5 -53t238.5 -149h-10q-55 0 -92 -40.5t-37 -95.5q0 -12 2 -24t4 -21.5t8 -23t9 -21t12 -22.5t12.5 -21 t14.5 -24t14 -23q63 -107 63 -212zM909 573l237 -647q1 -6 5 -11q-126 -44 -255 -44q-112 0 -217 32zM1570 1009q95 -174 95 -369q0 -209 -104 -385.5t-279 -278.5l235 678q59 169 59 276q0 42 -6 79zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286 t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 -215q173 0 331.5 68t273 182.5t182.5 273t68 331.5t-68 331.5t-182.5 273t-273 182.5t-331.5 68t-331.5 -68t-273 -182.5t-182.5 -273t-68 -331.5t68 -331.5t182.5 -273 t273 -182.5t331.5 -68z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1086 1536v-1536l-272 -128q-228 20 -414 102t-293 208.5t-107 272.5q0 140 100.5 263.5t275 205.5t391.5 108v-172q-217 -38 -356.5 -150t-139.5 -255q0 -152 154.5 -267t388.5 -145v1360zM1755 954l37 -390l-525 114l147 83q-119 70 -280 99v172q277 -33 481 -157z" /> +<glyph unicode="" horiz-adv-x="2048" d="M960 1536l960 -384v-128h-128q0 -26 -20.5 -45t-48.5 -19h-1526q-28 0 -48.5 19t-20.5 45h-128v128zM256 896h256v-768h128v768h256v-768h128v768h256v-768h128v768h256v-768h59q28 0 48.5 -19t20.5 -45v-64h-1664v64q0 26 20.5 45t48.5 19h59v768zM1851 -64 q28 0 48.5 -19t20.5 -45v-128h-1920v128q0 26 20.5 45t48.5 19h1782z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1774 700l18 -316q4 -69 -82 -128t-235 -93.5t-323 -34.5t-323 34.5t-235 93.5t-82 128l18 316l574 -181q22 -7 48 -7t48 7zM2304 1024q0 -23 -22 -31l-1120 -352q-4 -1 -10 -1t-10 1l-652 206q-43 -34 -71 -111.5t-34 -178.5q63 -36 63 -109q0 -69 -58 -107l58 -433 q2 -14 -8 -25q-9 -11 -24 -11h-192q-15 0 -24 11q-10 11 -8 25l58 433q-58 38 -58 107q0 73 65 111q11 207 98 330l-333 104q-22 8 -22 31t22 31l1120 352q4 1 10 1t10 -1l1120 -352q22 -8 22 -31z" /> +<glyph unicode="" d="M859 579l13 -707q-62 11 -105 11q-41 0 -105 -11l13 707q-40 69 -168.5 295.5t-216.5 374.5t-181 287q58 -15 108 -15q43 0 111 15q63 -111 133.5 -229.5t167 -276.5t138.5 -227q37 61 109.5 177.5t117.5 190t105 176t107 189.5q54 -14 107 -14q56 0 114 14v0 q-28 -39 -60 -88.5t-49.5 -78.5t-56.5 -96t-49 -84q-146 -248 -353 -610z" /> +<glyph unicode="" d="M768 750h725q12 -67 12 -128q0 -217 -91 -387.5t-259.5 -266.5t-386.5 -96q-157 0 -299 60.5t-245 163.5t-163.5 245t-60.5 299t60.5 299t163.5 245t245 163.5t299 60.5q300 0 515 -201l-209 -201q-123 119 -306 119q-129 0 -238.5 -65t-173.5 -176.5t-64 -243.5 t64 -243.5t173.5 -176.5t238.5 -65q87 0 160 24t120 60t82 82t51.5 87t22.5 78h-436v264z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1095 369q16 -16 0 -31q-62 -62 -199 -62t-199 62q-16 15 0 31q6 6 15 6t15 -6q48 -49 169 -49q120 0 169 49q6 6 15 6t15 -6zM788 550q0 -37 -26 -63t-63 -26t-63.5 26t-26.5 63q0 38 26.5 64t63.5 26t63 -26.5t26 -63.5zM1183 550q0 -37 -26.5 -63t-63.5 -26t-63 26 t-26 63t26 63.5t63 26.5t63.5 -26t26.5 -64zM1434 670q0 49 -35 84t-85 35t-86 -36q-130 90 -311 96l63 283l200 -45q0 -37 26 -63t63 -26t63.5 26.5t26.5 63.5t-26.5 63.5t-63.5 26.5q-54 0 -80 -50l-221 49q-19 5 -25 -16l-69 -312q-180 -7 -309 -97q-35 37 -87 37 q-50 0 -85 -35t-35 -84q0 -35 18.5 -64t49.5 -44q-6 -27 -6 -56q0 -142 140 -243t337 -101q198 0 338 101t140 243q0 32 -7 57q30 15 48 43.5t18 63.5zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191 t348 71t348 -71t286 -191t191 -286t71 -348z" /> +<glyph unicode="" d="M939 407q13 -13 0 -26q-53 -53 -171 -53t-171 53q-13 13 0 26q5 6 13 6t13 -6q42 -42 145 -42t145 42q5 6 13 6t13 -6zM676 563q0 -31 -23 -54t-54 -23t-54 23t-23 54q0 32 22.5 54.5t54.5 22.5t54.5 -22.5t22.5 -54.5zM1014 563q0 -31 -23 -54t-54 -23t-54 23t-23 54 q0 32 22.5 54.5t54.5 22.5t54.5 -22.5t22.5 -54.5zM1229 666q0 42 -30 72t-73 30q-42 0 -73 -31q-113 78 -267 82l54 243l171 -39q1 -32 23.5 -54t53.5 -22q32 0 54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5q-48 0 -69 -43l-189 42q-17 5 -21 -13l-60 -268q-154 -6 -265 -83 q-30 32 -74 32q-43 0 -73 -30t-30 -72q0 -30 16 -55t42 -38q-5 -25 -5 -48q0 -122 120 -208.5t289 -86.5q170 0 290 86.5t120 208.5q0 25 -6 49q25 13 40.5 37.5t15.5 54.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" d="M866 697l90 27v62q0 79 -58 135t-138 56t-138 -55.5t-58 -134.5v-283q0 -20 -14 -33.5t-33 -13.5t-32.5 13.5t-13.5 33.5v120h-151v-122q0 -82 57.5 -139t139.5 -57q81 0 138.5 56.5t57.5 136.5v280q0 19 13.5 33t33.5 14q19 0 32.5 -14t13.5 -33v-54zM1199 502v122h-150 v-126q0 -20 -13.5 -33.5t-33.5 -13.5q-19 0 -32.5 14t-13.5 33v123l-90 -26l-60 28v-123q0 -80 58 -137t139 -57t138.5 57t57.5 139zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103 t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1062 824v118q0 42 -30 72t-72 30t-72 -30t-30 -72v-612q0 -175 -126 -299t-303 -124q-178 0 -303.5 125.5t-125.5 303.5v266h328v-262q0 -43 30 -72.5t72 -29.5t72 29.5t30 72.5v620q0 171 126.5 292t301.5 121q176 0 302 -122t126 -294v-136l-195 -58zM1592 602h328 v-266q0 -178 -125.5 -303.5t-303.5 -125.5q-177 0 -303 124.5t-126 300.5v268l131 -61l195 58v-270q0 -42 30 -71.5t72 -29.5t72 29.5t30 71.5v275z" /> +<glyph unicode="" d="M1472 160v480h-704v704h-480q-93 0 -158.5 -65.5t-65.5 -158.5v-480h704v-704h480q93 0 158.5 65.5t65.5 158.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M328 1254h204v-983h-532v697h328v286zM328 435v369h-123v-369h123zM614 968v-697h205v697h-205zM614 1254v-204h205v204h-205zM901 968h533v-942h-533v163h328v82h-328v697zM1229 435v369h-123v-369h123zM1516 968h532v-942h-532v163h327v82h-327v697zM1843 435v369h-123 v-369h123z" /> +<glyph unicode="" d="M1046 516q0 -64 -38 -109t-91 -45q-43 0 -70 15v277q28 17 70 17q53 0 91 -45.5t38 -109.5zM703 944q0 -64 -38 -109.5t-91 -45.5q-43 0 -70 15v277q28 17 70 17q53 0 91 -45t38 -109zM1265 513q0 134 -88 229t-213 95q-20 0 -39 -3q-23 -78 -78 -136q-87 -95 -211 -101 v-636l211 41v206q51 -19 117 -19q125 0 213 95t88 229zM922 940q0 134 -88.5 229t-213.5 95q-74 0 -141 -36h-186v-840l211 41v206q55 -19 116 -19q125 0 213.5 95t88.5 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="2038" d="M1222 607q75 3 143.5 -20.5t118 -58.5t101 -94.5t84 -108t75.5 -120.5q33 -56 78.5 -109t75.5 -80.5t99 -88.5q-48 -30 -108.5 -57.5t-138.5 -59t-114 -47.5q-44 37 -74 115t-43.5 164.5t-33 180.5t-42.5 168.5t-72.5 123t-122.5 48.5l-10 -2l-6 -4q4 -5 13 -14 q6 -5 28 -23.5t25.5 -22t19 -18t18 -20.5t11.5 -21t10.5 -27.5t4.5 -31t4 -40.5l1 -33q1 -26 -2.5 -57.5t-7.5 -52t-12.5 -58.5t-11.5 -53q-35 1 -101 -9.5t-98 -10.5q-39 0 -72 10q-2 16 -2 47q0 74 3 96q2 13 31.5 41.5t57 59t26.5 51.5q-24 2 -43 -24 q-36 -53 -111.5 -99.5t-136.5 -46.5q-25 0 -75.5 63t-106.5 139.5t-84 96.5q-6 4 -27 30q-482 -112 -513 -112q-16 0 -28 11t-12 27q0 15 8.5 26.5t22.5 14.5l486 106q-8 14 -8 25t5.5 17.5t16 11.5t20 7t23 4.5t18.5 4.5q4 1 15.5 7.5t17.5 6.5q15 0 28 -16t20 -33 q163 37 172 37q17 0 29.5 -11t12.5 -28q0 -15 -8.5 -26t-23.5 -14l-182 -40l-1 -16q-1 -26 81.5 -117.5t104.5 -91.5q47 0 119 80t72 129q0 36 -23.5 53t-51 18.5t-51 11.5t-23.5 34q0 16 10 34l-68 19q43 44 43 117q0 26 -5 58q82 16 144 16q44 0 71.5 -1.5t48.5 -8.5 t31 -13.5t20.5 -24.5t15.5 -33.5t17 -47.5t24 -60l50 25q-3 -40 -23 -60t-42.5 -21t-40 -6.5t-16.5 -20.5zM1282 842q-5 5 -13.5 15.5t-12 14.5t-10.5 11.5t-10 10.5l-8 8t-8.5 7.5t-8 5t-8.5 4.5q-7 3 -14.5 5t-20.5 2.5t-22 0.5h-32.5h-37.5q-126 0 -217 -43 q16 30 36 46.5t54 29.5t65.5 36t46 36.5t50 55t43.5 50.5q12 -9 28 -31.5t32 -36.5t38 -13l12 1v-76l22 -1q247 95 371 190q28 21 50 39t42.5 37.5t33 31t29.5 34t24 31t24.5 37t23 38t27 47.5t29.5 53l7 9q-2 -53 -43 -139q-79 -165 -205 -264t-306 -142q-14 -3 -42 -7.5 t-50 -9.5t-39 -14q3 -19 24.5 -46t21.5 -34q0 -11 -26 -30zM1061 -79q39 26 131.5 47.5t146.5 21.5q9 0 22.5 -15.5t28 -42.5t26 -50t24 -51t14.5 -33q-121 -45 -244 -45q-61 0 -125 11zM822 568l48 12l109 -177l-73 -48zM1323 51q3 -15 3 -16q0 -7 -17.5 -14.5t-46 -13 t-54 -9.5t-53.5 -7.5t-32 -4.5l-7 43q21 2 60.5 8.5t72 10t60.5 3.5h14zM866 679l-96 -20l-6 17q10 1 32.5 7t34.5 6q19 0 35 -10zM1061 45h31l10 -83l-41 -12v95zM1950 1535v1v-1zM1950 1535l-1 -5l-2 -2l1 3zM1950 1535l1 1z" /> +<glyph unicode="" d="M1167 -50q-5 19 -24 5q-30 -22 -87 -39t-131 -17q-129 0 -193 49q-5 4 -13 4q-11 0 -26 -12q-7 -6 -7.5 -16t7.5 -20q34 -32 87.5 -46t102.5 -12.5t99 4.5q41 4 84.5 20.5t65 30t28.5 20.5q12 12 7 29zM1128 65q-19 47 -39 61q-23 15 -76 15q-47 0 -71 -10 q-29 -12 -78 -56q-26 -24 -12 -44q9 -8 17.5 -4.5t31.5 23.5q3 2 10.5 8.5t10.5 8.5t10 7t11.5 7t12.5 5t15 4.5t16.5 2.5t20.5 1q27 0 44.5 -7.5t23 -14.5t13.5 -22q10 -17 12.5 -20t12.5 1q23 12 14 34zM1483 346q0 22 -5 44.5t-16.5 45t-34 36.5t-52.5 14 q-33 0 -97 -41.5t-129 -83.5t-101 -42q-27 -1 -63.5 19t-76 49t-83.5 58t-100 49t-111 19q-115 -1 -197 -78.5t-84 -178.5q-2 -112 74 -164q29 -20 62.5 -28.5t103.5 -8.5q57 0 132 32.5t134 71t120 70.5t93 31q26 -1 65 -31.5t71.5 -67t68 -67.5t55.5 -32q35 -3 58.5 14 t55.5 63q28 41 42.5 101t14.5 106zM1536 506q0 -164 -62 -304.5t-166 -236t-242.5 -149.5t-290.5 -54t-293 57.5t-247.5 157t-170.5 241.5t-64 302q0 89 19.5 172.5t49 145.5t70.5 118.5t78.5 94t78.5 69.5t64.5 46.5t42.5 24.5q14 8 51 26.5t54.5 28.5t48 30t60.5 44 q36 28 58 72.5t30 125.5q129 -155 186 -193q44 -29 130 -68t129 -66q21 -13 39 -25t60.5 -46.5t76 -70.5t75 -95t69 -122t47 -148.5t19.5 -177.5z" /> +<glyph unicode="" d="M1070 463l-160 -160l-151 -152l-30 -30q-65 -64 -151.5 -87t-171.5 -2q-16 -70 -72 -115t-129 -45q-85 0 -145 60.5t-60 145.5q0 72 44.5 128t113.5 72q-22 86 1 173t88 152l12 12l151 -152l-11 -11q-37 -37 -37 -89t37 -90q37 -37 89 -37t89 37l30 30l151 152l161 160z M729 1145l12 -12l-152 -152l-12 12q-37 37 -89 37t-89 -37t-37 -89.5t37 -89.5l29 -29l152 -152l160 -160l-151 -152l-161 160l-151 152l-30 30q-68 67 -90 159.5t5 179.5q-70 15 -115 71t-45 129q0 85 60 145.5t145 60.5q76 0 133.5 -49t69.5 -123q84 20 169.5 -3.5 t149.5 -87.5zM1536 78q0 -85 -60 -145.5t-145 -60.5q-74 0 -131 47t-71 118q-86 -28 -179.5 -6t-161.5 90l-11 12l151 152l12 -12q37 -37 89 -37t89 37t37 89t-37 89l-30 30l-152 152l-160 160l152 152l160 -160l152 -152l29 -30q64 -64 87.5 -150.5t2.5 -171.5 q76 -11 126.5 -68.5t50.5 -134.5zM1534 1202q0 -77 -51 -135t-127 -69q26 -85 3 -176.5t-90 -158.5l-12 -12l-151 152l12 12q37 37 37 89t-37 89t-89 37t-89 -37l-30 -30l-152 -152l-160 -160l-152 152l161 160l152 152l29 30q67 67 159 89.5t178 -3.5q11 75 68.5 126 t135.5 51q85 0 145 -60.5t60 -145.5z" /> +<glyph unicode="" d="M654 458q-1 -3 -12.5 0.5t-31.5 11.5l-20 9q-44 20 -87 49q-7 5 -41 31.5t-38 28.5q-67 -103 -134 -181q-81 -95 -105 -110q-4 -2 -19.5 -4t-18.5 0q6 4 82 92q21 24 85.5 115t78.5 118q17 30 51 98.5t36 77.5q-8 1 -110 -33q-8 -2 -27.5 -7.5t-34.5 -9.5t-17 -5 q-2 -2 -2 -10.5t-1 -9.5q-5 -10 -31 -15q-23 -7 -47 0q-18 4 -28 21q-4 6 -5 23q6 2 24.5 5t29.5 6q58 16 105 32q100 35 102 35q10 2 43 19.5t44 21.5q9 3 21.5 8t14.5 5.5t6 -0.5q2 -12 -1 -33q0 -2 -12.5 -27t-26.5 -53.5t-17 -33.5q-25 -50 -77 -131l64 -28 q12 -6 74.5 -32t67.5 -28q4 -1 10.5 -25.5t4.5 -30.5zM449 944q3 -15 -4 -28q-12 -23 -50 -38q-30 -12 -60 -12q-26 3 -49 26q-14 15 -18 41l1 3q3 -3 19.5 -5t26.5 0t58 16q36 12 55 14q17 0 21 -17zM1147 815l63 -227l-139 42zM39 15l694 232v1032l-694 -233v-1031z M1280 332l102 -31l-181 657l-100 31l-216 -536l102 -31l45 110l211 -65zM777 1294l573 -184v380zM1088 -29l158 -13l-54 -160l-40 66q-130 -83 -276 -108q-58 -12 -91 -12h-84q-79 0 -199.5 39t-183.5 85q-8 7 -8 16q0 8 5 13.5t13 5.5q4 0 18 -7.5t30.5 -16.5t20.5 -11 q73 -37 159.5 -61.5t157.5 -24.5q95 0 167 14.5t157 50.5q15 7 30.5 15.5t34 19t28.5 16.5zM1536 1050v-1079l-774 246q-14 -6 -375 -127.5t-368 -121.5q-13 0 -18 13q0 1 -1 3v1078q3 9 4 10q5 6 20 11q106 35 149 50v384l558 -198q2 0 160.5 55t316 108.5t161.5 53.5 q20 0 20 -21v-418z" /> +<glyph unicode="" horiz-adv-x="1792" d="M288 1152q66 0 113 -47t47 -113v-1088q0 -66 -47 -113t-113 -47h-128q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h128zM1664 989q58 -34 93 -93t35 -128v-768q0 -106 -75 -181t-181 -75h-864q-66 0 -113 47t-47 113v1536q0 40 28 68t68 28h672q40 0 88 -20t76 -48 l152 -152q28 -28 48 -76t20 -88v-163zM928 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 512v128q0 14 -9 23 t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128 q14 0 23 9t9 23zM1184 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 256v128q0 14 -9 23t-23 9h-128 q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1536 896v256h-160q-40 0 -68 28t-28 68v160h-640v-512h896z" /> +<glyph unicode="" d="M1344 1536q26 0 45 -19t19 -45v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280zM512 1248v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 992v-64q0 -14 9 -23t23 -9h64q14 0 23 9 t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 736v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 480v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 160v64 q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64 q14 0 23 9t9 23zM384 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 -96v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9 t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM896 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 928v64 q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 160v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64 q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9 t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1188 988l-292 -292v-824q0 -46 -33 -79t-79 -33t-79 33t-33 79v384h-64v-384q0 -46 -33 -79t-79 -33t-79 33t-33 79v824l-292 292q-28 28 -28 68t28 68t68 28t68 -28l228 -228h368l228 228q28 28 68 28t68 -28t28 -68t-28 -68zM864 1152q0 -93 -65.5 -158.5 t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" /> +<glyph unicode="" horiz-adv-x="1664" d="M780 1064q0 -60 -19 -113.5t-63 -92.5t-105 -39q-76 0 -138 57.5t-92 135.5t-30 151q0 60 19 113.5t63 92.5t105 39q77 0 138.5 -57.5t91.5 -135t30 -151.5zM438 581q0 -80 -42 -139t-119 -59q-76 0 -141.5 55.5t-100.5 133.5t-35 152q0 80 42 139.5t119 59.5 q76 0 141.5 -55.5t100.5 -134t35 -152.5zM832 608q118 0 255 -97.5t229 -237t92 -254.5q0 -46 -17 -76.5t-48.5 -45t-64.5 -20t-76 -5.5q-68 0 -187.5 45t-182.5 45q-66 0 -192.5 -44.5t-200.5 -44.5q-183 0 -183 146q0 86 56 191.5t139.5 192.5t187.5 146t193 59zM1071 819 q-61 0 -105 39t-63 92.5t-19 113.5q0 74 30 151.5t91.5 135t138.5 57.5q61 0 105 -39t63 -92.5t19 -113.5q0 -73 -30 -151t-92 -135.5t-138 -57.5zM1503 923q77 0 119 -59.5t42 -139.5q0 -74 -35 -152t-100.5 -133.5t-141.5 -55.5q-77 0 -119 59t-42 139q0 74 35 152.5 t100.5 134t141.5 55.5z" /> +<glyph unicode="" horiz-adv-x="768" d="M704 1008q0 -145 -57 -243.5t-152 -135.5l45 -821q2 -26 -16 -45t-44 -19h-192q-26 0 -44 19t-16 45l45 821q-95 37 -152 135.5t-57 243.5q0 128 42.5 249.5t117.5 200t160 78.5t160 -78.5t117.5 -200t42.5 -249.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M896 -93l640 349v636l-640 -233v-752zM832 772l698 254l-698 254l-698 -254zM1664 1024v-768q0 -35 -18 -65t-49 -47l-704 -384q-28 -16 -61 -16t-61 16l-704 384q-31 17 -49 47t-18 65v768q0 40 23 73t61 47l704 256q22 8 44 8t44 -8l704 -256q38 -14 61 -47t23 -73z " /> +<glyph unicode="" horiz-adv-x="2304" d="M640 -96l384 192v314l-384 -164v-342zM576 358l404 173l-404 173l-404 -173zM1664 -96l384 192v314l-384 -164v-342zM1600 358l404 173l-404 173l-404 -173zM1152 651l384 165v266l-384 -164v-267zM1088 1030l441 189l-441 189l-441 -189zM2176 512v-416q0 -36 -19 -67 t-52 -47l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-5 2 -7 4q-2 -2 -7 -4l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-33 16 -52 47t-19 67v416q0 38 21.5 70t56.5 48l434 186v400q0 38 21.5 70t56.5 48l448 192q23 10 50 10t50 -10l448 -192q35 -16 56.5 -48t21.5 -70 v-400l434 -186q36 -16 57 -48t21 -70z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1848 1197h-511v-124h511v124zM1596 771q-90 0 -146 -52.5t-62 -142.5h408q-18 195 -200 195zM1612 186q63 0 122 32t76 87h221q-100 -307 -427 -307q-214 0 -340.5 132t-126.5 347q0 208 130.5 345.5t336.5 137.5q138 0 240.5 -68t153 -179t50.5 -248q0 -17 -2 -47h-658 q0 -111 57.5 -171.5t166.5 -60.5zM277 236h296q205 0 205 167q0 180 -199 180h-302v-347zM277 773h281q78 0 123.5 36.5t45.5 113.5q0 144 -190 144h-260v-294zM0 1282h594q87 0 155 -14t126.5 -47.5t90 -96.5t31.5 -154q0 -181 -172 -263q114 -32 172 -115t58 -204 q0 -75 -24.5 -136.5t-66 -103.5t-98.5 -71t-121 -42t-134 -13h-611v1260z" /> +<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM499 1041h-371v-787h382q117 0 197 57.5t80 170.5q0 158 -143 200q107 52 107 164q0 57 -19.5 96.5 t-56.5 60.5t-79 29.5t-97 8.5zM477 723h-176v184h163q119 0 119 -90q0 -94 -106 -94zM486 388h-185v217h189q124 0 124 -113q0 -104 -128 -104zM1136 356q-68 0 -104 38t-36 107h411q1 10 1 30q0 132 -74.5 220.5t-203.5 88.5q-128 0 -210 -86t-82 -216q0 -135 79 -217 t213 -82q205 0 267 191h-138q-11 -34 -47.5 -54t-75.5 -20zM1126 722q113 0 124 -122h-254q4 56 39 89t91 33zM964 988h319v-77h-319v77z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1582 954q0 -101 -71.5 -172.5t-172.5 -71.5t-172.5 71.5t-71.5 172.5t71.5 172.5t172.5 71.5t172.5 -71.5t71.5 -172.5zM812 212q0 104 -73 177t-177 73q-27 0 -54 -6l104 -42q77 -31 109.5 -106.5t1.5 -151.5q-31 -77 -107 -109t-152 -1q-21 8 -62 24.5t-61 24.5 q32 -60 91 -96.5t130 -36.5q104 0 177 73t73 177zM1642 953q0 126 -89.5 215.5t-215.5 89.5q-127 0 -216.5 -89.5t-89.5 -215.5q0 -127 89.5 -216t216.5 -89q126 0 215.5 89t89.5 216zM1792 953q0 -189 -133.5 -322t-321.5 -133l-437 -319q-12 -129 -109 -218t-229 -89 q-121 0 -214 76t-118 192l-230 92v429l389 -157q79 48 173 48q13 0 35 -2l284 407q2 187 135.5 319t320.5 132q188 0 321.5 -133.5t133.5 -321.5z" /> +<glyph unicode="" d="M1242 889q0 80 -57 136.5t-137 56.5t-136.5 -57t-56.5 -136q0 -80 56.5 -136.5t136.5 -56.5t137 56.5t57 136.5zM632 301q0 -83 -58 -140.5t-140 -57.5q-56 0 -103 29t-72 77q52 -20 98 -40q60 -24 120 1.5t85 86.5q24 60 -1.5 120t-86.5 84l-82 33q22 5 42 5 q82 0 140 -57.5t58 -140.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v153l172 -69q20 -92 93.5 -152t168.5 -60q104 0 181 70t87 173l345 252q150 0 255.5 105.5t105.5 254.5q0 150 -105.5 255.5t-255.5 105.5 q-148 0 -253 -104.5t-107 -252.5l-225 -322q-9 1 -28 1q-75 0 -137 -37l-297 119v468q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5zM1289 887q0 -100 -71 -170.5t-171 -70.5t-170.5 70.5t-70.5 170.5t70.5 171t170.5 71q101 0 171.5 -70.5t70.5 -171.5z " /> +<glyph unicode="" horiz-adv-x="1792" d="M836 367l-15 -368l-2 -22l-420 29q-36 3 -67 31.5t-47 65.5q-11 27 -14.5 55t4 65t12 55t21.5 64t19 53q78 -12 509 -28zM449 953l180 -379l-147 92q-63 -72 -111.5 -144.5t-72.5 -125t-39.5 -94.5t-18.5 -63l-4 -21l-190 357q-17 26 -18 56t6 47l8 18q35 63 114 188 l-140 86zM1680 436l-188 -359q-12 -29 -36.5 -46.5t-43.5 -20.5l-18 -4q-71 -7 -219 -12l8 -164l-230 367l211 362l7 -173q170 -16 283 -5t170 33zM895 1360q-47 -63 -265 -435l-317 187l-19 12l225 356q20 31 60 45t80 10q24 -2 48.5 -12t42 -21t41.5 -33t36 -34.5 t36 -39.5t32 -35zM1550 1053l212 -363q18 -37 12.5 -76t-27.5 -74q-13 -20 -33 -37t-38 -28t-48.5 -22t-47 -16t-51.5 -14t-46 -12q-34 72 -265 436l313 195zM1407 1279l142 83l-220 -373l-419 20l151 86q-34 89 -75 166t-75.5 123.5t-64.5 80t-47 46.5l-17 13l405 -1 q31 3 58 -10.5t39 -28.5l11 -15q39 -61 112 -190z" /> +<glyph unicode="" horiz-adv-x="2048" d="M480 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM516 768h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5zM1888 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM2048 544v-384 q0 -14 -9 -23t-23 -9h-96v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-1024v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5t179 63.5h768q98 0 179 -63.5t104 -157.5 l105 -419h28q93 0 158.5 -65.5t65.5 -158.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1824 640q93 0 158.5 -65.5t65.5 -158.5v-384q0 -14 -9 -23t-23 -9h-96v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-1024v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5 t179 63.5h128v224q0 14 9 23t23 9h448q14 0 23 -9t9 -23v-224h128q98 0 179 -63.5t104 -157.5l105 -419h28zM320 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM516 640h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5z M1728 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47z" /> +<glyph unicode="" d="M1504 64q0 -26 -19 -45t-45 -19h-462q1 -17 6 -87.5t5 -108.5q0 -25 -18 -42.5t-43 -17.5h-320q-25 0 -43 17.5t-18 42.5q0 38 5 108.5t6 87.5h-462q-26 0 -45 19t-19 45t19 45l402 403h-229q-26 0 -45 19t-19 45t19 45l402 403h-197q-26 0 -45 19t-19 45t19 45l384 384 q19 19 45 19t45 -19l384 -384q19 -19 19 -45t-19 -45t-45 -19h-197l402 -403q19 -19 19 -45t-19 -45t-45 -19h-229l402 -403q19 -19 19 -45z" /> +<glyph unicode="" d="M1127 326q0 32 -30 51q-193 115 -447 115q-133 0 -287 -34q-42 -9 -42 -52q0 -20 13.5 -34.5t35.5 -14.5q5 0 37 8q132 27 243 27q226 0 397 -103q19 -11 33 -11q19 0 33 13.5t14 34.5zM1223 541q0 40 -35 61q-237 141 -548 141q-153 0 -303 -42q-48 -13 -48 -64 q0 -25 17.5 -42.5t42.5 -17.5q7 0 37 8q122 33 251 33q279 0 488 -124q24 -13 38 -13q25 0 42.5 17.5t17.5 42.5zM1331 789q0 47 -40 70q-126 73 -293 110.5t-343 37.5q-204 0 -364 -47q-23 -7 -38.5 -25.5t-15.5 -48.5q0 -31 20.5 -52t51.5 -21q11 0 40 8q133 37 307 37 q159 0 309.5 -34t253.5 -95q21 -12 40 -12q29 0 50.5 20.5t21.5 51.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M1024 1233l-303 -582l24 -31h279v-415h-507l-44 -30l-142 -273l-30 -30h-301v303l303 583l-24 30h-279v415h507l44 30l142 273l30 30h301v-303z" /> +<glyph unicode="" horiz-adv-x="2304" d="M784 164l16 241l-16 523q-1 10 -7.5 17t-16.5 7q-9 0 -16 -7t-7 -17l-14 -523l14 -241q1 -10 7.5 -16.5t15.5 -6.5q22 0 24 23zM1080 193l11 211l-12 586q0 16 -13 24q-8 5 -16 5t-16 -5q-13 -8 -13 -24l-1 -6l-10 -579q0 -1 11 -236v-1q0 -10 6 -17q9 -11 23 -11 q11 0 20 9q9 7 9 20zM35 533l20 -128l-20 -126q-2 -9 -9 -9t-9 9l-17 126l17 128q2 9 9 9t9 -9zM121 612l26 -207l-26 -203q-2 -9 -10 -9q-9 0 -9 10l-23 202l23 207q0 9 9 9q8 0 10 -9zM401 159zM213 650l25 -245l-25 -237q0 -11 -11 -11q-10 0 -12 11l-21 237l21 245 q2 12 12 12q11 0 11 -12zM307 657l23 -252l-23 -244q-2 -13 -14 -13q-13 0 -13 13l-21 244l21 252q0 13 13 13q12 0 14 -13zM401 639l21 -234l-21 -246q-2 -16 -16 -16q-6 0 -10.5 4.5t-4.5 11.5l-20 246l20 234q0 6 4.5 10.5t10.5 4.5q14 0 16 -15zM784 164zM495 785 l21 -380l-21 -246q0 -7 -5 -12.5t-12 -5.5q-16 0 -18 18l-18 246l18 380q2 18 18 18q7 0 12 -5.5t5 -12.5zM589 871l19 -468l-19 -244q0 -8 -5.5 -13.5t-13.5 -5.5q-18 0 -20 19l-16 244l16 468q2 19 20 19q8 0 13.5 -5.5t5.5 -13.5zM687 911l18 -506l-18 -242 q-2 -21 -22 -21q-19 0 -21 21l-16 242l16 506q0 9 6.5 15.5t14.5 6.5q9 0 15 -6.5t7 -15.5zM1079 169v0v0zM881 915l15 -510l-15 -239q0 -10 -7.5 -17.5t-17.5 -7.5t-17 7t-8 18l-14 239l14 510q0 11 7.5 18t17.5 7t17.5 -7t7.5 -18zM980 896l14 -492l-14 -236q0 -11 -8 -19 t-19 -8t-19 8t-9 19l-12 236l12 492q1 12 9 20t19 8t18.5 -8t8.5 -20zM1192 404l-14 -231v0q0 -13 -9 -22t-22 -9t-22 9t-10 22l-6 114l-6 117l12 636v3q2 15 12 24q9 7 20 7q8 0 15 -5q14 -8 16 -26zM2304 423q0 -117 -83 -199.5t-200 -82.5h-786q-13 2 -22 11t-9 22v899 q0 23 28 33q85 34 181 34q195 0 338 -131.5t160 -323.5q53 22 110 22q117 0 200 -83t83 -201z" /> +<glyph unicode="" d="M768 768q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 0q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127 t443 -43zM768 384q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 1536q208 0 385 -34.5t280 -93.5t103 -128v-128q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5 t-103 128v128q0 69 103 128t280 93.5t385 34.5z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M894 465q33 -26 84 -56q59 7 117 7q147 0 177 -49q16 -22 2 -52q0 -1 -1 -2l-2 -2v-1q-6 -38 -71 -38q-48 0 -115 20t-130 53q-221 -24 -392 -83q-153 -262 -242 -262q-15 0 -28 7l-24 12q-1 1 -6 5q-10 10 -6 36q9 40 56 91.5t132 96.5q14 9 23 -6q2 -2 2 -4q52 85 107 197 q68 136 104 262q-24 82 -30.5 159.5t6.5 127.5q11 40 42 40h21h1q23 0 35 -15q18 -21 9 -68q-2 -6 -4 -8q1 -3 1 -8v-30q-2 -123 -14 -192q55 -164 146 -238zM318 54q52 24 137 158q-51 -40 -87.5 -84t-49.5 -74zM716 974q-15 -42 -2 -132q1 7 7 44q0 3 7 43q1 4 4 8 q-1 1 -1 2t-0.5 1.5t-0.5 1.5q-1 22 -13 36q0 -1 -1 -2v-2zM592 313q135 54 284 81q-2 1 -13 9.5t-16 13.5q-76 67 -127 176q-27 -86 -83 -197q-30 -56 -45 -83zM1238 329q-24 24 -140 24q76 -28 124 -28q14 0 18 1q0 1 -2 3z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M233 768v-107h70l164 -661h159l128 485q7 20 10 46q2 16 2 24h4l3 -24q1 -3 3.5 -20t5.5 -26l128 -485h159l164 661h70v107h-300v-107h90l-99 -438q-5 -20 -7 -46l-2 -21h-4l-3 21q-1 5 -4 21t-5 25l-144 545h-114l-144 -545q-2 -9 -4.5 -24.5t-3.5 -21.5l-4 -21h-4l-2 21 q-2 26 -7 46l-99 438h90v107h-300z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M429 106v-106h281v106h-75l103 161q5 7 10 16.5t7.5 13.5t3.5 4h2q1 -4 5 -10q2 -4 4.5 -7.5t6 -8t6.5 -8.5l107 -161h-76v-106h291v106h-68l-192 273l195 282h67v107h-279v-107h74l-103 -159q-4 -7 -10 -16.5t-9 -13.5l-2 -3h-2q-1 4 -5 10q-6 11 -17 23l-106 159h76v107 h-290v-107h68l189 -272l-194 -283h-68z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M416 106v-106h327v106h-93v167h137q76 0 118 15q67 23 106.5 87t39.5 146q0 81 -37 141t-100 87q-48 19 -130 19h-368v-107h92v-555h-92zM769 386h-119v268h120q52 0 83 -18q56 -33 56 -115q0 -89 -62 -120q-31 -15 -78 -15z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M1280 320v-320h-1024v192l192 192l128 -128l384 384zM448 512q-80 0 -136 56t-56 136t56 136t136 56t136 -56t56 -136t-56 -136t-136 -56z" /> +<glyph unicode="" d="M640 1152v128h-128v-128h128zM768 1024v128h-128v-128h128zM640 896v128h-128v-128h128zM768 768v128h-128v-128h128zM1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400 v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-128v-128h-128v128h-512v-1536h1280zM781 593l107 -349q8 -27 8 -52q0 -83 -72.5 -137.5t-183.5 -54.5t-183.5 54.5t-72.5 137.5q0 25 8 52q21 63 120 396v128h128v-128h79 q22 0 39 -13t23 -34zM640 128q53 0 90.5 19t37.5 45t-37.5 45t-90.5 19t-90.5 -19t-37.5 -45t37.5 -45t90.5 -19z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M620 686q20 -8 20 -30v-544q0 -22 -20 -30q-8 -2 -12 -2q-12 0 -23 9l-166 167h-131q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h131l166 167q16 15 35 7zM1037 -3q31 0 50 24q129 159 129 363t-129 363q-16 21 -43 24t-47 -14q-21 -17 -23.5 -43.5t14.5 -47.5 q100 -123 100 -282t-100 -282q-17 -21 -14.5 -47.5t23.5 -42.5q18 -15 40 -15zM826 145q27 0 47 20q87 93 87 219t-87 219q-18 19 -45 20t-46 -17t-20 -44.5t18 -46.5q52 -57 52 -131t-52 -131q-19 -20 -18 -46.5t20 -44.5q20 -17 44 -17z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M768 768q52 0 90 -38t38 -90v-384q0 -52 -38 -90t-90 -38h-384q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h384zM1260 766q20 -8 20 -30v-576q0 -22 -20 -30q-8 -2 -12 -2q-14 0 -23 9l-265 266v90l265 266q9 9 23 9q4 0 12 -2z" /> +<glyph unicode="" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M480 768q8 11 21 12.5t24 -6.5l51 -38q11 -8 12.5 -21t-6.5 -24l-182 -243l182 -243q8 -11 6.5 -24t-12.5 -21l-51 -38q-11 -8 -24 -6.5t-21 12.5l-226 301q-14 19 0 38zM1282 467q14 -19 0 -38l-226 -301q-8 -11 -21 -12.5t-24 6.5l-51 38q-11 8 -12.5 21t6.5 24l182 243 l-182 243q-8 11 -6.5 24t12.5 21l51 38q11 8 24 6.5t21 -12.5zM662 6q-13 2 -20.5 13t-5.5 24l138 831q2 13 13 20.5t24 5.5l63 -10q13 -2 20.5 -13t5.5 -24l-138 -831q-2 -13 -13 -20.5t-24 -5.5z" /> +<glyph unicode="" d="M1497 709v-198q-101 -23 -198 -23q-65 -136 -165.5 -271t-181.5 -215.5t-128 -106.5q-80 -45 -162 3q-28 17 -60.5 43.5t-85 83.5t-102.5 128.5t-107.5 184t-105.5 244t-91.5 314.5t-70.5 390h283q26 -218 70 -398.5t104.5 -317t121.5 -235.5t140 -195q169 169 287 406 q-142 72 -223 220t-81 333q0 192 104 314.5t284 122.5q178 0 273 -105.5t95 -297.5q0 -159 -58 -286q-7 -1 -19.5 -3t-46 -2t-63 6t-62 25.5t-50.5 51.5q31 103 31 184q0 87 -29 132t-79 45q-53 0 -85 -49.5t-32 -140.5q0 -186 105 -293.5t267 -107.5q62 0 121 14z" /> +<glyph unicode="" horiz-adv-x="1792" d="M216 367l603 -402v359l-334 223zM154 511l193 129l-193 129v-258zM973 -35l603 402l-269 180l-334 -223v-359zM896 458l272 182l-272 182l-272 -182zM485 733l334 223v359l-603 -402zM1445 640l193 -129v258zM1307 733l269 180l-603 402v-359zM1792 913v-546 q0 -41 -34 -64l-819 -546q-21 -13 -43 -13t-43 13l-819 546q-34 23 -34 64v546q0 41 34 64l819 546q21 13 43 13t43 -13l819 -546q34 -23 34 -64z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1800 764q111 -46 179.5 -145.5t68.5 -221.5q0 -164 -118 -280.5t-285 -116.5q-4 0 -11.5 0.5t-10.5 0.5h-1209h-1h-2h-5q-170 10 -288 125.5t-118 280.5q0 110 55 203t147 147q-12 39 -12 82q0 115 82 196t199 81q95 0 172 -58q75 154 222.5 248t326.5 94 q166 0 306 -80.5t221.5 -218.5t81.5 -301q0 -6 -0.5 -18t-0.5 -18zM468 498q0 -122 84 -193t208 -71q137 0 240 99q-16 20 -47.5 56.5t-43.5 50.5q-67 -65 -144 -65q-55 0 -93.5 33.5t-38.5 87.5q0 53 38.5 87t91.5 34q44 0 84.5 -21t73 -55t65 -75t69 -82t77 -75t97 -55 t121.5 -21q121 0 204.5 71.5t83.5 190.5q0 121 -84 192t-207 71q-143 0 -241 -97q14 -16 29.5 -34t34.5 -40t29 -34q66 64 142 64q52 0 92 -33t40 -84q0 -57 -37 -91.5t-94 -34.5q-43 0 -82.5 21t-72 55t-65.5 75t-69.5 82t-77.5 75t-96.5 55t-118.5 21q-122 0 -207 -70.5 t-85 -189.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 1408q-190 0 -361 -90l194 -194q82 28 167 28t167 -28l194 194q-171 90 -361 90zM218 279l194 194 q-28 82 -28 167t28 167l-194 194q-90 -171 -90 -361t90 -361zM896 -128q190 0 361 90l-194 194q-82 -28 -167 -28t-167 28l-194 -194q171 -90 361 -90zM896 256q159 0 271.5 112.5t112.5 271.5t-112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5 t271.5 -112.5zM1380 473l194 -194q90 171 90 361t-90 361l-194 -194q28 -82 28 -167t-28 -167z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1760 640q0 -176 -68.5 -336t-184 -275.5t-275.5 -184t-336 -68.5t-336 68.5t-275.5 184t-184 275.5t-68.5 336q0 213 97 398.5t265 305.5t374 151v-228q-221 -45 -366.5 -221t-145.5 -406q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5 t136.5 204t51 248.5q0 230 -145.5 406t-366.5 221v228q206 -31 374 -151t265 -305.5t97 -398.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M19 662q8 217 116 406t305 318h5q0 -1 -1 -3q-8 -8 -28 -33.5t-52 -76.5t-60 -110.5t-44.5 -135.5t-14 -150.5t39 -157.5t108.5 -154q50 -50 102 -69.5t90.5 -11.5t69.5 23.5t47 32.5l16 16q39 51 53 116.5t6.5 122.5t-21 107t-26.5 80l-14 29q-10 25 -30.5 49.5t-43 41 t-43.5 29.5t-35 19l-13 6l104 115q39 -17 78 -52t59 -61l19 -27q1 48 -18.5 103.5t-40.5 87.5l-20 31l161 183l160 -181q-33 -46 -52.5 -102.5t-22.5 -90.5l-4 -33q22 37 61.5 72.5t67.5 52.5l28 17l103 -115q-44 -14 -85 -50t-60 -65l-19 -29q-31 -56 -48 -133.5t-7 -170 t57 -156.5q33 -45 77.5 -60.5t85 -5.5t76 26.5t57.5 33.5l21 16q60 53 96.5 115t48.5 121.5t10 121.5t-18 118t-37 107.5t-45.5 93t-45 72t-34.5 47.5l-13 17q-14 13 -7 13l10 -3q40 -29 62.5 -46t62 -50t64 -58t58.5 -65t55.5 -77t45.5 -88t38 -103t23.5 -117t10.5 -136 q3 -259 -108 -465t-312 -321t-456 -115q-185 0 -351 74t-283.5 198t-184 293t-60.5 353z" /> +<glyph unicode="" horiz-adv-x="1792" d="M874 -102v-66q-208 6 -385 109.5t-283 275.5l58 34q29 -49 73 -99l65 57q148 -168 368 -212l-17 -86q65 -12 121 -13zM276 428l-83 -28q22 -60 49 -112l-57 -33q-98 180 -98 385t98 385l57 -33q-30 -56 -49 -112l82 -28q-35 -100 -35 -212q0 -109 36 -212zM1528 251 l58 -34q-106 -172 -283 -275.5t-385 -109.5v66q56 1 121 13l-17 86q220 44 368 212l65 -57q44 50 73 99zM1377 805l-233 -80q14 -42 14 -85t-14 -85l232 -80q-31 -92 -98 -169l-185 162q-57 -67 -147 -85l48 -241q-52 -10 -98 -10t-98 10l48 241q-90 18 -147 85l-185 -162 q-67 77 -98 169l232 80q-14 42 -14 85t14 85l-233 80q33 93 99 169l185 -162q59 68 147 86l-48 240q44 10 98 10t98 -10l-48 -240q88 -18 147 -86l185 162q66 -76 99 -169zM874 1448v-66q-65 -2 -121 -13l17 -86q-220 -42 -368 -211l-65 56q-38 -42 -73 -98l-57 33 q106 172 282 275.5t385 109.5zM1705 640q0 -205 -98 -385l-57 33q27 52 49 112l-83 28q36 103 36 212q0 112 -35 212l82 28q-19 56 -49 112l57 33q98 -180 98 -385zM1585 1063l-57 -33q-35 56 -73 98l-65 -56q-148 169 -368 211l17 86q-56 11 -121 13v66q209 -6 385 -109.5 t282 -275.5zM1748 640q0 173 -67.5 331t-181.5 272t-272 181.5t-331 67.5t-331 -67.5t-272 -181.5t-181.5 -272t-67.5 -331t67.5 -331t181.5 -272t272 -181.5t331 -67.5t331 67.5t272 181.5t181.5 272t67.5 331zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71 t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" /> +<glyph unicode="" d="M582 228q0 -66 -93 -66q-107 0 -107 63q0 64 98 64q102 0 102 -61zM546 694q0 -85 -74 -85q-77 0 -77 84q0 90 77 90q36 0 55 -25.5t19 -63.5zM712 769v125q-78 -29 -135 -29q-50 29 -110 29q-86 0 -145 -57t-59 -143q0 -50 29.5 -102t73.5 -67v-3q-38 -17 -38 -85 q0 -53 41 -77v-3q-113 -37 -113 -139q0 -45 20 -78.5t54 -51t72 -25.5t81 -8q224 0 224 188q0 67 -48 99t-126 46q-27 5 -51.5 20.5t-24.5 39.5q0 44 49 52q77 15 122 70t45 134q0 24 -10 52q37 9 49 13zM771 350h137q-2 27 -2 82v387q0 46 2 69h-137q3 -23 3 -71v-392 q0 -50 -3 -75zM1280 366v121q-30 -21 -68 -21q-53 0 -53 82v225h52q9 0 26.5 -1t26.5 -1v117h-105q0 82 3 102h-140q4 -24 4 -55v-47h-60v-117q36 3 37 3q3 0 11 -0.5t12 -0.5v-2h-2v-217q0 -37 2.5 -64t11.5 -56.5t24.5 -48.5t43.5 -31t66 -12q64 0 108 24zM924 1072 q0 36 -24 63.5t-60 27.5t-60.5 -27t-24.5 -64q0 -36 25 -62.5t60 -26.5t59.5 27t24.5 62zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M595 22q0 100 -165 100q-158 0 -158 -104q0 -101 172 -101q151 0 151 105zM536 777q0 61 -30 102t-89 41q-124 0 -124 -145q0 -135 124 -135q119 0 119 137zM805 1101v-202q-36 -12 -79 -22q16 -43 16 -84q0 -127 -73 -216.5t-197 -112.5q-40 -8 -59.5 -27t-19.5 -58 q0 -31 22.5 -51.5t58 -32t78.5 -22t86 -25.5t78.5 -37.5t58 -64t22.5 -98.5q0 -304 -363 -304q-69 0 -130 12.5t-116 41t-87.5 82t-32.5 127.5q0 165 182 225v4q-67 41 -67 126q0 109 63 137v4q-72 24 -119.5 108.5t-47.5 165.5q0 139 95 231.5t235 92.5q96 0 178 -47 q98 0 218 47zM1123 220h-222q4 45 4 134v609q0 94 -4 128h222q-4 -33 -4 -124v-613q0 -89 4 -134zM1724 442v-196q-71 -39 -174 -39q-62 0 -107 20t-70 50t-39.5 78t-18.5 92t-4 103v351h2v4q-7 0 -19 1t-18 1q-21 0 -59 -6v190h96v76q0 54 -6 89h227q-6 -41 -6 -165h171 v-190q-15 0 -43.5 2t-42.5 2h-85v-365q0 -131 87 -131q61 0 109 33zM1148 1389q0 -58 -39 -101.5t-96 -43.5q-58 0 -98 43.5t-40 101.5q0 59 39.5 103t98.5 44q58 0 96.5 -44.5t38.5 -102.5z" /> +<glyph unicode="" d="M809 532l266 499h-112l-157 -312q-24 -48 -44 -92l-42 92l-155 312h-120l263 -493v-324h101v318zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M842 964q0 -80 -57 -136.5t-136 -56.5q-60 0 -111 35q-62 -67 -115 -146q-247 -371 -202 -859q1 -22 -12.5 -38.5t-34.5 -18.5h-5q-20 0 -35 13.5t-17 33.5q-14 126 -3.5 247.5t29.5 217t54 186t69 155.5t74 125q61 90 132 165q-16 35 -16 77q0 80 56.5 136.5t136.5 56.5 t136.5 -56.5t56.5 -136.5zM1223 953q0 -158 -78 -292t-212.5 -212t-292.5 -78q-64 0 -131 14q-21 5 -32.5 23.5t-6.5 39.5q5 20 23 31.5t39 7.5q51 -13 108 -13q97 0 186 38t153 102t102 153t38 186t-38 186t-102 153t-153 102t-186 38t-186 -38t-153 -102t-102 -153 t-38 -186q0 -114 52 -218q10 -20 3.5 -40t-25.5 -30t-39.5 -3t-30.5 26q-64 123 -64 265q0 119 46.5 227t124.5 186t186 124t226 46q158 0 292.5 -78t212.5 -212.5t78 -292.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M270 730q-8 19 -8 52q0 20 11 49t24 45q-1 22 7.5 53t22.5 43q0 139 92.5 288.5t217.5 209.5q139 66 324 66q133 0 266 -55q49 -21 90 -48t71 -56t55 -68t42 -74t32.5 -84.5t25.5 -89.5t22 -98l1 -5q55 -83 55 -150q0 -14 -9 -40t-9 -38q0 -1 1.5 -3.5t3.5 -5t2 -3.5 q77 -114 120.5 -214.5t43.5 -208.5q0 -43 -19.5 -100t-55.5 -57q-9 0 -19.5 7.5t-19 17.5t-19 26t-16 26.5t-13.5 26t-9 17.5q-1 1 -3 1l-5 -4q-59 -154 -132 -223q20 -20 61.5 -38.5t69 -41.5t35.5 -65q-2 -4 -4 -16t-7 -18q-64 -97 -302 -97q-53 0 -110.5 9t-98 20 t-104.5 30q-15 5 -23 7q-14 4 -46 4.5t-40 1.5q-41 -45 -127.5 -65t-168.5 -20q-35 0 -69 1.5t-93 9t-101 20.5t-74.5 40t-32.5 64q0 40 10 59.5t41 48.5q11 2 40.5 13t49.5 12q4 0 14 2q2 2 2 4l-2 3q-48 11 -108 105.5t-73 156.5l-5 3q-4 0 -12 -20q-18 -41 -54.5 -74.5 t-77.5 -37.5h-1q-4 0 -6 4.5t-5 5.5q-23 54 -23 100q0 275 252 466z" /> +<glyph unicode="" horiz-adv-x="2048" d="M580 1075q0 41 -25 66t-66 25q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 66 24.5t25 65.5zM1323 568q0 28 -25.5 50t-65.5 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q40 0 65.5 22t25.5 51zM1087 1075q0 41 -24.5 66t-65.5 25 q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 65.5 24.5t24.5 65.5zM1722 568q0 28 -26 50t-65 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q39 0 65 22t26 51zM1456 965q-31 4 -70 4q-169 0 -311 -77t-223.5 -208.5t-81.5 -287.5 q0 -78 23 -152q-35 -3 -68 -3q-26 0 -50 1.5t-55 6.5t-44.5 7t-54.5 10.5t-50 10.5l-253 -127l72 218q-290 203 -290 490q0 169 97.5 311t264 223.5t363.5 81.5q176 0 332.5 -66t262 -182.5t136.5 -260.5zM2048 404q0 -117 -68.5 -223.5t-185.5 -193.5l55 -181l-199 109 q-150 -37 -218 -37q-169 0 -311 70.5t-223.5 191.5t-81.5 264t81.5 264t223.5 191.5t311 70.5q161 0 303 -70.5t227.5 -192t85.5 -263.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-453 185l-242 -295q-18 -23 -49 -23q-13 0 -22 4q-19 7 -30.5 23.5t-11.5 36.5v349l864 1059l-1069 -925l-395 162q-37 14 -40 55q-2 40 32 59l1664 960q15 9 32 9q20 0 36 -11z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-527 215l-298 -327q-18 -21 -47 -21q-14 0 -23 4q-19 7 -30 23.5t-11 36.5v452l-472 193q-37 14 -40 55q-3 39 32 59l1664 960q35 21 68 -2zM1422 26l221 1323l-1434 -827l336 -137 l863 639l-478 -797z" /> +<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298zM896 928v-448q0 -14 -9 -23 t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23z" /> +<glyph unicode="" d="M768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1682 -128q-44 0 -132.5 3.5t-133.5 3.5q-44 0 -132 -3.5t-132 -3.5q-24 0 -37 20.5t-13 45.5q0 31 17 46t39 17t51 7t45 15q33 21 33 140l-1 391q0 21 -1 31q-13 4 -50 4h-675q-38 0 -51 -4q-1 -10 -1 -31l-1 -371q0 -142 37 -164q16 -10 48 -13t57 -3.5t45 -15 t20 -45.5q0 -26 -12.5 -48t-36.5 -22q-47 0 -139.5 3.5t-138.5 3.5q-43 0 -128 -3.5t-127 -3.5q-23 0 -35.5 21t-12.5 45q0 30 15.5 45t36 17.5t47.5 7.5t42 15q33 23 33 143l-1 57v813q0 3 0.5 26t0 36.5t-1.5 38.5t-3.5 42t-6.5 36.5t-11 31.5t-16 18q-15 10 -45 12t-53 2 t-41 14t-18 45q0 26 12 48t36 22q46 0 138.5 -3.5t138.5 -3.5q42 0 126.5 3.5t126.5 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17 -43.5t-38.5 -14.5t-49.5 -4t-43 -13q-35 -21 -35 -160l1 -320q0 -21 1 -32q13 -3 39 -3h699q25 0 38 3q1 11 1 32l1 320q0 139 -35 160 q-18 11 -58.5 12.5t-66 13t-25.5 49.5q0 26 12.5 48t37.5 22q44 0 132 -3.5t132 -3.5q43 0 129 3.5t129 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17.5 -44t-40 -14.5t-51.5 -3t-44 -12.5q-35 -23 -35 -161l1 -943q0 -119 34 -140q16 -10 46 -13.5t53.5 -4.5t41.5 -15.5t18 -44.5 q0 -26 -12 -48t-36 -22z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1278 1347v-73q0 -29 -18.5 -61t-42.5 -32q-50 0 -54 -1q-26 -6 -32 -31q-3 -11 -3 -64v-1152q0 -25 -18 -43t-43 -18h-108q-25 0 -43 18t-18 43v1218h-143v-1218q0 -25 -17.5 -43t-43.5 -18h-108q-26 0 -43.5 18t-17.5 43v496q-147 12 -245 59q-126 58 -192 179 q-64 117 -64 259q0 166 88 286q88 118 209 159q111 37 417 37h479q25 0 43 -18t18 -43z" /> +<glyph unicode="" d="M352 128v-128h-352v128h352zM704 256q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM864 640v-128h-864v128h864zM224 1152v-128h-224v128h224zM1536 128v-128h-736v128h736zM576 1280q26 0 45 -19t19 -45v-256 q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1216 768q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1536 640v-128h-224v128h224zM1536 1152v-128h-864v128h864z" /> +<glyph unicode="" d="M1216 512q133 0 226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5t-226.5 93.5t-93.5 226.5q0 12 2 34l-360 180q-92 -86 -218 -86q-133 0 -226.5 93.5t-93.5 226.5t93.5 226.5t226.5 93.5q126 0 218 -86l360 180q-2 22 -2 34q0 133 93.5 226.5t226.5 93.5 t226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5q-126 0 -218 86l-360 -180q2 -22 2 -34t-2 -34l360 -180q92 86 218 86z" /> +<glyph unicode="" d="M1280 341q0 88 -62.5 151t-150.5 63q-84 0 -145 -58l-241 120q2 16 2 23t-2 23l241 120q61 -58 145 -58q88 0 150.5 63t62.5 151t-62.5 150.5t-150.5 62.5t-151 -62.5t-63 -150.5q0 -7 2 -23l-241 -120q-62 57 -145 57q-88 0 -150.5 -62.5t-62.5 -150.5t62.5 -150.5 t150.5 -62.5q83 0 145 57l241 -120q-2 -16 -2 -23q0 -88 63 -150.5t151 -62.5t150.5 62.5t62.5 150.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M571 947q-10 25 -34 35t-49 0q-108 -44 -191 -127t-127 -191q-10 -25 0 -49t35 -34q13 -5 24 -5q42 0 60 40q34 84 98.5 148.5t148.5 98.5q25 11 35 35t0 49zM1513 1303l46 -46l-244 -243l68 -68q19 -19 19 -45.5t-19 -45.5l-64 -64q89 -161 89 -343q0 -143 -55.5 -273.5 t-150 -225t-225 -150t-273.5 -55.5t-273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5q182 0 343 -89l64 64q19 19 45.5 19t45.5 -19l68 -68zM1521 1359q-10 -10 -22 -10q-13 0 -23 10l-91 90q-9 10 -9 23t9 23q10 9 23 9t23 -9l90 -91 q10 -9 10 -22.5t-10 -22.5zM1751 1129q-11 -9 -23 -9t-23 9l-90 91q-10 9 -10 22.5t10 22.5q9 10 22.5 10t22.5 -10l91 -90q9 -10 9 -23t-9 -23zM1792 1312q0 -14 -9 -23t-23 -9h-96q-14 0 -23 9t-9 23t9 23t23 9h96q14 0 23 -9t9 -23zM1600 1504v-96q0 -14 -9 -23t-23 -9 t-23 9t-9 23v96q0 14 9 23t23 9t23 -9t9 -23zM1751 1449l-91 -90q-10 -10 -22 -10q-13 0 -23 10q-10 9 -10 22.5t10 22.5l90 91q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M609 720l287 208l287 -208l-109 -336h-355zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM1515 186q149 203 149 454v3l-102 -89l-240 224l63 323 l134 -12q-150 206 -389 282l53 -124l-287 -159l-287 159l53 124q-239 -76 -389 -282l135 12l62 -323l-240 -224l-102 89v-3q0 -251 149 -454l30 132l326 -40l139 -298l-116 -69q117 -39 240 -39t240 39l-116 69l139 298l326 40z" /> +<glyph unicode="" horiz-adv-x="1792" d="M448 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM256 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM832 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM66 768q-28 0 -47 19t-19 46v129h514v-129q0 -27 -19 -46t-46 -19h-383zM1216 224v-192q0 -14 -9 -23t-23 -9h-192 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1600 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23 zM1408 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1016v-13h-514v10q0 104 -382 102q-382 -1 -382 -102v-10h-514v13q0 17 8.5 43t34 64t65.5 75.5t110.5 76t160 67.5t224 47.5t293.5 18.5t293 -18.5t224 -47.5 t160.5 -67.5t110.5 -76t65.5 -75.5t34 -64t8.5 -43zM1792 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 962v-129q0 -27 -19 -46t-46 -19h-384q-27 0 -46 19t-19 46v129h514z" /> +<glyph unicode="" horiz-adv-x="1792" d="M704 1216v-768q0 -26 -19 -45t-45 -19v-576q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v512l249 873q7 23 31 23h424zM1024 1216v-704h-256v704h256zM1792 320v-512q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v576q-26 0 -45 19t-19 45v768h424q24 0 31 -23z M736 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23zM1408 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1755 1083q37 -37 37 -90t-37 -91l-401 -400l150 -150l-160 -160q-163 -163 -389.5 -186.5t-411.5 100.5l-362 -362h-181v181l362 362q-124 185 -100.5 411.5t186.5 389.5l160 160l150 -150l400 401q38 37 91 37t90 -37t37 -90.5t-37 -90.5l-400 -401l234 -234l401 400 q38 37 91 37t90 -37z" /> +<glyph unicode="" horiz-adv-x="1792" d="M873 796q0 -83 -63.5 -142.5t-152.5 -59.5t-152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59t152.5 -59t63.5 -143zM1375 796q0 -83 -63 -142.5t-153 -59.5q-89 0 -152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59q90 0 153 -59t63 -143zM1600 616v667q0 87 -32 123.5 t-111 36.5h-1112q-83 0 -112.5 -34t-29.5 -126v-673q43 -23 88.5 -40t81 -28t81 -18.5t71 -11t70 -4t58.5 -0.5t56.5 2t44.5 2q68 1 95 -27q6 -6 10 -9q26 -25 61 -51q7 91 118 87q5 0 36.5 -1.5t43 -2t45.5 -1t53 1t54.5 4.5t61 8.5t62 13.5t67 19.5t67.5 27t72 34.5z M1763 621q-121 -149 -372 -252q84 -285 -23 -465q-66 -113 -183 -148q-104 -32 -182 15q-86 51 -82 164l-1 326v1q-8 2 -24.5 6t-23.5 5l-1 -338q4 -114 -83 -164q-79 -47 -183 -15q-117 36 -182 150q-105 180 -22 463q-251 103 -372 252q-25 37 -4 63t60 -1q3 -2 11 -7 t11 -8v694q0 72 47 123t114 51h1257q67 0 114 -51t47 -123v-694l21 15q39 27 60 1t-4 -63z" /> +<glyph unicode="" horiz-adv-x="1792" d="M896 1102v-434h-145v434h145zM1294 1102v-434h-145v434h145zM1294 342l253 254v795h-1194v-1049h326v-217l217 217h398zM1692 1536v-1013l-434 -434h-326l-217 -217h-217v217h-398v1158l109 289h1483z" /> +<glyph unicode="" d="M773 217v-127q-1 -292 -6 -305q-12 -32 -51 -40q-54 -9 -181.5 38t-162.5 89q-13 15 -17 36q-1 12 4 26q4 10 34 47t181 216q1 0 60 70q15 19 39.5 24.5t49.5 -3.5q24 -10 37.5 -29t12.5 -42zM624 468q-3 -55 -52 -70l-120 -39q-275 -88 -292 -88q-35 2 -54 36 q-12 25 -17 75q-8 76 1 166.5t30 124.5t56 32q13 0 202 -77q70 -29 115 -47l84 -34q23 -9 35.5 -30.5t11.5 -48.5zM1450 171q-7 -54 -91.5 -161t-135.5 -127q-37 -14 -63 7q-14 10 -184 287l-47 77q-14 21 -11.5 46t19.5 46q35 43 83 26q1 -1 119 -40q203 -66 242 -79.5 t47 -20.5q28 -22 22 -61zM778 803q5 -102 -54 -122q-58 -17 -114 71l-378 598q-8 35 19 62q41 43 207.5 89.5t224.5 31.5q40 -10 49 -45q3 -18 22 -305.5t24 -379.5zM1440 695q3 -39 -26 -59q-15 -10 -329 -86q-67 -15 -91 -23l1 2q-23 -6 -46 4t-37 32q-30 47 0 87 q1 1 75 102q125 171 150 204t34 39q28 19 65 2q48 -23 123 -133.5t81 -167.5v-3z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1024 1024h-384v-384h384v384zM1152 384v-128h-640v128h640zM1152 1152v-640h-640v640h640zM1792 384v-128h-512v128h512zM1792 640v-128h-512v128h512zM1792 896v-128h-512v128h512zM1792 1152v-128h-512v128h512zM256 192v960h-128v-960q0 -26 19 -45t45 -19t45 19 t19 45zM1920 192v1088h-1536v-1088q0 -33 -11 -64h1483q26 0 45 19t19 45zM2048 1408v-1216q0 -80 -56 -136t-136 -56h-1664q-80 0 -136 56t-56 136v1088h256v128h1792z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1024 13q-20 0 -93 73.5t-73 93.5q0 32 62.5 54t103.5 22t103.5 -22t62.5 -54q0 -20 -73 -93.5t-93 -73.5zM1294 284q-2 0 -40 25t-101.5 50t-128.5 25t-128.5 -25t-101 -50t-40.5 -25q-18 0 -93.5 75t-75.5 93q0 13 10 23q78 77 196 121t233 44t233 -44t196 -121 q10 -10 10 -23q0 -18 -75.5 -93t-93.5 -75zM1567 556q-11 0 -23 8q-136 105 -252 154.5t-268 49.5q-85 0 -170.5 -22t-149 -53t-113.5 -62t-79 -53t-31 -22q-17 0 -92 75t-75 93q0 12 10 22q132 132 320 205t380 73t380 -73t320 -205q10 -10 10 -22q0 -18 -75 -93t-92 -75z M1838 827q-11 0 -22 9q-179 157 -371.5 236.5t-420.5 79.5t-420.5 -79.5t-371.5 -236.5q-11 -9 -22 -9q-17 0 -92.5 75t-75.5 93q0 13 10 23q187 186 445 288t527 102t527 -102t445 -288q10 -10 10 -23q0 -18 -75.5 -93t-92.5 -75z" /> +<glyph unicode="" horiz-adv-x="1792" d="M384 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5 t37.5 90.5zM384 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 768q0 53 -37.5 90.5t-90.5 37.5 t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1536 0v384q0 52 -38 90t-90 38t-90 -38t-38 -90v-384q0 -52 38 -90t90 -38t90 38t38 90zM1152 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5z M1536 1088v256q0 26 -19 45t-45 19h-1280q-26 0 -45 -19t-19 -45v-256q0 -26 19 -45t45 -19h1280q26 0 45 19t19 45zM1536 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1408v-1536q0 -52 -38 -90t-90 -38 h-1408q-52 0 -90 38t-38 90v1536q0 52 38 90t90 38h1408q52 0 90 -38t38 -90z" /> +<glyph unicode="" d="M1519 890q18 -84 -4 -204q-87 -444 -565 -444h-44q-25 0 -44 -16.5t-24 -42.5l-4 -19l-55 -346l-2 -15q-5 -26 -24.5 -42.5t-44.5 -16.5h-251q-21 0 -33 15t-9 36q9 56 26.5 168t26.5 168t27 167.5t27 167.5q5 37 43 37h131q133 -2 236 21q175 39 287 144q102 95 155 246 q24 70 35 133q1 6 2.5 7.5t3.5 1t6 -3.5q79 -59 98 -162zM1347 1172q0 -107 -46 -236q-80 -233 -302 -315q-113 -40 -252 -42q0 -1 -90 -1l-90 1q-100 0 -118 -96q-2 -8 -85 -530q-1 -10 -12 -10h-295q-22 0 -36.5 16.5t-11.5 38.5l232 1471q5 29 27.5 48t51.5 19h598 q34 0 97.5 -13t111.5 -32q107 -41 163.5 -123t56.5 -196z" /> +<glyph unicode="" horiz-adv-x="1792" d="M602 949q19 -61 31 -123.5t17 -141.5t-14 -159t-62 -145q-21 81 -67 157t-95.5 127t-99 90.5t-78.5 57.5t-33 19q-62 34 -81.5 100t14.5 128t101 81.5t129 -14.5q138 -83 238 -177zM927 1236q11 -25 20.5 -46t36.5 -100.5t42.5 -150.5t25.5 -179.5t0 -205.5t-47.5 -209.5 t-105.5 -208.5q-51 -72 -138 -72q-54 0 -98 31q-57 40 -69 109t28 127q60 85 81 195t13 199.5t-32 180.5t-39 128t-22 52q-31 63 -8.5 129.5t85.5 97.5q34 17 75 17q47 0 88.5 -25t63.5 -69zM1248 567q-17 -160 -72 -311q-17 131 -63 246q25 174 -5 361q-27 178 -94 342 q114 -90 212 -211q9 -37 15 -80q26 -179 7 -347zM1520 1440q9 -17 23.5 -49.5t43.5 -117.5t50.5 -178t34 -227.5t5 -269t-47 -300t-112.5 -323.5q-22 -48 -66 -75.5t-95 -27.5q-39 0 -74 16q-67 31 -92.5 100t4.5 136q58 126 90 257.5t37.5 239.5t-3.5 213.5t-26.5 180.5 t-38.5 138.5t-32.5 90t-15.5 32.5q-34 65 -11.5 135.5t87.5 104.5q37 20 81 20q49 0 91.5 -25.5t66.5 -70.5z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1975 546h-138q14 37 66 179l3 9q4 10 10 26t9 26l12 -55zM531 611l-58 295q-11 54 -75 54h-268l-2 -13q311 -79 403 -336zM710 960l-162 -438l-17 89q-26 70 -85 129.5t-131 88.5l135 -510h175l261 641h-176zM849 318h166l104 642h-166zM1617 944q-69 27 -149 27 q-123 0 -201 -59t-79 -153q-1 -102 145 -174q48 -23 67 -41t19 -39q0 -30 -30 -46t-69 -16q-86 0 -156 33l-22 11l-23 -144q74 -34 185 -34q130 -1 208.5 59t80.5 160q0 106 -140 174q-49 25 -71 42t-22 38q0 22 24.5 38.5t70.5 16.5q70 1 124 -24l15 -8zM2042 960h-128 q-65 0 -87 -54l-246 -588h174l35 96h212q5 -22 20 -96h154zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="2304" d="M671 603h-13q-47 0 -47 -32q0 -22 20 -22q17 0 28 15t12 39zM1066 639h62v3q1 4 0.5 6.5t-1 7t-2 8t-4.5 6.5t-7.5 5t-11.5 2q-28 0 -36 -38zM1606 603h-12q-48 0 -48 -32q0 -22 20 -22q17 0 28 15t12 39zM1925 629q0 41 -30 41q-19 0 -31 -20t-12 -51q0 -42 28 -42 q20 0 32.5 20t12.5 52zM480 770h87l-44 -262h-56l32 201l-71 -201h-39l-4 200l-34 -200h-53l44 262h81l2 -163zM733 663q0 -6 -4 -42q-16 -101 -17 -113h-47l1 22q-20 -26 -58 -26q-23 0 -37.5 16t-14.5 42q0 39 26 60.5t73 21.5q14 0 23 -1q0 3 0.5 5.5t1 4.5t0.5 3 q0 20 -36 20q-29 0 -59 -10q0 4 7 48q38 11 67 11q74 0 74 -62zM889 721l-8 -49q-22 3 -41 3q-27 0 -27 -17q0 -8 4.5 -12t21.5 -11q40 -19 40 -60q0 -72 -87 -71q-34 0 -58 6q0 2 7 49q29 -8 51 -8q32 0 32 19q0 7 -4.5 11.5t-21.5 12.5q-43 20 -43 59q0 72 84 72 q30 0 50 -4zM977 721h28l-7 -52h-29q-2 -17 -6.5 -40.5t-7 -38.5t-2.5 -18q0 -16 19 -16q8 0 16 2l-8 -47q-21 -7 -40 -7q-43 0 -45 47q0 12 8 56q3 20 25 146h55zM1180 648q0 -23 -7 -52h-111q-3 -22 10 -33t38 -11q30 0 58 14l-9 -54q-30 -8 -57 -8q-95 0 -95 95 q0 55 27.5 90.5t69.5 35.5q35 0 55.5 -21t20.5 -56zM1319 722q-13 -23 -22 -62q-22 2 -31 -24t-25 -128h-56l3 14q22 130 29 199h51l-3 -33q14 21 25.5 29.5t28.5 4.5zM1506 763l-9 -57q-28 14 -50 14q-31 0 -51 -27.5t-20 -70.5q0 -30 13.5 -47t38.5 -17q21 0 48 13 l-10 -59q-28 -8 -50 -8q-45 0 -71.5 30.5t-26.5 82.5q0 70 35.5 114.5t91.5 44.5q26 0 61 -13zM1668 663q0 -18 -4 -42q-13 -79 -17 -113h-46l1 22q-20 -26 -59 -26q-23 0 -37 16t-14 42q0 39 25.5 60.5t72.5 21.5q15 0 23 -1q2 7 2 13q0 20 -36 20q-29 0 -59 -10q0 4 8 48 q38 11 67 11q73 0 73 -62zM1809 722q-14 -24 -21 -62q-23 2 -31.5 -23t-25.5 -129h-56l3 14q19 104 29 199h52q0 -11 -4 -33q15 21 26.5 29.5t27.5 4.5zM1950 770h56l-43 -262h-53l3 19q-23 -23 -52 -23q-31 0 -49.5 24t-18.5 64q0 53 27.5 92t64.5 39q31 0 53 -29z M2061 640q0 148 -72.5 273t-198 198t-273.5 73q-181 0 -328 -110q127 -116 171 -284h-50q-44 150 -158 253q-114 -103 -158 -253h-50q44 168 171 284q-147 110 -328 110q-148 0 -273.5 -73t-198 -198t-72.5 -273t72.5 -273t198 -198t273.5 -73q181 0 328 110 q-120 111 -165 264h50q46 -138 152 -233q106 95 152 233h50q-45 -153 -165 -264q147 -110 328 -110q148 0 273.5 73t198 198t72.5 273zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="2304" d="M313 759q0 -51 -36 -84q-29 -26 -89 -26h-17v220h17q61 0 89 -27q36 -31 36 -83zM2089 824q0 -52 -64 -52h-19v101h20q63 0 63 -49zM380 759q0 74 -50 120.5t-129 46.5h-95v-333h95q74 0 119 38q60 51 60 128zM410 593h65v333h-65v-333zM730 694q0 40 -20.5 62t-75.5 42 q-29 10 -39.5 19t-10.5 23q0 16 13.5 26.5t34.5 10.5q29 0 53 -27l34 44q-41 37 -98 37q-44 0 -74 -27.5t-30 -67.5q0 -35 18 -55.5t64 -36.5q37 -13 45 -19q19 -12 19 -34q0 -20 -14 -33.5t-36 -13.5q-48 0 -71 44l-42 -40q44 -64 115 -64q51 0 83 30.5t32 79.5zM1008 604 v77q-37 -37 -78 -37q-49 0 -80.5 32.5t-31.5 82.5q0 48 31.5 81.5t77.5 33.5q43 0 81 -38v77q-40 20 -80 20q-74 0 -125.5 -50.5t-51.5 -123.5t51 -123.5t125 -50.5q42 0 81 19zM2240 0v527q-65 -40 -144.5 -84t-237.5 -117t-329.5 -137.5t-417.5 -134.5t-504 -118h1569 q26 0 45 19t19 45zM1389 757q0 75 -53 128t-128 53t-128 -53t-53 -128t53 -128t128 -53t128 53t53 128zM1541 584l144 342h-71l-90 -224l-89 224h-71l142 -342h35zM1714 593h184v56h-119v90h115v56h-115v74h119v57h-184v-333zM2105 593h80l-105 140q76 16 76 94q0 47 -31 73 t-87 26h-97v-333h65v133h9zM2304 1274v-1268q0 -56 -38.5 -95t-93.5 -39h-2040q-55 0 -93.5 39t-38.5 95v1268q0 56 38.5 95t93.5 39h2040q55 0 93.5 -39t38.5 -95z" /> +<glyph unicode="" horiz-adv-x="2304" d="M119 854h89l-45 108zM740 328l74 79l-70 79h-163v-49h142v-55h-142v-54h159zM898 406l99 -110v217zM1186 453q0 33 -40 33h-84v-69h83q41 0 41 36zM1475 457q0 29 -42 29h-82v-61h81q43 0 43 32zM1197 923q0 29 -42 29h-82v-60h81q43 0 43 31zM1656 854h89l-44 108z M699 1009v-271h-66v212l-94 -212h-57l-94 212v-212h-132l-25 60h-135l-25 -60h-70l116 271h96l110 -257v257h106l85 -184l77 184h108zM1255 453q0 -20 -5.5 -35t-14 -25t-22.5 -16.5t-26 -10t-31.5 -4.5t-31.5 -1t-32.5 0.5t-29.5 0.5v-91h-126l-80 90l-83 -90h-256v271h260 l80 -89l82 89h207q109 0 109 -89zM964 794v-56h-217v271h217v-57h-152v-49h148v-55h-148v-54h152zM2304 235v-229q0 -55 -38.5 -94.5t-93.5 -39.5h-2040q-55 0 -93.5 39.5t-38.5 94.5v678h111l25 61h55l25 -61h218v46l19 -46h113l20 47v-47h541v99l10 1q10 0 10 -14v-86h279 v23q23 -12 55 -18t52.5 -6.5t63 0.5t51.5 1l25 61h56l25 -61h227v58l34 -58h182v378h-180v-44l-25 44h-185v-44l-23 44h-249q-69 0 -109 -22v22h-172v-22q-24 22 -73 22h-628l-43 -97l-43 97h-198v-44l-22 44h-169l-78 -179v391q0 55 38.5 94.5t93.5 39.5h2040 q55 0 93.5 -39.5t38.5 -94.5v-678h-120q-51 0 -81 -22v22h-177q-55 0 -78 -22v22h-316v-22q-31 22 -87 22h-209v-22q-23 22 -91 22h-234l-54 -58l-50 58h-349v-378h343l55 59l52 -59h211v89h21q59 0 90 13v-102h174v99h8q8 0 10 -2t2 -10v-87h529q57 0 88 24v-24h168 q60 0 95 17zM1546 469q0 -23 -12 -43t-34 -29q25 -9 34 -26t9 -46v-54h-65v45q0 33 -12 43.5t-46 10.5h-69v-99h-65v271h154q48 0 77 -15t29 -58zM1269 936q0 -24 -12.5 -44t-33.5 -29q26 -9 34.5 -25.5t8.5 -46.5v-53h-65q0 9 0.5 26.5t0 25t-3 18.5t-8.5 16t-17.5 8.5 t-29.5 3.5h-70v-98h-64v271l153 -1q49 0 78 -14.5t29 -57.5zM1798 327v-56h-216v271h216v-56h-151v-49h148v-55h-148v-54zM1372 1009v-271h-66v271h66zM2065 357q0 -86 -102 -86h-126v58h126q34 0 34 25q0 16 -17 21t-41.5 5t-49.5 3.5t-42 22.5t-17 55q0 39 26 60t66 21 h130v-57h-119q-36 0 -36 -25q0 -16 17.5 -20.5t42 -4t49 -2.5t42 -21.5t17.5 -54.5zM2304 407v-101q-24 -35 -88 -35h-125v58h125q33 0 33 25q0 13 -12.5 19t-31 5.5t-40 2t-40 8t-31 24t-12.5 48.5q0 39 26.5 60t66.5 21h129v-57h-118q-36 0 -36 -25q0 -20 29 -22t68.5 -5 t56.5 -26zM2139 1008v-270h-92l-122 203v-203h-132l-26 60h-134l-25 -60h-75q-129 0 -129 133q0 138 133 138h63v-59q-7 0 -28 1t-28.5 0.5t-23 -2t-21.5 -6.5t-14.5 -13.5t-11.5 -23t-3 -33.5q0 -38 13.5 -58t49.5 -20h29l92 213h97l109 -256v256h99l114 -188v188h66z" /> +<glyph unicode="" horiz-adv-x="2304" d="M745 630q0 -37 -25.5 -61.5t-62.5 -24.5q-29 0 -46.5 16t-17.5 44q0 37 25 62.5t62 25.5q28 0 46.5 -16.5t18.5 -45.5zM1530 779q0 -42 -22 -57t-66 -15l-32 -1l17 107q2 11 13 11h18q22 0 35 -2t25 -12.5t12 -30.5zM1881 630q0 -36 -25.5 -61t-61.5 -25q-29 0 -47 16 t-18 44q0 37 25 62.5t62 25.5q28 0 46.5 -16.5t18.5 -45.5zM513 801q0 59 -38.5 85.5t-100.5 26.5h-160q-19 0 -21 -19l-65 -408q-1 -6 3 -11t10 -5h76q20 0 22 19l18 110q1 8 7 13t15 6.5t17 1.5t19 -1t14 -1q86 0 135 48.5t49 134.5zM822 489l41 261q1 6 -3 11t-10 5h-76 q-14 0 -17 -33q-27 40 -95 40q-72 0 -122.5 -54t-50.5 -127q0 -59 34.5 -94t92.5 -35q28 0 58 12t48 32q-4 -12 -4 -21q0 -16 13 -16h69q19 0 22 19zM1269 752q0 5 -4 9.5t-9 4.5h-77q-11 0 -18 -10l-106 -156l-44 150q-5 16 -22 16h-75q-5 0 -9 -4.5t-4 -9.5q0 -2 19.5 -59 t42 -123t23.5 -70q-82 -112 -82 -120q0 -13 13 -13h77q11 0 18 10l255 368q2 2 2 7zM1649 801q0 59 -38.5 85.5t-100.5 26.5h-159q-20 0 -22 -19l-65 -408q-1 -6 3 -11t10 -5h82q12 0 16 13l18 116q1 8 7 13t15 6.5t17 1.5t19 -1t14 -1q86 0 135 48.5t49 134.5zM1958 489 l41 261q1 6 -3 11t-10 5h-76q-14 0 -17 -33q-26 40 -95 40q-72 0 -122.5 -54t-50.5 -127q0 -59 34.5 -94t92.5 -35q29 0 59 12t47 32q0 -1 -2 -9t-2 -12q0 -16 13 -16h69q19 0 22 19zM2176 898v1q0 14 -13 14h-74q-11 0 -13 -11l-65 -416l-1 -2q0 -5 4 -9.5t10 -4.5h66 q19 0 21 19zM392 764q-5 -35 -26 -46t-60 -11l-33 -1l17 107q2 11 13 11h19q40 0 58 -11.5t12 -48.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1597 633q0 -69 -21 -106q-19 -35 -52 -35q-23 0 -41 9v224q29 30 57 30q57 0 57 -122zM2035 669h-110q6 98 56 98q51 0 54 -98zM476 534q0 59 -33 91.5t-101 57.5q-36 13 -52 24t-16 25q0 26 38 26q58 0 124 -33l18 112q-67 32 -149 32q-77 0 -123 -38q-48 -39 -48 -109 q0 -58 32.5 -90.5t99.5 -56.5q39 -14 54.5 -25.5t15.5 -27.5q0 -31 -48 -31q-29 0 -70 12.5t-72 30.5l-18 -113q72 -41 168 -41q81 0 129 37q51 41 51 117zM771 749l19 111h-96v135l-129 -21l-18 -114l-46 -8l-17 -103h62v-219q0 -84 44 -120q38 -30 111 -30q32 0 79 11v118 q-32 -7 -44 -7q-42 0 -42 50v197h77zM1087 724v139q-15 3 -28 3q-32 0 -55.5 -16t-33.5 -46l-10 56h-131v-471h150v306q26 31 82 31q16 0 26 -2zM1124 389h150v471h-150v-471zM1746 638q0 122 -45 179q-40 52 -111 52q-64 0 -117 -56l-8 47h-132v-645l150 25v151 q36 -11 68 -11q83 0 134 56q61 65 61 202zM1278 986q0 33 -23 56t-56 23t-56 -23t-23 -56t23 -56.5t56 -23.5t56 23.5t23 56.5zM2176 629q0 113 -48 176q-50 64 -144 64q-96 0 -151.5 -66t-55.5 -180q0 -128 63 -188q55 -55 161 -55q101 0 160 40l-16 103q-57 -31 -128 -31 q-43 0 -63 19q-23 19 -28 66h248q2 14 2 52zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1558 684q61 -356 298 -556q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5zM1024 -176q16 0 16 16t-16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5zM2026 1424q8 -10 7.5 -23.5t-10.5 -22.5 l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5 l418 363q10 8 23.5 7t21.5 -11z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1040 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM503 315l877 760q-42 88 -132.5 146.5t-223.5 58.5q-93 0 -169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -384 -137 -645zM1856 128 q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5l149 129h757q-166 187 -227 459l111 97q61 -356 298 -556zM1942 1520l84 -96q8 -10 7.5 -23.5t-10.5 -22.5l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161 q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5l418 363q10 8 23.5 7t21.5 -11z" /> +<glyph unicode="" horiz-adv-x="1408" d="M512 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM768 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1024 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704 q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167 q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" /> +<glyph unicode="" d="M1150 462v-109q0 -50 -36.5 -89t-94 -60.5t-118 -32.5t-117.5 -11q-205 0 -342.5 139t-137.5 346q0 203 136 339t339 136q34 0 75.5 -4.5t93 -18t92.5 -34t69 -56.5t28 -81v-109q0 -16 -16 -16h-118q-16 0 -16 16v70q0 43 -65.5 67.5t-137.5 24.5q-140 0 -228.5 -91.5 t-88.5 -237.5q0 -151 91.5 -249.5t233.5 -98.5q68 0 138 24t70 66v70q0 7 4.5 11.5t10.5 4.5h119q6 0 11 -4.5t5 -11.5zM768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5 t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M972 761q0 108 -53.5 169t-147.5 61q-63 0 -124 -30.5t-110 -84.5t-79.5 -137t-30.5 -180q0 -112 53.5 -173t150.5 -61q96 0 176 66.5t122.5 166t42.5 203.5zM1536 640q0 -111 -37 -197t-98.5 -135t-131.5 -74.5t-145 -27.5q-6 0 -15.5 -0.5t-16.5 -0.5q-95 0 -142 53 q-28 33 -33 83q-52 -66 -131.5 -110t-173.5 -44q-161 0 -249.5 95.5t-88.5 269.5q0 157 66 290t179 210.5t246 77.5q87 0 155 -35.5t106 -99.5l2 19l11 56q1 6 5.5 12t9.5 6h118q5 0 13 -11q5 -5 3 -16l-120 -614q-5 -24 -5 -48q0 -39 12.5 -52t44.5 -13q28 1 57 5.5t73 24 t77 50t57 89.5t24 137q0 292 -174 466t-466 174q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51q228 0 405 144q11 9 24 8t21 -12l41 -49q8 -12 7 -24q-2 -13 -12 -22q-102 -83 -227.5 -128t-258.5 -45q-156 0 -298 61 t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q344 0 556 -212t212 -556z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1698 1442q94 -94 94 -226.5t-94 -225.5l-225 -223l104 -104q10 -10 10 -23t-10 -23l-210 -210q-10 -10 -23 -10t-23 10l-105 105l-603 -603q-37 -37 -90 -37h-203l-256 -128l-64 64l128 256v203q0 53 37 90l603 603l-105 105q-10 10 -10 23t10 23l210 210q10 10 23 10 t23 -10l104 -104l223 225q93 94 225.5 94t226.5 -94zM512 64l576 576l-192 192l-576 -576v-192h192z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1615 1536q70 0 122.5 -46.5t52.5 -116.5q0 -63 -45 -151q-332 -629 -465 -752q-97 -91 -218 -91q-126 0 -216.5 92.5t-90.5 219.5q0 128 92 212l638 579q59 54 130 54zM706 502q39 -76 106.5 -130t150.5 -76l1 -71q4 -213 -129.5 -347t-348.5 -134q-123 0 -218 46.5 t-152.5 127.5t-86.5 183t-29 220q7 -5 41 -30t62 -44.5t59 -36.5t46 -17q41 0 55 37q25 66 57.5 112.5t69.5 76t88 47.5t103 25.5t125 10.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 128v-384h-1792v384q45 0 85 14t59 27.5t47 37.5q30 27 51.5 38t56.5 11t55.5 -11t52.5 -38q29 -25 47 -38t58 -27t86 -14q45 0 85 14.5t58 27t48 37.5q21 19 32.5 27t31 15t43.5 7q35 0 56.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14t85 14t59 27.5t47 37.5 q30 27 51.5 38t56.5 11q34 0 55.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14zM1792 448v-192q-35 0 -55.5 11t-52.5 38q-29 25 -47 38t-58 27t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-22 -19 -33 -27t-31 -15t-44 -7q-35 0 -56.5 11t-51.5 38q-29 25 -47 38t-58 27 t-86 14q-45 0 -85 -14.5t-58 -27t-48 -37.5q-21 -19 -32.5 -27t-31 -15t-43.5 -7q-35 0 -56.5 11t-51.5 38q-28 24 -47 37.5t-59 27.5t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-30 -27 -51.5 -38t-56.5 -11v192q0 80 56 136t136 56h64v448h256v-448h256v448h256v-448h256v448 h256v-448h64q80 0 136 -56t56 -136zM512 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1024 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51 t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1536 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150z" /> +<glyph unicode="" horiz-adv-x="2048" d="M2048 0v-128h-2048v1536h128v-1408h1920zM1664 1024l256 -896h-1664v576l448 576l576 -576z" /> +<glyph unicode="" horiz-adv-x="1792" d="M768 646l546 -546q-106 -108 -247.5 -168t-298.5 -60q-209 0 -385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103v-762zM955 640h773q0 -157 -60 -298.5t-168 -247.5zM1664 768h-768v768q209 0 385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M2048 0v-128h-2048v1536h128v-1408h1920zM1920 1248v-435q0 -21 -19.5 -29.5t-35.5 7.5l-121 121l-633 -633q-10 -10 -23 -10t-23 10l-233 233l-416 -416l-192 192l585 585q10 10 23 10t23 -10l233 -233l464 464l-121 121q-16 16 -7.5 35.5t29.5 19.5h435q14 0 23 -9 t9 -23z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1292 832q0 -6 10 -41q10 -29 25 -49.5t41 -34t44 -20t55 -16.5q325 -91 325 -332q0 -146 -105.5 -242.5t-254.5 -96.5q-59 0 -111.5 18.5t-91.5 45.5t-77 74.5t-63 87.5t-53.5 103.5t-43.5 103t-39.5 106.5t-35.5 95q-32 81 -61.5 133.5t-73.5 96.5t-104 64t-142 20 q-96 0 -183 -55.5t-138 -144.5t-51 -185q0 -160 106.5 -279.5t263.5 -119.5q177 0 258 95q56 63 83 116l84 -152q-15 -34 -44 -70l1 -1q-131 -152 -388 -152q-147 0 -269.5 79t-190.5 207.5t-68 274.5q0 105 43.5 206t116 176.5t172 121.5t204.5 46q87 0 159 -19t123.5 -50 t95 -80t72.5 -99t58.5 -117t50.5 -124.5t50 -130.5t55 -127q96 -200 233 -200q81 0 138.5 48.5t57.5 128.5q0 42 -19 72t-50.5 46t-72.5 31.5t-84.5 27t-87.5 34t-81 52t-65 82t-39 122.5q-3 16 -3 33q0 110 87.5 192t198.5 78q78 -3 120.5 -14.5t90.5 -53.5h-1 q12 -11 23 -24.5t26 -36t19 -27.5l-129 -99q-26 49 -54 70v1q-23 21 -97 21q-49 0 -84 -33t-35 -83z" /> +<glyph unicode="" d="M1432 484q0 173 -234 239q-35 10 -53 16.5t-38 25t-29 46.5q0 2 -2 8.5t-3 12t-1 7.5q0 36 24.5 59.5t60.5 23.5q54 0 71 -15h-1q20 -15 39 -51l93 71q-39 54 -49 64q-33 29 -67.5 39t-85.5 10q-80 0 -142 -57.5t-62 -137.5q0 -7 2 -23q16 -96 64.5 -140t148.5 -73 q29 -8 49 -15.5t45 -21.5t38.5 -34.5t13.5 -46.5v-5q1 -58 -40.5 -93t-100.5 -35q-97 0 -167 144q-23 47 -51.5 121.5t-48 125.5t-54 110.5t-74 95.5t-103.5 60.5t-147 24.5q-101 0 -192 -56t-144 -148t-50 -192v-1q4 -108 50.5 -199t133.5 -147.5t196 -56.5q186 0 279 110 q20 27 31 51l-60 109q-42 -80 -99 -116t-146 -36q-115 0 -191 87t-76 204q0 105 82 189t186 84q112 0 170 -53.5t104 -172.5q8 -21 25.5 -68.5t28.5 -76.5t31.5 -74.5t38.5 -74t45.5 -62.5t55.5 -53.5t66 -33t80 -13.5q107 0 183 69.5t76 174.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1152 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1920 640q0 104 -40.5 198.5 t-109.5 163.5t-163.5 109.5t-198.5 40.5h-386q119 -90 188.5 -224t69.5 -288t-69.5 -288t-188.5 -224h386q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM2048 640q0 -130 -51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5 t-136.5 204t-51 248.5t51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M0 640q0 130 51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5t-51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5t-136.5 204t-51 248.5zM1408 128q104 0 198.5 40.5t163.5 109.5 t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5z" /> +<glyph unicode="" horiz-adv-x="2304" d="M762 384h-314q-40 0 -57.5 35t6.5 67l188 251q-65 31 -137 31q-132 0 -226 -94t-94 -226t94 -226t226 -94q115 0 203 72.5t111 183.5zM576 512h186q-18 85 -75 148zM1056 512l288 384h-480l-99 -132q105 -103 126 -252h165zM2176 448q0 132 -94 226t-226 94 q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94t226 94t94 226zM2304 448q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 97 39.5 183.5t109.5 149.5l-65 98l-353 -469 q-18 -26 -51 -26h-197q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q114 0 215 -55l137 183h-224q-26 0 -45 19t-19 45t19 45t45 19h384v-128h435l-85 128h-222q-26 0 -45 19t-19 45t19 45t45 19h256q33 0 53 -28l267 -400 q91 44 192 44q185 0 316.5 -131.5t131.5 -316.5z" /> +<glyph unicode="" d="M384 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1362 716l-72 384q-5 23 -22.5 37.5t-40.5 14.5 h-918q-23 0 -40.5 -14.5t-22.5 -37.5l-72 -384q-5 -30 14 -53t49 -23h1062q30 0 49 23t14 53zM1136 1328q0 20 -14 34t-34 14h-640q-20 0 -34 -14t-14 -34t14 -34t34 -14h640q20 0 34 14t14 34zM1536 603v-603h-128v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5v128h-768v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5v128h-128v603q0 112 25 223l103 454q9 78 97.5 137t230 89t312.5 30t312.5 -30t230 -89t97.5 -137l105 -454q23 -102 23 -223z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1463 704q0 -35 -25 -60.5t-61 -25.5h-702q-36 0 -61 25.5t-25 60.5t25 60.5t61 25.5h702q36 0 61 -25.5t25 -60.5zM1677 704q0 86 -23 170h-982q-36 0 -61 25t-25 60q0 36 25 61t61 25h908q-88 143 -235 227t-320 84q-177 0 -327.5 -87.5t-238 -237.5t-87.5 -327 q0 -86 23 -170h982q36 0 61 -25t25 -60q0 -36 -25 -61t-61 -25h-908q88 -143 235.5 -227t320.5 -84q132 0 253 51.5t208 139t139 208t52 253.5zM2048 959q0 -35 -25 -60t-61 -25h-131q17 -85 17 -170q0 -167 -65.5 -319.5t-175.5 -263t-262.5 -176t-319.5 -65.5 q-246 0 -448.5 133t-301.5 350h-189q-36 0 -61 25t-25 61q0 35 25 60t61 25h132q-17 85 -17 170q0 167 65.5 319.5t175.5 263t262.5 176t320.5 65.5q245 0 447.5 -133t301.5 -350h188q36 0 61 -25t25 -61z" /> +<glyph unicode="" horiz-adv-x="1280" d="M953 1158l-114 -328l117 -21q165 451 165 518q0 56 -38 56q-57 0 -130 -225zM654 471l33 -88q37 42 71 67l-33 5.5t-38.5 7t-32.5 8.5zM362 1367q0 -98 159 -521q18 10 49 10q15 0 75 -5l-121 351q-75 220 -123 220q-19 0 -29 -17.5t-10 -37.5zM283 608q0 -36 51.5 -119 t117.5 -153t100 -70q14 0 25.5 13t11.5 27q0 24 -32 102q-13 32 -32 72t-47.5 89t-61.5 81t-62 32q-20 0 -45.5 -27t-25.5 -47zM125 273q0 -41 25 -104q59 -145 183.5 -227t281.5 -82q227 0 382 170q152 169 152 427q0 43 -1 67t-11.5 62t-30.5 56q-56 49 -211.5 75.5 t-270.5 26.5q-37 0 -49 -11q-12 -5 -12 -35q0 -34 21.5 -60t55.5 -40t77.5 -23.5t87.5 -11.5t85 -4t70 0h23q24 0 40 -19q15 -19 19 -55q-28 -28 -96 -54q-61 -22 -93 -46q-64 -46 -108.5 -114t-44.5 -137q0 -31 18.5 -88.5t18.5 -87.5l-3 -12q-4 -12 -4 -14 q-137 10 -146 216q-8 -2 -41 -2q2 -7 2 -21q0 -53 -40.5 -89.5t-94.5 -36.5q-82 0 -166.5 78t-84.5 159q0 34 33 67q52 -64 60 -76q77 -104 133 -104q12 0 26.5 8.5t14.5 20.5q0 34 -87.5 145t-116.5 111q-43 0 -70 -44.5t-27 -90.5zM11 264q0 101 42.5 163t136.5 88 q-28 74 -28 104q0 62 61 123t122 61q29 0 70 -15q-163 462 -163 567q0 80 41 130.5t119 50.5q131 0 325 -581q6 -17 8 -23q6 16 29 79.5t43.5 118.5t54 127.5t64.5 123t70.5 86.5t76.5 36q71 0 112 -49t41 -122q0 -108 -159 -550q61 -15 100.5 -46t58.5 -78t26 -93.5 t7 -110.5q0 -150 -47 -280t-132 -225t-211 -150t-278 -55q-111 0 -223 42q-149 57 -258 191.5t-109 286.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M785 528h207q-14 -158 -98.5 -248.5t-214.5 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-203q-5 64 -35.5 99t-81.5 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t40 -51.5t66 -18q95 0 109 139zM1497 528h206 q-14 -158 -98 -248.5t-214 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-204q-4 64 -35 99t-81 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t39.5 -51.5t65.5 -18q49 0 76.5 38t33.5 101zM1856 647q0 207 -15.5 307 t-60.5 161q-6 8 -13.5 14t-21.5 15t-16 11q-86 63 -697 63q-625 0 -710 -63q-5 -4 -17.5 -11.5t-21 -14t-14.5 -14.5q-45 -60 -60 -159.5t-15 -308.5q0 -208 15 -307.5t60 -160.5q6 -8 15 -15t20.5 -14t17.5 -12q44 -33 239.5 -49t470.5 -16q610 0 697 65q5 4 17 11t20.5 14 t13.5 16q46 60 61 159t15 309zM2048 1408v-1536h-2048v1536h2048z" /> +<glyph unicode="" d="M992 912v-496q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v496q0 112 -80 192t-192 80h-272v-1152q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v1344q0 14 9 23t23 9h464q135 0 249 -66.5t180.5 -180.5t66.5 -249zM1376 1376v-880q0 -135 -66.5 -249t-180.5 -180.5 t-249 -66.5h-464q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h160q14 0 23 -9t9 -23v-768h272q112 0 192 80t80 192v880q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" /> +<glyph unicode="" d="M1311 694v-114q0 -24 -13.5 -38t-37.5 -14h-202q-24 0 -38 14t-14 38v114q0 24 14 38t38 14h202q24 0 37.5 -14t13.5 -38zM821 464v250q0 53 -32.5 85.5t-85.5 32.5h-133q-68 0 -96 -52q-28 52 -96 52h-130q-53 0 -85.5 -32.5t-32.5 -85.5v-250q0 -22 21 -22h55 q22 0 22 22v230q0 24 13.5 38t38.5 14h94q24 0 38 -14t14 -38v-230q0 -22 21 -22h54q22 0 22 22v230q0 24 14 38t38 14h97q24 0 37.5 -14t13.5 -38v-230q0 -22 22 -22h55q21 0 21 22zM1410 560v154q0 53 -33 85.5t-86 32.5h-264q-53 0 -86 -32.5t-33 -85.5v-410 q0 -21 22 -21h55q21 0 21 21v180q31 -42 94 -42h191q53 0 86 32.5t33 85.5zM1536 1176v-1072q0 -96 -68 -164t-164 -68h-1072q-96 0 -164 68t-68 164v1072q0 96 68 164t164 68h1072q96 0 164 -68t68 -164z" /> +<glyph unicode="" d="M915 450h-294l147 551zM1001 128h311l-324 1024h-440l-324 -1024h311l383 314zM1536 1120v-960q0 -118 -85 -203t-203 -85h-960q-118 0 -203 85t-85 203v960q0 118 85 203t203 85h960q118 0 203 -85t85 -203z" /> +<glyph unicode="" horiz-adv-x="2048" d="M2048 641q0 -21 -13 -36.5t-33 -19.5l-205 -356q3 -9 3 -18q0 -20 -12.5 -35.5t-32.5 -19.5l-193 -337q3 -8 3 -16q0 -23 -16.5 -40t-40.5 -17q-25 0 -41 18h-400q-17 -20 -43 -20t-43 20h-399q-17 -20 -43 -20q-23 0 -40 16.5t-17 40.5q0 8 4 20l-193 335 q-20 4 -32.5 19.5t-12.5 35.5q0 9 3 18l-206 356q-20 5 -32.5 20.5t-12.5 35.5q0 21 13.5 36.5t33.5 19.5l199 344q0 1 -0.5 3t-0.5 3q0 36 34 51l209 363q-4 10 -4 18q0 24 17 40.5t40 16.5q26 0 44 -21h396q16 21 43 21t43 -21h398q18 21 44 21q23 0 40 -16.5t17 -40.5 q0 -6 -4 -18l207 -358q23 -1 39 -17.5t16 -38.5q0 -13 -7 -27l187 -324q19 -4 31.5 -19.5t12.5 -35.5zM1063 -158h389l-342 354h-143l-342 -354h360q18 16 39 16t39 -16zM112 654q1 -4 1 -13q0 -10 -2 -15l208 -360q2 0 4.5 -1t5.5 -2.5l5 -2.5l188 199v347l-187 194 q-13 -8 -29 -10zM986 1438h-388l190 -200l554 200h-280q-16 -16 -38 -16t-38 16zM1689 226q1 6 5 11l-64 68l-17 -79h76zM1583 226l22 105l-252 266l-296 -307l63 -64h463zM1495 -142l16 28l65 310h-427l333 -343q8 4 13 5zM578 -158h5l342 354h-373v-335l4 -6q14 -5 22 -13 zM552 226h402l64 66l-309 321l-157 -166v-221zM359 226h163v189l-168 -177q4 -8 5 -12zM358 1051q0 -1 0.5 -2t0.5 -2q0 -16 -8 -29l171 -177v269zM552 1121v-311l153 -157l297 314l-223 236zM556 1425l-4 -8v-264l205 74l-191 201q-6 -2 -10 -3zM1447 1438h-16l-621 -224 l213 -225zM1023 946l-297 -315l311 -319l296 307zM688 634l-136 141v-284zM1038 270l-42 -44h85zM1374 618l238 -251l132 624l-3 5l-1 1zM1718 1018q-8 13 -8 29v2l-216 376q-5 1 -13 5l-437 -463l310 -327zM522 1142v223l-163 -282zM522 196h-163l163 -283v283zM1607 196 l-48 -227l130 227h-82zM1729 266l207 361q-2 10 -2 14q0 1 3 16l-171 296l-129 -612l77 -82q5 3 15 7z" /> +<glyph unicode="" d="M0 856q0 131 91.5 226.5t222.5 95.5h742l352 358v-1470q0 -132 -91.5 -227t-222.5 -95h-780q-131 0 -222.5 95t-91.5 227v790zM1232 102l-176 180v425q0 46 -32 79t-78 33h-484q-46 0 -78 -33t-32 -79v-492q0 -46 32.5 -79.5t77.5 -33.5h770z" /> +<glyph unicode="" d="M934 1386q-317 -121 -556 -362.5t-358 -560.5q-20 89 -20 176q0 208 102.5 384.5t278.5 279t384 102.5q82 0 169 -19zM1203 1267q93 -65 164 -155q-389 -113 -674.5 -400.5t-396.5 -676.5q-93 72 -155 162q112 386 395 671t667 399zM470 -67q115 356 379.5 622t619.5 384 q40 -92 54 -195q-292 -120 -516 -345t-343 -518q-103 14 -194 52zM1536 -125q-193 50 -367 115q-135 -84 -290 -107q109 205 274 370.5t369 275.5q-21 -152 -101 -284q65 -175 115 -370z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1893 1144l155 -1272q-131 0 -257 57q-200 91 -393 91q-226 0 -374 -148q-148 148 -374 148q-193 0 -393 -91q-128 -57 -252 -57h-5l155 1272q224 127 482 127q233 0 387 -106q154 106 387 106q258 0 482 -127zM1398 157q129 0 232 -28.5t260 -93.5l-124 1021 q-171 78 -368 78q-224 0 -374 -141q-150 141 -374 141q-197 0 -368 -78l-124 -1021q105 43 165.5 65t148.5 39.5t178 17.5q202 0 374 -108q172 108 374 108zM1438 191l-55 907q-211 -4 -359 -155q-152 155 -374 155q-176 0 -336 -66l-114 -941q124 51 228.5 76t221.5 25 q209 0 374 -102q172 107 374 102z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1500 165v733q0 21 -15 36t-35 15h-93q-20 0 -35 -15t-15 -36v-733q0 -20 15 -35t35 -15h93q20 0 35 15t15 35zM1216 165v531q0 20 -15 35t-35 15h-101q-20 0 -35 -15t-15 -35v-531q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM924 165v429q0 20 -15 35t-35 15h-101 q-20 0 -35 -15t-15 -35v-429q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM632 165v362q0 20 -15 35t-35 15h-101q-20 0 -35 -15t-15 -35v-362q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM2048 311q0 -166 -118 -284t-284 -118h-1244q-166 0 -284 118t-118 284 q0 116 63 214.5t168 148.5q-10 34 -10 73q0 113 80.5 193.5t193.5 80.5q102 0 180 -67q45 183 194 300t338 117q149 0 275 -73.5t199.5 -199.5t73.5 -275q0 -66 -14 -122q135 -33 221 -142.5t86 -247.5z" /> +<glyph unicode="" d="M0 1536h1536v-1392l-776 -338l-760 338v1392zM1436 209v926h-1336v-926l661 -294zM1436 1235v201h-1336v-201h1336zM181 937v-115h-37v115h37zM181 789v-115h-37v115h37zM181 641v-115h-37v115h37zM181 493v-115h-37v115h37zM181 345v-115h-37v115h37zM207 202l15 34 l105 -47l-15 -33zM343 142l15 34l105 -46l-15 -34zM478 82l15 34l105 -46l-15 -34zM614 23l15 33l104 -46l-15 -34zM797 10l105 46l15 -33l-105 -47zM932 70l105 46l15 -34l-105 -46zM1068 130l105 46l15 -34l-105 -46zM1203 189l105 47l15 -34l-105 -46zM259 1389v-36h-114 v36h114zM421 1389v-36h-115v36h115zM583 1389v-36h-115v36h115zM744 1389v-36h-114v36h114zM906 1389v-36h-114v36h114zM1068 1389v-36h-115v36h115zM1230 1389v-36h-115v36h115zM1391 1389v-36h-114v36h114zM181 1049v-79h-37v115h115v-36h-78zM421 1085v-36h-115v36h115z M583 1085v-36h-115v36h115zM744 1085v-36h-114v36h114zM906 1085v-36h-114v36h114zM1068 1085v-36h-115v36h115zM1230 1085v-36h-115v36h115zM1355 970v79h-78v36h115v-115h-37zM1355 822v115h37v-115h-37zM1355 674v115h37v-115h-37zM1355 526v115h37v-115h-37zM1355 378 v115h37v-115h-37zM1355 230v115h37v-115h-37zM760 265q-129 0 -221 91.5t-92 221.5q0 129 92 221t221 92q130 0 221.5 -92t91.5 -221q0 -130 -91.5 -221.5t-221.5 -91.5zM595 646q0 -36 19.5 -56.5t49.5 -25t64 -7t64 -2t49.5 -9t19.5 -30.5q0 -49 -112 -49q-97 0 -123 51 h-3l-31 -63q67 -42 162 -42q29 0 56.5 5t55.5 16t45.5 33t17.5 53q0 46 -27.5 69.5t-67.5 27t-79.5 3t-67 5t-27.5 25.5q0 21 20.5 33t40.5 15t41 3q34 0 70.5 -11t51.5 -34h3l30 58q-3 1 -21 8.5t-22.5 9t-19.5 7t-22 7t-20 4.5t-24 4t-23 1q-29 0 -56.5 -5t-54 -16.5 t-43 -34t-16.5 -53.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M863 504q0 112 -79.5 191.5t-191.5 79.5t-191 -79.5t-79 -191.5t79 -191t191 -79t191.5 79t79.5 191zM1726 505q0 112 -79 191t-191 79t-191.5 -79t-79.5 -191q0 -113 79.5 -192t191.5 -79t191 79.5t79 191.5zM2048 1314v-1348q0 -44 -31.5 -75.5t-76.5 -31.5h-1832 q-45 0 -76.5 31.5t-31.5 75.5v1348q0 44 31.5 75.5t76.5 31.5h431q44 0 76 -31.5t32 -75.5v-161h754v161q0 44 32 75.5t76 31.5h431q45 0 76.5 -31.5t31.5 -75.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1430 953zM1690 749q148 0 253 -98.5t105 -244.5q0 -157 -109 -261.5t-267 -104.5q-85 0 -162 27.5t-138 73.5t-118 106t-109 126.5t-103.5 132.5t-108.5 126t-117 106t-136 73.5t-159 27.5q-154 0 -251.5 -91.5t-97.5 -244.5q0 -157 104 -250t263 -93q100 0 208 37.5 t193 98.5q5 4 21 18.5t30 24t22 9.5q14 0 24.5 -10.5t10.5 -24.5q0 -24 -60 -77q-101 -88 -234.5 -142t-260.5 -54q-133 0 -245.5 58t-180 165t-67.5 241q0 205 141.5 341t347.5 136q120 0 226.5 -43.5t185.5 -113t151.5 -153t139 -167.5t133.5 -153.5t149.5 -113 t172.5 -43.5q102 0 168.5 61.5t66.5 162.5q0 95 -64.5 159t-159.5 64q-30 0 -81.5 -18.5t-68.5 -18.5q-20 0 -35.5 15t-15.5 35q0 18 8.5 57t8.5 59q0 159 -107.5 263t-266.5 104q-58 0 -111.5 -18.5t-84 -40.5t-55.5 -40.5t-33 -18.5q-15 0 -25.5 10.5t-10.5 25.5 q0 19 25 46q59 67 147 103.5t182 36.5q191 0 318 -125.5t127 -315.5q0 -37 -4 -66q57 15 115 15z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1216 832q0 26 -19 45t-45 19h-128v128q0 26 -19 45t-45 19t-45 -19t-19 -45v-128h-128q-26 0 -45 -19t-19 -45t19 -45t45 -19h128v-128q0 -26 19 -45t45 -19t45 19t19 45v128h128q26 0 45 19t19 45zM640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920 q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="1664" d="M1280 832q0 26 -19 45t-45 19t-45 -19l-147 -146v293q0 26 -19 45t-45 19t-45 -19t-19 -45v-293l-147 146q-19 19 -45 19t-45 -19t-19 -45t19 -45l256 -256q19 -19 45 -19t45 19l256 256q19 19 19 45zM640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920 q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" /> +<glyph unicode="" horiz-adv-x="2048" d="M212 768l623 -665l-300 665h-323zM1024 -4l349 772h-698zM538 896l204 384h-262l-288 -384h346zM1213 103l623 665h-323zM683 896h682l-204 384h-274zM1510 896h346l-288 384h-262zM1651 1382l384 -512q14 -18 13 -41.5t-17 -40.5l-960 -1024q-18 -20 -47 -20t-47 20 l-960 1024q-16 17 -17 40.5t13 41.5l384 512q18 26 51 26h1152q33 0 51 -26z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1811 -19q19 19 45 19t45 -19l128 -128l-90 -90l-83 83l-83 -83q-18 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83 q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-128 128l90 90l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83 q19 19 45 19t45 -19l83 -83zM237 19q-19 -19 -45 -19t-45 19l-128 128l90 90l83 -82l83 82q19 19 45 19t45 -19l83 -82l64 64v293l-210 314q-17 26 -7 56.5t40 40.5l177 58v299h128v128h256v128h256v-128h256v-128h128v-299l177 -58q30 -10 40 -40.5t-7 -56.5l-210 -314 v-293l19 18q19 19 45 19t45 -19l83 -82l83 82q19 19 45 19t45 -19l128 -128l-90 -90l-83 83l-83 -83q-18 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83 q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83zM640 1152v-128l384 128l384 -128v128h-128v128h-512v-128h-128z" /> +<glyph unicode="" d="M576 0l96 448l-96 128l-128 64zM832 0l128 640l-128 -64l-96 -128zM992 1010q-2 4 -4 6q-10 8 -96 8q-70 0 -167 -19q-7 -2 -21 -2t-21 2q-97 19 -167 19q-86 0 -96 -8q-2 -2 -4 -6q2 -18 4 -27q2 -3 7.5 -6.5t7.5 -10.5q2 -4 7.5 -20.5t7 -20.5t7.5 -17t8.5 -17t9 -14 t12 -13.5t14 -9.5t17.5 -8t20.5 -4t24.5 -2q36 0 59 12.5t32.5 30t14.5 34.5t11.5 29.5t17.5 12.5h12q11 0 17.5 -12.5t11.5 -29.5t14.5 -34.5t32.5 -30t59 -12.5q13 0 24.5 2t20.5 4t17.5 8t14 9.5t12 13.5t9 14t8.5 17t7.5 17t7 20.5t7.5 20.5q2 7 7.5 10.5t7.5 6.5 q2 9 4 27zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 61 4.5 118t19 125.5t37.5 123.5t63.5 103.5t93.5 74.5l-90 220h214q-22 64 -22 128q0 12 2 32q-194 40 -194 96q0 57 210 99q17 62 51.5 134t70.5 114q32 37 76 37q30 0 84 -31t84 -31t84 31 t84 31q44 0 76 -37q36 -42 70.5 -114t51.5 -134q210 -42 210 -99q0 -56 -194 -96q7 -81 -20 -160h214l-82 -225q63 -33 107.5 -96.5t65.5 -143.5t29 -151.5t8 -148.5z" /> +<glyph unicode="" horiz-adv-x="2304" d="M2301 500q12 -103 -22 -198.5t-99 -163.5t-158.5 -106t-196.5 -31q-161 11 -279.5 125t-134.5 274q-12 111 27.5 210.5t118.5 170.5l-71 107q-96 -80 -151 -194t-55 -244q0 -27 -18.5 -46.5t-45.5 -19.5h-256h-69q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5 t-131.5 316.5t131.5 316.5t316.5 131.5q76 0 152 -27l24 45q-123 110 -304 110h-64q-26 0 -45 19t-19 45t19 45t45 19h128q78 0 145 -13.5t116.5 -38.5t71.5 -39.5t51 -36.5h512h115l-85 128h-222q-30 0 -49 22.5t-14 52.5q4 23 23 38t43 15h253q33 0 53 -28l70 -105 l114 114q19 19 46 19h101q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-179l115 -172q131 63 275 36q143 -26 244 -134.5t118 -253.5zM448 128q115 0 203 72.5t111 183.5h-314q-35 0 -55 31q-18 32 -1 63l147 277q-47 13 -91 13q-132 0 -226 -94t-94 -226t94 -226 t226 -94zM1856 128q132 0 226 94t94 226t-94 226t-226 94q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94z" /> +<glyph unicode="" d="M1408 0q0 -63 -61.5 -113.5t-164 -81t-225 -46t-253.5 -15.5t-253.5 15.5t-225 46t-164 81t-61.5 113.5q0 49 33 88.5t91 66.5t118 44.5t131 29.5q26 5 48 -10.5t26 -41.5q5 -26 -10.5 -48t-41.5 -26q-58 -10 -106 -23.5t-76.5 -25.5t-48.5 -23.5t-27.5 -19.5t-8.5 -12 q3 -11 27 -26.5t73 -33t114 -32.5t160.5 -25t201.5 -10t201.5 10t160.5 25t114 33t73 33.5t27 27.5q-1 4 -8.5 11t-27.5 19t-48.5 23.5t-76.5 25t-106 23.5q-26 4 -41.5 26t-10.5 48q4 26 26 41.5t48 10.5q71 -12 131 -29.5t118 -44.5t91 -66.5t33 -88.5zM1024 896v-384 q0 -26 -19 -45t-45 -19h-64v-384q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v384h-64q-26 0 -45 19t-19 45v384q0 53 37.5 90.5t90.5 37.5h384q53 0 90.5 -37.5t37.5 -90.5zM928 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5 t158.5 -65.5t65.5 -158.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1280 512h305q-5 -6 -10 -10.5t-9 -7.5l-3 -4l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-5 2 -21 20h369q22 0 39.5 13.5t22.5 34.5l70 281l190 -667q6 -20 23 -33t39 -13q21 0 38 13t23 33l146 485l56 -112q18 -35 57 -35zM1792 940q0 -145 -103 -300h-369l-111 221 q-8 17 -25.5 27t-36.5 8q-45 -5 -56 -46l-129 -430l-196 686q-6 20 -23.5 33t-39.5 13t-39 -13.5t-22 -34.5l-116 -464h-423q-103 155 -103 300q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124 t127 -344z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1152 960q0 -221 -147.5 -384.5t-364.5 -187.5v-260h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v260q-150 16 -271.5 103t-186 224t-52.5 292 q11 134 80.5 249t182 188t245.5 88q170 19 319 -54t236 -212t87 -306zM128 960q0 -185 131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5z" /> +<glyph unicode="" d="M1472 1408q26 0 45 -19t19 -45v-416q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v262l-382 -383q126 -156 126 -359q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5 q203 0 359 -126l382 382h-261q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h416zM576 0q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M830 1220q145 -72 233.5 -210.5t88.5 -305.5q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-217 24 -364.5 187.5 t-147.5 384.5q0 167 88.5 305.5t233.5 210.5q-165 96 -228 273q-6 16 3.5 29.5t26.5 13.5h69q21 0 29 -20q44 -106 140 -171t214 -65t214 65t140 171q8 20 37 20h61q17 0 26.5 -13.5t3.5 -29.5q-63 -177 -228 -273zM576 256q185 0 316.5 131.5t131.5 316.5t-131.5 316.5 t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" d="M1024 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q126 -158 126 -359q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64 q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-149 16 -270.5 103t-186.5 223.5t-53 291.5q16 204 160 353.5t347 172.5q118 14 228 -19t198 -103l255 254h-134q-14 0 -23 9t-9 23v64zM576 256q185 0 316.5 131.5t131.5 316.5t-131.5 316.5 t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1280 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q126 -158 126 -359q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64 q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-217 24 -364.5 187.5t-147.5 384.5q0 201 126 359l-52 53l-101 -111q-9 -10 -22 -10.5t-23 7.5l-48 44q-10 8 -10.5 21.5t8.5 23.5l105 115l-111 112v-134q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9 t-9 23v288q0 26 19 45t45 19h288q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-133l106 -107l86 94q9 10 22 10.5t23 -7.5l48 -44q10 -8 10.5 -21.5t-8.5 -23.5l-90 -99l57 -56q158 126 359 126t359 -126l255 254h-134q-14 0 -23 9t-9 23v64zM832 256q185 0 316.5 131.5 t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1790 1007q12 -155 -52.5 -292t-186 -224t-271.5 -103v-260h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-512v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23 t23 9h224v260q-150 16 -271.5 103t-186 224t-52.5 292q17 206 164.5 356.5t352.5 169.5q206 21 377 -94q171 115 377 94q205 -19 352.5 -169.5t164.5 -356.5zM896 647q128 131 128 313t-128 313q-128 -131 -128 -313t128 -313zM576 512q115 0 218 57q-154 165 -154 391 q0 224 154 391q-103 57 -218 57q-185 0 -316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5zM1152 128v260q-137 15 -256 94q-119 -79 -256 -94v-260h512zM1216 512q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5q-115 0 -218 -57q154 -167 154 -391 q0 -226 -154 -391q103 -57 218 -57z" /> +<glyph unicode="" horiz-adv-x="1920" d="M1536 1120q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q76 -95 107.5 -214t9.5 -247q-31 -182 -166 -312t-318 -156q-210 -29 -384.5 80t-241.5 300q-117 6 -221 57.5t-177.5 133t-113.5 192.5t-32 230 q9 135 78 252t182 191.5t248 89.5q118 14 227.5 -19t198.5 -103l255 254h-134q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q59 -74 93 -169q182 -9 328 -124l255 254h-134q-14 0 -23 9 t-9 23v64zM1024 704q0 20 -4 58q-162 -25 -271 -150t-109 -292q0 -20 4 -58q162 25 271 150t109 292zM128 704q0 -168 111 -294t276 -149q-3 29 -3 59q0 210 135 369.5t338 196.5q-53 120 -163.5 193t-245.5 73q-185 0 -316.5 -131.5t-131.5 -316.5zM1088 -128 q185 0 316.5 131.5t131.5 316.5q0 168 -111 294t-276 149q3 -29 3 -59q0 -210 -135 -369.5t-338 -196.5q53 -120 163.5 -193t245.5 -73z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1664 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q76 -95 107.5 -214t9.5 -247q-32 -180 -164.5 -310t-313.5 -157q-223 -34 -409 90q-117 -78 -256 -93v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23 t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-155 17 -279.5 109.5t-187 237.5t-39.5 307q25 187 159.5 322.5t320.5 164.5q224 34 410 -90q146 97 320 97q201 0 359 -126l255 254h-134q-14 0 -23 9 t-9 23v64zM896 391q128 131 128 313t-128 313q-128 -131 -128 -313t128 -313zM128 704q0 -185 131.5 -316.5t316.5 -131.5q117 0 218 57q-154 167 -154 391t154 391q-101 57 -218 57q-185 0 -316.5 -131.5t-131.5 -316.5zM1216 256q185 0 316.5 131.5t131.5 316.5 t-131.5 316.5t-316.5 131.5q-117 0 -218 -57q154 -167 154 -391t-154 -391q101 -57 218 -57z" /> +<glyph unicode="" d="M1472 1408q26 0 45 -19t19 -45v-416q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v262l-213 -214l140 -140q9 -10 9 -23t-9 -22l-46 -46q-9 -9 -22 -9t-23 9l-140 141l-78 -79q126 -156 126 -359q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5 t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5q203 0 359 -126l78 78l-172 172q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l172 -172l213 213h-261q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h416zM576 0q185 0 316.5 131.5t131.5 316.5t-131.5 316.5 t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M640 892q217 -24 364.5 -187.5t147.5 -384.5q0 -167 -87 -306t-236 -212t-319 -54q-133 15 -245.5 88t-182 188t-80.5 249q-12 155 52.5 292t186 224t271.5 103v132h-160q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h160v165l-92 -92q-10 -9 -23 -9t-22 9l-46 46q-9 9 -9 22 t9 23l202 201q19 19 45 19t45 -19l202 -201q9 -10 9 -23t-9 -22l-46 -46q-9 -9 -22 -9t-23 9l-92 92v-165h160q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-160v-132zM576 -128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5 t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1901 621q19 -19 19 -45t-19 -45l-294 -294q-9 -10 -22.5 -10t-22.5 10l-45 45q-10 9 -10 22.5t10 22.5l185 185h-294v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-132q-24 -217 -187.5 -364.5t-384.5 -147.5q-167 0 -306 87t-212 236t-54 319q15 133 88 245.5 t188 182t249 80.5q155 12 292 -52.5t224 -186t103 -271.5h132v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224h294l-185 185q-10 9 -10 22.5t10 22.5l45 45q9 10 22.5 10t22.5 -10zM576 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5 t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1152 960q0 -221 -147.5 -384.5t-364.5 -187.5v-612q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v612q-217 24 -364.5 187.5t-147.5 384.5q0 117 45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5zM576 512q185 0 316.5 131.5 t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1024 576q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1152 576q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123 t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5z" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" d="M1451 1408q35 0 60 -25t25 -60v-1366q0 -35 -25 -60t-60 -25h-391v595h199l30 232h-229v148q0 56 23.5 84t91.5 28l122 1v207q-63 9 -178 9q-136 0 -217.5 -80t-81.5 -226v-171h-200v-232h200v-595h-735q-35 0 -60 25t-25 60v1366q0 35 25 60t60 25h1366z" /> +<glyph unicode="" horiz-adv-x="1280" d="M0 939q0 108 37.5 203.5t103.5 166.5t152 123t185 78t202 26q158 0 294 -66.5t221 -193.5t85 -287q0 -96 -19 -188t-60 -177t-100 -149.5t-145 -103t-189 -38.5q-68 0 -135 32t-96 88q-10 -39 -28 -112.5t-23.5 -95t-20.5 -71t-26 -71t-32 -62.5t-46 -77.5t-62 -86.5 l-14 -5l-9 10q-15 157 -15 188q0 92 21.5 206.5t66.5 287.5t52 203q-32 65 -32 169q0 83 52 156t132 73q61 0 95 -40.5t34 -102.5q0 -66 -44 -191t-44 -187q0 -63 45 -104.5t109 -41.5q55 0 102 25t78.5 68t56 95t38 110.5t20 111t6.5 99.5q0 173 -109.5 269.5t-285.5 96.5 q-200 0 -334 -129.5t-134 -328.5q0 -44 12.5 -85t27 -65t27 -45.5t12.5 -30.5q0 -28 -15 -73t-37 -45q-2 0 -17 3q-51 15 -90.5 56t-61 94.5t-32.5 108t-11 106.5z" /> +<glyph unicode="" d="M985 562q13 0 97.5 -44t89.5 -53q2 -5 2 -15q0 -33 -17 -76q-16 -39 -71 -65.5t-102 -26.5q-57 0 -190 62q-98 45 -170 118t-148 185q-72 107 -71 194v8q3 91 74 158q24 22 52 22q6 0 18 -1.5t19 -1.5q19 0 26.5 -6.5t15.5 -27.5q8 -20 33 -88t25 -75q0 -21 -34.5 -57.5 t-34.5 -46.5q0 -7 5 -15q34 -73 102 -137q56 -53 151 -101q12 -7 22 -7q15 0 54 48.5t52 48.5zM782 32q127 0 243.5 50t200.5 134t134 200.5t50 243.5t-50 243.5t-134 200.5t-200.5 134t-243.5 50t-243.5 -50t-200.5 -134t-134 -200.5t-50 -243.5q0 -203 120 -368l-79 -233 l242 77q158 -104 345 -104zM782 1414q153 0 292.5 -60t240.5 -161t161 -240.5t60 -292.5t-60 -292.5t-161 -240.5t-240.5 -161t-292.5 -60q-195 0 -365 94l-417 -134l136 405q-108 178 -108 389q0 153 60 292.5t161 240.5t240.5 161t292.5 60z" /> +<glyph unicode="" horiz-adv-x="1792" d="M128 128h1024v128h-1024v-128zM128 640h1024v128h-1024v-128zM1696 192q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM128 1152h1024v128h-1024v-128zM1696 704q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1696 1216 q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1792 384v-384h-1792v384h1792zM1792 896v-384h-1792v384h1792zM1792 1408v-384h-1792v384h1792z" /> +<glyph unicode="" horiz-adv-x="2048" d="M704 640q-159 0 -271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5zM1664 512h352q13 0 22.5 -9.5t9.5 -22.5v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-352q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5 t-9.5 22.5v352h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v352q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5v-352zM928 288q0 -52 38 -90t90 -38h256v-238q-68 -50 -171 -50h-874q-121 0 -194 69t-73 190q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q19 0 39 -17q79 -61 154.5 -91.5t164.5 -30.5t164.5 30.5t154.5 91.5q20 17 39 17q132 0 217 -96h-223q-52 0 -90 -38t-38 -90v-192z" /> +<glyph unicode="" horiz-adv-x="2048" d="M704 640q-159 0 -271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5zM1781 320l249 -249q9 -9 9 -23q0 -13 -9 -22l-136 -136q-9 -9 -22 -9q-14 0 -23 9l-249 249l-249 -249q-9 -9 -23 -9q-13 0 -22 9l-136 136 q-9 9 -9 22q0 14 9 23l249 249l-249 249q-9 9 -9 23q0 13 9 22l136 136q9 9 22 9q14 0 23 -9l249 -249l249 249q9 9 23 9q13 0 22 -9l136 -136q9 -9 9 -22q0 -14 -9 -23zM1283 320l-181 -181q-37 -37 -37 -91q0 -53 37 -90l83 -83q-21 -3 -44 -3h-874q-121 0 -194 69 t-73 190q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q19 0 39 -17q154 -122 319 -122t319 122q20 17 39 17q28 0 57 -6q-28 -27 -41 -50t-13 -56q0 -54 37 -91z" /> +<glyph unicode="" horiz-adv-x="2048" d="M256 512h1728q26 0 45 -19t19 -45v-448h-256v256h-1536v-256h-256v1216q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-704zM832 832q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM2048 576v64q0 159 -112.5 271.5t-271.5 112.5h-704 q-26 0 -45 -19t-19 -45v-384h1152z" /> +<glyph unicode="" d="M1536 1536l-192 -448h192v-192h-274l-55 -128h329v-192h-411l-357 -832l-357 832h-411v192h329l-55 128h-274v192h192l-192 448h256l323 -768h378l323 768h256zM768 320l108 256h-216z" /> +<glyph unicode="" d="M1088 1536q185 0 316.5 -93.5t131.5 -226.5v-896q0 -130 -125.5 -222t-305.5 -97l213 -202q16 -15 8 -35t-30 -20h-1056q-22 0 -30 20t8 35l213 202q-180 5 -305.5 97t-125.5 222v896q0 133 131.5 226.5t316.5 93.5h640zM768 192q80 0 136 56t56 136t-56 136t-136 56 t-136 -56t-56 -136t56 -136t136 -56zM1344 768v512h-1152v-512h1152z" /> +<glyph unicode="" d="M1088 1536q185 0 316.5 -93.5t131.5 -226.5v-896q0 -130 -125.5 -222t-305.5 -97l213 -202q16 -15 8 -35t-30 -20h-1056q-22 0 -30 20t8 35l213 202q-180 5 -305.5 97t-125.5 222v896q0 133 131.5 226.5t316.5 93.5h640zM288 224q66 0 113 47t47 113t-47 113t-113 47 t-113 -47t-47 -113t47 -113t113 -47zM704 768v512h-544v-512h544zM1248 224q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM1408 768v512h-576v-512h576z" /> +<glyph unicode="" horiz-adv-x="1792" d="M597 1115v-1173q0 -25 -12.5 -42.5t-36.5 -17.5q-17 0 -33 8l-465 233q-21 10 -35.5 33.5t-14.5 46.5v1140q0 20 10 34t29 14q14 0 44 -15l511 -256q3 -3 3 -5zM661 1014l534 -866l-534 266v600zM1792 996v-1054q0 -25 -14 -40.5t-38 -15.5t-47 13l-441 220zM1789 1116 q0 -3 -256.5 -419.5t-300.5 -487.5l-390 634l324 527q17 28 52 28q14 0 26 -6l541 -270q4 -2 4 -6z" /> +<glyph unicode="" d="M809 532l266 499h-112l-157 -312q-24 -48 -44 -92l-42 92l-155 312h-120l263 -493v-324h101v318zM1536 1408v-1536h-1536v1536h1536z" /> +<glyph unicode="" horiz-adv-x="2296" d="M478 -139q-8 -16 -27 -34.5t-37 -25.5q-25 -9 -51.5 3.5t-28.5 31.5q-1 22 40 55t68 38q23 4 34 -21.5t2 -46.5zM1819 -139q7 -16 26 -34.5t38 -25.5q25 -9 51.5 3.5t27.5 31.5q2 22 -39.5 55t-68.5 38q-22 4 -33 -21.5t-2 -46.5zM1867 -30q13 -27 56.5 -59.5t77.5 -41.5 q45 -13 82 4.5t37 50.5q0 46 -67.5 100.5t-115.5 59.5q-40 5 -63.5 -37.5t-6.5 -76.5zM428 -30q-13 -27 -56 -59.5t-77 -41.5q-45 -13 -82 4.5t-37 50.5q0 46 67.5 100.5t115.5 59.5q40 5 63 -37.5t6 -76.5zM1158 1094h1q-41 0 -76 -15q27 -8 44 -30.5t17 -49.5 q0 -35 -27 -60t-65 -25q-52 0 -80 43q-5 -23 -5 -42q0 -74 56 -126.5t135 -52.5q80 0 136 52.5t56 126.5t-56 126.5t-136 52.5zM1462 1312q-99 109 -220.5 131.5t-245.5 -44.5q27 60 82.5 96.5t118 39.5t121.5 -17t99.5 -74.5t44.5 -131.5zM2212 73q8 -11 -11 -42 q7 -23 7 -40q1 -56 -44.5 -112.5t-109.5 -91.5t-118 -37q-48 -2 -92 21.5t-66 65.5q-687 -25 -1259 0q-23 -41 -66.5 -65t-92.5 -22q-86 3 -179.5 80.5t-92.5 160.5q2 22 7 40q-19 31 -11 42q6 10 31 1q14 22 41 51q-7 29 2 38q11 10 39 -4q29 20 59 34q0 29 13 37 q23 12 51 -16q35 5 61 -2q18 -4 38 -19v73q-11 0 -18 2q-53 10 -97 44.5t-55 87.5q-9 38 0 81q15 62 93 95q2 17 19 35.5t36 23.5t33 -7.5t19 -30.5h13q46 -5 60 -23q3 -3 5 -7q10 1 30.5 3.5t30.5 3.5q-15 11 -30 17q-23 40 -91 43q0 6 1 10q-62 2 -118.5 18.5t-84.5 47.5 q-32 36 -42.5 92t-2.5 112q16 126 90 179q23 16 52 4.5t32 -40.5q0 -1 1.5 -14t2.5 -21t3 -20t5.5 -19t8.5 -10q27 -14 76 -12q48 46 98 74q-40 4 -162 -14l47 46q61 58 163 111q145 73 282 86q-20 8 -41 15.5t-47 14t-42.5 10.5t-47.5 11t-43 10q595 126 904 -139 q98 -84 158 -222q85 -10 121 9h1q5 3 8.5 10t5.5 19t3 19.5t3 21.5l1 14q3 28 32 40t52 -5q73 -52 91 -178q7 -57 -3.5 -113t-42.5 -91q-28 -32 -83.5 -48.5t-115.5 -18.5v-10q-71 -2 -95 -43q-14 -5 -31 -17q11 -1 32 -3.5t30 -3.5q1 4 5 8q16 18 60 23h13q5 18 19 30t33 8 t36 -23t19 -36q79 -32 93 -95q9 -40 1 -81q-12 -53 -56 -88t-97 -44q-10 -2 -17 -2q0 -49 -1 -73q20 15 38 19q26 7 61 2q28 28 51 16q14 -9 14 -37q33 -16 59 -34q27 13 38 4q10 -10 2 -38q28 -30 41 -51q23 8 31 -1zM1937 1025q0 -29 -9 -54q82 -32 112 -132 q4 37 -9.5 98.5t-41.5 90.5q-20 19 -36 17t-16 -20zM1859 925q35 -42 47.5 -108.5t-0.5 -124.5q67 13 97 45q13 14 18 28q-3 64 -31 114.5t-79 66.5q-15 -15 -52 -21zM1822 921q-30 0 -44 1q42 -115 53 -239q21 0 43 3q16 68 1 135t-53 100zM258 839q30 100 112 132 q-9 25 -9 54q0 18 -16.5 20t-35.5 -17q-28 -29 -41.5 -90.5t-9.5 -98.5zM294 737q29 -31 97 -45q-13 58 -0.5 124.5t47.5 108.5v0q-37 6 -52 21q-51 -16 -78.5 -66t-31.5 -115q9 -17 18 -28zM471 683q14 124 73 235q-19 -4 -55 -18l-45 -19v1q-46 -89 -20 -196q25 -3 47 -3z M1434 644q8 -38 16.5 -108.5t11.5 -89.5q3 -18 9.5 -21.5t23.5 4.5q40 20 62 85.5t23 125.5q-24 2 -146 4zM1152 1285q-116 0 -199 -82.5t-83 -198.5q0 -117 83 -199.5t199 -82.5t199 82.5t83 199.5q0 116 -83 198.5t-199 82.5zM1380 646q-106 2 -211 0v1q-1 -27 2.5 -86 t13.5 -66q29 -14 93.5 -14.5t95.5 10.5q9 3 11 39t-0.5 69.5t-4.5 46.5zM1112 447q8 4 9.5 48t-0.5 88t-4 63v1q-212 -3 -214 -3q-4 -20 -7 -62t0 -83t14 -46q34 -15 101 -16t101 10zM718 636q-16 -59 4.5 -118.5t77.5 -84.5q15 -8 24 -5t12 21q3 16 8 90t10 103 q-69 -2 -136 -6zM591 510q3 -23 -34 -36q132 -141 271.5 -240t305.5 -154q172 49 310.5 146t293.5 250q-33 13 -30 34l3 9v1v-1q-17 2 -50 5.5t-48 4.5q-26 -90 -82 -132q-51 -38 -82 1q-5 6 -9 14q-7 13 -17 62q-2 -5 -5 -9t-7.5 -7t-8 -5.5t-9.5 -4l-10 -2.5t-12 -2 l-12 -1.5t-13.5 -1t-13.5 -0.5q-106 -9 -163 11q-4 -17 -10 -26.5t-21 -15t-23 -7t-36 -3.5q-2 0 -3 -0.5t-3 -0.5h-3q-179 -17 -203 40q-2 -63 -56 -54q-47 8 -91 54q-12 13 -20 26q-17 29 -26 65q-58 -6 -87 -10q1 -2 4 -10zM507 -118q3 14 3 30q-17 71 -51 130t-73 70 q-41 12 -101.5 -14.5t-104.5 -80t-39 -107.5q35 -53 100 -93t119 -42q51 -2 94 28t53 79zM510 53q23 -63 27 -119q195 113 392 174q-98 52 -180.5 120t-179.5 165q-6 -4 -29 -13q0 -2 -1 -5t-1 -4q31 -18 22 -37q-12 -23 -56 -34q-10 -13 -29 -24h-1q-2 -83 1 -150 q19 -34 35 -73zM579 -113q532 -21 1145 0q-254 147 -428 196q-76 -35 -156 -57q-8 -3 -16 0q-65 21 -129 49q-208 -60 -416 -188h-1v-1q1 0 1 1zM1763 -67q4 54 28 120q14 38 33 71l-1 -1q3 77 3 153q-15 8 -30 25q-42 9 -56 33q-9 20 22 38q-2 4 -2 9q-16 4 -28 12 q-204 -190 -383 -284q198 -59 414 -176zM2155 -90q5 54 -39 107.5t-104 80t-102 14.5q-38 -11 -72.5 -70.5t-51.5 -129.5q0 -16 3 -30q10 -49 53 -79t94 -28q54 2 119 42t100 93z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1524 -25q0 -68 -48 -116t-116 -48t-116.5 48t-48.5 116t48.5 116.5t116.5 48.5t116 -48.5t48 -116.5zM775 -25q0 -68 -48.5 -116t-116.5 -48t-116 48t-48 116t48 116.5t116 48.5t116.5 -48.5t48.5 -116.5zM0 1469q57 -60 110.5 -104.5t121 -82t136 -63t166 -45.5 t200 -31.5t250 -18.5t304 -9.5t372.5 -2.5q139 0 244.5 -5t181 -16.5t124 -27.5t71 -39.5t24 -51.5t-19.5 -64t-56.5 -76.5t-89.5 -91t-116 -104.5t-139 -119q-185 -157 -286 -247q29 51 76.5 109t94 105.5t94.5 98.5t83 91.5t54 80.5t13 70t-45.5 55.5t-116.5 41t-204 23.5 t-304 5q-168 -2 -314 6t-256 23t-204.5 41t-159.5 51.5t-122.5 62.5t-91.5 66.5t-68 71.5t-50.5 69.5t-40 68t-36.5 59.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M896 1472q-169 0 -323 -66t-265.5 -177.5t-177.5 -265.5t-66 -323t66 -323t177.5 -265.5t265.5 -177.5t323 -66t323 66t265.5 177.5t177.5 265.5t66 323t-66 323t-177.5 265.5t-265.5 177.5t-323 66zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348 t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM496 704q16 0 16 -16v-480q0 -16 -16 -16h-32q-16 0 -16 16v480q0 16 16 16h32zM896 640q53 0 90.5 -37.5t37.5 -90.5q0 -35 -17.5 -64t-46.5 -46v-114q0 -14 -9 -23 t-23 -9h-64q-14 0 -23 9t-9 23v114q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5zM896 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM544 928v-96 q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v96q0 93 65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5v-96q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v96q0 146 -103 249t-249 103t-249 -103t-103 -249zM1408 192v512q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-512 q0 -26 19 -45t45 -19h896q26 0 45 19t19 45z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1920 1024v-768h-1664v768h1664zM2048 448h128v384h-128v288q0 14 -9 23t-23 9h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288zM2304 832v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113 v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160q53 0 90.5 -37.5t37.5 -90.5z" /> +<glyph unicode="" horiz-adv-x="2304" d="M256 256v768h1280v-768h-1280zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9 h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" /> +<glyph unicode="" horiz-adv-x="2304" d="M256 256v768h896v-768h-896zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9 h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" /> +<glyph unicode="" horiz-adv-x="2304" d="M256 256v768h512v-768h-512zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9 h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" /> +<glyph unicode="" horiz-adv-x="2304" d="M2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9h-1856q-14 0 -23 -9t-9 -23 v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" /> +<glyph unicode="" horiz-adv-x="1280" d="M1133 493q31 -30 14 -69q-17 -40 -59 -40h-382l201 -476q10 -25 0 -49t-34 -35l-177 -75q-25 -10 -49 0t-35 34l-191 452l-312 -312q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v1504q0 42 40 59q12 5 24 5q27 0 45 -19z" /> +<glyph unicode="" horiz-adv-x="1024" d="M832 1408q-320 0 -320 -224v-416h128v-128h-128v-544q0 -224 320 -224h64v-128h-64q-272 0 -384 146q-112 -146 -384 -146h-64v128h64q320 0 320 224v544h-128v128h128v416q0 224 -320 224h-64v128h64q272 0 384 -146q112 146 384 146h64v-128h-64z" /> +<glyph unicode="" horiz-adv-x="2048" d="M2048 1152h-128v-1024h128v-384h-384v128h-1280v-128h-384v384h128v1024h-128v384h384v-128h1280v128h384v-384zM1792 1408v-128h128v128h-128zM128 1408v-128h128v128h-128zM256 -128v128h-128v-128h128zM1664 0v128h128v1024h-128v128h-1280v-128h-128v-1024h128v-128 h1280zM1920 -128v128h-128v-128h128zM1280 896h384v-768h-896v256h-384v768h896v-256zM512 512h640v512h-640v-512zM1536 256v512h-256v-384h-384v-128h640z" /> +<glyph unicode="" horiz-adv-x="2304" d="M2304 768h-128v-640h128v-384h-384v128h-896v-128h-384v384h128v128h-384v-128h-384v384h128v640h-128v384h384v-128h896v128h384v-384h-128v-128h384v128h384v-384zM2048 1024v-128h128v128h-128zM1408 1408v-128h128v128h-128zM128 1408v-128h128v128h-128zM256 256 v128h-128v-128h128zM1536 384h-128v-128h128v128zM384 384h896v128h128v640h-128v128h-896v-128h-128v-640h128v-128zM896 -128v128h-128v-128h128zM2176 -128v128h-128v-128h128zM2048 128v640h-128v128h-384v-384h128v-384h-384v128h-384v-128h128v-128h896v128h128z" /> +<glyph unicode="" d="M1024 288v-416h-928q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1344q40 0 68 -28t28 -68v-928h-416q-40 0 -68 -28t-28 -68zM1152 256h381q-15 -82 -65 -132l-184 -184q-50 -50 -132 -65v381z" /> +<glyph unicode="" d="M1400 256h-248v-248q29 10 41 22l185 185q12 12 22 41zM1120 384h288v896h-1280v-1280h896v288q0 40 28 68t68 28zM1536 1312v-1024q0 -40 -20 -88t-48 -76l-184 -184q-28 -28 -76 -48t-88 -20h-1024q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1344q40 0 68 -28t28 -68 z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1951 538q0 -26 -15.5 -44.5t-38.5 -23.5q-8 -2 -18 -2h-153v140h153q10 0 18 -2q23 -5 38.5 -23.5t15.5 -44.5zM1933 751q0 -25 -15 -42t-38 -21q-3 -1 -15 -1h-139v129h139q3 0 8.5 -0.5t6.5 -0.5q23 -4 38 -21.5t15 -42.5zM728 587v308h-228v-308q0 -58 -38 -94.5 t-105 -36.5q-108 0 -229 59v-112q53 -15 121 -23t109 -9l42 -1q328 0 328 217zM1442 403v113q-99 -52 -200 -59q-108 -8 -169 41t-61 142t61 142t169 41q101 -7 200 -58v112q-48 12 -100 19.5t-80 9.5l-28 2q-127 6 -218.5 -14t-140.5 -60t-71 -88t-22 -106t22 -106t71 -88 t140.5 -60t218.5 -14q101 4 208 31zM2176 518q0 54 -43 88.5t-109 39.5v3q57 8 89 41.5t32 79.5q0 55 -41 88t-107 36q-3 0 -12 0.5t-14 0.5h-455v-510h491q74 0 121.5 36.5t47.5 96.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90 t90 38h2048q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="2304" d="M858 295v693q-106 -41 -172 -135.5t-66 -211.5t66 -211.5t172 -134.5zM1362 641q0 117 -66 211.5t-172 135.5v-694q106 41 172 135.5t66 211.5zM1577 641q0 -159 -78.5 -294t-213.5 -213.5t-294 -78.5q-119 0 -227.5 46.5t-187 125t-125 187t-46.5 227.5q0 159 78.5 294 t213.5 213.5t294 78.5t294 -78.5t213.5 -213.5t78.5 -294zM1960 634q0 139 -55.5 261.5t-147.5 205.5t-213.5 131t-252.5 48h-301q-176 0 -323.5 -81t-235 -230t-87.5 -335q0 -171 87 -317.5t236 -231.5t323 -85h301q129 0 251.5 50.5t214.5 135t147.5 202.5t55.5 246z M2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1664 -96v1088q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5v-1088q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5zM1792 992v-1088q0 -66 -47 -113t-113 -47h-1088q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1088q66 0 113 -47t47 -113 zM1408 1376v-160h-128v160q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5v-1088q0 -13 9.5 -22.5t22.5 -9.5h160v-128h-160q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1088q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1728 1088l-384 -704h768zM448 1088l-384 -704h768zM1269 1280q-14 -40 -45.5 -71.5t-71.5 -45.5v-1291h608q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1344q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h608v1291q-40 14 -71.5 45.5t-45.5 71.5h-491q-14 0 -23 9t-9 23v64 q0 14 9 23t23 9h491q21 57 70 92.5t111 35.5t111 -35.5t70 -92.5h491q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-491zM1088 1264q33 0 56.5 23.5t23.5 56.5t-23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5zM2176 384q0 -73 -46.5 -131t-117.5 -91 t-144.5 -49.5t-139.5 -16.5t-139.5 16.5t-144.5 49.5t-117.5 91t-46.5 131q0 11 35 81t92 174.5t107 195.5t102 184t56 100q18 33 56 33t56 -33q4 -7 56 -100t102 -184t107 -195.5t92 -174.5t35 -81zM896 384q0 -73 -46.5 -131t-117.5 -91t-144.5 -49.5t-139.5 -16.5 t-139.5 16.5t-144.5 49.5t-117.5 91t-46.5 131q0 11 35 81t92 174.5t107 195.5t102 184t56 100q18 33 56 33t56 -33q4 -7 56 -100t102 -184t107 -195.5t92 -174.5t35 -81z" /> +<glyph unicode="" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM874 700q77 29 149 92.5t129.5 152.5t92.5 210t35 253h-1024q0 -132 35 -253t92.5 -210t129.5 -152.5t149 -92.5q19 -7 30.5 -23.5t11.5 -36.5t-11.5 -36.5t-30.5 -23.5q-77 -29 -149 -92.5 t-129.5 -152.5t-92.5 -210t-35 -253h1024q0 132 -35 253t-92.5 210t-129.5 152.5t-149 92.5q-19 7 -30.5 23.5t-11.5 36.5t11.5 36.5t30.5 23.5z" /> +<glyph unicode="" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM1280 1408h-1024q0 -66 9 -128h1006q9 61 9 128zM1280 -128q0 130 -34 249.5t-90.5 208t-126.5 152t-146 94.5h-230q-76 -31 -146 -94.5t-126.5 -152t-90.5 -208t-34 -249.5h1024z" /> +<glyph unicode="" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM1280 1408h-1024q0 -206 85 -384h854q85 178 85 384zM1223 192q-54 141 -145.5 241.5t-194.5 142.5h-230q-103 -42 -194.5 -142.5t-145.5 -241.5h910z" /> +<glyph unicode="" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM874 700q77 29 149 92.5t129.5 152.5t92.5 210t35 253h-1024q0 -132 35 -253t92.5 -210t129.5 -152.5t149 -92.5q19 -7 30.5 -23.5t11.5 -36.5t-11.5 -36.5t-30.5 -23.5q-137 -51 -244 -196 h700q-107 145 -244 196q-19 7 -30.5 23.5t-11.5 36.5t11.5 36.5t30.5 23.5z" /> +<glyph unicode="" d="M1504 -64q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v128q0 14 9 23t23 9h1472zM130 0q3 55 16 107t30 95t46 87t53.5 76t64.5 69.5t66 60t70.5 55t66.5 47.5t65 43q-43 28 -65 43t-66.5 47.5t-70.5 55t-66 60t-64.5 69.5t-53.5 76t-46 87 t-30 95t-16 107h1276q-3 -55 -16 -107t-30 -95t-46 -87t-53.5 -76t-64.5 -69.5t-66 -60t-70.5 -55t-66.5 -47.5t-65 -43q43 -28 65 -43t66.5 -47.5t70.5 -55t66 -60t64.5 -69.5t53.5 -76t46 -87t30 -95t16 -107h-1276zM1504 1536q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9 h-1472q-14 0 -23 9t-9 23v128q0 14 9 23t23 9h1472z" /> +<glyph unicode="" d="M768 1152q-53 0 -90.5 -37.5t-37.5 -90.5v-128h-32v93q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-429l-32 30v172q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-224q0 -47 35 -82l310 -296q39 -39 39 -102q0 -26 19 -45t45 -19h640q26 0 45 19t19 45v25 q0 41 10 77l108 436q10 36 10 77v246q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-32h-32v125q0 40 -25 72.5t-64 40.5q-14 2 -23 2q-46 0 -79 -33t-33 -79v-128h-32v122q0 51 -32.5 89.5t-82.5 43.5q-5 1 -13 1zM768 1280q84 0 149 -50q57 34 123 34q59 0 111 -27 t86 -76q27 7 59 7q100 0 170 -71.5t70 -171.5v-246q0 -51 -13 -108l-109 -436q-6 -24 -6 -71q0 -80 -56 -136t-136 -56h-640q-84 0 -138 58.5t-54 142.5l-308 296q-76 73 -76 175v224q0 99 70.5 169.5t169.5 70.5q11 0 16 -1q6 95 75.5 160t164.5 65q52 0 98 -21 q72 69 174 69z" /> +<glyph unicode="" horiz-adv-x="1792" d="M880 1408q-46 0 -79 -33t-33 -79v-656h-32v528q0 46 -33 79t-79 33t-79 -33t-33 -79v-528v-256l-154 205q-38 51 -102 51q-53 0 -90.5 -37.5t-37.5 -90.5q0 -43 26 -77l384 -512q38 -51 102 -51h688q34 0 61 22t34 56l76 405q5 32 5 59v498q0 46 -33 79t-79 33t-79 -33 t-33 -79v-272h-32v528q0 46 -33 79t-79 33t-79 -33t-33 -79v-528h-32v656q0 46 -33 79t-79 33zM880 1536q68 0 125.5 -35.5t88.5 -96.5q19 4 42 4q99 0 169.5 -70.5t70.5 -169.5v-17q105 6 180.5 -64t75.5 -175v-498q0 -40 -8 -83l-76 -404q-14 -79 -76.5 -131t-143.5 -52 h-688q-60 0 -114.5 27.5t-90.5 74.5l-384 512q-51 68 -51 154q0 106 75 181t181 75q78 0 128 -34v434q0 99 70.5 169.5t169.5 70.5q23 0 42 -4q31 61 88.5 96.5t125.5 35.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1073 -128h-177q-163 0 -226 141q-23 49 -23 102v5q-62 30 -98.5 88.5t-36.5 127.5q0 38 5 48h-261q-106 0 -181 75t-75 181t75 181t181 75h113l-44 17q-74 28 -119.5 93.5t-45.5 145.5q0 106 75 181t181 75q46 0 91 -17l628 -239h401q106 0 181 -75t75 -181v-668 q0 -88 -54 -157.5t-140 -90.5l-339 -85q-92 -23 -186 -23zM1024 583l-155 -71l-163 -74q-30 -14 -48 -41.5t-18 -60.5q0 -46 33 -79t79 -33q26 0 46 10l338 154q-49 10 -80.5 50t-31.5 90v55zM1344 272q0 46 -33 79t-79 33q-26 0 -46 -10l-290 -132q-28 -13 -37 -17 t-30.5 -17t-29.5 -23.5t-16 -29t-8 -40.5q0 -50 31.5 -82t81.5 -32q20 0 38 9l352 160q30 14 48 41.5t18 60.5zM1112 1024l-650 248q-24 8 -46 8q-53 0 -90.5 -37.5t-37.5 -90.5q0 -40 22.5 -73t59.5 -47l526 -200v-64h-640q-53 0 -90.5 -37.5t-37.5 -90.5t37.5 -90.5 t90.5 -37.5h535l233 106v198q0 63 46 106l111 102h-69zM1073 0q82 0 155 19l339 85q43 11 70 45.5t27 78.5v668q0 53 -37.5 90.5t-90.5 37.5h-308l-136 -126q-36 -33 -36 -82v-296q0 -46 33 -77t79 -31t79 35t33 81v208h32v-208q0 -70 -57 -114q52 -8 86.5 -48.5t34.5 -93.5 q0 -42 -23 -78t-61 -53l-310 -141h91z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1151 1536q61 0 116 -28t91 -77l572 -781q118 -159 118 -359v-355q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v177l-286 143h-546q-80 0 -136 56t-56 136v32q0 119 84.5 203.5t203.5 84.5h420l42 128h-686q-100 0 -173.5 67.5t-81.5 166.5q-65 79 -65 182v32 q0 80 56 136t136 56h959zM1920 -64v355q0 157 -93 284l-573 781q-39 52 -103 52h-959q-26 0 -45 -19t-19 -45q0 -32 1.5 -49.5t9.5 -40.5t25 -43q10 31 35.5 50t56.5 19h832v-32h-832q-26 0 -45 -19t-19 -45q0 -44 3 -58q8 -44 44 -73t81 -29h640h91q40 0 68 -28t28 -68 q0 -15 -5 -30l-64 -192q-10 -29 -35 -47.5t-56 -18.5h-443q-66 0 -113 -47t-47 -113v-32q0 -26 19 -45t45 -19h561q16 0 29 -7l317 -158q24 -13 38.5 -36t14.5 -50v-197q0 -26 19 -45t45 -19h384q26 0 45 19t19 45z" /> +<glyph unicode="" horiz-adv-x="2048" d="M816 1408q-48 0 -79.5 -34t-31.5 -82q0 -14 3 -28l150 -624h-26l-116 482q-9 38 -39.5 62t-69.5 24q-47 0 -79 -34t-32 -81q0 -11 4 -29q3 -13 39 -161t68 -282t32 -138v-227l-307 230q-34 26 -77 26q-52 0 -89.5 -36.5t-37.5 -88.5q0 -67 56 -110l507 -379 q34 -26 76 -26h694q33 0 59 20.5t34 52.5l100 401q8 30 10 88t9 86l116 478q3 12 3 26q0 46 -33 79t-80 33q-38 0 -69 -25.5t-40 -62.5l-99 -408h-26l132 547q3 14 3 28q0 47 -32 80t-80 33q-38 0 -68.5 -24t-39.5 -62l-145 -602h-127l-164 682q-9 38 -39.5 62t-68.5 24z M1461 -256h-694q-85 0 -153 51l-507 380q-50 38 -78.5 94t-28.5 118q0 105 75 179t180 74q25 0 49.5 -5.5t41.5 -11t41 -20.5t35 -23t38.5 -29.5t37.5 -28.5l-123 512q-7 35 -7 59q0 93 60 162t152 79q14 87 80.5 144.5t155.5 57.5q83 0 148 -51.5t85 -132.5l103 -428 l83 348q20 81 85 132.5t148 51.5q87 0 152.5 -54t82.5 -139q93 -10 155 -78t62 -161q0 -30 -7 -57l-116 -477q-5 -22 -5 -67q0 -51 -13 -108l-101 -401q-19 -75 -79.5 -122.5t-137.5 -47.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 1408q-53 0 -90.5 -37.5t-37.5 -90.5v-512v-384l-151 202q-41 54 -107 54q-52 0 -89 -38t-37 -90q0 -43 26 -77l384 -512q38 -51 102 -51h718q22 0 39.5 13.5t22.5 34.5l92 368q24 96 24 194v217q0 41 -28 71t-68 30t-68 -28t-28 -68h-32v61q0 48 -32 81.5t-80 33.5 q-46 0 -79 -33t-33 -79v-64h-32v90q0 55 -37 94.5t-91 39.5q-53 0 -90.5 -37.5t-37.5 -90.5v-96h-32v570q0 55 -37 94.5t-91 39.5zM640 1536q107 0 181.5 -77.5t74.5 -184.5v-220q22 2 32 2q99 0 173 -69q47 21 99 21q113 0 184 -87q27 7 56 7q94 0 159 -67.5t65 -161.5 v-217q0 -116 -28 -225l-92 -368q-16 -64 -68 -104.5t-118 -40.5h-718q-60 0 -114.5 27.5t-90.5 74.5l-384 512q-51 68 -51 154q0 105 74.5 180.5t179.5 75.5q71 0 130 -35v547q0 106 75 181t181 75zM768 128v384h-32v-384h32zM1024 128v384h-32v-384h32zM1280 128v384h-32 v-384h32z" /> +<glyph unicode="" d="M1288 889q60 0 107 -23q141 -63 141 -226v-177q0 -94 -23 -186l-85 -339q-21 -86 -90.5 -140t-157.5 -54h-668q-106 0 -181 75t-75 181v401l-239 628q-17 45 -17 91q0 106 75 181t181 75q80 0 145.5 -45.5t93.5 -119.5l17 -44v113q0 106 75 181t181 75t181 -75t75 -181 v-261q27 5 48 5q69 0 127.5 -36.5t88.5 -98.5zM1072 896q-33 0 -60.5 -18t-41.5 -48l-74 -163l-71 -155h55q50 0 90 -31.5t50 -80.5l154 338q10 20 10 46q0 46 -33 79t-79 33zM1293 761q-22 0 -40.5 -8t-29 -16t-23.5 -29.5t-17 -30.5t-17 -37l-132 -290q-10 -20 -10 -46 q0 -46 33 -79t79 -33q33 0 60.5 18t41.5 48l160 352q9 18 9 38q0 50 -32 81.5t-82 31.5zM128 1120q0 -22 8 -46l248 -650v-69l102 111q43 46 106 46h198l106 233v535q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5v-640h-64l-200 526q-14 37 -47 59.5t-73 22.5 q-53 0 -90.5 -37.5t-37.5 -90.5zM1180 -128q44 0 78.5 27t45.5 70l85 339q19 73 19 155v91l-141 -310q-17 -38 -53 -61t-78 -23q-53 0 -93.5 34.5t-48.5 86.5q-44 -57 -114 -57h-208v32h208q46 0 81 33t35 79t-31 79t-77 33h-296q-49 0 -82 -36l-126 -136v-308 q0 -53 37.5 -90.5t90.5 -37.5h668z" /> +<glyph unicode="" horiz-adv-x="1973" d="M857 992v-117q0 -13 -9.5 -22t-22.5 -9h-298v-812q0 -13 -9 -22.5t-22 -9.5h-135q-13 0 -22.5 9t-9.5 23v812h-297q-13 0 -22.5 9t-9.5 22v117q0 14 9 23t23 9h793q13 0 22.5 -9.5t9.5 -22.5zM1895 995l77 -961q1 -13 -8 -24q-10 -10 -23 -10h-134q-12 0 -21 8.5 t-10 20.5l-46 588l-189 -425q-8 -19 -29 -19h-120q-20 0 -29 19l-188 427l-45 -590q-1 -12 -10 -20.5t-21 -8.5h-135q-13 0 -23 10q-9 10 -9 24l78 961q1 12 10 20.5t21 8.5h142q20 0 29 -19l220 -520q10 -24 20 -51q3 7 9.5 24.5t10.5 26.5l221 520q9 19 29 19h141 q13 0 22 -8.5t10 -20.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1042 833q0 88 -60 121q-33 18 -117 18h-123v-281h162q66 0 102 37t36 105zM1094 548l205 -373q8 -17 -1 -31q-8 -16 -27 -16h-152q-20 0 -28 17l-194 365h-155v-350q0 -14 -9 -23t-23 -9h-134q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h294q128 0 190 -24q85 -31 134 -109 t49 -180q0 -92 -42.5 -165.5t-115.5 -109.5q6 -10 9 -16zM896 1376q-150 0 -286 -58.5t-234.5 -157t-157 -234.5t-58.5 -286t58.5 -286t157 -234.5t234.5 -157t286 -58.5t286 58.5t234.5 157t157 234.5t58.5 286t-58.5 286t-157 234.5t-234.5 157t-286 58.5zM1792 640 q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" /> +<glyph unicode="" horiz-adv-x="1792" d="M605 303q153 0 257 104q14 18 3 36l-45 82q-6 13 -24 17q-16 2 -27 -11l-4 -3q-4 -4 -11.5 -10t-17.5 -13t-23.5 -14.5t-28.5 -13.5t-33.5 -9.5t-37.5 -3.5q-76 0 -125 50t-49 127q0 76 48 125.5t122 49.5q37 0 71.5 -14t50.5 -28l16 -14q11 -11 26 -10q16 2 24 14l53 78 q13 20 -2 39q-3 4 -11 12t-30 23.5t-48.5 28t-67.5 22.5t-86 10q-148 0 -246 -96.5t-98 -240.5q0 -146 97 -241.5t247 -95.5zM1235 303q153 0 257 104q14 18 4 36l-45 82q-8 14 -25 17q-16 2 -27 -11l-4 -3q-4 -4 -11.5 -10t-17.5 -13t-23.5 -14.5t-28.5 -13.5t-33.5 -9.5 t-37.5 -3.5q-76 0 -125 50t-49 127q0 76 48 125.5t122 49.5q37 0 71.5 -14t50.5 -28l16 -14q11 -11 26 -10q16 2 24 14l53 78q13 20 -2 39q-3 4 -11 12t-30 23.5t-48.5 28t-67.5 22.5t-86 10q-147 0 -245.5 -96.5t-98.5 -240.5q0 -146 97 -241.5t247 -95.5zM896 1376 q-150 0 -286 -58.5t-234.5 -157t-157 -234.5t-58.5 -286t58.5 -286t157 -234.5t234.5 -157t286 -58.5t286 58.5t234.5 157t157 234.5t58.5 286t-58.5 286t-157 234.5t-234.5 157t-286 58.5zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191 t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71z" /> +<glyph unicode="" horiz-adv-x="2048" d="M736 736l384 -384l-384 -384l-672 672l672 672l168 -168l-96 -96l-72 72l-480 -480l480 -480l193 193l-289 287zM1312 1312l672 -672l-672 -672l-168 168l96 96l72 -72l480 480l-480 480l-193 -193l289 -287l-96 -96l-384 384z" /> +<glyph unicode="" horiz-adv-x="1792" d="M717 182l271 271l-279 279l-88 -88l192 -191l-96 -96l-279 279l279 279l40 -40l87 87l-127 128l-454 -454zM1075 190l454 454l-454 454l-271 -271l279 -279l88 88l-192 191l96 96l279 -279l-279 -279l-40 40l-87 -88zM1792 640q0 -182 -71 -348t-191 -286t-286 -191 t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" /> +<glyph unicode="" horiz-adv-x="2304" d="M651 539q0 -39 -27.5 -66.5t-65.5 -27.5q-39 0 -66.5 27.5t-27.5 66.5q0 38 27.5 65.5t66.5 27.5q38 0 65.5 -27.5t27.5 -65.5zM1805 540q0 -39 -27.5 -66.5t-66.5 -27.5t-66.5 27.5t-27.5 66.5t27.5 66t66.5 27t66.5 -27t27.5 -66zM765 539q0 79 -56.5 136t-136.5 57 t-136.5 -56.5t-56.5 -136.5t56.5 -136.5t136.5 -56.5t136.5 56.5t56.5 136.5zM1918 540q0 80 -56.5 136.5t-136.5 56.5q-79 0 -136 -56.5t-57 -136.5t56.5 -136.5t136.5 -56.5t136.5 56.5t56.5 136.5zM850 539q0 -116 -81.5 -197.5t-196.5 -81.5q-116 0 -197.5 82t-81.5 197 t82 196.5t197 81.5t196.5 -81.5t81.5 -196.5zM2004 540q0 -115 -81.5 -196.5t-197.5 -81.5q-115 0 -196.5 81.5t-81.5 196.5t81.5 196.5t196.5 81.5q116 0 197.5 -81.5t81.5 -196.5zM1040 537q0 191 -135.5 326.5t-326.5 135.5q-125 0 -231 -62t-168 -168.5t-62 -231.5 t62 -231.5t168 -168.5t231 -62q191 0 326.5 135.5t135.5 326.5zM1708 1110q-254 111 -556 111q-319 0 -573 -110q117 0 223 -45.5t182.5 -122.5t122 -183t45.5 -223q0 115 43.5 219.5t118 180.5t177.5 123t217 50zM2187 537q0 191 -135 326.5t-326 135.5t-326.5 -135.5 t-135.5 -326.5t135.5 -326.5t326.5 -135.5t326 135.5t135 326.5zM1921 1103h383q-44 -51 -75 -114.5t-40 -114.5q110 -151 110 -337q0 -156 -77 -288t-209 -208.5t-287 -76.5q-133 0 -249 56t-196 155q-47 -56 -129 -179q-11 22 -53.5 82.5t-74.5 97.5 q-80 -99 -196.5 -155.5t-249.5 -56.5q-155 0 -287 76.5t-209 208.5t-77 288q0 186 110 337q-9 51 -40 114.5t-75 114.5h365q149 100 355 156.5t432 56.5q224 0 421 -56t348 -157z" /> +<glyph unicode="" horiz-adv-x="1280" d="M640 629q-188 0 -321 133t-133 320q0 188 133 321t321 133t321 -133t133 -321q0 -187 -133 -320t-321 -133zM640 1306q-92 0 -157.5 -65.5t-65.5 -158.5q0 -92 65.5 -157.5t157.5 -65.5t157.5 65.5t65.5 157.5q0 93 -65.5 158.5t-157.5 65.5zM1163 574q13 -27 15 -49.5 t-4.5 -40.5t-26.5 -38.5t-42.5 -37t-61.5 -41.5q-115 -73 -315 -94l73 -72l267 -267q30 -31 30 -74t-30 -73l-12 -13q-31 -30 -74 -30t-74 30q-67 68 -267 268l-267 -268q-31 -30 -74 -30t-73 30l-12 13q-31 30 -31 73t31 74l267 267l72 72q-203 21 -317 94 q-39 25 -61.5 41.5t-42.5 37t-26.5 38.5t-4.5 40.5t15 49.5q10 20 28 35t42 22t56 -2t65 -35q5 -4 15 -11t43 -24.5t69 -30.5t92 -24t113 -11q91 0 174 25.5t120 50.5l38 25q33 26 65 35t56 2t42 -22t28 -35z" /> +<glyph unicode="" d="M927 956q0 -66 -46.5 -112.5t-112.5 -46.5t-112.5 46.5t-46.5 112.5t46.5 112.5t112.5 46.5t112.5 -46.5t46.5 -112.5zM1141 593q-10 20 -28 32t-47.5 9.5t-60.5 -27.5q-10 -8 -29 -20t-81 -32t-127 -20t-124 18t-86 36l-27 18q-31 25 -60.5 27.5t-47.5 -9.5t-28 -32 q-22 -45 -2 -74.5t87 -73.5q83 -53 226 -67l-51 -52q-142 -142 -191 -190q-22 -22 -22 -52.5t22 -52.5l9 -9q22 -22 52.5 -22t52.5 22l191 191q114 -115 191 -191q22 -22 52.5 -22t52.5 22l9 9q22 22 22 52.5t-22 52.5l-191 190l-52 52q141 14 225 67q67 44 87 73.5t-2 74.5 zM1092 956q0 134 -95 229t-229 95t-229 -95t-95 -229t95 -229t229 -95t229 95t95 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" /> +<glyph unicode="" horiz-adv-x="1720" d="M1565 1408q65 0 110 -45.5t45 -110.5v-519q0 -176 -68 -336t-182.5 -275t-274 -182.5t-334.5 -67.5q-176 0 -335.5 67.5t-274.5 182.5t-183 275t-68 336v519q0 64 46 110t110 46h1409zM861 344q47 0 82 33l404 388q37 35 37 85q0 49 -34.5 83.5t-83.5 34.5q-47 0 -82 -33 l-323 -310l-323 310q-35 33 -81 33q-49 0 -83.5 -34.5t-34.5 -83.5q0 -51 36 -85l405 -388q33 -33 81 -33z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1494 -103l-295 695q-25 -49 -158.5 -305.5t-198.5 -389.5q-1 -1 -27.5 -0.5t-26.5 1.5q-82 193 -255.5 587t-259.5 596q-21 50 -66.5 107.5t-103.5 100.5t-102 43q0 5 -0.5 24t-0.5 27h583v-50q-39 -2 -79.5 -16t-66.5 -43t-10 -64q26 -59 216.5 -499t235.5 -540 q31 61 140 266.5t131 247.5q-19 39 -126 281t-136 295q-38 69 -201 71v50l513 -1v-47q-60 -2 -93.5 -25t-12.5 -69q33 -70 87 -189.5t86 -187.5q110 214 173 363q24 55 -10 79.5t-129 26.5q1 7 1 25v24q64 0 170.5 0.5t180 1t92.5 0.5v-49q-62 -2 -119 -33t-90 -81 l-213 -442q13 -33 127.5 -290t121.5 -274l441 1017q-14 38 -49.5 62.5t-65 31.5t-55.5 8v50l460 -4l1 -2l-1 -44q-139 -4 -201 -145q-526 -1216 -559 -1291h-49z" /> +<glyph unicode="" horiz-adv-x="1792" d="M949 643q0 -26 -16.5 -45t-41.5 -19q-26 0 -45 16.5t-19 41.5q0 26 17 45t42 19t44 -16.5t19 -41.5zM964 585l350 581q-9 -8 -67.5 -62.5t-125.5 -116.5t-136.5 -127t-117 -110.5t-50.5 -51.5l-349 -580q7 7 67 62t126 116.5t136 127t117 111t50 50.5zM1611 640 q0 -201 -104 -371q-3 2 -17 11t-26.5 16.5t-16.5 7.5q-13 0 -13 -13q0 -10 59 -44q-74 -112 -184.5 -190.5t-241.5 -110.5l-16 67q-1 10 -15 10q-5 0 -8 -5.5t-2 -9.5l16 -68q-72 -15 -146 -15q-199 0 -372 105q1 2 13 20.5t21.5 33.5t9.5 19q0 13 -13 13q-6 0 -17 -14.5 t-22.5 -34.5t-13.5 -23q-113 75 -192 187.5t-110 244.5l69 15q10 3 10 15q0 5 -5.5 8t-10.5 2l-68 -15q-14 72 -14 139q0 206 109 379q2 -1 18.5 -12t30 -19t17.5 -8q13 0 13 12q0 6 -12.5 15.5t-32.5 21.5l-20 12q77 112 189 189t244 107l15 -67q2 -10 15 -10q5 0 8 5.5 t2 10.5l-15 66q71 13 134 13q204 0 379 -109q-39 -56 -39 -65q0 -13 12 -13q11 0 48 64q111 -75 187.5 -186t107.5 -241l-56 -12q-10 -2 -10 -16q0 -5 5.5 -8t9.5 -2l57 13q14 -72 14 -140zM1696 640q0 163 -63.5 311t-170.5 255t-255 170.5t-311 63.5t-311 -63.5 t-255 -170.5t-170.5 -255t-63.5 -311t63.5 -311t170.5 -255t255 -170.5t311 -63.5t311 63.5t255 170.5t170.5 255t63.5 311zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191 t191 -286t71 -348z" /> +<glyph unicode="" horiz-adv-x="1792" d="M893 1536q240 2 451 -120q232 -134 352 -372l-742 39q-160 9 -294 -74.5t-185 -229.5l-276 424q128 159 311 245.5t383 87.5zM146 1131l337 -663q72 -143 211 -217t293 -45l-230 -451q-212 33 -385 157.5t-272.5 316t-99.5 411.5q0 267 146 491zM1732 962 q58 -150 59.5 -310.5t-48.5 -306t-153 -272t-246 -209.5q-230 -133 -498 -119l405 623q88 131 82.5 290.5t-106.5 277.5zM896 942q125 0 213.5 -88.5t88.5 -213.5t-88.5 -213.5t-213.5 -88.5t-213.5 88.5t-88.5 213.5t88.5 213.5t213.5 88.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M903 -256q-283 0 -504.5 150.5t-329.5 398.5q-58 131 -67 301t26 332.5t111 312t179 242.5l-11 -281q11 14 68 15.5t70 -15.5q42 81 160.5 138t234.5 59q-54 -45 -119.5 -148.5t-58.5 -163.5q25 -8 62.5 -13.5t63 -7.5t68 -4t50.5 -3q15 -5 9.5 -45.5t-30.5 -75.5 q-5 -7 -16.5 -18.5t-56.5 -35.5t-101 -34l15 -189l-139 67q-18 -43 -7.5 -81.5t36 -66.5t65.5 -41.5t81 -6.5q51 9 98 34.5t83.5 45t73.5 17.5q61 -4 89.5 -33t19.5 -65q-1 -2 -2.5 -5.5t-8.5 -12.5t-18 -15.5t-31.5 -10.5t-46.5 -1q-60 -95 -144.5 -135.5t-209.5 -29.5 q74 -61 162.5 -82.5t168.5 -6t154.5 52t128 87.5t80.5 104q43 91 39 192.5t-37.5 188.5t-78.5 125q87 -38 137 -79.5t77 -112.5q15 170 -57.5 343t-209.5 284q265 -77 412 -279.5t151 -517.5q2 -127 -40.5 -255t-123.5 -238t-189 -196t-247.5 -135.5t-288.5 -49.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1493 1308q-165 110 -359 110q-155 0 -293 -73t-240 -200q-75 -93 -119.5 -218t-48.5 -266v-42q4 -141 48.5 -266t119.5 -218q102 -127 240 -200t293 -73q194 0 359 110q-121 -108 -274.5 -168t-322.5 -60q-29 0 -43 1q-175 8 -333 82t-272 193t-181 281t-67 339 q0 182 71 348t191 286t286 191t348 71h3q168 -1 320.5 -60.5t273.5 -167.5zM1792 640q0 -192 -77 -362.5t-213 -296.5q-104 -63 -222 -63q-137 0 -255 84q154 56 253.5 233t99.5 405q0 227 -99 404t-253 234q119 83 254 83q119 0 226 -65q135 -125 210.5 -295t75.5 -361z " /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 599q0 -56 -7 -104h-1151q0 -146 109.5 -244.5t257.5 -98.5q99 0 185.5 46.5t136.5 130.5h423q-56 -159 -170.5 -281t-267.5 -188.5t-321 -66.5q-187 0 -356 83q-228 -116 -394 -116q-237 0 -237 263q0 115 45 275q17 60 109 229q199 360 475 606 q-184 -79 -427 -354q63 274 283.5 449.5t501.5 175.5q30 0 45 -1q255 117 433 117q64 0 116 -13t94.5 -40.5t66.5 -76.5t24 -115q0 -116 -75 -286q101 -182 101 -390zM1722 1239q0 83 -53 132t-137 49q-108 0 -254 -70q121 -47 222.5 -131.5t170.5 -195.5q51 135 51 216z M128 2q0 -86 48.5 -132.5t134.5 -46.5q115 0 266 83q-122 72 -213.5 183t-137.5 245q-98 -205 -98 -332zM632 715h728q-5 142 -113 237t-251 95q-144 0 -251.5 -95t-112.5 -237z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1792 288v960q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1248v-960q0 -66 -47 -113t-113 -47h-736v-128h352q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23 v64q0 14 9 23t23 9h352v128h-736q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" /> +<glyph unicode="" horiz-adv-x="1792" d="M138 1408h197q-70 -64 -126 -149q-36 -56 -59 -115t-30 -125.5t-8.5 -120t10.5 -132t21 -126t28 -136.5q4 -19 6 -28q51 -238 81 -329q57 -171 152 -275h-272q-48 0 -82 34t-34 82v1304q0 48 34 82t82 34zM1346 1408h308q48 0 82 -34t34 -82v-1304q0 -48 -34 -82t-82 -34 h-178q212 210 196 565l-469 -101q-2 -45 -12 -82t-31 -72t-59.5 -59.5t-93.5 -36.5q-123 -26 -199 40q-32 27 -53 61t-51.5 129t-64.5 258q-35 163 -45.5 263t-5.5 139t23 77q20 41 62.5 73t102.5 45q45 12 83.5 6.5t67 -17t54 -35t43 -48t34.5 -56.5l468 100 q-68 175 -180 287z" /> +<glyph unicode="" d="M1401 -11l-6 -6q-113 -114 -259 -175q-154 -64 -317 -64q-165 0 -317 64q-148 63 -259 175q-113 112 -175 258q-42 103 -54 189q-4 28 48 36q51 8 56 -20q1 -1 1 -4q18 -90 46 -159q50 -124 152 -226q98 -98 226 -152q132 -56 276 -56q143 0 276 56q128 55 225 152l6 6 q10 10 25 6q12 -3 33 -22q36 -37 17 -58zM929 604l-66 -66l63 -63q21 -21 -7 -49q-17 -17 -32 -17q-10 0 -19 10l-62 61l-66 -66q-5 -5 -15 -5q-15 0 -31 16l-2 2q-18 15 -18 29q0 7 8 17l66 65l-66 66q-16 16 14 45q18 18 31 18q6 0 13 -5l65 -66l65 65q18 17 48 -13 q27 -27 11 -44zM1400 547q0 -118 -46 -228q-45 -105 -126 -186q-80 -80 -187 -126t-228 -46t-228 46t-187 126q-82 82 -125 186q-15 32 -15 40h-1q-9 27 43 44q50 16 60 -12q37 -99 97 -167h1v339v2q3 136 102 232q105 103 253 103q147 0 251 -103t104 -249 q0 -147 -104.5 -251t-250.5 -104q-58 0 -112 16q-28 11 -13 61q16 51 44 43l14 -3q14 -3 32.5 -6t30.5 -3q104 0 176 71.5t72 174.5q0 101 -72 171q-71 71 -175 71q-107 0 -178 -80q-64 -72 -64 -160v-413q110 -67 242 -67q96 0 185 36.5t156 103.5t103.5 155t36.5 183 q0 198 -141 339q-140 140 -339 140q-200 0 -340 -140q-53 -53 -77 -87l-2 -2q-8 -11 -13 -15.5t-21.5 -9.5t-38.5 3q-21 5 -36.5 16.5t-15.5 26.5v680q0 15 10.5 26.5t27.5 11.5h877q30 0 30 -55t-30 -55h-811v-483h1q40 42 102 84t108 61q109 46 231 46q121 0 228 -46 t187 -126q81 -81 126 -186q46 -112 46 -229zM1369 1128q9 -8 9 -18t-5.5 -18t-16.5 -21q-26 -26 -39 -26q-9 0 -16 7q-106 91 -207 133q-128 56 -276 56q-133 0 -262 -49q-27 -10 -45 37q-9 25 -8 38q3 16 16 20q130 57 299 57q164 0 316 -64q137 -58 235 -152z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1551 60q15 6 26 3t11 -17.5t-15 -33.5q-13 -16 -44 -43.5t-95.5 -68t-141 -74t-188 -58t-229.5 -24.5q-119 0 -238 31t-209 76.5t-172.5 104t-132.5 105t-84 87.5q-8 9 -10 16.5t1 12t8 7t11.5 2t11.5 -4.5q192 -117 300 -166q389 -176 799 -90q190 40 391 135z M1758 175q11 -16 2.5 -69.5t-28.5 -102.5q-34 -83 -85 -124q-17 -14 -26 -9t0 24q21 45 44.5 121.5t6.5 98.5q-5 7 -15.5 11.5t-27 6t-29.5 2.5t-35 0t-31.5 -2t-31 -3t-22.5 -2q-6 -1 -13 -1.5t-11 -1t-8.5 -1t-7 -0.5h-5.5h-4.5t-3 0.5t-2 1.5l-1.5 3q-6 16 47 40t103 30 q46 7 108 1t76 -24zM1364 618q0 -31 13.5 -64t32 -58t37.5 -46t33 -32l13 -11l-227 -224q-40 37 -79 75.5t-58 58.5l-19 20q-11 11 -25 33q-38 -59 -97.5 -102.5t-127.5 -63.5t-140 -23t-137.5 21t-117.5 65.5t-83 113t-31 162.5q0 84 28 154t72 116.5t106.5 83t122.5 57 t130 34.5t119.5 18.5t99.5 6.5v127q0 65 -21 97q-34 53 -121 53q-6 0 -16.5 -1t-40.5 -12t-56 -29.5t-56 -59.5t-48 -96l-294 27q0 60 22 119t67 113t108 95t151.5 65.5t190.5 24.5q100 0 181 -25t129.5 -61.5t81 -83t45 -86t12.5 -73.5v-589zM692 597q0 -86 70 -133 q66 -44 139 -22q84 25 114 123q14 45 14 101v162q-59 -2 -111 -12t-106.5 -33.5t-87 -71t-32.5 -114.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1536 1280q52 0 90 -38t38 -90v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128zM1152 1376v-288q0 -14 9 -23t23 -9 h64q14 0 23 9t9 23v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 1376v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM1536 -128v1024h-1408v-1024h1408zM896 448h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224 v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1152 416v-64q0 -14 -9 -23t-23 -9h-576q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h576q14 0 23 -9t9 -23zM128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23 t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47 t47 -113v-96h128q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1111 151l-46 -46q-9 -9 -22 -9t-23 9l-188 189l-188 -189q-10 -9 -23 -9t-22 9l-46 46q-9 9 -9 22t9 23l189 188l-189 188q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l188 -188l188 188q10 9 23 9t22 -9l46 -46q9 -9 9 -22t-9 -23l-188 -188l188 -188q9 -10 9 -23t-9 -22z M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1303 572l-512 -512q-10 -9 -23 -9t-23 9l-288 288q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l220 -220l444 444q10 9 23 9t22 -9l46 -46q9 -9 9 -22t-9 -23zM128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23 t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47 t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" /> +<glyph unicode="" horiz-adv-x="1792" d="M448 1536q26 0 45 -19t19 -45v-891l536 429q17 14 40 14q26 0 45 -19t19 -45v-379l536 429q17 14 40 14q26 0 45 -19t19 -45v-1152q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h384z" /> +<glyph unicode="" horiz-adv-x="1024" d="M512 448q66 0 128 15v-655q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v655q61 -15 128 -15zM512 1536q212 0 362 -150t150 -362t-150 -362t-362 -150t-362 150t-150 362t150 362t362 150zM512 1312q14 0 23 9t9 23t-9 23t-23 9q-146 0 -249 -103t-103 -249 q0 -14 9 -23t23 -9t23 9t9 23q0 119 84.5 203.5t203.5 84.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1745 1239q10 -10 10 -23t-10 -23l-141 -141q-28 -28 -68 -28h-1344q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h576v64q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-64h512q40 0 68 -28zM768 320h256v-512q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v512zM1600 768 q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-1344q-40 0 -68 28l-141 141q-10 10 -10 23t10 23l141 141q28 28 68 28h512v192h256v-192h576z" /> +<glyph unicode="" horiz-adv-x="2048" d="M2020 1525q28 -20 28 -53v-1408q0 -20 -11 -36t-29 -23l-640 -256q-24 -11 -48 0l-616 246l-616 -246q-10 -5 -24 -5q-19 0 -36 11q-28 20 -28 53v1408q0 20 11 36t29 23l640 256q24 11 48 0l616 -246l616 246q32 13 60 -6zM736 1390v-1270l576 -230v1270zM128 1173 v-1270l544 217v1270zM1920 107v1270l-544 -217v-1270z" /> +<glyph unicode="" horiz-adv-x="1792" d="M512 1536q13 0 22.5 -9.5t9.5 -22.5v-1472q0 -20 -17 -28l-480 -256q-7 -4 -15 -4q-13 0 -22.5 9.5t-9.5 22.5v1472q0 20 17 28l480 256q7 4 15 4zM1760 1536q13 0 22.5 -9.5t9.5 -22.5v-1472q0 -20 -17 -28l-480 -256q-7 -4 -15 -4q-13 0 -22.5 9.5t-9.5 22.5v1472 q0 20 17 28l480 256q7 4 15 4zM640 1536q8 0 14 -3l512 -256q18 -10 18 -29v-1472q0 -13 -9.5 -22.5t-22.5 -9.5q-8 0 -14 3l-512 256q-18 10 -18 29v1472q0 13 9.5 22.5t22.5 9.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 640q0 53 -37.5 90.5t-90.5 37.5 t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-110 0 -211 18q-173 -173 -435 -229q-52 -10 -86 -13q-12 -1 -22 6t-13 18q-4 15 20 37q5 5 23.5 21.5t25.5 23.5t23.5 25.5t24 31.5t20.5 37 t20 48t14.5 57.5t12.5 72.5q-146 90 -229.5 216.5t-83.5 269.5q0 174 120 321.5t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1024 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 -53 -37.5 -90.5t-90.5 -37.5 t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5 t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51 t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 130 71 248.5t191 204.5t286 136.5t348 50.5t348 -50.5t286 -136.5t191 -204.5t71 -248.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M512 345l512 295v-591l-512 -296v592zM0 640v-591l512 296zM512 1527v-591l-512 -296v591zM512 936l512 295v-591z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1709 1018q-10 -236 -332 -651q-333 -431 -562 -431q-142 0 -240 263q-44 160 -132 482q-72 262 -157 262q-18 0 -127 -76l-77 98q24 21 108 96.5t130 115.5q156 138 241 146q95 9 153 -55.5t81 -203.5q44 -287 66 -373q55 -249 120 -249q51 0 154 161q101 161 109 246 q13 139 -109 139q-57 0 -121 -26q120 393 459 382q251 -8 236 -326z" /> +<glyph unicode="" d="M0 1408h1536v-1536h-1536v1536zM1085 293l-221 631l221 297h-634l221 -297l-221 -631l317 -304z" /> +<glyph unicode="" d="M0 1408h1536v-1536h-1536v1536zM908 1088l-12 -33l75 -83l-31 -114l25 -25l107 57l107 -57l25 25l-31 114l75 83l-12 33h-95l-53 96h-32l-53 -96h-95zM641 925q32 0 44.5 -16t11.5 -63l174 21q0 55 -17.5 92.5t-50.5 56t-69 25.5t-85 7q-133 0 -199 -57.5t-66 -182.5v-72 h-96v-128h76q20 0 20 -8v-382q0 -14 -5 -20t-18 -7l-73 -7v-88h448v86l-149 14q-6 1 -8.5 1.5t-3.5 2.5t-0.5 4t1 7t0.5 10v387h191l38 128h-231q-6 0 -2 6t4 9v80q0 27 1.5 40.5t7.5 28t19.5 20t36.5 5.5zM1248 96v86l-54 9q-7 1 -9.5 2.5t-2.5 3t1 7.5t1 12v520h-275 l-23 -101l83 -22q23 -7 23 -27v-370q0 -14 -6 -18.5t-20 -6.5l-70 -9v-86h352z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1792 690q0 -58 -29.5 -105.5t-79.5 -72.5q12 -46 12 -96q0 -155 -106.5 -287t-290.5 -208.5t-400 -76.5t-399.5 76.5t-290 208.5t-106.5 287q0 47 11 94q-51 25 -82 73.5t-31 106.5q0 82 58 140.5t141 58.5q85 0 145 -63q218 152 515 162l116 521q3 13 15 21t26 5 l369 -81q18 37 54 59.5t79 22.5q62 0 106 -43.5t44 -105.5t-44 -106t-106 -44t-105.5 43.5t-43.5 105.5l-334 74l-104 -472q300 -9 519 -160q58 61 143 61q83 0 141 -58.5t58 -140.5zM418 491q0 -62 43.5 -106t105.5 -44t106 44t44 106t-44 105.5t-106 43.5q-61 0 -105 -44 t-44 -105zM1228 136q11 11 11 26t-11 26q-10 10 -25 10t-26 -10q-41 -42 -121 -62t-160 -20t-160 20t-121 62q-11 10 -26 10t-25 -10q-11 -10 -11 -25.5t11 -26.5q43 -43 118.5 -68t122.5 -29.5t91 -4.5t91 4.5t122.5 29.5t118.5 68zM1225 341q62 0 105.5 44t43.5 106 q0 61 -44 105t-105 44q-62 0 -106 -43.5t-44 -105.5t44 -106t106 -44z" /> +<glyph unicode="" horiz-adv-x="1792" d="M69 741h1q16 126 58.5 241.5t115 217t167.5 176t223.5 117.5t276.5 43q231 0 414 -105.5t294 -303.5q104 -187 104 -442v-188h-1125q1 -111 53.5 -192.5t136.5 -122.5t189.5 -57t213 -3t208 46.5t173.5 84.5v-377q-92 -55 -229.5 -92t-312.5 -38t-316 53 q-189 73 -311.5 249t-124.5 372q-3 242 111 412t325 268q-48 -60 -78 -125.5t-46 -159.5h635q8 77 -8 140t-47 101.5t-70.5 66.5t-80.5 41t-75 20.5t-56 8.5l-22 1q-135 -5 -259.5 -44.5t-223.5 -104.5t-176 -140.5t-138 -163.5z" /> +<glyph unicode="" horiz-adv-x="2304" d="M0 32v608h2304v-608q0 -66 -47 -113t-113 -47h-1984q-66 0 -113 47t-47 113zM640 256v-128h384v128h-384zM256 256v-128h256v128h-256zM2144 1408q66 0 113 -47t47 -113v-224h-2304v224q0 66 47 113t113 47h1984z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1549 857q55 0 85.5 -28.5t30.5 -83.5t-34 -82t-91 -27h-136v-177h-25v398h170zM1710 267l-4 -11l-5 -10q-113 -230 -330.5 -366t-474.5 -136q-182 0 -348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71q244 0 454.5 -124t329.5 -338l2 -4l8 -16 q-30 -15 -136.5 -68.5t-163.5 -84.5q-6 -3 -479 -268q384 -183 799 -366zM896 -234q250 0 462.5 132.5t322.5 357.5l-287 129q-72 -140 -206 -222t-292 -82q-151 0 -280 75t-204 204t-75 280t75 280t204 204t280 75t280 -73.5t204 -204.5l280 143q-116 208 -321 329 t-443 121q-119 0 -232.5 -31.5t-209 -87.5t-176.5 -137t-137 -176.5t-87.5 -209t-31.5 -232.5t31.5 -232.5t87.5 -209t137 -176.5t176.5 -137t209 -87.5t232.5 -31.5z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1427 827l-614 386l92 151h855zM405 562l-184 116v858l1183 -743zM1424 697l147 -95v-858l-532 335zM1387 718l-500 -802h-855l356 571z" /> +<glyph unicode="" horiz-adv-x="1792" d="M640 528v224q0 16 -16 16h-96q-16 0 -16 -16v-224q0 -16 16 -16h96q16 0 16 16zM1152 528v224q0 16 -16 16h-96q-16 0 -16 -16v-224q0 -16 16 -16h96q16 0 16 16zM1664 496v-752h-640v320q0 80 -56 136t-136 56t-136 -56t-56 -136v-320h-640v752q0 16 16 16h96 q16 0 16 -16v-112h128v624q0 16 16 16h96q16 0 16 -16v-112h128v112q0 16 16 16h96q16 0 16 -16v-112h128v112q0 16 16 16h16v393q-32 19 -32 55q0 26 19 45t45 19t45 -19t19 -45q0 -36 -32 -55v-9h272q16 0 16 -16v-224q0 -16 -16 -16h-272v-128h16q16 0 16 -16v-112h128 v112q0 16 16 16h96q16 0 16 -16v-112h128v112q0 16 16 16h96q16 0 16 -16v-624h128v112q0 16 16 16h96q16 0 16 -16z" /> +<glyph unicode="" horiz-adv-x="2304" d="M2288 731q16 -8 16 -27t-16 -27l-320 -192q-8 -5 -16 -5q-9 0 -16 4q-16 10 -16 28v128h-858q37 -58 83 -165q16 -37 24.5 -55t24 -49t27 -47t27 -34t31.5 -26t33 -8h96v96q0 14 9 23t23 9h320q14 0 23 -9t9 -23v-320q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v96h-96 q-32 0 -61 10t-51 23.5t-45 40.5t-37 46t-33.5 57t-28.5 57.5t-28 60.5q-23 53 -37 81.5t-36 65t-44.5 53.5t-46.5 17h-360q-22 -84 -91 -138t-157 -54q-106 0 -181 75t-75 181t75 181t181 75q88 0 157 -54t91 -138h104q24 0 46.5 17t44.5 53.5t36 65t37 81.5q19 41 28 60.5 t28.5 57.5t33.5 57t37 46t45 40.5t51 23.5t61 10h107q21 57 70 92.5t111 35.5q80 0 136 -56t56 -136t-56 -136t-136 -56q-62 0 -111 35.5t-70 92.5h-107q-17 0 -33 -8t-31.5 -26t-27 -34t-27 -47t-24 -49t-24.5 -55q-46 -107 -83 -165h1114v128q0 18 16 28t32 -1z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1150 774q0 -56 -39.5 -95t-95.5 -39h-253v269h253q56 0 95.5 -39.5t39.5 -95.5zM1329 774q0 130 -91.5 222t-222.5 92h-433v-896h180v269h253q130 0 222 91.5t92 221.5zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348 t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" /> +<glyph unicode="" horiz-adv-x="2304" d="M1645 438q0 59 -34 106.5t-87 68.5q-7 -45 -23 -92q-7 -24 -27.5 -38t-44.5 -14q-12 0 -24 3q-31 10 -45 38.5t-4 58.5q23 71 23 143q0 123 -61 227.5t-166 165.5t-228 61q-134 0 -247 -73t-167 -194q108 -28 188 -106q22 -23 22 -55t-22 -54t-54 -22t-55 22 q-75 75 -180 75q-106 0 -181 -74.5t-75 -180.5t75 -180.5t181 -74.5h1046q79 0 134.5 55.5t55.5 133.5zM1798 438q0 -142 -100.5 -242t-242.5 -100h-1046q-169 0 -289 119.5t-120 288.5q0 153 100 267t249 136q62 184 221 298t354 114q235 0 408.5 -158.5t196.5 -389.5 q116 -25 192.5 -118.5t76.5 -214.5zM2048 438q0 -175 -97 -319q-23 -33 -64 -33q-24 0 -43 13q-26 17 -32 48.5t12 57.5q71 104 71 233t-71 233q-18 26 -12 57t32 49t57.5 11.5t49.5 -32.5q97 -142 97 -318zM2304 438q0 -244 -134 -443q-23 -34 -64 -34q-23 0 -42 13 q-26 18 -32.5 49t11.5 57q108 164 108 358q0 195 -108 357q-18 26 -11.5 57.5t32.5 48.5q26 18 57 12t49 -33q134 -198 134 -442z" /> +<glyph unicode="" d="M1500 -13q0 -89 -63 -152.5t-153 -63.5t-153.5 63.5t-63.5 152.5q0 90 63.5 153.5t153.5 63.5t153 -63.5t63 -153.5zM1267 268q-115 -15 -192.5 -102.5t-77.5 -205.5q0 -74 33 -138q-146 -78 -379 -78q-109 0 -201 21t-153.5 54.5t-110.5 76.5t-76 85t-44.5 83 t-23.5 66.5t-6 39.5q0 19 4.5 42.5t18.5 56t36.5 58t64 43.5t94.5 18t94 -17.5t63 -41t35.5 -53t17.5 -49t4 -33.5q0 -34 -23 -81q28 -27 82 -42t93 -17l40 -1q115 0 190 51t75 133q0 26 -9 48.5t-31.5 44.5t-49.5 41t-74 44t-93.5 47.5t-119.5 56.5q-28 13 -43 20 q-116 55 -187 100t-122.5 102t-72 125.5t-20.5 162.5q0 78 20.5 150t66 137.5t112.5 114t166.5 77t221.5 28.5q120 0 220 -26t164.5 -67t109.5 -94t64 -105.5t19 -103.5q0 -46 -15 -82.5t-36.5 -58t-48.5 -36t-49 -19.5t-39 -5h-8h-32t-39 5t-44 14t-41 28t-37 46t-24 70.5 t-10 97.5q-15 16 -59 25.5t-81 10.5l-37 1q-68 0 -117.5 -31t-70.5 -70t-21 -76q0 -24 5 -43t24 -46t53 -51t97 -53.5t150 -58.5q76 -25 138.5 -53.5t109 -55.5t83 -59t60.5 -59.5t41 -62.5t26.5 -62t14.5 -63.5t6 -62t1 -62.5z" /> +<glyph unicode="" d="M704 352v576q0 14 -9 23t-23 9h-256q-14 0 -23 -9t-9 -23v-576q0 -14 9 -23t23 -9h256q14 0 23 9t9 23zM1152 352v576q0 14 -9 23t-23 9h-256q-14 0 -23 -9t-9 -23v-576q0 -14 9 -23t23 -9h256q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103 t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /> +<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM768 96q148 0 273 73t198 198t73 273t-73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273 t73 -273t198 -198t273 -73zM864 320q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-192zM480 320q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-192z" /> +<glyph unicode="" d="M1088 352v576q0 14 -9 23t-23 9h-576q-14 0 -23 -9t-9 -23v-576q0 -14 9 -23t23 -9h576q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" /> +<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM768 96q148 0 273 73t198 198t73 273t-73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273 t73 -273t198 -198t273 -73zM480 320q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h576q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-576z" /> +<glyph unicode="" horiz-adv-x="1792" d="M1757 128l35 -313q3 -28 -16 -50q-19 -21 -48 -21h-1664q-29 0 -48 21q-19 22 -16 50l35 313h1722zM1664 967l86 -775h-1708l86 775q3 24 21 40.5t43 16.5h256v-128q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5v128h384v-128q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5v128h256q25 0 43 -16.5t21 -40.5zM1280 1152v-256q0 -26 -19 -45t-45 -19t-45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-256q0 -26 -19 -45t-45 -19t-45 19t-19 45v256q0 159 112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" /> +<glyph unicode="" horiz-adv-x="2048" d="M1920 768q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5h-15l-115 -662q-8 -46 -44 -76t-82 -30h-1280q-46 0 -82 30t-44 76l-115 662h-15q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5h1792zM485 -32q26 2 43.5 22.5t15.5 46.5l-32 416q-2 26 -22.5 43.5 t-46.5 15.5t-43.5 -22.5t-15.5 -46.5l32 -416q2 -25 20.5 -42t43.5 -17h5zM896 32v416q0 26 -19 45t-45 19t-45 -19t-19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45zM1280 32v416q0 26 -19 45t-45 19t-45 -19t-19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45zM1632 27l32 416 q2 26 -15.5 46.5t-43.5 22.5t-46.5 -15.5t-22.5 -43.5l-32 -416q-2 -26 15.5 -46.5t43.5 -22.5h5q25 0 43.5 17t20.5 42zM476 1244l-93 -412h-132l101 441q19 88 89 143.5t160 55.5h167q0 26 19 45t45 19h384q26 0 45 -19t19 -45h167q90 0 160 -55.5t89 -143.5l101 -441 h-132l-93 412q-11 44 -45.5 72t-79.5 28h-167q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45h-167q-45 0 -79.5 -28t-45.5 -72z" /> +<glyph unicode="" horiz-adv-x="1792" d="M991 512l64 256h-254l-64 -256h254zM1759 1016l-56 -224q-7 -24 -31 -24h-327l-64 -256h311q15 0 25 -12q10 -14 6 -28l-56 -224q-5 -24 -31 -24h-327l-81 -328q-7 -24 -31 -24h-224q-16 0 -26 12q-9 12 -6 28l78 312h-254l-81 -328q-7 -24 -31 -24h-225q-15 0 -25 12 q-9 12 -6 28l78 312h-311q-15 0 -25 12q-9 12 -6 28l56 224q7 24 31 24h327l64 256h-311q-15 0 -25 12q-10 14 -6 28l56 224q5 24 31 24h327l81 328q7 24 32 24h224q15 0 25 -12q9 -12 6 -28l-78 -312h254l81 328q7 24 32 24h224q15 0 25 -12q9 -12 6 -28l-78 -312h311 q15 0 25 -12q9 -12 6 -28z" /> +<glyph unicode="" d="M841 483l148 -148l-149 -149zM840 1094l149 -149l-148 -148zM710 -130l464 464l-306 306l306 306l-464 464v-611l-255 255l-93 -93l320 -321l-320 -321l93 -93l255 255v-611zM1429 640q0 -209 -32 -365.5t-87.5 -257t-140.5 -162.5t-181.5 -86.5t-219.5 -24.5 t-219.5 24.5t-181.5 86.5t-140.5 162.5t-87.5 257t-32 365.5t32 365.5t87.5 257t140.5 162.5t181.5 86.5t219.5 24.5t219.5 -24.5t181.5 -86.5t140.5 -162.5t87.5 -257t32 -365.5z" /> +<glyph unicode="" horiz-adv-x="1024" d="M596 113l173 172l-173 172v-344zM596 823l173 172l-173 172v-344zM628 640l356 -356l-539 -540v711l-297 -296l-108 108l372 373l-372 373l108 108l297 -296v711l539 -540z" /> +<glyph unicode="" d="M1280 256q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM512 1024q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5 t112.5 -271.5zM1440 1344q0 -20 -13 -38l-1056 -1408q-19 -26 -51 -26h-160q-26 0 -45 19t-19 45q0 20 13 38l1056 1408q19 26 51 26h160q26 0 45 -19t19 -45zM768 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +<glyph unicode="" horiz-adv-x="1792" /> +</font> +</defs></svg>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.ttf b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.ttf Binary files differnew file mode 100644 index 0000000..26dea79 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.ttf diff --git a/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.woff b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.woff Binary files differnew file mode 100644 index 0000000..dc35ce3 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.woff diff --git a/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.woff2 b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.woff2 Binary files differnew file mode 100644 index 0000000..500e517 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/fonts/fontawesome-webfont.woff2 diff --git a/javascript/videojs/docs/legacy-docs/guides/api.html b/javascript/videojs/docs/legacy-docs/guides/api.html new file mode 100644 index 0000000..5018f0c --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/api.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="api">API</h1> +<p>The Video.js API allows you to interact with the video through JavaScript, whether the browser is playing the video through HTML5 video, Flash, or any other supported playback technologies.</p> +<h2 id="referencing-the-player">Referencing the Player</h2> +<p>To use the API functions, you need access to the player object. Luckily this is easy to get. You just need to make sure your video tag has an ID. The example embed code has an ID of "example_video_1". If you have multiple videos on one page, make sure every video tag has a unique ID.</p> +<pre><code class="lang-js">var myPlayer = videojs('example_video_1'); +</code></pre> +<p>(If the player hasn't been initialized yet via the data-setup attribute or another method, this will also initialize the player.)</p> +<h2 id="wait-until-the-player-is-ready">Wait Until the Player is Ready</h2> +<p>The time it takes Video.js to set up the video and API will vary depending on the playback technology being used (HTML5 will often be much faster to load than Flash). For that reason we want to use the player's 'ready' function to trigger any code that requires the player's API.</p> +<pre><code class="lang-js">videojs("example_video_1").ready(function(){ + var myPlayer = this; + + // EXAMPLE: Start playing the video. + myPlayer.play(); + +}); +</code></pre> +<h2 id="api-methods">API Methods</h2> +<p>Now that you have access to a ready player, you can control the video, get values, or respond to video events. The Video.js API function names follow the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html">HTML5 media API</a>. The main difference is that getter/setter functions are used for video properties.</p> +<pre><code class="lang-js"> +// setting a property on a bare HTML5 video element +myVideoElement.currentTime = "120"; + +// setting a property on a Video.js player +myPlayer.currentTime(120); +</code></pre> +<p>The full list of player API methods and events can be found in the <a href="http://docs.videojs.com/docs/api/index.html">player API docs</a>.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/audio-tracks.html b/javascript/videojs/docs/legacy-docs/guides/audio-tracks.html new file mode 100644 index 0000000..a1cd187 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/audio-tracks.html @@ -0,0 +1,80 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-audio-tracks.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-audio-tracks.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="audio-tracks">Audio Tracks</h1> +<p>Audio Tracks are a function of HTML5 video for providing alternative audio track selections to the user, so that a track other than the main track can be played. Video.js makes audio tracks work across all browsers. There are currently five types of tracks:</p> +<ul> +<li><strong>Alternative</strong>: alternative audio for the main video track</li> +<li><strong>Descriptions</strong>: descriptions of what is happening in the video track</li> +<li><strong>Main</strong>: the main audio track for this video</li> +<li><strong>Translation</strong>: a translation of the main audio track</li> +<li><strong>Commentary</strong>: commentary on the video, usually the director of the content talking about design choices</li> +</ul> +<h2 id="missing-funtionality">Missing Funtionality</h2> +<ul> +<li>It is currently impossible to add AudioTracks in a non-programtic way</li> +<li>Literal switching of AudioTracks for playback is not handled by video.js and must be handled by something else. video.js only stores the track representation</li> +</ul> +<h2 id="adding-to-video-js">Adding to Video.js</h2> +<blockquote> +<p>Right now adding audio tracks in the HTML is unsupported. Audio Tracks must be added programatically.</p> +</blockquote> +<p>You must add audio tracks <a href="#api">programatically</a> for the time being.</p> +<h2 id="attributes">Attributes</h2> +<p>Audio Track propertites and settings</p> +<h3 id="kind">kind</h3> +<p>One of the five track types listed above. Kind defaults to empty string if no kind is included, or an invalid kind is used.</p> +<h3 id="label">label</h3> +<p>The label for the track that will be show to the user, for example in a menu that list the different languages available for audio tracks.</p> +<h3 id="language">language</h3> +<p>The two-letter code (valid BCP 47 language tag) for the language of the audio track, for example "en" for English. A list of language codes is <a href="languages.md#language-codes">available here</a>.</p> +<h3 id="enabled">enabled</h3> +<p>If this track should be playing or not. In video.js we only allow one track to be enabled at a time. so if you enable more than one the last one to be enabled will end up being the only one.</p> +<h2 id="interacting-with-audio-tracks">Interacting with Audio Tracks</h2> +<h3 id="doing-something-when-a-track-becomes-enabled">Doing something when a track becomes enabled</h3> +<p>When a new track is enabled (other than the main track) an event is fired on the <code>AudioTrackList</code> called <code>change</code> you can listen to that event and do something with it. +Here's an example:</p> +<pre><code class="lang-js">// get the current players AudioTrackList object +let tracks = player.audioTracks(); + +// listen to the change event +tracks.addEventListener('change', function() { + + // print the currently enabled AudioTrack label + for (let i = 0; i < tracks.length; i++) { + let track = tracks[i]; + + if (track.enabled) { + console.log(track.label); + return; + } + } +}); +</code></pre> +<h2 id="api">API</h2> +<h3 id="-player-audiotracks-audiotracklist-"><code>player.audioTracks() -> AudioTrackList</code></h3> +<p>This is the main interface into the audio tracks of the player. +It returns an AudioTrackList which is an array like object that contains all the <code>AudioTrack</code> on the player.</p> +<h3 id="-player-audiotracks-addtrack-audiotrack-"><code>player.audioTracks().addTrack(AudioTrack)</code></h3> +<p>Add an existing AudioTrack to the players internal list of AudioTracks.</p> +<h3 id="-player-audiotracks-removetrack-audiotrack-"><code>player.audioTracks().removeTrack(AudioTrack)</code></h3> +<p>Remove a track from the AudioTrackList currently on the player. if no track exists this will do nothing.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/components.html b/javascript/videojs/docs/legacy-docs/guides/components.html new file mode 100644 index 0000000..e5f07d6 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/components.html @@ -0,0 +1,89 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-components.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-components.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="components">Components</h1> +<p>The Video.js player is built on top of a simple, custom UI components architecture. The player class and all control classes inherit from the <code>Component</code> class, or a subclass of <code>Component</code>.</p> +<pre><code class="lang-js">videojs.registerComponent('Control', videojs.extends(Component)); +videojs.registerComponent('Button', videojs.extends(videojs.getComponent('Control'))); +videojs.registerComponent('PlayToggle', videojs.extends(videojs.getComponent('Button'))); +</code></pre> +<p>The UI component architecture makes it easier to add child components to a parent component and build up an entire user interface, like the controls for the Video.js player.</p> +<pre><code class="lang-js">// Adding a new control to the player +myPlayer.addChild('BigPlayButton'); +</code></pre> +<p>Every component has an associated DOM element, and when you add a child component, it inserts the element of that child into the element of the parent.</p> +<pre><code class="lang-js">myPlayer.addChild('BigPlayButton'); +</code></pre> +<p>Results in:</p> +<pre><code class="lang-html"> <!-- Player Element --> + <div class="video-js"> + <!-- BigPlayButton Element --> + <div class="vjs-big-play-button"></div> + </div> +</code></pre> +<p>The actual default component structure of the Video.js player looks something like this:</p> +<pre><code>Player + PosterImage + TextTrackDisplay + LoadingSpinner + BigPlayButton + ControlBar + PlayToggle + VolumeMenuButton + CurrentTimeDisplay (Hidden by default) + TimeDivider (Hidden by default) + DurationDisplay (Hidden by default) + ProgressControl + SeekBar + LoadProgressBar + MouseTimeDisplay + PlayProgressBar + LiveDisplay (Hidden by default) + RemainingTimeDisplay + CustomControlsSpacer (No UI) + ChaptersButton (Hidden by default) + SubtitlesButton (Hidden by default) + CaptionsButton (Hidden by default) + PictureInPictureToggle + FullscreenToggle + ErrorDisplay + TextTrackSettings +</code></pre><h2 id="progress-control">Progress Control</h2> +<p>The progress control is made up of the SeekBar. The seekbar contains the load progress bar +and the play progress bar. In addition, it contains the Mouse Time Display which +is used to display the time tooltip that follows the mouse cursor. +The play progress bar also has a time tooltip that show the current time.</p> +<p>By default, the progress control is sandwiched between the volume menu button and +the remaining time display inside the control bar, but in some cases, a skin would +want to move the progress control above the control bar and have it span the full +width of the player, in those cases, it is less than ideal to have the tooltips +get cut off or leave the bounds of the player. This can be prevented by setting the +<code>keepTooltipsInside</code> option on the progress control. This also makes the tooltips use +a real element instead of pseudo elements so targeting them with css will be different.</p> +<pre><code class="lang-js">let player = videojs('myplayer', { + controlBar: { + progressControl: { + keepTooltipsInside: true + } + } +}); +</code></pre> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/glossary.html b/javascript/videojs/docs/legacy-docs/guides/glossary.html new file mode 100644 index 0000000..09ca1fe --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/glossary.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="glossary">Glossary</h1> +<p>Terms related to web video.</p> +<h3 id="dom-document-object-model-">DOM (Document Object Model)</h3> +<p>The container of elements on the page that must be loaded before you can interact with the elements with through Javascript. +<a href="http://en.wikipedia.org/wiki/Document_Object_Model">http://en.wikipedia.org/wiki/Document_Object_Model</a></p> +<h3 id="flash-fallback">Flash Fallback</h3> +<p>The Flash video player (SWF) used to play a video when HTML5 isn't supported.</p> +<h3 id="timerange">TimeRange</h3> +<h3 id="html5-video">HTML5 Video</h3> +<p>HTML is the markup language that makes up every page on the web. The newest version, HTML5, includes specifications for a video tag, that is meant to allow website developers to add a video to a page the same way they would add an image. In order for this to work, web browser developers (Mozilla, Apple, Microsoft, Google, Opera, etc.) have to build the video playback functionality into their browsers. The W3C has created directions on how video should work in browsers, and it’s up to browser developers to follow those directions, so that video works the same across all browsers. This doesn’t always happen thanks to technology, legal, and financial choices made by browser developers, but so far no one’s varying too far from the specifications. However the specifications are still being changed and refined, so browsers developers have to keep up with that as well.</p> +<p>Playing video in a web page may not seem so special since you can already view video on a web page through plugins like Flash Player, Quicktime, Silverlight, and RealPlayer, however this is a big step forward for standardizing video playback across web browsers and devices. The goal is that in the future, developers will only need to use one method for embedding a video, that’s based on open standards (not controlled by one company), and it will work everywhere.</p> +<p>A prime example of this is the iPhone and iPad. Apple has decided not to support Flash on their mobile devices, but they do support HTML5 video. Since Flash is currently the most common way video is added to web pages, most web video (aside from YouTube who has a special relationship with Apple) can’t be viewed on the iPhone or iPad. These devices are very popular, so many web sites are switching to hybrid HTML5/Flash player setups (like VideoJS).</p> +<h3 id="video-tag">Video Tag</h3> +<p>There are a number of great resources that will give you an introduction to the video tag an how it is used including:</p> +<ul> +<li><a href="http://diveintohtml5.org/video.html">Dive into HTML5</a></li> +<li>Lynda.com's <a href="http://www.lynda.com/HTML-5-tutorials/HTML5-Video-and-Audio-in-Depth/80781-2.html">'HTML5 Video and Audio in Depth'</a> video tutorials created by yours truly.</li> +</ul> +<p>An if you really want to dig in, you can read the (W3C Spec)[<a href="http://www.w3.org/TR/html5/video.html">http://www.w3.org/TR/html5/video.html</a>]. (Warning - not for the faint of heart)</p> +<h3 id="skin">Skin</h3> +<p>"Skin" refers to the design of the player's controls, also sometimes called the chrome. With VideoJS, new skins can be built simply by creating a new stylesheet.</p> +<h3 id="content-delivery-network-cdn-">Content Delivery Network (CDN)</h3> +<p>A network of servers around the world that host copies of a file. When your browser requests one of these files, the CDN automatically determines which server is closest to your location and delivers the file from there. This drastically increases delivery time, especially internationally.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/languages.html b/javascript/videojs/docs/legacy-docs/guides/languages.html new file mode 100644 index 0000000..e5e956c --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/languages.html @@ -0,0 +1,307 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-languages.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-languages.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="languages">Languages</h1> +<p>Multiple language support allows for users of non-English locales to natively interact with the displayed player. Video.js will compile multiple language files (see below) and instantiate with a global dictionary of language key/value support. Video.js player instances can be created with per-player language support that amends/overrides these default values. Player instances can also hard-set default languages to values other than English as of version 4.7.</p> +<h2 id="creating-the-language-file">Creating the Language File</h2> +<p>Video.js uses key/value object dictionaries in JSON form.</p> +<p>An English lang file is at <a href="https://github.com/videojs/video.js/tree/master/lang/en.json">/lang/en.json</a> which should be used as a template for new files. This will be kept up to date with strings in the core player that need localizations.</p> +<p>A sample dictionary for Spanish <code>['es']</code> would look as follows:</p> +<pre><code class="lang-JSON">{ + "Play": "Reproducción", + "Pause": "Pausa", + "Current Time": "Tiempo reproducido", + "Duration": "Duración total", + "Remaining Time": "Tiempo restante", + "Stream Type": "Tipo de secuencia", + "LIVE": "DIRECTO", + "Loaded": "Cargado", + "Progress": "Progreso", + "Fullscreen": "Pantalla completa", + "Non-Fullscreen": "Pantalla no completa", + "Mute": "Silenciar", + "Unmute": "No silenciado", + "Playback Rate": "Velocidad de reproducción", + "Subtitles": "Subtítulos", + "subtitles off": "Subtítulos desactivados", + "Captions": "Subtítulos especiales", + "captions off": "Subtítulos especiales desactivados", + "Chapters": "Capítulos", + "Close Modal Dialog": "Cerca de diálogo modal", + "You aborted the video playback": "Ha interrumpido la reproducción del vídeo.", + "A network error caused the video download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.", + "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.", + "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.", + "No compatible source was found for this video.": "No se ha encontrado ninguna fuente compatible con este vídeo." +} +</code></pre> +<p>Notes:</p> +<ul> +<li>The file name should always be in the format <code>XX.json</code>, where <code>XX</code> is the language code. This should be a two letter code (for options see the bottom of this document) except for cases where a more specific code with sub-code is appropriate, e.g. <code>zh-CN.lang</code>.</li> +<li>For automatic inclusion at build time, add your language file to the <code>/lang</code> directory (see 'Adding Languages to Video.js below').</li> +</ul> +<h2 id="adding-languages-to-video-js">Adding Languages to Video.js</h2> +<p>Additional language support can be added to Video.js in multiple ways.</p> +<ol> +<li>Create language scripts out of your JSON objects by using our custom grunt task <code>vjslanguages</code>. This task is automatically run as part of the default grunt task in Video.JS, but can be configured to match your <code>src</code>/<code>dist</code> directories if different. Once these scripts are created, just add them to your DOM like any other script.</li> +</ol> +<p>NOTE: These need to be added after the core Video.js script.</p> +<ol> +<li>Add your JSON objects via the videojs.addLanguage API. Preferably in the HEAD element of your DOM or otherwise prior to player instantiation.</li> +</ol> +<pre><code class="lang-html"><head> +<script> + videojs.options.flash.swf = '../node_modules/videojs-swf/dist/video-js.swf'; + videojs.addLanguage('es', { + "Play": "Reproducción", + "Pause": "Pausa", + "Current Time": "Tiempo reproducido", + "Duration": "Duración total", + "Remaining Time": "Tiempo restante", + "Stream Type": "Tipo de secuencia", + "LIVE": "DIRECTO", + "Loaded": "Cargado", + "Progress": "Progreso", + "Fullscreen": "Pantalla completa", + "Non-Fullscreen": "Pantalla no completa", + "Mute": "Silenciar", + "Unmute": "No silenciado", + "Playback Rate": "Velocidad de reproducción", + "Subtitles": "Subtítulos", + "subtitles off": "Subtítulos desactivados", + "Captions": "Subtítulos especiales", + "captions off": "Subtítulos especiales desactivados", + "Chapters": "Capítulos", + "Close Modal Dialog": "Cerca de diálogo modal", + "You aborted the video playback": "Ha interrumpido la reproducción del vídeo.", + "A network error caused the video download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.", + "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.", + "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.", + "No compatible source was found for this video.": "No se ha encontrado ninguna fuente compatible con este vídeo." +}); +</script> +</head> +</code></pre> +<ol> +<li>During a Video.js player instantiation. Adding the languages to the configuration object provided in the <code>data-setup</code> attribute.</li> +</ol> +<pre><code class="lang-html"><video id="example_video_1" class="video-js vjs-default-skin" + controls preload="auto" width="640" height="264" + data-setup='{"languages":{"es":{"Play":"Juego"}}}'> + <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' /> + <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' /> + <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> + + <track kind="captions" src="http://example.com/path/to/captions.vtt" srclang="en" label="English" default> + +</video> +</code></pre> +<p>Notes:</p> +<ul> +<li>This will add your language key/values to the Video.js player instances individually. If these values already exist in the global dictionary via the process above, those will be overridden for the player instance in question.</li> +</ul> +<h2 id="setting-default-language-in-a-video-js-player">Setting Default Language in a Video.js Player</h2> +<p>During a Video.js player instantiation you can force it to localize to a specific language by including the locale value into the configuration object via the <code>data-setup</code> attribute. Valid options listed at the bottom of the page for reference.</p> +<pre><code class="lang-html"><video id="example_video_1" class="video-js vjs-default-skin" + controls preload="auto" width="640" height="264" + data-setup='{"language":"es"}'> + <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' /> + <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' /> + <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> + + <track kind="captions" src="http://example.com/path/to/captions.vtt" srclang="en" label="English" default> + +</video> +</code></pre> +<h2 id="determining-player-language">Determining Player Language</h2> +<p>The player language is set to one of the following in descending priority:</p> +<ul> +<li>The language specified in setup options as above</li> +<li>The language specified by the closet element with a <code>lang</code> attribute. This could be the player itself or a parent element. Usually the document language is specified on the <code>html</code> tag.</li> +<li>Browser language preference (the first language if more than one is configured)</li> +<li>'en'</li> +</ul> +<p>The player language can be change after instantiation with <code>language('fr')</code>. However localizable text will not be modified by doing this, for best results set the language beforehand.</p> +<h2 id="language-selection">Language selection</h2> +<ul> +<li>Language codes are considered case-insensitively (<code>en-US</code> == <code>en-us</code>).</li> +<li>If there is no match for a language code with a subcode (<code>en-us</code>), a match for the primary code (<code>en</code>) is used if available.</li> +</ul> +<h2 id="localization-in-plugins">Localization in Plugins</h2> +<p>When you're developing a plugin, you can also introduce new localized strings. Simply wrap the string with the player's <code>localize</code> function:</p> +<pre><code class="lang-js">var details = '<div class="vjs-errors-details">' + player.localize('Technical details') + '</div>'; +</code></pre> +<h2 id="language-codes">Language Codes</h2> +<p>The following is a list of official language codes.</p> +<p><strong>NOTE:</strong> For supported language translations, please see the <a href="https://github.com/videojs/video.js/tree/master/lang">Languages Folder (/lang)</a> folder located in the project root.</p> +<table border="0" cellspacing="5" cellpadding="5"> + <tr> + <table> + <tr><th>ab<th><td>Abkhazian</td></tr> + <tr><th>aa<th><td>Afar</td></tr> + <tr><th>af<th><td>Afrikaans</td></tr> + <tr><th>sq<th><td>Albanian</td></tr> + <tr><th>am<th><td>Amharic</td></tr> + <tr><th>ar<th><td>Arabic</td></tr> + <tr><th>an<th><td>Aragonese</td></tr> + <tr><th>hy<th><td>Armenian</td></tr> + <tr><th>as<th><td>Assamese</td></tr> + <tr><th>ay<th><td>Aymara</td></tr> + <tr><th>az<th><td>Azerbaijani</td></tr> + <tr><th>ba<th><td>Bashkir</td></tr> + <tr><th>eu<th><td>Basque</td></tr> + <tr><th>bn<th><td>Bengali (Bangla)</td></tr> + <tr><th>dz<th><td>Bhutani</td></tr> + <tr><th>bh<th><td>Bihari</td></tr> + <tr><th>bi<th><td>Bislama</td></tr> + <tr><th>br<th><td>Breton</td></tr> + <tr><th>bg<th><td>Bulgarian</td></tr> + <tr><th>my<th><td>Burmese</td></tr> + <tr><th>be<th><td>Byelorussian (Belarusian)</td></tr> + <tr><th>km<th><td>Cambodian</td></tr> + <tr><th>ca<th><td>Catalan</td></tr> + <tr><th>zh<th><td>Chinese (Simplified)</td></tr> + <tr><th>zh<th><td>Chinese (Traditional)</td></tr> + <tr><th>co<th><td>Corsican</td></tr> + <tr><th>hr<th><td>Croatian</td></tr> + <tr><th>cs<th><td>Czech</td></tr> + <tr><th>da<th><td>Danish</td></tr> + <tr><th>nl<th><td>Dutch</td></tr> + <tr><th>en<th><td>English</td></tr> + <tr><th>eo<th><td>Esperanto</td></tr> + <tr><th>et<th><td>Estonian</td></tr> + <tr><th>fo<th><td>Faeroese</td></tr> + <tr><th>fa<th><td>Farsi</td></tr> + <tr><th>fj<th><td>Fiji</td></tr> + <tr><th>fi<th><td>Finnish</td></tr> + <tr><th>fr<th><td>French</td></tr> + <tr><th>fy<th><td>Frisian</td></tr> + <tr><th>gl<th><td>Galician</td></tr> + <tr><th>gd<th><td>Gaelic (Scottish)</td></tr> + <tr><th>gv<th><td>Gaelic (Manx)</td></tr> + <tr><th>ka<th><td>Georgian</td></tr> + <tr><th>de<th><td>German</td></tr> + <tr><th>el<th><td>Greek</td></tr> + <tr><th>kl<th><td>Greenlandic</td></tr> + <tr><th>gn<th><td>Guarani</td></tr> + <tr><th>gu<th><td>Gujarati</td></tr> + <tr><th>ht<th><td>Haitian Creole</td></tr> + <tr><th>ha<th><td>Hausa</td></tr> + <tr><th>he<th><td>Hebrew</td></tr> + <tr><th>hi<th><td>Hindi</td></tr> + <tr><th>hu<th><td>Hungarian</td></tr> + <tr><th>is<th><td>Icelandic</td></tr> + <tr><th>io<th><td>Ido</td></tr> + <tr><th>id<th><td>Indonesian</td></tr> + <tr><th>ia<th><td>Interlingua</td></tr> + <tr><th>ie<th><td>Interlingue</td></tr> + <tr><th>iu<th><td>Inuktitut</td></tr> + <tr><th>ik<th><td>Inupiak</td></tr> + <tr><th>ga<th><td>Irish</td></tr> + <tr><th>it<th><td>Italian</td></tr> + <tr><th>ja<th><td>Japanese</td></tr> + <tr><th>jv<th><td>Javanese</td></tr> + <tr><th>kn<th><td>Kannada</td></tr> + <tr><th>ks<th><td>Kashmiri</td></tr> + <tr><th>kk<th><td>Kazakh</td></tr> + <tr><th>rw<th><td>Kinyarwanda (Ruanda)</td></tr> + <tr><th>ky<th><td>Kirghiz</td></tr> + <tr><th>rn<th><td>Kirundi (Rundi)</td></tr> + <tr><th>ko<th><td>Korean</td></tr> + <tr><th>ku<th><td>Kurdish</td></tr> + <tr><th>lo<th><td>Laothian</td></tr> + <tr><th>la<th><td>Latin</td></tr> + <tr><th>lv<th><td>Latvian (Lettish)</td></tr> + <tr><th>li<th><td>Limburgish ( Limburger)</td></tr> + <tr><th>ln<th><td>Lingala</td></tr> + <tr><th>lt<th><td>Lithuanian</td></tr> + <tr><th>mk<th><td>Macedonian</td></tr> + <tr><th>mg<th><td>Malagasy</td></tr> + <tr><th>ms<th><td>Malay</td></tr> + <tr><th>ml<th><td>Malayalam</td></tr> + <tr><th>mt<th><td>Maltese</td></tr> + <tr><th>mi<th><td>Maori</td></tr> + <tr><th>mr<th><td>Marathi</td></tr> + <tr><th>mo<th><td>Moldavian</td></tr> + <tr><th>mn<th><td>Mongolian</td></tr> + <tr><th>na<th><td>Nauru</td></tr> + <tr><th>ne<th><td>Nepali</td></tr> + <tr><th>no<th><td>Norwegian</td></tr> + <tr><th>oc<th><td>Occitan</td></tr> + <tr><th>or<th><td>Oriya</td></tr> + <tr><th>om<th><td>Oromo (Afan, Galla)</td></tr> + <tr><th>ps<th><td>Pashto (Pushto)</td></tr> + <tr><th>pl<th><td>Polish</td></tr> + <tr><th>pt<th><td>Portuguese</td></tr> + <tr><th>pa<th><td>Punjabi</td></tr> + <tr><th>qu<th><td>Quechua</td></tr> + <tr><th>rm<th><td>Rhaeto-Romance</td></tr> + <tr><th>ro<th><td>Romanian</td></tr> + <tr><th>ru<th><td>Russian</td></tr> + <tr><th>sm<th><td>Samoan</td></tr> + <tr><th>sg<th><td>Sangro</td></tr> + <tr><th>sa<th><td>Sanskrit</td></tr> + <tr><th>sr<th><td>Serbian</td></tr> + <tr><th>sh<th><td>Serbo-Croatian</td></tr> + <tr><th>st<th><td>Sesotho</td></tr> + <tr><th>tn<th><td>Setswana</td></tr> + <tr><th>sn<th><td>Shona</td></tr> + <tr><th>ii<th><td>Sichuan Yi</td></tr> + <tr><th>sd<th><td>Sindhi</td></tr> + <tr><th>si<th><td>Sinhalese</td></tr> + <tr><th>ss<th><td>Siswati</td></tr> + <tr><th>sk<th><td>Slovak</td></tr> + <tr><th>sl<th><td>Slovenian</td></tr> + <tr><th>so<th><td>Somali</td></tr> + <tr><th>es<th><td>Spanish</td></tr> + <tr><th>su<th><td>Sundanese</td></tr> + <tr><th>sw<th><td>Swahili (Kiswahili)</td></tr> + <tr><th>sv<th><td>Swedish</td></tr> + <tr><th>tl<th><td>Tagalog</td></tr> + <tr><th>tg<th><td>Tajik</td></tr> + <tr><th>ta<th><td>Tamil</td></tr> + <tr><th>tt<th><td>Tatar</td></tr> + <tr><th>te<th><td>Telugu</td></tr> + <tr><th>th<th><td>Thai</td></tr> + <tr><th>bo<th><td>Tibetan</td></tr> + <tr><th>ti<th><td>Tigrinya</td></tr> + <tr><th>to<th><td>Tonga</td></tr> + <tr><th>ts<th><td>Tsonga</td></tr> + <tr><th>tr<th><td>Turkish</td></tr> + <tr><th>tk<th><td>Turkmen</td></tr> + <tr><th>tw<th><td>Twi</td></tr> + <tr><th>ug<th><td>Uighur</td></tr> + <tr><th>uk<th><td>Ukrainian</td></tr> + <tr><th>ur<th><td>Urdu</td></tr> + <tr><th>uz<th><td>Uzbek</td></tr> + <tr><th>vi<th><td>Vietnamese</td></tr> + <tr><th>vo<th><td>Volapük</td></tr> + <tr><th>wa<th><td>Wallon</td></tr> + <tr><th>cy<th><td>Welsh</td></tr> + <tr><th>wo<th><td>Wolof</td></tr> + <tr><th>xh<th><td>Xhosa</td></tr> + <tr><th>yi<th><td>Yiddish</td></tr> + <tr><th>yo<th><td>Yoruba</td></tr> + <tr><th>zu<th><td>Zulu</td></tr> + </table> + </tr> +</table> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/options.html b/javascript/videojs/docs/legacy-docs/guides/options.html new file mode 100644 index 0000000..c094f13 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/options.html @@ -0,0 +1,108 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-options.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-options.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="options">Options</h1> +<h2 id="setting-options">Setting Options</h2> +<p>The Video.js embed code is simply an HTML5 video tag, so for many of the options you can use the standard tag attributes to set the options.</p> +<pre><code class="lang-html"><video controls autoplay preload="auto" ...> +</code></pre> +<p>Alternatively, you can use the data-setup attribute to provide options in the <a href="http://json.org/example.html">JSON</a> format. This is also how you would set options that aren't standard to the video tag.</p> +<pre><code class="lang-html"><video data-setup='{ "controls": true, "autoplay": false, "preload": "auto" }'...> +</code></pre> +<p>Finally, if you're not using the data-setup attribute to trigger the player setup, you can pass in an object with the player options as the second argument in the javascript setup function.</p> +<pre><code class="lang-js">videojs("example_video_1", { "controls": true, "autoplay": false, "preload": "auto" }); +</code></pre> +<h2 id="individual-options">Individual Options</h2> +<blockquote> +<h3 id="note-on-video-tag-attributes">Note on Video Tag Attributes</h3> +<p>With HTML5 video tag attributes that can only be true or false (boolean), you simply include the attribute (no equals sign) to turn it on, or exclude it to turn it off. For example, to turn controls on:</p> +</blockquote> +<p>WRONG</p> +<pre><code class="lang-html"><video controls="true" ...> +</code></pre> +<p>RIGHT</p> +<pre><code class="lang-html"><video controls ...> +</code></pre> +<blockquote> +<p>The biggest issue people run into is trying to set these values to false using false as the value (e.g. controls="false") which actually does the opposite and sets the value to true because the attribute is still included. If you need the attribute to include an equals sign for XHTML validation, you can set the attribute's value to the same as its name (e.g. controls="controls").</p> +</blockquote> +<h3 id="controls">controls</h3> +<p>The controls option sets whether or not the player has controls that the user can interact with. Without controls the only way to start the video playing is with the autoplay attribute or through the API.</p> +<pre><code class="lang-html"><video controls ...> +or +{ "controls": true } +</code></pre> +<h3 id="autoplay">autoplay</h3> +<p>If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user). +NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect it's customers from unwillingly using a lot of their (often expensive) monthly data plans. A user touch/click is required to start the video in this case.</p> +<pre><code class="lang-html"><video autoplay ...> +or +{ "autoplay": true } +</code></pre> +<h3 id="preload">preload</h3> +<p>The preload attribute informs the browser whether or not the video data should begin downloading as soon as the video tag is loaded. The options are auto, metadata, and none.</p> +<p>'auto': Start loading the video immediately (if the browser agrees). Some mobile devices like iPhones and iPads will not preload the video in order to protect their users' bandwidth. This is why the value is called 'auto' and not something more final like 'true'.</p> +<p>'metadata': Load only the meta data of the video, which includes information like the duration and dimensions of the video.</p> +<p>'none': Don't preload any of the video data. This will wait until the user clicks play to begin downloading.</p> +<pre><code class="lang-html"><video preload ...> +or +{ "preload": "auto" } +</code></pre> +<h3 id="poster">poster</h3> +<p>The poster attribute sets the image that displays before the video begins playing. This is often a frame of the video or a custom title screen. As soon as the user clicks play the image will go away.</p> +<pre><code class="lang-html"><video poster="myPoster.jpg" ...> +or +{ "poster": "myPoster.jpg" } +</code></pre> +<h3 id="loop">loop</h3> +<p>The loop attribute causes the video to start over as soon as it ends. This could be used for a visual effect like clouds in the background.</p> +<pre><code class="lang-html"><video loop ...> +or +{ "loop": true } +</code></pre> +<h3 id="width">width</h3> +<p>The width attribute sets the display width of the video.</p> +<pre><code class="lang-html"><video width="640" ...> +or +{ "width": 640 } +</code></pre> +<h3 id="height">height</h3> +<p>The height attribute sets the display height of the video.</p> +<pre><code class="lang-html"><video height="480" ...> +or +{ "height": 480 } +</code></pre> +<h2 id="component-options">Component Options</h2> +<p>You can set the options for any single player component. For instance, if you wanted to remove the <code>muteToggle</code> button, which +is a child of <code>controlBar</code>, you can just set that component to false:</p> +<pre><code class="lang-js">var player = videojs('video-id', { + controlBar: { + muteToggle: false + } +}); +</code></pre> +<p>This also works using the <code>data-setup</code> attribute on the video element, just remember the options need to use proper JSON +notation.</p> +<pre><code class="lang-html"><video ... data-setup='{ "controlBar": { "muteToggle": false } }'></video> +</code></pre> +<p>The <a href="./components.html">components guide</a> has an excellent breakdown of the structure of a player, you +just need to remember to nest child components in a <code>children</code> array for each level.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/plugins.html b/javascript/videojs/docs/legacy-docs/guides/plugins.html new file mode 100644 index 0000000..200c687 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/plugins.html @@ -0,0 +1,60 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-plugins.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-plugins.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="plugins">Plugins</h1> +<p>If you've built something cool with Video.js, you can easily share it with the rest of the world by creating a plugin. Although, you can roll your own, you can also use <a href="https://github.com/dmlap/generator-videojs-plugin">generator-videojs-plugin</a>, a <a href="http://yeoman.io">Yeoman</a> generator that provides scaffolding for video.js plugins including:</p> +<ul> +<li><a href="http://gruntjs.com">Grunt</a> for build management</li> +<li><a href="https://www.npmjs.org">npm</a> for dependency management</li> +<li><a href="http://qunitjs.com">QUnit</a> for testing</li> +</ul> +<h2 id="step-1-write-some-javascript">Step 1: Write Some Javascript</h2> +<p>You may have already done this step. Code up something interesting and then wrap it in a function. At the most basic level, that's all a video.js plugin is. By convention, plugins take a hash of options as their first argument:</p> +<pre><code class="lang-js"> function examplePlugin(options) { + this.on('play', function(e) { + console.log('playback has started!'); + }); + }; +</code></pre> +<p>When it's activated, <code>this</code> will be the Video.js player your plugin is attached to. You can use anything you'd like in the <a href="./api.html">Video.js API</a> when you're writing a plugin: change the <code>src</code>, mess up the DOM, or listen for and emit your own events.</p> +<h2 id="step-2-registering-a-plugin">Step 2: Registering A Plugin</h2> +<p>It's time to give the rest of the world the opportunity to be awed by your genius. When your plugin is loaded, it needs to let Video.js know this amazing new functionality is now available:</p> +<pre><code class="lang-js"> videojs.plugin('examplePlugin', examplePlugin); +</code></pre> +<p>From this point on, your plugin will be added to the Video.js prototype and will show up as a property on every instance created. Make sure you choose a unique name that doesn't clash with any of the properties already in Video.js. Which leads us to...</p> +<h2 id="step-3-using-a-plugin">Step 3: Using A Plugin</h2> +<p>There are two ways to initialize a plugin. If you're creating your video tag dynamically, you can specify the plugins you'd like to initialize with it and any options you want to pass to them:</p> +<pre><code class="lang-js"> videojs('vidId', { + plugins: { + examplePlugin: { + exampleOption: true + } + } + }); +</code></pre> +<p>If you've already initialized your video tag, you can activate a plugin at any time by calling its setup function directly:</p> +<pre><code class="lang-js"> var video = videojs('cool-vid'); + video.examplePlugin({ exampleOption: true }); +</code></pre> +<p>That's it. Head on over to the <a href="https://github.com/videojs/video.js/wiki/Plugins">Video.js wiki</a> and add your plugin to the list so everyone else can check it out.</p> +<h2 id="how-should-i-use-the-video-js-icons-in-my-plugin-">How should I use the Video.js icons in my plugin?</h2> +<p>If you'd like to use any of the icons available in the <a href="http://videojs.github.io/font/">Video.js icon set</a>, please target them via the CSS class names instead of codepoints. The codepoints <em>may</em> change between versions of the font, so using the class names ensures that your plugin will stay up to date with any font changes.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/removing-players.html b/javascript/videojs/docs/legacy-docs/guides/removing-players.html new file mode 100644 index 0000000..3d52c12 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/removing-players.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="removing-players">Removing Players</h1> +<p>Sometimes, you want to remove players after page load (in single page apps or modals, for instance). It's easy to manage, but there are some simple rules you need to follow.</p> +<h2 id="call-dispose-">Call <code>.dispose()</code></h2> +<p>To remove the html associated with your videojs player from the page always call the player's <a href="http://docs.videojs.com/docs/api/player.html#Methodsdispose"><code>dispose()</code></a> method:</p> +<pre><code class="lang-js">var oldPlayer = document.getElementById('my-player'); +videojs(oldPlayer).dispose(); +</code></pre> +<p>This method will:</p> +<ol> +<li>reset the internal state of videojs</li> +<li>remove the player's dom from the page</li> +</ol> +<h2 id="showing-hiding-a-player">Showing / Hiding a Player</h2> +<p>For instance, if you have a modal that a player appears in, you should create the player when the modal pops up. When the modal hides, dispose the player. If you try to hide the Flash tech, things will go poorly. Even with other tech, calling <code>dispose()</code> on a player that's not needed will free up resources for the browser.</p> +<h2 id="why-is-this-needed-">Why Is This Needed?</h2> +<p>VideoJS internally tracks all players and their associated data by html id attribute. If you plan to create new players with the same id as previously created players, you'll need to call the player's dispose() method to clear VideoJS's internal state before creating the new player.</p> +<h2 id="signs-you-did-it-wrong">Signs You Did It Wrong</h2> +<pre><code>TypeError: this.el_.vjs_getProperty is not a function +"VIDEOJS:" "Video.js: buffered unavailable on Hls playback technology element." TypeError: this.el_.vjs_getProperty is not a function +Stack trace: +... +</code></pre><p>If you encounter a console error in the browser similar to the above, you've probably forgotten to <code>dispose()</code> a player before removing it from the dom. This would happen when using the <a href="https://github.com/videojs/videojs-contrib-hls">contrib-hls</a> plugin.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/setup.html b/javascript/videojs/docs/legacy-docs/guides/setup.html new file mode 100644 index 0000000..9e29e7e --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/setup.html @@ -0,0 +1,107 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-setup.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-setup.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="setup">Setup</h1> +<p>Video.js is pretty easy to set up. It can take a matter of seconds to get the player up and working on your web page.</p> +<h2 id="step-1-include-the-video-js-javascript-and-css-files-in-the-head-of-your-page-">Step 1: Include the Video.js Javascript and CSS files in the head of your page.</h2> +<p>You can download the Video.js source and host it on your own servers, or use the free CDN hosted version. As of Video.js 5.0, the source is <a href="http://babeljs.io/">transpiled from ES2015</a> (formerly known as ES6) to <a href="https://es5.github.io/">ES5</a>, but IE8 only supports ES3. In order to continue to support IE8, we've bundled an <a href="https://github.com/es-shims/es5-shim">ES5 shim and sham</a> together and hosted it on the CDN.</p> +<pre><code class="lang-html"><script src="//vjs.zencdn.net/ie8/1.1.1/videojs-ie8.min.js"></script> +</code></pre> +<h3 id="cdn-version">CDN Version</h3> +<pre><code class="lang-html"><link href="//vjs.zencdn.net/5.4.6/video-js.min.css" rel="stylesheet"> +<script src="//vjs.zencdn.net/5.4.6/video.min.js"></script> +</code></pre> +<p>Alternatively you can always <a href="http://videojs.com/getting-started/">go here</a> to get the latest URL for videojs CDN.</p> +<p>We include a stripped down Google Analytics pixel that tracks a random percentage (currently 1%) of players loaded from the CDN. This allows us to see (roughly) what browsers are in use in the wild, along with other useful metrics such as OS and device. If you'd like to disable analytics, you can simply include the following global <strong>before</strong> including Video.js:</p> +<pre><code class="lang-js">window.HELP_IMPROVE_VIDEOJS = false; +</code></pre> +<h2 id="install-via-package-manager">Install via package manager</h2> +<h3 id="npm">NPM</h3> +<pre><code>$ npm install --save video.js +</code></pre><h3 id="bower">Bower</h3> +<pre><code>$ bower install --save video.js +</code></pre><h3 id="self-hosted-">Self Hosted.</h3> +<p>To entirely self-host, you'll need to pull in the font files and let Video.js know where the swf is located. If you simply copy the dist folder or zip file contents into your project everything +should Just Work™, but the paths can easily be changed by editing the LESS file and re-building, or by modifying the generated CSS file. Additionally include the <a href="https://www.npmjs.com/package/videojs-vtt.js">videojs-vtt.js</a> source, which adds the <code>WebVTT</code> object to the global scope.</p> +<pre><code class="lang-html"><link href="//example.com/path/to/video-js.min.css" rel="stylesheet"> +<script src="//example.com/path/to/videojs-vtt.js"></script> +<script src="//example.com/path/to/video.min.js"></script> +<script> + videojs.options.flash.swf = "http://example.com/path/to/video-js.swf" +</script> +</code></pre> +<h2 id="step-2-add-an-html5-video-tag-to-your-page-">Step 2: Add an HTML5 video tag to your page.</h2> +<p>With Video.js you just use an HTML5 video tag to embed a video. Video.js will then read the tag and make it work in all browsers, not just ones that support HTML5 video. Beyond the basic markup, Video.js needs a few extra pieces.</p> +<blockquote> +<p>Note: The <code>data-setup</code> attribute described here should not be used if you use the alternative setup described in the next section.</p> +</blockquote> +<ol> +<li><p>The 'data-setup' Attribute tells Video.js to automatically set up the video when the page is ready, and read any options (in JSON format) from the attribute (see <a href="./options.html">options</a>). There are other methods for initializing the player, but this is the easiest.</p> +</li> +<li><p>The 'id' Attribute: Should be used and unique for every video on the same page.</p> +</li> +<li><p>The 'class' attribute contains two classes:</p> +<ul> +<li><code>video-js</code> applies styles that are required for Video.js functionality, like fullscreen and subtitles.</li> +<li><code>vjs-default-skin</code> applies the default skin to the HTML controls, and can be removed or overridden to create your own controls design.</li> +</ul> +</li> +</ol> +<p>Otherwise include/exclude attributes, settings, sources, and tracks exactly as you would for HTML5 video.*</p> +<pre><code class="lang-html"><video id="example_video_1" class="video-js vjs-default-skin" + controls preload="auto" width="640" height="264" + poster="http://video-js.zencoder.com/oceans-clip.png" + data-setup='{"example_option":true}'> + <source src="http://video-js.zencoder.com/oceans-clip.mp4" type="video/mp4" /> + <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> + <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> + <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> +</video> +</code></pre> +<p>By default, the big play button is located in the upper left hand corner so it doesn't cover up the interesting parts of the poster. If you'd prefer to center the big play button, you can add an additional <code>vjs-big-play-centered</code> class to your video element. For example:</p> +<pre><code class="lang-html"><video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered" + controls preload="auto" width="640" height="264" + poster="http://video-js.zencoder.com/oceans-clip.png" + data-setup='{"example_option":true}'> + ... +</video> +</code></pre> +<h2 id="alternative-setup-for-dynamically-loaded-html">Alternative Setup for Dynamically Loaded HTML</h2> +<p>If your web page or application loads the video tag dynamically (ajax, appendChild, etc.), so that it may not exist when the page loads, you'll want to manually set up the player instead of relying on the data-setup attribute. To do this, first remove the data-setup attribute from the tag so there's no confusion around when the player is initialized. Next, run the following javascript some time after the Video.js javascript library has loaded, and after the video tag has been loaded into the DOM.</p> +<pre><code class="lang-js">videojs("example_video_1", {}, function(){ + // Player (this) is initialized and ready. +}); +</code></pre> +<p>The first argument in the <code>videojs</code> function is the ID of your video tag. Replace it with your own.</p> +<p>The second argument is an options object. It allows you to set additional options like you can with the data-setup attribute.</p> +<p>The third argument is a 'ready' callback. Once Video.js has initialized it will call this function.</p> +<p>Instead of using an element ID, you can also pass a reference to the element itself.</p> +<pre><code class="lang-js">videojs(document.getElementById('example_video_1'), {}, function() { + // This is functionally the same as the previous example. +}); +</code></pre> +<pre><code class="lang-js">videojs(document.getElementsByClassName('awesome_video_class')[0], {}, function() { + // You can grab an element by class if you'd like, just make sure + // if it's an array that you pick one (here we chose the first). +}); +</code></pre> +<p>* If you have trouble playing back content you know is in the <a href="http://blog.zencoder.com/2013/09/13/what-formats-do-i-need-for-html5-video/">correct format</a>, your HTTP server might not be delivering the content with the correct <a href="http://en.wikipedia.org/wiki/Internet_media_type#Type_video">MIME type</a>. Please double check your content's headers before opening an <a href="https://github.com/videojs/video.js/blob/master/CONTRIBUTING.md">issue</a>.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/skins.html b/javascript/videojs/docs/legacy-docs/guides/skins.html new file mode 100644 index 0000000..d6a32d8 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/skins.html @@ -0,0 +1,60 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-skins.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-skins.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="skins">Skins</h1> +<h2 id="base-skin">Base Skin</h2> +<p>The base Video.js skin is made using HTML and CSS (although we use the <a href="http://sass-lang.com">Sass preprocessor</a>), +and by default these styles are added to the DOM for you! +That means you can build a custom skin by simply taking advantage of the cascading aspect of CSS and overriding +the styles you'd like to change.</p> +<p>If you don't want Video.js to inject the base styles for you, you can disable it by setting <code>window.VIDEOJS_NO_BASE_THEME = true</code> before Video.js is loaded. +Keep in mind that without these base styles enabled, you'll need to manually include them.</p> +<p>Video.js does not currently include the base skin automatically yet, so, this option isn't necessary.</p> +<h2 id="default-style-elements">Default style elements</h2> +<p>Video.js uses a couple of style elements dynamically, specifically, there's a default styles element as well as a player dimensions style element. +They are used to provide extra default flexiblity with styling the player. However, in some cases, like if a user has the HEAD tag managed by React, users do not want this. +When <code>window.VIDEOJS_NO_DYNAMIC_STYLE</code> is set to <code>true</code>, video.js will <em>not</em> include these element in the page. +This means that default dimensions and configured player dimensions will <em>not</em> be applied. +For example, the following player will end up having a width and height of 0 when initialized if <code>window.VIDEOJS_NO_DYNAMIC_STYLE === true</code>:</p> +<pre><code class="lang-html"><video width="600" height="300"></video> +</code></pre> +<h3 id="-player-width-and-player-height-"><code>Player#width</code> and <code>Player#height</code></h3> +<p>When <code>VIDEOJS_NO_DYNAMIC_STYLE</code> is set, <code>Player#width</code> and <code>Player#height</code> will apply any width and height +that is set directly to the video element (or whatever element the current tech uses).</p> +<h2 id="icons">Icons</h2> +<p>You can view all of the icons available in the base theme by renaming and viewing +<a href="https://github.com/videojs/video.js/blob/master/sandbox/icons.html.example"><code>icons.html.example</code></a> in the sandbox directory.</p> +<h2 id="customization">Customization</h2> +<p>When you create a new skin, the easiest way to get started is to simply override the base Video.js theme. +You should include a new class matching the name of your theme, then just start overriding!</p> +<pre><code class="lang-css">.vjs-skin-hotdog-stand { color: #FF0000; } +.vjs-skin-hotdog-stand .vjs-control-bar { background: #FFFF00; } +.vjs-skin-hotdog-stand .vjs-play-progress { background: #FF0000; } +</code></pre> +<p>This would take care of the major areas of the skin (play progress, the control bar background, and icon colors), +but you can skin any other aspect. +Our suggestion is to use a browser such as Firefox and Chrome, +and use the developer tools to inspect the different elements and see what you'd like to change and what classes +to target when you do so.</p> +<p>More custom skins will be available for download soon. +If you have one you like you can share it by forking <a href="http://codepen.io/heff/pen/EarCt">this example on CodePen.io</a>, +and adding a link on the <a href="https://github.com/videojs/video.js/wiki/Skins">Skins wiki page</a>.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/tech.html b/javascript/videojs/docs/legacy-docs/guides/tech.html new file mode 100644 index 0000000..3a95040 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/tech.html @@ -0,0 +1,92 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-tech.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-tech.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="playback-technology-tech-">Playback Technology ("Tech")</h1> +<p>Playback Technology refers to the specific browser or plugin technology used to play the video or audio. When using HTML5, the playback technology is the video or audio element. When using Flash, the playback technology is the specific Flash player used, e.g. Flowplayer, YouTube Player, video-js.swf, etc. (not just "Flash"). This could also include Silverlight, Quicktime, or any other plugin that will play back video in the browser, as long as there is an API wrapper written for it.</p> +<p>Essentially we're using HTML5 and plugins only as video decoders, and using HTML and JavaScript to create a consistent API and skinning experience across all of them.</p> +<h2 id="building-an-api-wrapper">Building an API Wrapper</h2> +<p>We'll write a more complete guide on writing a wrapper soon, but for now the best resource is the <a href="https://github.com/zencoder/video-js/tree/master/src">Video.js</a> source where you can see how both the HTML5 and video-js.swf API wrappers were created.</p> +<h2 id="required-methods">Required Methods</h2> +<p>canPlayType +play +pause +currentTime +volume +duration +buffered +supportsFullScreen</p> +<h2 id="required-events">Required Events</h2> +<p>loadstart +play +pause +playing +ended +volumechange +durationchange +error</p> +<h2 id="optional-events-include-if-supported-">Optional Events (include if supported)</h2> +<p>timeupdate +progress +enterFullScreen +exitFullScreen</p> +<h1 id="adding-playback-technology">Adding Playback Technology</h1> +<p>When adding additional Tech to a video player, make sure to add the supported tech to the video object.</p> +<h3 id="tag-method-">Tag Method:</h3> +<pre><code><video data-setup='{"techOrder": ["html5", "flash", "other supported tech"]}' +</code></pre><h3 id="object-method-">Object Method:</h3> +<pre><code>videojs("videoID", { + techOrder: ["html5", "flash", "other supported tech"] +}); +</code></pre><h1 id="technology-ordering">Technology Ordering</h1> +<p>By default Video.js performs "Tech-first" ordering when it searches for a source/tech combination to play videos. This means that if you have two sources and two techs, video.js will try to play each video with the first tech in the <code>techOrder</code> option property before moving on to try the next playback technology.</p> +<p>Tech-first ordering can present a problem if you have a <code>sourceHandler</code> that supports both <code>Html5</code> and <code>Flash</code> techs such as videojs-contrib-hls.</p> +<p>For example, given the following video element:</p> + <video data-setup='{"techOrder": ["html5", "flash"]}'> + <source src="http://your.static.provider.net/path/to/video.m3u8" type="application/x-mpegURL"> + <source src="http://your.static.provider.net/path/to/video.mp4" type="video/mp4"> + </video> + +<p>There is a good chance that the mp4 source will be selected on platforms that do not have media source extensions. Video.js will try all sources against the first playback technology, in this case <code>Html5</code>, and select the first source that can play - in this case MP4.</p> +<p>In "Tech-first" mode, the tests run something like this: + Can video.m3u8 play with Html5? No... + Can video.mp4 play with Html5? Yes! Use the second source.</p> +<p>Video.js now provides another method of selecting the source - "Source-first" ordering. In this mode, Video.js tries the first source against every tech in <code>techOrder</code> before moving onto the next source.</p> +<p>With a player setup as follows:</p> + <video data-setup='{"techOrder": ["html5", "flash"], "sourceOrder": true}'> + <source src="http://your.static.provider.net/path/to/video.m3u8" type="application/x-mpegURL"> + <source src="http://your.static.provider.net/path/to/video.mp4" type="video/mp4"> + </video> + +<p>The Flash-based HLS support will be tried before falling back to the MP4 source.</p> +<p>In "Source-first" mode, the tests run something like this: + Can video.m3u8 play with Html5? No... + Can video.m3u8 play with Flash? Yes! Use the first source.</p> +<h1 id="flash-technology">Flash Technology</h1> +<p>The Flash playback tech is a part of the default <code>techOrder</code>. You may notice undesirable playback behavior in browsers that are subject to using this playback tech, in particular when scrubbing and seeking within a video. This behavior is a result of Flash's progressive video playback.</p> +<h2 id="enabling-streaming-playback">Enabling Streaming Playback</h2> +<p>In order to force the Flash tech to choose streaming playback, you need to provide a valid streaming source <strong>before other valid Flash video sources</strong>. This is necessary because of the source selection algorithm, where playback tech chooses the first possible source object with a valid type. Valid streaming <code>type</code> values include <code>rtmp/mp4</code> and <code>rtmp/flv</code>. The streaming <code>src</code> value requires valid connection and stream strings, separated by an <code>&</code>. An example of supplying a streaming source through your HTML markup might look like:</p> +<pre><code><source src="rtmp://your.streaming.provider.net/cfx/st/&mp4:path/to/video.mp4" type="rtmp/mp4"> +<source src="http://your.static.provider.net/path/to/video.mp4" type="video/mp4"> +<source src="http://your.static.provider.net/path/to/video.webm" type="video/webm"> +</code></pre><p>You may optionally use the last <code>/</code> as the separator between connection and stream strings, for example:</p> +<pre><code><source src="rtmp://your.streaming.provider.net/cfx/st/mp4:video.mp4" type="rtmp/mp4"> +</code></pre><p>All four RTMP protocols are valid in the <code>src</code> (RTMP, RTMPT, RTMPE, and RTMPS).</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/text-tracks.html b/javascript/videojs/docs/legacy-docs/guides/text-tracks.html new file mode 100644 index 0000000..407abf8 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/text-tracks.html @@ -0,0 +1,184 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-text-tracks.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-text-tracks.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="text-tracks">Text Tracks</h1> +<p>Text Tracks are a function of HTML5 video for providing time triggered text to the viewer. Video.js makes tracks work across all browsers. There are currently five types of tracks:</p> +<ul> +<li><strong>Subtitles</strong>: Translations of the dialogue in the video for when audio is available but not understood. Subtitles are shown over the video.</li> +<li><strong>Captions</strong>: Transcription of the dialogue, sound effects, musical cues, and other audio information for when the viewer is deaf/hard of hearing, or the video is muted. Captions are also shown over the video.</li> +<li><strong>Chapters</strong>: Chapter titles that are used to create navigation within the video. Typically they're in the form of a list of chapters that the viewer can click on to go to a specific chapter.</li> +<li><strong>Descriptions</strong>: Text descriptions of what's happening in the video for when the video portion isn't available, because the viewer is blind, not using a screen, or driving and about to crash because they're trying to enjoy a video while driving. Descriptions are read by a screen reader or turned into a separate audio track.</li> +<li><strong>Metadata</strong>: Tracks that have data meant for javascript to parse and do something with. These aren't shown to the user.</li> +</ul> +<h2 id="creating-the-text-file">Creating the Text File</h2> +<p>Timed text requires a text file in <a href="http://dev.w3.org/html5/webvtt/">WebVTT</a> format. This format defines a list of "cues" that have a start time, and end time, and text to display. <a href="https://dev.modern.ie/testdrive/demos/captionmaker/">Microsoft has a builder</a> that can help you get started on the file.</p> +<p>When creating captions, there's also additional [caption formatting techniques] (<a href="http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_FORMAT.HTML#style">http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_FORMAT.HTML#style</a>) that would be good to use, like brackets around sound effects: [ sound effect ]. If you'd like a more in depth style guide for captioning, you can reference the <a href="http://www.dcmp.org/captioningkey/">Captioning Key</a>, but keep in mind not all features are supported by WebVTT or (more likely) the Video.js WebVTT implementation.</p> +<h2 id="adding-to-video-js">Adding to Video.js</h2> +<p>Once you have your WebVTT file created, you can add it to Video.js using the track tag. Put your track tag after all the source elements, and before any fallback content.</p> +<pre><code class="lang-html"><video id="example_video_1" class="video-js" + controls preload="auto" width="640" height="264" + data-setup='{"example_option":true}'> + <source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4" /> + <source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm" /> + <source src="https://vjs.zencdn.net/v/oceans.ogv" type="video/ogg" /> + + <track kind="captions" src="http://example.com/path/to/captions.vtt" srclang="en" label="English" default> + +</video> +</code></pre> +<p>You can also add tracks <a href="#api">programatically</a>.</p> +<h2 id="subtitles-from-another-domain">Subtitles from Another Domain</h2> +<p>Because we're pulling in the text track file via Javascript, the <a href="http://en.wikipedia.org/wiki/Same_origin_policy">same-origin policy</a> applies. If you'd like to have a player served from one domain, +but the text track served from another, you'll need to <a href="http://enable-cors.org/">enable CORS</a> in order to do so. +In addition to enabling CORS on the server serving the text tracks, you will need to add the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes"><code>crossorigin</code> attribute</a> to the video element itself. This attribute has two values <code>anonymous</code> and <code>use-credentials</code>. Most users will want to use <code>anonymous</code> with cross-origin tracks. +It can be added to the video element like so:</p> +<pre><code class="lang-html"><video class="video-js" crossorigin="anonymous"> + <source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4"> + <track src="http://example.com/oceans.vtt" kind="captions" srclang="en" label="English"> +</video> +</code></pre> +<p>One thing to be aware of is that in this case the video files themselves will <em>also</em> needs CORS headers applied to it. This is because some browsers apply the crossorigin attribute to the video source itself and not just the tracks and is considered a <a href="https://html.spec.whatwg.org/multipage/embedded-content.html#security-and-privacy-considerations">security concern by the spec</a>.</p> +<h2 id="track-attributes">Track Attributes</h2> +<p>Additional settings for track tags.</p> +<h3 id="kind">kind</h3> +<p>One of the five track types listed above. Kind defaults to subtitles if no kind is included.</p> +<h3 id="label">label</h3> +<p>The label for the track that will be show to the user, for example in a menu that list the different languages available for subtitles.</p> +<h3 id="default">default</h3> +<p>The default attribute can be used to have a track default to showing. Otherwise the viewer would need to select their language from the captions or subtitles menu. +NOTE: For chapters, default is required if you want the chapters menu to show.</p> +<h3 id="srclang">srclang</h3> +<p>The two-letter code (valid BCP 47 language tag) for the language of the text track, for example "en" for English. A list of language codes is <a href="languages.md#language-codes">available here</a>.</p> +<h2 id="interacting-with-text-tracks">Interacting with Text Tracks</h2> +<h3 id="showing-tracks-programmatically">Showing tracks programmatically</h3> +<p>Some of you would want to turn captions on and off programmatically rather than just forcing the user to do so themselves. This can be easily achieved by modifying the <code>mode</code> of the text tracks. +The <code>mode</code> can be one of three values <code>disabled</code>, <code>hidden</code>, and <code>showing</code>. +When a text track's <code>mode</code> is <code>disabled</code>, the track does not show on screen as the video is playing. +When the <code>mode</code> is set to <code>showing</code>, the track is visible to the viewer and updates while the video is playing. +You can change of a particular track like so:</p> +<pre><code class="lang-js">let tracks = player.textTracks(); + +for (let i = 0; i < tracks.length; i++) { + let track = tracks[i]; + + // find the captions track that's in english + if (track.kind === 'captions' && track.language === 'en') { + track.mode = 'showing'; + } +} +</code></pre> +<h3 id="doing-something-when-a-cue-becomes-active">Doing something when a cue becomes active</h3> +<p>Above, we mentioned that <code>mode</code> can also be <code>hidden</code>, what this means is that the track will update +as the video is playing but it won't be visible to the viewer. This is most useful for <code>metadata</code> text tracks. +One usecase for metadata text tracks is to have something happen when their cues become active, to do so, you listen to the <code>cuechange</code> event on the track. These events fire when the mode is <code>showing</code> as well. +Here's an example:</p> +<pre><code class="lang-js">let tracks = player.textTracks(); +let metadataTrack; + +for (let i = 0; i < tracks.length; i++) { + let track = tracks[i]; + + // find the metadata track that's labeled ads + if (track.kind === 'captions' && track.label === 'ads') { + track.mode = 'hidden'; + // store it for usage outside of the loop + metadataTrack = track; + } +} + +metadataTrack.addEventListener('cuechange', function() { + player.ads.startLinearAdMode(); +}); +</code></pre> +<h2 id="emulated-text-tracks">Emulated Text Tracks</h2> +<p>By default, video.js will try and use native text tracks if possible and fall back to emulated text tracks if the native functionality is broken or incomplete or non-existent. +The Flash tech will always use the emulated text track functionality. +The video.js API and TextTrack objects were modeled after the w3c's specification. +video.js uses <a href="https://github.com/mozilla/vtt.js">Mozilla's vtt.js</a> library to parse and display its emulated text tracks.</p> +<p>If you wanted to disable native text track functionality and force video.js to use emulated text tracks always, you can supply the <code>nativeTextTracks</code> option to the tech like so:</p> +<pre><code class="lang-js">let player = videojs('myvideo', { + html5: { + nativeTextTracks: false + } +}); +</code></pre> +<h3 id="text-track-settings">Text Track Settings</h3> +<p>When using emulated Text Tracks, captions will have an additional item in the menu called "caption settings". +This allows the viewer of the player to change some styles of how the captions are displayed on screen.</p> +<p>If you don't want that, you can disable it by turning off the text track settings component and hiding the menu item like so:</p> +<pre><code class="lang-js">let player = videojs('myvideo', { + // make the text track settings dialog not initialize + textTrackSettings: false +}); +</code></pre> +<pre><code class="lang-css">/* hide the captions settings item from the captions menu */ +.vjs-texttrack-settings { + display: none; +} +</code></pre> +<h2 id="text-track-precedence">Text Track Precedence</h2> +<p>In general, the Descriptions tracks is of lower precedence than captions and subtitles. +What this means for you?</p> +<ul> +<li>If you are using the <code>default</code> attribute, videojs will choose the first track that is marked as <code>default</code> and turn it on. If There are multiple tracks marked <code>default</code>, it will try and turn on the first <code>captions</code> or <code>subtitles</code> track <em>before</em> any <code>descriptions</code> tracks.<ul> +<li>This only applied to the emulated captions support, native text tracks behavior will change depending on the browser</li> +</ul> +</li> +<li>If you select a given track from the menu, videojs will turn off all the other tracks of the same kind. This may seem like you can have both subtitles and captions turned on at the same time but unfortuantely, at this time we only support one track being displayed at a time.<ul> +<li>This means that for emulated text tracks, we'll choose the first captions or subtitles track that is enabled to display.</li> +<li>When native text tracks are supported, we will still disable the other tracks of the same kind but it is possible that multiple text tracks are shown.</li> +<li>If a <code>descriptions</code> track is selected and subsequently a <code>subtitles</code> or <code>captions</code> track is selected, the <code>descriptions</code> track is disabled and its menu button is also disabled.</li> +</ul> +</li> +<li>When enabling a track programmatically, there's not much checking that videojs does.<ul> +<li>For emulated text tracks, when it's time to display the captions, video.js would choose the first track that's showing, again choosing <code>subtitles</code> or <code>captions</code> over <code>descriptions</code>, if necessary.</li> +<li>For native text tracks, this behavior depends on the browser. Some browsers will let you have multiple text tracks but others will disable all other tracks when a new one is selected.</li> +</ul> +</li> +</ul> +<h2 id="api">API</h2> +<h3 id="-player-texttracks-texttracklist-"><code>player.textTracks() -> TextTrackList</code></h3> +<p>This is the main interface into the text tracks of the player. +It return a TextTrackList which lists all the tracks on the player.</p> +<h3 id="-player-remotetexttracks-texttracklist-"><code>player.remoteTextTracks() -> TextTrackList</code></h3> +<p>This is a helper method to get a list of all the tracks that were created from <code>track</code> elements or that were added to the player by the <code>addRemoteTextTrack</code> method. All these tracks are removeable from the player, where-as not all tracks from <code>player.textTracks()</code> are necessarily removeable.</p> +<h3 id="-player-remotetexttrackels-htmltrackelementlist-"><code>player.remoteTextTrackEls() -> HTMLTrackElementList</code></h3> +<p>Another helper method, this is a list of all the <code>track</code> elements associated with the player. Both emulated or otherwise.</p> +<h3 id="-player-addtexttrack-string-kind-string-label-string-language-texttrack-"><code>player.addTextTrack(String kind, [String label [, String language]]) -> TextTrack</code></h3> +<p>This is based on the <a href="http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack">w3c spec API</a> and when given a kind and an optional label and language, will create a new text track for you to use. +This method is intended for purely programmatic usage of tracks and has one important limitation: +tracks created using this method <em>cannot</em> be removed. The native <code>addTextTrack</code> does not have a corresponding <code>removeTextTrack</code>, so, we actually discourage the usage of this method.</p> +<h3 id="-player-addremotetexttrack-object-options-htmltrackelement-"><code>player.addRemoteTextTrack(Object options) -> HTMLTrackElement</code></h3> +<p>This function takes an options object that looks pretty similar to the track element and returns a HTMLTrackElement. +This object has a <code>track</code> property on it which is the actual TextTrack object. +This <code>TextTrack</code> object is equivalent to the one that can be returned from <code>player.addTextTrack</code> with the added bonus that it can be removed from the player. +Internally, video.js will either add a <code><track></code> element for you, or emulate that depending on whether native text tracks are supported or not. +The options available are:</p> +<ul> +<li><code>kind</code></li> +<li><code>label</code></li> +<li><code>language</code> (also <code>srclang</code>)</li> +<li><code>id</code></li> +<li><code>src</code></li> +</ul> +<h3 id="-player-removeremotetexttrack-htmltrackelement-texttrack-"><code>player.removeRemoteTextTrack(HTMLTrackElement|TextTrack)</code></h3> +<p>This function takes either an HTMLTrackElement or a TextTrack object and removes it from the player.</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/tracks.html b/javascript/videojs/docs/legacy-docs/guides/tracks.html new file mode 100644 index 0000000..3ef0a8c --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/tracks.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-tracks.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-tracks.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="tracks">Tracks</h1> +<p>There are currently three types of tracks</p> +<ul> +<li><a href="./audio-tracks.html">AudioTracks</a> - allows the selection of alternative AudioTracks for a video</li> +<li><a href="./video-tracks.html">VideoTracks</a> - allows the selection of an alternative VideoTrack for a video</li> +<li><a href="./text-tracks.html">TextTracks</a> - Text Tracks are used to display subtitles and captions, and add a menu for navigating between chapters in a video.</li> +</ul> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/guides/video-tracks.html b/javascript/videojs/docs/legacy-docs/guides/video-tracks.html new file mode 100644 index 0000000..ab5ba1c --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/guides/video-tracks.html @@ -0,0 +1,80 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="../css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/solarized_light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<link rel="canonical" href="https://docs.videojs.com/tutorial-video-tracks.html"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/tutorial-video-tracks.html">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div id="main" class="main"> +<h1 id="video-tracks">Video Tracks</h1> +<p>Video Tracks are a function of HTML5 video for providing a selection of alternative video tracks to the user, so that they can change type of video they want to watch. Video.js makes video tracks work across all browsers. There are currently six types of tracks:</p> +<ul> +<li><strong>Alternative</strong>: an alternative video representation of the main video track</li> +<li><strong>Captions</strong>: The main video track with burned in captions</li> +<li><strong>Main</strong>: the main video track</li> +<li><strong>Sign</strong>: the main video track with added sign language overlay</li> +<li><strong>Subtitles</strong>: the main video track with burned in subtitles</li> +<li><strong>Commentary</strong>: the main video track with burned in commentary</li> +</ul> +<h2 id="missing-funtionality">Missing Funtionality</h2> +<ul> +<li>It is currently impossible to add VideoTracks in a non-programtic way</li> +<li>Literal switching of VideoTracks for playback is not handled by video.js and must be handled by something else. video.js only stores the track representation</li> +<li>There is currently no UI implementation of VideoTracks</li> +</ul> +<h2 id="adding-to-video-js">Adding to Video.js</h2> +<blockquote> +<p>Right now adding video tracks in the HTML is unsupported. Video Tracks must be added programatically.</p> +</blockquote> +<p>You must add video tracks <a href="#api">programatically</a> for the time being.</p> +<h2 id="attributes">Attributes</h2> +<p>Video Track propertites and settings</p> +<h3 id="kind">kind</h3> +<p>One of the five track types listed above. Kind defaults to empty string if no kind is included, or an invalid kind is used.</p> +<h3 id="label">label</h3> +<p>The label for the track that will be show to the user, for example in a menu that list the different languages available for video tracks.</p> +<h3 id="language">language</h3> +<p>The two-letter code (valid BCP 47 language tag) for the language of the video track, for example "en" for English. A list of language codes is <a href="languages.md#language-codes">available here</a>.</p> +<h3 id="selected">selected</h3> +<p>If this track should be playing or not. Trying to select more than one track will cause other tracks to be deselected.</p> +<h2 id="interacting-with-video-tracks">Interacting with Video Tracks</h2> +<h3 id="doing-something-when-a-track-becomes-enabled">Doing something when a track becomes enabled</h3> +<p>When a new track is enabled (other than the main track) an event is fired on the <code>VideoTrackList</code> called <code>change</code> you can listen to that event and do something with it. +Here's an example:</p> +<pre><code class="lang-js">// get the current players VideoTrackList object +let tracks = player.videoTracks(); + +// listen to the change event +tracks.addEventListener('change', function() { + // get the currently selected track + let index = tracks.selectedIndex; + let track = tracks[index]; + + // print the currently selected track + console.log(track.label); +}); +</code></pre> +<h2 id="api">API</h2> +<h3 id="-player-videotracks-videotracklist-"><code>player.videoTracks() -> VideoTrackList</code></h3> +<p>This is the main interface into the video tracks of the player. +It returns an VideoTrackList which is an array like object that contains all the <code>VideoTrack</code> on the player.</p> +<h3 id="-player-videotracks-addtrack-videotrack-"><code>player.videoTracks().addTrack(VideoTrack)</code></h3> +<p>Add an existing VideoTrack to the players internal list of VideoTracks.</p> +<h3 id="-player-videotracks-removetrack-videotrack-"><code>player.videoTracks().removeTrack(VideoTrack)</code></h3> +<p>Remove a track from the VideoTrackList currently on the player. if no track exists this will do nothing.</p> +<h3 id="-player-videotracks-selectedindex-"><code>player.videoTracks().selectedIndex</code></h3> +<p>The current index for the selected track</p> + +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> +<script src="../js/guides.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</body> + +</html> diff --git a/javascript/videojs/docs/legacy-docs/images/logo.png b/javascript/videojs/docs/legacy-docs/images/logo.png Binary files differnew file mode 100644 index 0000000..5e7215d --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/images/logo.png diff --git a/javascript/videojs/docs/legacy-docs/index.html b/javascript/videojs/docs/legacy-docs/index.html new file mode 100644 index 0000000..1395c3b --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/index.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title></title> +<link rel="stylesheet" type="text/css" href="./css/guides.css"> +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,600,600italic' rel='stylesheet' type='text/css'><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/atelier-forest.light.min.css" /> +<script type="text/javascript" src="//use.edgefonts.net/source-code-pro.js"></script> +<style> + div { + display: inline-block; + border: none; + margin: 2em; + vertical-align: top; + } +</style> +<link rel="canonical" href="https://docs.videojs.com/"> +</head> +<body> +<p class="legacydocsnote">This documentation is for an outdated version of Video.js. See <a href="https://docs.videojs.com/">documentation for the current release</a>. + +<div id="sidenav" class="sidenav"></div> +<div class="main"> + <h1 id="toc_0">Videojs Documentation</h1> + <div class="guides"> + <h2>Guides</h2> + <p><a href="./guides/setup.html">Setup</a></p> + <p><a href="./guides/options.html">Options</a></p> + <p><a href="./guides/tracks.html">Tracks</a></p> + <p><a href="./guides/components.html">Components</a></p> + <p><a href="./guides/api.html">API</a></p> + <p><a href="./guides/skins.html">Skins</a></p> + <p><a href="./guides/languages.html">Languages</a></p> + <p><a href="./guides/tech.html">Tech</a></p> + <p><a href="./guides/plugins.html">Plugins</a></p> + <p><a href="./guides/glossary.html">Glossary</a></p> + </div> + <div class="samples"> + <h2>Samples</h2> + <p><a href="./examples/simple-embed.html">Simple Embed</a></p> + <p><a href="./examples/shared.html">Shared</a></p> + </div> + <div class="api"> + <h2>API Reference</h2> + <p><a href="./api/index.html">Videojs API</a></p> + </div> + + +</body> + +</html>
\ No newline at end of file diff --git a/javascript/videojs/docs/legacy-docs/js/guides.js b/javascript/videojs/docs/legacy-docs/js/guides.js new file mode 100644 index 0000000..f940512 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/js/guides.js @@ -0,0 +1,122 @@ +var BCLS = ( function () { + var heading = document.getElementsByTagName('h1')[0], + title = document.getElementsByTagName('title')[0], + sections = document.getElementsByTagName('h2'), + links = document.getElementsByTagName('a'), + sidenav = document.getElementById('sidenav'), + navList, + navA, + navItem, + navText, + i, + iMax, + item; + + /** + * tests for all the ways a variable might be undefined or not have a value + * @param {*} x the variable to test + * @return {Boolean} true if variable is defined and has a value + */ + function isDefined (x){ + if ( x === "" || x === null || x === undefined || x === NaN) { + return false; + } + return true; + } + + function buildSideNav() { + if (isDefined(sections)) { + var homeHead = document.createElement('p'), + homeLink = document.createElement('a'); + homeLink.setAttribute('href', '../../index.html'); + homeLink.setAttribute('style', 'font-size:1.4em;font-weight:bold;text-align:right;margin:0;padding-left:1em'); + homeLink.textContent = 'Docs Index'; + homeHead.appendChild(homeLink); + navList = document.createElement('ul'); + navList.setAttribute('class', 'sidenav-list'); + navItem = document.createElement('li'); + navA = document.createElement('a'); + navA.setAttribute('href', '#toc0'); + navText = document.createTextNode('Top'); + navA.appendChild(navText); + navItem.appendChild(navA); + navList.appendChild(navItem); + iMax = sections.length; + for (i = 0; i < iMax; i++) { + item = sections[i]; + navItem = document.createElement('li'); + navA = document.createElement('a'); + navA.setAttribute('href', '#' + item.id ); + navText = document.createTextNode(item.textContent); + navA.appendChild(navText); + navItem.appendChild(navA); + navList.appendChild(navItem); + } + sidenav.appendChild(homeHead); + sidenav.appendChild(navList); + } + } + + /** + * fix link paths to point to html instead of md + */ + function fixLinks() { + var i, + iMax = links.length, + link, + url; + for (i = 0; i < iMax; i += 1) { + link = links[i]; + url = link.getAttribute('href'); + if (isDefined(url)) { + // if CONTRIBUTING.md, don't change + if (url.indexOf('CONTRIBUTING.md' === -1)) { + url.replace('.md', '.html'); + link.setAttribute('href', url); + } + } + } + } + + /** + * set the doc title + */ + function setTitle() { + title.textContent = 'Videojs ' + heading.textContent; + } + + /** + * add the page footer + */ + function addFooter() { + var path = document.location.pathname, + footer = document.createElement('div'), + srcLink = document.createElement('a'), + srcLink2 = document.createElement('a'), + main = document.getElementById('main'), + srcPath, + srcPath2; + // extract file name + if (path.indexOf('#') > 0) { + path = path.substring(0, path.indexOf('#')); + } + path = path.substring(path.lastIndexOf('/') + 1); + srcPath = 'https://github.com/videojs/video.js/blob/master/docs/guides/' + path; + srcPath2 = 'https://github.com/videojs/docs'; + footer.setAttribute('class', 'footer'); + srcLink.setAttribute('href', srcPath); + srcLink.appendChild(document.createTextNode('content source')); + srcLink2.setAttribute('href', srcPath2); + srcLink2.appendChild(document.createTextNode('doc generator')); + footer.innerHTML = 'Want to contribute? Go to the '; + footer.appendChild(srcLink); + footer.innerHTML += ' or the '; + footer.appendChild(srcLink2); + main.appendChild(footer); + } + + setTitle(); + buildSideNav(); + fixLinks(); + addFooter(); +})(); diff --git a/javascript/videojs/docs/legacy-docs/js/home.js b/javascript/videojs/docs/legacy-docs/js/home.js new file mode 100644 index 0000000..da8c4c2 --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/js/home.js @@ -0,0 +1,50 @@ +(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ +'use strict'; + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var _globalWindow = require('global/window'); + +var _globalWindow2 = _interopRequireDefault(_globalWindow); + +var $ = _globalWindow2['default'].jQuery; + +// var player, overlay, templateEl, $overlay; + +// player = videojs('preview-player'); + +// overlay = document.createElement('div'); +// overlay.className = 'videojs-hero-overlay transparent'; +// templateEl = document.querySelector('#overlay-template'); +// overlay.innerHTML = templateEl.innerHTML; +// player.el().appendChild(overlay); + +// $overlay = $(overlay); + +// setTimeout(function () { +// $overlay.removeClass('transparent'); +// }, 250); + +// player.on('play', function () { +// $overlay.addClass('transparent'); +// }); + +// player.on('pause', function () { +// $overlay.removeClass('transparent'); +// }); + +},{"global/window":2}],2:[function(require,module,exports){ +(function (global){ +if (typeof window !== "undefined") { + module.exports = window; +} else if (typeof global !== "undefined") { + module.exports = global; +} else if (typeof self !== "undefined"){ + module.exports = self; +} else { + module.exports = {}; +} + +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}]},{},[1]); + diff --git a/javascript/videojs/docs/legacy-docs/js/index.js b/javascript/videojs/docs/legacy-docs/js/index.js new file mode 100644 index 0000000..dfe342f --- /dev/null +++ b/javascript/videojs/docs/legacy-docs/js/index.js @@ -0,0 +1,22674 @@ +(function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var a = typeof require == "function" && require; + if (!u && a) + return a(o, !0); + if (i) + return i(o, !0); + var f = new Error("Cannot find module '" + o + "'"); + throw f.code = "MODULE_NOT_FOUND", f + } + var l = n[o] = { + exports: {} + }; + t[o][0].call(l.exports, function(e) { + var n = t[o][1][e]; + return s(n ? n : e) + }, l, l.exports, e, t, n, r) + } + return n[o].exports + } + var i = typeof require == "function" && require; + for (var o = 0; o < r.length; o++) + s(r[o]); + return s +})({ + 1: [function(require, module, exports) { + 'use strict'; + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + 'default': obj + }; + } + + var _globalWindow = require('global/window'); + + var _globalWindow2 = _interopRequireDefault(_globalWindow); + + var _highlightJs = require('highlight.js'); + + var _highlightJs2 = _interopRequireDefault(_highlightJs); + + var _libVjsVersionJs = require('./lib/vjs-version.js'); + + // Start highlighting + + var $ = _globalWindow2['default'].jQuery; + + _highlightJs2['default'].initHighlightingOnLoad(); + + // Get the package information for doing things like swapping out version numbers + (0, _libVjsVersionJs.getPackage)(function (e, pkg) { + if (e) + return console.error(e); + + $('.vjs-version').text(pkg.version); + $('.ie8-version').text(pkg.dependencies['videojs-ie8']); + }); + + // Bootstrap component initialization + $(function () { + $('.affixed-sidebar').affix({ + offset: { + top: function top() { + return $('section.overview').outerHeight(true); + } + } + }); + + $('body').scrollspy({ + target: '.affixed-sidebar', + offset: 50 + }); + }); + + }, { + "./lib/vjs-version.js": 2, + "global/window": 3, + "highlight.js": 39 + } + ], + 2: [function(require, module, exports) { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true + }); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + 'default': obj + }; + } + + var _http = require('http'); + + var _http2 = _interopRequireDefault(_http); + + var pkgUrl = { + host: 'rawgit.com', + path: '/videojs/video.js/master/package.json' + }; + + function getPackage(cb) { + _http2['default'].get({ + host: pkgUrl.host, + path: pkgUrl.path, + withCredentials: false + }, function (res) { + var body = ''; + res.on('data', function (d) { + body += d; + }); + + res.on('end', function (e) { + body = JSON.parse(body); + cb(null, body); + }); + }).on('error', function (e) { + cb(e); + }); + } + + exports.getPackage = getPackage; + + }, { + "http": 10 + } + ], + 3: [function(require, module, exports) { + (function (global) { + if (typeof window !== "undefined") { + module.exports = window; + } else if (typeof global !== "undefined") { + module.exports = global; + } else if (typeof self !== "undefined") { + module.exports = self; + } else { + module.exports = {}; + } + + }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) + }, {} + ], + 4: [function(require, module, exports) { +}, {} + ], + 5: [function(require, module, exports) { + (function (global) { + /*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> + * @license MIT + */ + /* eslint-disable no-proto */ + + var base64 = require('base64-js') + var ieee754 = require('ieee754') + var isArray = require('is-array') + exports.Buffer = Buffer + exports.SlowBuffer = SlowBuffer + exports.INSPECT_MAX_BYTES = 50 + Buffer.poolSize = 8192 // not used by this implementation + + var rootParent = {} + + /** + * If `Buffer.TYPED_ARRAY_SUPPORT`: + * === true Use Uint8Array implementation (fastest) + * === false Use Object implementation (most compatible, even IE6) + * + * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, + * Opera 11.6+, iOS 4.2+. + * + * Due to various browser bugs, sometimes the Object implementation will be used even + * when the browser supports typed arrays. + * + * Note: + * + * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, + * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. + * + * - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property + * on objects. + * + * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. + * + * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of + * incorrect length in some situations. + + * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they + * get the Object implementation, which is slower but behaves correctly. + */ + Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined + ? global.TYPED_ARRAY_SUPPORT + : (function () { + function Bar () {} + try { + var arr = new Uint8Array(1) + arr.foo = function () { + return 42 + } + arr.constructor = Bar + return arr.foo() === 42 && // typed array instances can be augmented + arr.constructor === Bar && // constructor can be set + typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` + arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` + } catch (e) { + return false + } + })() + function kMaxLength () { + return Buffer.TYPED_ARRAY_SUPPORT + ? 0x7fffffff + : 0x3fffffff + } + + /** + * Class: Buffer + * ============= + * + * The Buffer constructor returns instances of `Uint8Array` that are augmented + * with function properties for all the node `Buffer` API functions. We use + * `Uint8Array` so that square bracket notation works as expected -- it returns + * a single octet. + * + * By augmenting the instances, we can avoid modifying the `Uint8Array` + * prototype. + */ + function Buffer (arg) { + if (!(this instanceof Buffer)) { + // Avoid going through an ArgumentsAdaptorTrampoline in the common case. + if (arguments.length > 1) + return new Buffer(arg, arguments[1]) + return new Buffer(arg) + } + + this.length = 0 + this.parent = undefined + // Common case. + if (typeof arg === 'number') { + return fromNumber(this, arg) + } + + // Slightly less common case. + if (typeof arg === 'string') { + return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8') + } + + // Unusual. + return fromObject(this, arg) + } + + function fromNumber (that, length) { + that = allocate(that, length < 0 ? 0 : checked(length) | 0) + if (!Buffer.TYPED_ARRAY_SUPPORT) { + for (var i = 0; i < length; i++) { + that[i] = 0 + } + } + return that + } + + function fromString (that, string, encoding) { + if (typeof encoding !== 'string' || encoding === '') + encoding = 'utf8' + // Assumption: byteLength() return value is always < kMaxLength. + var length = byteLength(string, encoding) | 0 + that = allocate(that, length) + that.write(string, encoding) + return that + } + + function fromObject (that, object) { + if (Buffer.isBuffer(object)) + return fromBuffer(that, object) + if (isArray(object)) + return fromArray(that, object) + if (object == null) { + throw new TypeError('must start with number, buffer, array or string') + } + + if (typeof ArrayBuffer !== 'undefined') { + if (object.buffer instanceof ArrayBuffer) { + return fromTypedArray(that, object) + } + if (object instanceof ArrayBuffer) { + return fromArrayBuffer(that, object) + } + } + + if (object.length) + return fromArrayLike(that, object) + return fromJsonObject(that, object) + } + + function fromBuffer (that, buffer) { + var length = checked(buffer.length) | 0 + that = allocate(that, length) + buffer.copy(that, 0, 0, length) + return that + } + + function fromArray (that, array) { + var length = checked(array.length) | 0 + that = allocate(that, length) + for (var i = 0; i < length; i += 1) { + that[i] = array[i] & 255 + } + return that + } + + // Duplicate of fromArray() to keep fromArray() monomorphic. + function fromTypedArray (that, array) { + var length = checked(array.length) | 0 + that = allocate(that, length) + // Truncating the elements is probably not what people expect from typed + // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior + // of the old Buffer constructor. + for (var i = 0; i < length; i += 1) { + that[i] = array[i] & 255 + } + return that + } + + function fromArrayBuffer (that, array) { + if (Buffer.TYPED_ARRAY_SUPPORT) { + // Return an augmented `Uint8Array` instance, for best performance + array.byteLength + that = Buffer._augment(new Uint8Array(array)) + } else { + // Fallback: Return an object instance of the Buffer class + that = fromTypedArray(that, new Uint8Array(array)) + } + return that + } + + function fromArrayLike (that, array) { + var length = checked(array.length) | 0 + that = allocate(that, length) + for (var i = 0; i < length; i += 1) { + that[i] = array[i] & 255 + } + return that + } + + // Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object. + // Returns a zero-length buffer for inputs that don't conform to the spec. + function fromJsonObject (that, object) { + var array + var length = 0 + if (object.type === 'Buffer' && isArray(object.data)) { + array = object.data + length = checked(array.length) | 0 + } + that = allocate(that, length) + for (var i = 0; i < length; i += 1) { + that[i] = array[i] & 255 + } + return that + } + + if (Buffer.TYPED_ARRAY_SUPPORT) { + Buffer.prototype.__proto__ = Uint8Array.prototype + Buffer.__proto__ = Uint8Array + } + + function allocate (that, length) { + if (Buffer.TYPED_ARRAY_SUPPORT) { + // Return an augmented `Uint8Array` instance, for best performance + that = Buffer._augment(new Uint8Array(length)) + that.__proto__ = Buffer.prototype + } else { + // Fallback: Return an object instance of the Buffer class + that.length = length + that._isBuffer = true + } + + var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1 + if (fromPool) + that.parent = rootParent + return that + } + + function checked (length) { + // Note: cannot use `length < kMaxLength` here because that fails when + // length is NaN (which is otherwise coerced to zero.) + if (length >= kMaxLength()) { + throw new RangeError('Attempt to allocate Buffer larger than maximum ' + + 'size: 0x' + kMaxLength().toString(16) + ' bytes') + } + return length | 0 + } + + function SlowBuffer (subject, encoding) { + if (!(this instanceof SlowBuffer)) + return new SlowBuffer(subject, encoding) + var buf = new Buffer(subject, encoding) + delete buf.parent + return buf + } + + Buffer.isBuffer = function isBuffer (b) { + return !!(b != null && b._isBuffer) + } + + Buffer.compare = function compare (a, b) { + if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { + throw new TypeError('Arguments must be Buffers') + } + + if (a === b) + return 0 + var x = a.length + var y = b.length + var i = 0 + var len = Math.min(x, y) + while (i < len) { + if (a[i] !== b[i]) + break + ++i + } + + if (i !== len) { + x = a[i] + y = b[i] + } + + if (x < y) + return - 1 + if (y < x) + return 1 + return 0 + } + + Buffer.isEncoding = function isEncoding (encoding) { + switch (String(encoding).toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'binary': + case 'base64': + case 'raw': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return true + default: + return false + } + } + + Buffer.concat = function concat (list, length) { + if (!isArray(list)) + throw new TypeError('list argument must be an Array of Buffers.') + if (list.length === 0) { + return new Buffer(0) + } + + var i + if (length === undefined) { + length = 0 + for (i = 0; i < list.length; i++) { + length += list[i].length + } + } + + var buf = new Buffer(length) + var pos = 0 + for (i = 0; i < list.length; i++) { + var item = list[i] + item.copy(buf, pos) + pos += item.length + } + return buf + } + + function byteLength (string, encoding) { + if (typeof string !== 'string') + string = '' + string + var len = string.length + if (len === 0) + return 0 + // Use a for loop to avoid recursion + var loweredCase = false + for (; ;) { + switch (encoding) { + case 'ascii': + case 'binary': + // Deprecated + case 'raw': + case 'raws': + return len + case 'utf8': + case 'utf-8': + return utf8ToBytes(string).length + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return len * 2 + case 'hex': + return len >>> 1 + case 'base64': + return base64ToBytes(string).length + default: + if (loweredCase) + return utf8ToBytes(string).length // assume utf8 + encoding = ('' + encoding).toLowerCase() + loweredCase = true + } + } + } + Buffer.byteLength = byteLength + // pre-set for values that may exist in the future + Buffer.prototype.length = undefined + Buffer.prototype.parent = undefined + function slowToString (encoding, start, end) { + var loweredCase = false + start = start | 0 + end = end === undefined || end === Infinity ? this.length : end | 0 + if (!encoding) + encoding = 'utf8' + if (start < 0) + start = 0 + if (end > this.length) + end = this.length + if (end <= start) + return '' + while (true) { + switch (encoding) { + case 'hex': + return hexSlice(this, start, end) + case 'utf8': + case 'utf-8': + return utf8Slice(this, start, end) + case 'ascii': + return asciiSlice(this, start, end) + case 'binary': + return binarySlice(this, start, end) + case 'base64': + return base64Slice(this, start, end) + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return utf16leSlice(this, start, end) + default: + if (loweredCase) + throw new TypeError('Unknown encoding: ' + encoding) + encoding = (encoding + '').toLowerCase() + loweredCase = true + } + } + } + + Buffer.prototype.toString = function toString () { + var length = this.length | 0 + if (length === 0) + return '' + if (arguments.length === 0) + return utf8Slice(this, 0, length) + return slowToString.apply(this, arguments) + } + + Buffer.prototype.equals = function equals (b) { + if (!Buffer.isBuffer(b)) + throw new TypeError('Argument must be a Buffer') + if (this === b) + return true + return Buffer.compare(this, b) === 0 + } + + Buffer.prototype.inspect = function inspect () { + var str = '' + var max = exports.INSPECT_MAX_BYTES + if (this.length > 0) { + str = this.toString('hex', 0, max).match(/.{2}/g).join(' ') + if (this.length > max) + str += ' ... ' + } + return '<Buffer ' + str + '>' + } + + Buffer.prototype.compare = function compare (b) { + if (!Buffer.isBuffer(b)) + throw new TypeError('Argument must be a Buffer') + if (this === b) + return 0 + return Buffer.compare(this, b) + } + + Buffer.prototype.indexOf = function indexOf (val, byteOffset) { + if (byteOffset > 0x7fffffff) + byteOffset = 0x7fffffff + else if (byteOffset < - 0x80000000) + byteOffset = - 0x80000000 + byteOffset >>= 0 + if (this.length === 0) + return - 1 + if (byteOffset >= this.length) + return - 1 + // Negative offsets start from the end of the buffer + if (byteOffset < 0) + byteOffset = Math.max(this.length + byteOffset, 0) + if (typeof val === 'string') { + if (val.length === 0) + return - 1 // special case: looking for empty string always fails + return String.prototype.indexOf.call(this, val, byteOffset) + } + if (Buffer.isBuffer(val)) { + return arrayIndexOf(this, val, byteOffset) + } + if (typeof val === 'number') { + if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') { + return Uint8Array.prototype.indexOf.call(this, val, byteOffset) + } + return arrayIndexOf(this, [ val ], byteOffset) + } + + function arrayIndexOf (arr, val, byteOffset) { + var foundIndex = - 1 + for (var i = 0; byteOffset + i < arr.length; i++) { + if (arr[byteOffset + i] === val[foundIndex === - 1 ? 0 : i - foundIndex]) { + if (foundIndex === - 1) + foundIndex = i + if (i - foundIndex + 1 === val.length) + return byteOffset + foundIndex + } else { + foundIndex = - 1 + } + } + return - 1 + } + + throw new TypeError('val must be string, number or Buffer') + } + + // `get` is deprecated + Buffer.prototype.get = function get (offset) { + console.log('.get() is deprecated. Access using array indexes instead.') + return this.readUInt8(offset) + } + + // `set` is deprecated + Buffer.prototype.set = function set (v, offset) { + console.log('.set() is deprecated. Access using array indexes instead.') + return this.writeUInt8(v, offset) + } + + function hexWrite (buf, string, offset, length) { + offset = Number(offset) || 0 + var remaining = buf.length - offset + if (!length) { + length = remaining + } else { + length = Number(length) + if (length > remaining) { + length = remaining + } + } + + // must be an even number of digits + var strLen = string.length + if (strLen % 2 !== 0) + throw new Error('Invalid hex string') + if (length > strLen / 2) { + length = strLen / 2 + } + for (var i = 0; i < length; i++) { + var parsed = parseInt(string.substr(i * 2, 2), 16) + if (isNaN(parsed)) + throw new Error('Invalid hex string') + buf[offset + i] = parsed + } + return i + } + + function utf8Write (buf, string, offset, length) { + return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) + } + + function asciiWrite (buf, string, offset, length) { + return blitBuffer(asciiToBytes(string), buf, offset, length) + } + + function binaryWrite (buf, string, offset, length) { + return asciiWrite(buf, string, offset, length) + } + + function base64Write (buf, string, offset, length) { + return blitBuffer(base64ToBytes(string), buf, offset, length) + } + + function ucs2Write (buf, string, offset, length) { + return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) + } + + Buffer.prototype.write = function write (string, offset, length, encoding) { + // Buffer#write(string) + if (offset === undefined) { + encoding = 'utf8' + length = this.length + offset = 0 + // Buffer#write(string, encoding) + } else if (length === undefined && typeof offset === 'string') { + encoding = offset + length = this.length + offset = 0 + // Buffer#write(string, offset[, length][, encoding]) + } else if (isFinite(offset)) { + offset = offset | 0 + if (isFinite(length)) { + length = length | 0 + if (encoding === undefined) + encoding = 'utf8' + } else { + encoding = length + length = undefined + } + // legacy write(string, encoding, offset, length) - remove in v0.13 + } else { + var swap = encoding + encoding = offset + offset = length | 0 + length = swap + } + + var remaining = this.length - offset + if (length === undefined || length > remaining) + length = remaining + if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { + throw new RangeError('attempt to write outside buffer bounds') + } + + if (!encoding) + encoding = 'utf8' + var loweredCase = false + for (; ;) { + switch (encoding) { + case 'hex': + return hexWrite(this, string, offset, length) + case 'utf8': + case 'utf-8': + return utf8Write(this, string, offset, length) + case 'ascii': + return asciiWrite(this, string, offset, length) + case 'binary': + return binaryWrite(this, string, offset, length) + case 'base64': + // Warning: maxLength not taken into account in base64Write + return base64Write(this, string, offset, length) + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return ucs2Write(this, string, offset, length) + default: + if (loweredCase) + throw new TypeError('Unknown encoding: ' + encoding) + encoding = ('' + encoding).toLowerCase() + loweredCase = true + } + } + } + + Buffer.prototype.toJSON = function toJSON () { + return { + type: 'Buffer', + data: Array.prototype.slice.call(this._arr || this, 0) + } + } + + function base64Slice (buf, start, end) { + if (start === 0 && end === buf.length) { + return base64.fromByteArray(buf) + } else { + return base64.fromByteArray(buf.slice(start, end)) + } + } + + function utf8Slice (buf, start, end) { + end = Math.min(buf.length, end) + var res = [] + var i = start + while (i < end) { + var firstByte = buf[i] + var codePoint = null + var bytesPerSequence = (firstByte > 0xEF) ? 4 + : (firstByte > 0xDF) ? 3 + : (firstByte > 0xBF) ? 2 + : 1 + if (i + bytesPerSequence <= end) { + var secondByte, thirdByte, fourthByte, tempCodePoint + switch (bytesPerSequence) { + case 1: + if (firstByte < 0x80) { + codePoint = firstByte + } + break + case 2 : + secondByte = buf[i + 1] + if ((secondByte & 0xC0) === 0x80) { + tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) + if (tempCodePoint > 0x7F) { + codePoint = tempCodePoint + } + } + break + case 3 : + secondByte = buf[i + 1] + thirdByte = buf[i + 2] + if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { + tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) + if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { + codePoint = tempCodePoint + } + } + break + case 4 : + secondByte = buf[i + 1] + thirdByte = buf[i + 2] + fourthByte = buf[i + 3] + if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { + tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) + if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { + codePoint = tempCodePoint + } + } + } + } + + if (codePoint === null) { + // we did not generate a valid codePoint so insert a + // replacement char (U+FFFD) and advance only 1 byte + codePoint = 0xFFFD + bytesPerSequence = 1 + } else if (codePoint > 0xFFFF) { + // encode to utf16 (surrogate pair dance) + codePoint -= 0x10000 + res.push(codePoint >>> 10 & 0x3FF | 0xD800) + codePoint = 0xDC00 | codePoint & 0x3FF + } + + res.push(codePoint) + i += bytesPerSequence + } + + return decodeCodePointsArray(res) +} + +// Based on http://stackoverflow.com/a/22747272/680742, the browser with +// the lowest limit is Chrome, with 0x10000 args. +// We go 1 magnitude less, for safety +var MAX_ARGUMENTS_LENGTH = 0x1000 +function decodeCodePointsArray (codePoints) { + var len = codePoints.length + if (len <= MAX_ARGUMENTS_LENGTH) { + return String.fromCharCode.apply(String, codePoints) // avoid extra slice() + } + + // Decode in chunks to avoid "call stack size exceeded". + var res = '' + var i = 0 + while (i < len) { + res += String.fromCharCode.apply( + String, + codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) + ) + } + return res +} + +function asciiSlice (buf, start, end) { + var ret = '' + end = Math.min(buf.length, end) + for (var i = start; i < end; i++) { + ret += String.fromCharCode(buf[i] & 0x7F) + } + return ret +} + +function binarySlice (buf, start, end) { + var ret = '' + end = Math.min(buf.length, end) + for (var i = start; i < end; i++) { + ret += String.fromCharCode(buf[i]) + } + return ret +} + +function hexSlice (buf, start, end) { + var len = buf.length + if (!start || start < 0) + start = 0 + if (!end || end < 0 || end > len) + end = len + var out = '' + for (var i = start; i < end; i++) { + out += toHex(buf[i]) + } + return out +} + +function utf16leSlice (buf, start, end) { + var bytes = buf.slice(start, end) + var res = '' + for (var i = 0; i < bytes.length; i += 2) { + res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256) + } + return res +} + +Buffer.prototype.slice = function slice (start, end) { + var len = this.length + start = ~~start + end = end === undefined ? len : ~~end + if (start < 0) { + start += len + if (start < 0) + start = 0 + } else if (start > len) { + start = len + } + + if (end < 0) { + end += len + if (end < 0) + end = 0 + } else if (end > len) { + end = len + } + + if (end < start) + end = start + var newBuf + if (Buffer.TYPED_ARRAY_SUPPORT) { + newBuf = Buffer._augment(this.subarray(start, end)) + } else { + var sliceLen = end - start + newBuf = new Buffer(sliceLen, undefined) + for (var i = 0; i < sliceLen; i++) { + newBuf[i] = this[i + start] + } + } + + if (newBuf.length) + newBuf.parent = this.parent || this + return newBuf +} + +/* + * Need to make sure that buffer isn't trying to write out of bounds. + */ +function checkOffset (offset, ext, length) { + if ((offset % 1) !== 0 || offset < 0) + throw new RangeError('offset is not uint') + if (offset + ext > length) + throw new RangeError('Trying to access beyond buffer length') +} + +Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) + checkOffset(offset, byteLength, this.length) + var val = this[offset] + var mul = 1 + var i = 0 + while (++i < byteLength && (mul *= 0x100)) { + val += this[offset + i] * mul + } + + return val +} + +Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) { + checkOffset(offset, byteLength, this.length) + } + + var val = this[offset + --byteLength] + var mul = 1 + while (byteLength > 0 && (mul *= 0x100)) { + val += this[offset + --byteLength] * mul + } + + return val +} + +Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 1, this.length) + return this[offset] +} + +Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 2, this.length) + return this[offset] | (this[offset + 1] << 8) +} + +Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 2, this.length) + return (this[offset] << 8) | this[offset + 1] +} + +Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 4, this.length) + return ((this[offset]) | + (this[offset + 1] << 8) | + (this[offset + 2] << 16)) + + (this[offset + 3] * 0x1000000) +} + +Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 4, this.length) + return (this[offset] * 0x1000000) + + ((this[offset + 1] << 16) | + (this[offset + 2] << 8) | + this[offset + 3]) +} + +Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) + checkOffset(offset, byteLength, this.length) + var val = this[offset] + var mul = 1 + var i = 0 + while (++i < byteLength && (mul *= 0x100)) { + val += this[offset + i] * mul + } + mul *= 0x80 + if (val >= mul) + val -= Math.pow(2, 8 * byteLength) + return val +} + +Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) + checkOffset(offset, byteLength, this.length) + var i = byteLength + var mul = 1 + var val = this[offset + --i] + while (i > 0 && (mul *= 0x100)) { + val += this[offset + --i] * mul + } + mul *= 0x80 + if (val >= mul) + val -= Math.pow(2, 8 * byteLength) + return val +} + +Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 1, this.length) + if (!(this[offset] & 0x80)) + return (this[offset]) + return ((0xff - this[offset] + 1) * - 1) +} + +Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 2, this.length) + var val = this[offset] | (this[offset + 1] << 8) + return (val & 0x8000) ? val | 0xFFFF0000 : val +} + +Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 2, this.length) + var val = this[offset + 1] | (this[offset] << 8) + return (val & 0x8000) ? val | 0xFFFF0000 : val +} + +Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 4, this.length) + return (this[offset]) | + (this[offset + 1] << 8) | + (this[offset + 2] << 16) | + (this[offset + 3] << 24) +} + +Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 4, this.length) + return (this[offset] << 24) | + (this[offset + 1] << 16) | + (this[offset + 2] << 8) | + (this[offset + 3]) +} + +Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 4, this.length) + return ieee754.read(this, offset, true, 23, 4) +} + +Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 4, this.length) + return ieee754.read(this, offset, false, 23, 4) +} + +Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 8, this.length) + return ieee754.read(this, offset, true, 52, 8) +} + +Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { + if (!noAssert) + checkOffset(offset, 8, this.length) + return ieee754.read(this, offset, false, 52, 8) +} + +function checkInt (buf, value, offset, ext, max, min) { + if (!Buffer.isBuffer(buf)) + throw new TypeError('buffer must be a Buffer instance') + if (value > max || value < min) + throw new RangeError('value is out of bounds') + if (offset + ext > buf.length) + throw new RangeError('index out of range') +} + +Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { + value = + value + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) + checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0) + var mul = 1 + var i = 0 + this[offset] = value & 0xFF + while (++i < byteLength && (mul *= 0x100)) { + this[offset + i] = (value / mul) & 0xFF + } + + return offset + byteLength +} + +Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { + value = + value + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) + checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0) + var i = byteLength - 1 + var mul = 1 + this[offset + i] = value & 0xFF + while (--i >= 0 && (mul *= 0x100)) { + this[offset + i] = (value / mul) & 0xFF + } + + return offset + byteLength +} + +Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 1, 0xff, 0) + if (!Buffer.TYPED_ARRAY_SUPPORT) + value = Math.floor(value) + this[offset] = value + return offset + 1 +} + +function objectWriteUInt16 (buf, value, offset, littleEndian) { + if (value < 0) + value = 0xffff + value + 1 + for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) { + buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> + (littleEndian ? i : 1 - i) * 8 + } +} + +Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 2, 0xffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = value + this[offset + 1] = (value >>> 8) + } else { + objectWriteUInt16(this, value, offset, true) + } + return offset + 2 +} + +Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 2, 0xffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value >>> 8) + this[offset + 1] = value + } else { + objectWriteUInt16(this, value, offset, false) + } + return offset + 2 +} + +function objectWriteUInt32 (buf, value, offset, littleEndian) { + if (value < 0) + value = 0xffffffff + value + 1 + for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) { + buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff + } +} + +Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 4, 0xffffffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset + 3] = (value >>> 24) + this[offset + 2] = (value >>> 16) + this[offset + 1] = (value >>> 8) + this[offset] = value + } else { + objectWriteUInt32(this, value, offset, true) + } + return offset + 4 +} + +Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 4, 0xffffffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value >>> 24) + this[offset + 1] = (value >>> 16) + this[offset + 2] = (value >>> 8) + this[offset + 3] = value + } else { + objectWriteUInt32(this, value, offset, false) + } + return offset + 4 +} + +Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) { + var limit = Math.pow(2, 8 * byteLength - 1) + checkInt(this, value, offset, byteLength, limit - 1, - limit) + } + + var i = 0 + var mul = 1 + var sub = value < 0 ? 1 : 0 + this[offset] = value & 0xFF + while (++i < byteLength && (mul *= 0x100)) { + this[offset + i] = ((value / mul) >> 0) - sub & 0xFF + } + + return offset + byteLength +} + +Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) { + var limit = Math.pow(2, 8 * byteLength - 1) + checkInt(this, value, offset, byteLength, limit - 1, - limit) + } + + var i = byteLength - 1 + var mul = 1 + var sub = value < 0 ? 1 : 0 + this[offset + i] = value & 0xFF + while (--i >= 0 && (mul *= 0x100)) { + this[offset + i] = ((value / mul) >> 0) - sub & 0xFF + } + + return offset + byteLength +} + +Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 1, 0x7f, - 0x80) + if (!Buffer.TYPED_ARRAY_SUPPORT) + value = Math.floor(value) + if (value < 0) + value = 0xff + value + 1 + this[offset] = value + return offset + 1 +} + +Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 2, 0x7fff, - 0x8000) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = value + this[offset + 1] = (value >>> 8) + } else { + objectWriteUInt16(this, value, offset, true) + } + return offset + 2 +} + +Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 2, 0x7fff, - 0x8000) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value >>> 8) + this[offset + 1] = value + } else { + objectWriteUInt16(this, value, offset, false) + } + return offset + 2 +} + +Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 4, 0x7fffffff, - 0x80000000) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = value + this[offset + 1] = (value >>> 8) + this[offset + 2] = (value >>> 16) + this[offset + 3] = (value >>> 24) + } else { + objectWriteUInt32(this, value, offset, true) + } + return offset + 4 +} + +Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { + value = + value + offset = offset | 0 + if (!noAssert) + checkInt(this, value, offset, 4, 0x7fffffff, - 0x80000000) + if (value < 0) + value = 0xffffffff + value + 1 + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value >>> 24) + this[offset + 1] = (value >>> 16) + this[offset + 2] = (value >>> 8) + this[offset + 3] = value + } else { + objectWriteUInt32(this, value, offset, false) + } + return offset + 4 +} + +function checkIEEE754 (buf, value, offset, ext, max, min) { + if (value > max || value < min) + throw new RangeError('value is out of bounds') + if (offset + ext > buf.length) + throw new RangeError('index out of range') + if (offset < 0) + throw new RangeError('index out of range') +} + +function writeFloat (buf, value, offset, littleEndian, noAssert) { + if (!noAssert) { + checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, - 3.4028234663852886e+38) + } + ieee754.write(buf, value, offset, littleEndian, 23, 4) + return offset + 4 +} + +Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { + return writeFloat(this, value, offset, true, noAssert) +} + +Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { + return writeFloat(this, value, offset, false, noAssert) +} + +function writeDouble (buf, value, offset, littleEndian, noAssert) { + if (!noAssert) { + checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, - 1.7976931348623157E+308) + } + ieee754.write(buf, value, offset, littleEndian, 52, 8) + return offset + 8 +} + +Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { + return writeDouble(this, value, offset, true, noAssert) +} + +Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { + return writeDouble(this, value, offset, false, noAssert) +} + +// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) +Buffer.prototype.copy = function copy (target, targetStart, start, end) { + if (!start) + start = 0 + if (!end && end !== 0) + end = this.length + if (targetStart >= target.length) + targetStart = target.length + if (!targetStart) + targetStart = 0 + if (end > 0 && end < start) + end = start + // Copy 0 bytes; we're done + if (end === start) + return 0 + if (target.length === 0 || this.length === 0) + return 0 + // Fatal error conditions + if (targetStart < 0) { + throw new RangeError('targetStart out of bounds') + } + if (start < 0 || start >= this.length) + throw new RangeError('sourceStart out of bounds') + if (end < 0) + throw new RangeError('sourceEnd out of bounds') + // Are we oob? + if (end > this.length) + end = this.length + if (target.length - targetStart < end - start) { + end = target.length - targetStart + start + } + + var len = end - start + var i + if (this === target && start < targetStart && targetStart < end) { + // descending copy from end + for (i = len - 1; i >= 0; i--) { + target[i + targetStart] = this[i + start] + } + } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) { + // ascending copy from start + for (i = 0; i < len; i++) { + target[i + targetStart] = this[i + start] + } + } else { + target._set(this.subarray(start, start + len), targetStart) + } + + return len +} + +// fill(value, start=0, end=buffer.length) +Buffer.prototype.fill = function fill (value, start, end) { + if (!value) + value = 0 + if (!start) + start = 0 + if (!end) + end = this.length + if (end < start) + throw new RangeError('end < start') + // Fill 0 bytes; we're done + if (end === start) + return + if (this.length === 0) return + if (start < 0 || start >= this.length) throw new RangeError('start out of bounds') + if (end < 0 || end > this.length) + throw new RangeError('end out of bounds') + var i + if (typeof value === 'number') { + for (i = start; i < end; i++) { + this[i] = value + } + } else { + var bytes = utf8ToBytes(value.toString()) + var len = bytes.length + for (i = start; i < end; i++) { + this[i] = bytes[i % len] + } + } + + return this +} + +/** + * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance. + * Added in Node 0.12. Only available in browsers that support ArrayBuffer. + */ +Buffer.prototype.toArrayBuffer = function toArrayBuffer () { + if (typeof Uint8Array !== 'undefined') { + if (Buffer.TYPED_ARRAY_SUPPORT) { + return (new Buffer(this)).buffer + } else { + var buf = new Uint8Array(this.length) + for (var i = 0, len = buf.length; i < len; i += 1) { + buf[i] = this[i] + } + return buf.buffer + } + } else { + throw new TypeError('Buffer.toArrayBuffer not supported in this browser') + } +} + +// HELPER FUNCTIONS +// ================ + +var BP = Buffer.prototype +/** + * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods + */ +Buffer._augment = function _augment (arr) { + arr.constructor = Buffer + arr._isBuffer = true + // save reference to original Uint8Array set method before overwriting + arr._set = arr.set + // deprecated + arr.get = BP.get + arr.set = BP.set + arr.write = BP.write + arr.toString = BP.toString + arr.toLocaleString = BP.toString + arr.toJSON = BP.toJSON + arr.equals = BP.equals + arr.compare = BP.compare + arr.indexOf = BP.indexOf + arr.copy = BP.copy + arr.slice = BP.slice + arr.readUIntLE = BP.readUIntLE + arr.readUIntBE = BP.readUIntBE + arr.readUInt8 = BP.readUInt8 + arr.readUInt16LE = BP.readUInt16LE + arr.readUInt16BE = BP.readUInt16BE + arr.readUInt32LE = BP.readUInt32LE + arr.readUInt32BE = BP.readUInt32BE + arr.readIntLE = BP.readIntLE + arr.readIntBE = BP.readIntBE + arr.readInt8 = BP.readInt8 + arr.readInt16LE = BP.readInt16LE + arr.readInt16BE = BP.readInt16BE + arr.readInt32LE = BP.readInt32LE + arr.readInt32BE = BP.readInt32BE + arr.readFloatLE = BP.readFloatLE + arr.readFloatBE = BP.readFloatBE + arr.readDoubleLE = BP.readDoubleLE + arr.readDoubleBE = BP.readDoubleBE + arr.writeUInt8 = BP.writeUInt8 + arr.writeUIntLE = BP.writeUIntLE + arr.writeUIntBE = BP.writeUIntBE + arr.writeUInt16LE = BP.writeUInt16LE + arr.writeUInt16BE = BP.writeUInt16BE + arr.writeUInt32LE = BP.writeUInt32LE + arr.writeUInt32BE = BP.writeUInt32BE + arr.writeIntLE = BP.writeIntLE + arr.writeIntBE = BP.writeIntBE + arr.writeInt8 = BP.writeInt8 + arr.writeInt16LE = BP.writeInt16LE + arr.writeInt16BE = BP.writeInt16BE + arr.writeInt32LE = BP.writeInt32LE + arr.writeInt32BE = BP.writeInt32BE + arr.writeFloatLE = BP.writeFloatLE + arr.writeFloatBE = BP.writeFloatBE + arr.writeDoubleLE = BP.writeDoubleLE + arr.writeDoubleBE = BP.writeDoubleBE + arr.fill = BP.fill + arr.inspect = BP.inspect + arr.toArrayBuffer = BP.toArrayBuffer + return arr +} + +var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g +function base64clean (str) { + // Node strips out invalid characters like \n and \t from the string, base64-js does not + str = stringtrim(str).replace(INVALID_BASE64_RE, '') + // Node converts strings with length < 2 to '' + if (str.length < 2) + return '' + // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not + while (str.length % 4 !== 0) { + str = str + '=' + } + return str +} + +function stringtrim (str) { + if (str.trim) + return str.trim() + return str.replace(/^\s+|\s+$/g, '') +} + +function toHex (n) { + if (n < 16) + return '0' + n.toString(16) + return n.toString(16) +} + +function utf8ToBytes (string, units) { + units = units || Infinity + var codePoint + var length = string.length + var leadSurrogate = null + var bytes = [] + for (var i = 0; i < length; i++) { + codePoint = string.charCodeAt(i) + // is surrogate component + if (codePoint > 0xD7FF && codePoint < 0xE000) { + // last char was a lead + if (!leadSurrogate) { + // no lead yet + if (codePoint > 0xDBFF) { + // unexpected trail + if ((units -= 3) > - 1) + bytes.push(0xEF, 0xBF, 0xBD) + continue + } else if (i + 1 === length) { + // unpaired lead + if ((units -= 3) > - 1) + bytes.push(0xEF, 0xBF, 0xBD) + continue + } + + // valid lead + leadSurrogate = codePoint + continue + } + + // 2 leads in a row + if (codePoint < 0xDC00) { + if ((units -= 3) > - 1) + bytes.push(0xEF, 0xBF, 0xBD) + leadSurrogate = codePoint + continue + } + + // valid surrogate pair + codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000 + } else if (leadSurrogate) { + // valid bmp char, but last char was a lead + if ((units -= 3) > - 1) + bytes.push(0xEF, 0xBF, 0xBD) + } + + leadSurrogate = null + // encode utf8 + if (codePoint < 0x80) { + if ((units -= 1) < 0) + break + bytes.push(codePoint) + } else if (codePoint < 0x800) { + if ((units -= 2) < 0) + break + bytes.push( + codePoint >> 0x6 | 0xC0, + codePoint & 0x3F | 0x80 + ) + } else if (codePoint < 0x10000) { + if ((units -= 3) < 0) + break + bytes.push( + codePoint >> 0xC | 0xE0, + codePoint >> 0x6 & 0x3F | 0x80, + codePoint & 0x3F | 0x80 + ) + } else if (codePoint < 0x110000) { + if ((units -= 4) < 0) + break + bytes.push( + codePoint >> 0x12 | 0xF0, + codePoint >> 0xC & 0x3F | 0x80, + codePoint >> 0x6 & 0x3F | 0x80, + codePoint & 0x3F | 0x80 + ) + } else { + throw new Error('Invalid code point') + } + } + + return bytes +} + +function asciiToBytes (str) { + var byteArray = [] + for (var i = 0; i < str.length; i++) { + // Node's code seems to be doing this and not & 0x7F.. + byteArray.push(str.charCodeAt(i) & 0xFF) + } + return byteArray +} + +function utf16leToBytes (str, units) { + var c, hi, lo + var byteArray = [] + for (var i = 0; i < str.length; i++) { + if ((units -= 2) < 0) + break + c = str.charCodeAt(i) + hi = c >> 8 + lo = c % 256 + byteArray.push(lo) + byteArray.push(hi) + } + + return byteArray +} + +function base64ToBytes (str) { + return base64.toByteArray(base64clean(str)) +} + +function blitBuffer (src, dst, offset, length) { + for (var i = 0; i < length; i++) { + if ((i + offset >= dst.length) || (i >= src.length)) + break + dst[i + offset] = src[i] + } + return i +} + +}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +}, { + "base64-js": 6, + "ieee754": 7, + "is-array": 8 +} +], +6: [function(require, module, exports) { + var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; +; + (function (exports) { + 'use strict'; + + var Arr = (typeof Uint8Array !== 'undefined') + ? Uint8Array + : Array + var PLUS = '+'.charCodeAt(0) + var SLASH = '/'.charCodeAt(0) + var NUMBER = '0'.charCodeAt(0) + var LOWER = 'a'.charCodeAt(0) + var UPPER = 'A'.charCodeAt(0) + var PLUS_URL_SAFE = '-'.charCodeAt(0) + var SLASH_URL_SAFE = '_'.charCodeAt(0) + function decode (elt) { + var code = elt.charCodeAt(0) + if (code === PLUS || + code === PLUS_URL_SAFE) + return 62 // '+' + if (code === SLASH || + code === SLASH_URL_SAFE) + return 63 // '/' + if (code < NUMBER) + return - 1 //no match + if (code < NUMBER + 10) + return code - NUMBER + 26 + 26 + if (code < UPPER + 26) + return code - UPPER + if (code < LOWER + 26) + return code - LOWER + 26 + } + + function b64ToByteArray (b64) { + var i, j, l, tmp, placeHolders, arr + if (b64.length % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4') + } + + // the number of equal signs (place holders) + // if there are two placeholders, than the two characters before it + // represent one byte + // if there is only one, then the three characters before it represent 2 bytes + // this is just a cheap hack to not do indexOf twice + var len = b64.length + placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0 + // base64 is 4/3 + up to two characters of the original data + arr = new Arr(b64.length * 3 / 4 - placeHolders) + // if there are placeholders, only get up to the last complete 4 chars + l = placeHolders > 0 ? b64.length - 4 : b64.length + var L = 0 + function push (v) { + arr[L++] = v + } + + for (i = 0, j = 0; i < l; i += 4, j += 3) { + tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3)) + push((tmp & 0xFF0000) >> 16) + push((tmp & 0xFF00) >> 8) + push(tmp & 0xFF) + } + + if (placeHolders === 2) { + tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4) + push(tmp & 0xFF) + } else if (placeHolders === 1) { + tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2) + push((tmp >> 8) & 0xFF) + push(tmp & 0xFF) + } + + return arr + } + + function uint8ToBase64 (uint8) { + var i, + extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes + output = "", + temp, length + function encode (num) { + return lookup.charAt(num) + } + + function tripletToBase64 (num) { + return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F) + } + + // go through the array every three bytes, we'll deal with trailing stuff later + for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) { + temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]) + output += tripletToBase64(temp) + } + + // pad the end with zeros, but make sure to not forget the extra bytes + switch (extraBytes) { + case 1: + temp = uint8[uint8.length - 1] + output += encode(temp >> 2) + output += encode((temp << 4) & 0x3F) + output += '==' + break + case 2 : + temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1]) + output += encode(temp >> 10) + output += encode((temp >> 4) & 0x3F) + output += encode((temp << 2) & 0x3F) + output += '=' + break + } + + return output + } + + exports.toByteArray = b64ToByteArray + exports.fromByteArray = uint8ToBase64 +}(typeof exports === 'undefined' ? (this.base64js = {}) : exports)) +}, {} +], +7: [function(require, module, exports) { + exports.read = function (buffer, offset, isLE, mLen, nBytes) { + var e, m + var eLen = nBytes * 8 - mLen - 1 + var eMax = (1 << eLen) - 1 + var eBias = eMax >> 1 + var nBits = - 7 + var i = isLE ? (nBytes - 1) : 0 + var d = isLE ? - 1 : 1 + var s = buffer[offset + i] + i += d + e = s & ((1 << ( - nBits)) - 1) + s >>= ( - nBits) + nBits += eLen + for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} + + m = e & ((1 << ( - nBits)) - 1) + e >>= ( - nBits) + nBits += mLen + for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} + + if (e === 0) { + e = 1 - eBias + } else if (e === eMax) { + return m ? NaN : ((s ? - 1 : 1) * Infinity) + } else { + m = m + Math.pow(2, mLen) + e = e - eBias + } + return (s ? - 1 : 1) * m * Math.pow(2, e - mLen) + } + + exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { + var e, m, c + var eLen = nBytes * 8 - mLen - 1 + var eMax = (1 << eLen) - 1 + var eBias = eMax >> 1 + var rt = (mLen === 23 ? Math.pow(2, - 24) - Math.pow(2, - 77) : 0) + var i = isLE ? 0 : (nBytes - 1) + var d = isLE ? 1 : - 1 + var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0 + value = Math.abs(value) + if (isNaN(value) || value === Infinity) { + m = isNaN(value) ? 1 : 0 + e = eMax + } else { + e = Math.floor(Math.log(value) / Math.LN2) + if (value * (c = Math.pow(2, - e)) < 1) { + e-- + c *= 2 + } + if (e + eBias >= 1) { + value += rt / c + } else { + value += rt * Math.pow(2, 1 - eBias) + } + if (value * c >= 2) { + e++ + c /= 2 + } + + if (e + eBias >= eMax) { + m = 0 + e = eMax + } else if (e + eBias >= 1) { + m = (value * c - 1) * Math.pow(2, mLen) + e = e + eBias + } else { + m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen) + e = 0 + } + } + + for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} + + e = (e << mLen) | m + eLen += mLen + for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} + + buffer[offset + i - d] |= s * 128 + } + +}, {} +], +8: [function(require, module, exports) { + + /** + * isArray + */ + + var isArray = Array.isArray; + + /** + * toString + */ + + var str = Object.prototype.toString; + + /** + * Whether or not the given `val` + * is an array. + * + * example: + * + * isArray([]); + * // > true + * isArray(arguments); + * // > false + * isArray(''); + * // > false + * + * @param {mixed} val + * @return {bool} + */ + + module.exports = isArray || function (val) { + return !! val && '[object Array]' == str.call(val); + }; + +}, {} +], +9: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + function EventEmitter() { + this._events = this._events || {}; + this._maxListeners = this._maxListeners || undefined; + } + module.exports = EventEmitter; + + // Backwards-compat with node 0.10.x + EventEmitter.EventEmitter = EventEmitter; + + EventEmitter.prototype._events = undefined; + EventEmitter.prototype._maxListeners = undefined; + + // By default EventEmitters will print a warning if more than 10 listeners are + // added to it. This is a useful default which helps finding memory leaks. + EventEmitter.defaultMaxListeners = 10; + + // Obviously not all Emitters should be limited to 10. This function allows + // that to be increased. Set to zero for unlimited. + EventEmitter.prototype.setMaxListeners = function(n) { + if (!isNumber(n) || n < 0 || isNaN(n)) + throw TypeError('n must be a positive number'); + this._maxListeners = n; + return this; + }; + + EventEmitter.prototype.emit = function(type) { + var er, handler, len, args, i, listeners; + + if (!this._events) + this._events = {}; + + // If there is no 'error' event listener then throw. + if (type === 'error') { + if (!this._events.error || + (isObject(this._events.error) && !this._events.error.length)) { + er = arguments[1]; + if (er instanceof Error) { + throw er; // Unhandled 'error' event + } + throw TypeError('Uncaught, unspecified "error" event.'); + } + } + + handler = this._events[type]; + + if (isUndefined(handler)) + return false; + + if (isFunction(handler)) { + switch (arguments.length) { + // fast cases + case 1: + handler.call(this); + break; + case 2: + handler.call(this, arguments[1]); + break; + case 3: + handler.call(this, arguments[1], arguments[2]); + break; + // slower + default: + len = arguments.length; + args = new Array(len - 1); + for (i = 1; i < len; i++) + args[i - 1] = arguments[i]; + handler.apply(this, args); + } + } else if (isObject(handler)) { + len = arguments.length; + args = new Array(len - 1); + for (i = 1; i < len; i++) + args[i - 1] = arguments[i]; + + listeners = handler.slice(); + len = listeners.length; + for (i = 0; i < len; i++) + listeners[i].apply(this, args); + } + + return true; + }; + + EventEmitter.prototype.addListener = function(type, listener) { + var m; + + if (!isFunction(listener)) + throw TypeError('listener must be a function'); + + if (!this._events) + this._events = {}; + + // To avoid recursion in the case that type === "newListener"! Before + // adding it to the listeners, first emit "newListener". + if (this._events.newListener) + this.emit('newListener', type, + isFunction(listener.listener) ? + listener.listener : listener); + + if (!this._events[type]) + // Optimize the case of one listener. Don't need the extra array object. + this._events[type] = listener; + else if (isObject(this._events[type])) + // If we've already got an array, just append. + this._events[type].push(listener); + else + // Adding the second element, need to change to array. + this._events[type] = [this._events[type], listener]; + + // Check for listener leak + if (isObject(this._events[type]) && !this._events[type].warned) { + var m; + if (!isUndefined(this._maxListeners)) { + m = this._maxListeners; + } else { + m = EventEmitter.defaultMaxListeners; + } + + if (m && m > 0 && this._events[type].length > m) { + this._events[type].warned = true; + console.error('(node) warning: possible EventEmitter memory ' + + 'leak detected. %d listeners added. ' + + 'Use emitter.setMaxListeners() to increase limit.', + this._events[type].length); + if (typeof console.trace === 'function') { + // not supported in IE 10 + console.trace(); + } + } + } + + return this; + }; + + EventEmitter.prototype.on = EventEmitter.prototype.addListener; + + EventEmitter.prototype.once = function(type, listener) { + if (!isFunction(listener)) + throw TypeError('listener must be a function'); + + var fired = false; + + function g() { + this.removeListener(type, g); + + if (!fired) { + fired = true; + listener.apply(this, arguments); + } + } + + g.listener = listener; + this.on(type, g); + + return this; + }; + + // emits a 'removeListener' event iff the listener was removed + EventEmitter.prototype.removeListener = function(type, listener) { + var list, position, length, i; + + if (!isFunction(listener)) + throw TypeError('listener must be a function'); + + if (!this._events || !this._events[type]) + return this; + + list = this._events[type]; + length = list.length; + position = - 1; + + if (list === listener || + (isFunction(list.listener) && list.listener === listener)) { + delete this._events[type]; + if (this._events.removeListener) + this.emit('removeListener', type, listener); + + } else if (isObject(list)) { + for (i = length; i-- > 0;) { + if (list[i] === listener || + (list[i].listener && list[i].listener === listener)) { + position = i; + break; + } + } + + if (position < 0) + return this; + + if (list.length === 1) { + list.length = 0; + delete this._events[type]; + } else { + list.splice(position, 1); + } + + if (this._events.removeListener) + this.emit('removeListener', type, listener); + } + + return this; + }; + + EventEmitter.prototype.removeAllListeners = function(type) { + var key, listeners; + + if (!this._events) + return this; + + // not listening for removeListener, no need to emit + if (!this._events.removeListener) { + if (arguments.length === 0) + this._events = {}; + else if (this._events[type]) + delete this._events[type]; + return this; + } + + // emit removeListener for all listeners on all events + if (arguments.length === 0) { + for (key in this._events) { + if (key === 'removeListener') + continue; + this.removeAllListeners(key); + } + this.removeAllListeners('removeListener'); + this._events = {}; + return this; + } + + listeners = this._events[type]; + + if (isFunction(listeners)) { + this.removeListener(type, listeners); + } else { + // LIFO order + while (listeners.length) + this.removeListener(type, listeners[listeners.length - 1]); + } + delete this._events[type]; + + return this; + }; + + EventEmitter.prototype.listeners = function(type) { + var ret; + if (!this._events || !this._events[type]) + ret = []; + else if (isFunction(this._events[type])) + ret = [this._events[type]]; + else + ret = this._events[type].slice(); + return ret; + }; + + EventEmitter.listenerCount = function(emitter, type) { + var ret; + if (!emitter._events || !emitter._events[type]) + ret = 0; + else if (isFunction(emitter._events[type])) + ret = 1; + else + ret = emitter._events[type].length; + return ret; + }; + + function isFunction(arg) { + return typeof arg === 'function'; + } + + function isNumber(arg) { + return typeof arg === 'number'; + } + + function isObject(arg) { + return typeof arg === 'object' && arg !== null; + } + + function isUndefined(arg) { + return arg === void 0; + } + +}, {} +], +10: [function(require, module, exports) { + var http = module.exports; + var EventEmitter = require('events').EventEmitter; + var Request = require('./lib/request'); + var url = require('url') + http.request = function (params, cb) { + if (typeof params === 'string') { + params = url.parse(params) + } + if (!params) + params = {}; + if (!params.host && !params.port) { + params.port = parseInt(window.location.port, 10); + } + if (!params.host && params.hostname) { + params.host = params.hostname; + } + + if (!params.protocol) { + if (params.scheme) { + params.protocol = params.scheme + ':'; + } else { + params.protocol = window.location.protocol; + } + } + + if (!params.host) { + params.host = window.location.hostname || window.location.host; + } + if (/:/.test(params.host)) { + if (!params.port) { + params.port = params.host.split(':')[1]; + } + params.host = params.host.split(':')[0]; + } + if (!params.port) + params.port = params.protocol == 'https:' ? 443 : 80; + + var req = new Request(new xhrHttp, params); + if (cb) + req.on('response', cb); + return req; + }; + + http.get = function (params, cb) { + params.method = 'GET'; + var req = http.request(params, cb); + req.end(); + return req; + }; + + http.Agent = function () {}; + http.Agent.defaultMaxSockets = 4; + + var xhrHttp = (function () { + if (typeof window === 'undefined') { + throw new Error('no window object present'); + } else if (window.XMLHttpRequest) { + return window.XMLHttpRequest; + } else if (window.ActiveXObject) { + var axs = [ + 'Msxml2.XMLHTTP.6.0', + 'Msxml2.XMLHTTP.3.0', + 'Microsoft.XMLHTTP' + ]; + for (var i = 0; i < axs.length; i++) { + try { + var ax = new (window.ActiveXObject)(axs[i]); + return function () { + if (ax) { + var ax_ = ax; + ax = null; + return ax_; + } else { + return new (window.ActiveXObject)(axs[i]); + } + }; + } catch (e) {} + } + throw new Error('ajax not supported in this browser') + } else { + throw new Error('ajax not supported in this browser'); + } + })(); + + http.STATUS_CODES = { + 100 : 'Continue', + 101 : 'Switching Protocols', + 102 : 'Processing', + // RFC 2518, obsoleted by RFC 4918 + 200 : 'OK', + 201 : 'Created', + 202 : 'Accepted', + 203 : 'Non-Authoritative Information', + 204 : 'No Content', + 205 : 'Reset Content', + 206 : 'Partial Content', + 207 : 'Multi-Status', + // RFC 4918 + 300 : 'Multiple Choices', + 301 : 'Moved Permanently', + 302 : 'Moved Temporarily', + 303 : 'See Other', + 304 : 'Not Modified', + 305 : 'Use Proxy', + 307 : 'Temporary Redirect', + 400 : 'Bad Request', + 401 : 'Unauthorized', + 402 : 'Payment Required', + 403 : 'Forbidden', + 404 : 'Not Found', + 405 : 'Method Not Allowed', + 406 : 'Not Acceptable', + 407 : 'Proxy Authentication Required', + 408 : 'Request Time-out', + 409 : 'Conflict', + 410 : 'Gone', + 411 : 'Length Required', + 412 : 'Precondition Failed', + 413 : 'Request Entity Too Large', + 414 : 'Request-URI Too Large', + 415 : 'Unsupported Media Type', + 416 : 'Requested Range Not Satisfiable', + 417 : 'Expectation Failed', + 418 : 'I\'m a teapot', + // RFC 2324 + 422 : 'Unprocessable Entity', + // RFC 4918 + 423 : 'Locked', + // RFC 4918 + 424 : 'Failed Dependency', + // RFC 4918 + 425 : 'Unordered Collection', + // RFC 4918 + 426 : 'Upgrade Required', + // RFC 2817 + 428 : 'Precondition Required', + // RFC 6585 + 429 : 'Too Many Requests', + // RFC 6585 + 431 : 'Request Header Fields Too Large', + // RFC 6585 + 500 : 'Internal Server Error', + 501 : 'Not Implemented', + 502 : 'Bad Gateway', + 503 : 'Service Unavailable', + 504 : 'Gateway Time-out', + 505 : 'HTTP Version Not Supported', + 506 : 'Variant Also Negotiates', + // RFC 2295 + 507 : 'Insufficient Storage', + // RFC 4918 + 509 : 'Bandwidth Limit Exceeded', + 510 : 'Not Extended', + // RFC 2774 + 511 : 'Network Authentication Required' // RFC 6585 + }; +}, { + "./lib/request": 11, + "events": 9, + "url": 35 +} +], +11: [function(require, module, exports) { + var Stream = require('stream'); + var Response = require('./response'); + var Base64 = require('Base64'); + var inherits = require('inherits'); + + var Request = module.exports = function (xhr, params) { + var self = this; + self.writable = true; + self.xhr = xhr; + self.body = []; + + self.uri = (params.protocol || 'http:') + '//' + + params.host + + (params.port ? ':' + params.port : '') + + (params.path || '/') + ; + + if (typeof params.withCredentials === 'undefined') { + params.withCredentials = true; + } + + try { + xhr.withCredentials = params.withCredentials + } catch (e) {} + + if (params.responseType) + try { + xhr.responseType = params.responseType + } catch (e) {} + + xhr.open( + params.method || 'GET', + self.uri, + true + ); + + xhr.onerror = function(event) { + self.emit('error', new Error('Network error')); + }; + + self._headers = {}; + + if (params.headers) { + var keys = objectKeys(params.headers); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!self.isSafeRequestHeader(key)) + continue; + var value = params.headers[key]; + self.setHeader(key, value); + } + } + + if (params.auth) { + //basic auth + this.setHeader('Authorization', 'Basic ' + Base64.btoa(params.auth)); + } + + var res = new Response; + res.on('close', function () { + self.emit('close'); + }); + + res.on('ready', function () { + self.emit('response', res); + }); + + res.on('error', function (err) { + self.emit('error', err); + }); + + xhr.onreadystatechange = function () { + // Fix for IE9 bug + // SCRIPT575: Could not complete the operation due to error c00c023f + // It happens when a request is aborted, calling the success callback anyway with readyState === 4 + if (xhr.__aborted) + return; + res.handle(xhr); + }; + }; + + inherits(Request, Stream); + + Request.prototype.setHeader = function (key, value) { + this._headers[key.toLowerCase()] = value + }; + + Request.prototype.getHeader = function (key) { + return this._headers[key.toLowerCase()] + }; + + Request.prototype.removeHeader = function (key) { + delete this._headers[key.toLowerCase()] + }; + + Request.prototype.write = function (s) { + this.body.push(s); + }; + + Request.prototype.destroy = function (s) { + this.xhr.__aborted = true; + this.xhr.abort(); + this.emit('close'); + }; + + Request.prototype.end = function (s) { + if (s !== undefined) + this.body.push(s); + + var keys = objectKeys(this._headers); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = this._headers[key]; + if (isArray(value)) { + for (var j = 0; j < value.length; j++) { + this.xhr.setRequestHeader(key, value[j]); + } + } else + this.xhr.setRequestHeader(key, value) + } + + if (this.body.length === 0) { + this.xhr.send(''); + } else if (typeof this.body[0] === 'string') { + this.xhr.send(this.body.join('')); + } else if (isArray(this.body[0])) { + var body = []; + for (var i = 0; i < this.body.length; i++) { + body.push.apply(body, this.body[i]); + } + this.xhr.send(body); + } else if (/Array/.test(Object.prototype.toString.call(this.body[0]))) { + var len = 0; + for (var i = 0; i < this.body.length; i++) { + len += this.body[i].length; + } + var body = new (this.body[0].constructor)(len); + var k = 0; + + for (var i = 0; i < this.body.length; i++) { + var b = this.body[i]; + for (var j = 0; j < b.length; j++) { + body[k++] = b[j]; + } + } + this.xhr.send(body); + } else if (isXHR2Compatible(this.body[0])) { + this.xhr.send(this.body[0]); + } else { + var body = ''; + for (var i = 0; i < this.body.length; i++) { + body += this.body[i].toString(); + } + this.xhr.send(body); + } + }; + + // Taken from http://dxr.mozilla.org/mozilla/mozilla-central/content/base/src/nsXMLHttpRequest.cpp.html + Request.unsafeHeaders = [ + "accept-charset", + "accept-encoding", + "access-control-request-headers", + "access-control-request-method", + "connection", + "content-length", + "cookie", + "cookie2", + "content-transfer-encoding", + "date", + "expect", + "host", + "keep-alive", + "origin", + "referer", + "te", + "trailer", + "transfer-encoding", + "upgrade", + "user-agent", + "via" + ]; + + Request.prototype.isSafeRequestHeader = function (headerName) { + if (!headerName) + return false; + return indexOf(Request.unsafeHeaders, headerName.toLowerCase()) === - 1; + }; + + var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) + keys.push(key); + return keys; + }; + + var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; + }; + + var indexOf = function (xs, x) { + if (xs.indexOf) + return xs.indexOf(x); + for (var i = 0; i < xs.length; i++) { + if (xs[i] === x) + return i; + } + return - 1; + }; + + var isXHR2Compatible = function (obj) { + if (typeof Blob !== 'undefined' && obj instanceof Blob) + return true; + if (typeof ArrayBuffer !== 'undefined' && obj instanceof ArrayBuffer) + return true; + if (typeof FormData !== 'undefined' && obj instanceof FormData) + return true; + }; + +}, { + "./response": 12, + "Base64": 13, + "inherits": 14, + "stream": 33 +} +], +12: [function(require, module, exports) { + var Stream = require('stream'); + var util = require('util'); + + var Response = module.exports = function (res) { + this.offset = 0; + this.readable = true; + }; + + util.inherits(Response, Stream); + + var capable = { + streaming : true, + status2 : true + }; + + function parseHeaders (res) { + var lines = res.getAllResponseHeaders().split(/\r?\n/); + var headers = {}; + for (var i = 0; i < lines.length; i++) { + var line = lines[i]; + if (line === '') + continue; + + var m = line.match(/^([^:]+):\s*(.*)/); + if (m) { + var key = m[1].toLowerCase(), value = m[2]; + + if (headers[key] !== undefined) { + + if (isArray(headers[key])) { + headers[key].push(value); + } else { + headers[key] = [ headers[key], value ]; + } + } else { + headers[key] = value; + } + } else { + headers[line] = true; + } + } + return headers; + } + + Response.prototype.getResponse = function (xhr) { + var respType = String(xhr.responseType).toLowerCase(); + if (respType === 'blob') + return xhr.responseBlob || xhr.response; + if (respType === 'arraybuffer') + return xhr.response; + return xhr.responseText; + } + + Response.prototype.getHeader = function (key) { + return this.headers[key.toLowerCase()]; + }; + + Response.prototype.handle = function (res) { + if (res.readyState === 2 && capable.status2) { + try { + this.statusCode = res.status; + this.headers = parseHeaders(res); + } catch (err) { + capable.status2 = false; + } + + if (capable.status2) { + this.emit('ready'); + } + } else if (capable.streaming && res.readyState === 3) { + try { + if (!this.statusCode) { + this.statusCode = res.status; + this.headers = parseHeaders(res); + this.emit('ready'); + } + } catch (err) {} + + try { + this._emitData(res); + } catch (err) { + capable.streaming = false; + } + } else if (res.readyState === 4) { + if (!this.statusCode) { + this.statusCode = res.status; + this.emit('ready'); + } + this._emitData(res); + + if (res.error) { + this.emit('error', this.getResponse(res)); + } else + this.emit('end'); + + this.emit('close'); + } + }; + + Response.prototype._emitData = function (res) { + var respBody = this.getResponse(res); + if (respBody.toString().match(/ArrayBuffer/)) { + this.emit('data', new Uint8Array(respBody, this.offset)); + this.offset = respBody.byteLength; + return; + } + if (respBody.length > this.offset) { + this.emit('data', respBody.slice(this.offset)); + this.offset = respBody.length; + } + }; + + var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; + }; + +}, { + "stream": 33, + "util": 37 +} +], +13: [function(require, module, exports) { + ; + (function () { + + var object = typeof exports != 'undefined' ? exports : this; // #8: web workers + var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + + function InvalidCharacterError(message) { + this.message = message; + } + InvalidCharacterError.prototype = new Error; + InvalidCharacterError.prototype.name = 'InvalidCharacterError'; + + // encoder + // [https://gist.github.com/999166] by [https://github.com/nignag] + object.btoa || ( + object.btoa = function (input) { + for ( + // initialize result and counter + var block, charCode, idx = 0, map = chars, output = ''; + // if the next input index does not exist: + // change the mapping table to "=" + // check if d has no fractional digits + input.charAt(idx | 0) || (map = '=', idx % 1); + // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8 + output += map.charAt(63 & block >> 8 - idx % 1 * 8) + ) { + charCode = input.charCodeAt(idx += 3 / 4); + if (charCode > 0xFF) { + throw new InvalidCharacterError("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range."); + } + block = block << 8 | charCode; + } + return output; + }); + + // decoder + // [https://gist.github.com/1020396] by [https://github.com/atk] + object.atob || ( + object.atob = function (input) { + input = input.replace(/=+$/, ''); + if (input.length % 4 == 1) { + throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded."); + } + for ( + // initialize result and counters + var bc = 0, bs, buffer, idx = 0, output = ''; + // get next character + buffer = input.charAt(idx++); + // character found in table? initialize bit storage and add its ascii value; + ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer, + // and if not first of each 4 characters, + // convert the first 8 bits to one ascii character + bc++ % 4) ? output += String.fromCharCode(255 & bs >> ( - 2 * bc & 6)) : 0 + ) { + // try to find character in table (0-63, not found => -1) + buffer = chars.indexOf(buffer); + } + return output; + }); + + }()); + +}, {} +], +14: [function(require, module, exports) { + if (typeof Object.create === 'function') { + // implementation from standard node.js 'util' module + module.exports = function inherits(ctor, superCtor) { + ctor.super_ = superCtor + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }); + }; + } else { + // old school shim for old browsers + module.exports = function inherits(ctor, superCtor) { + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } + } + +}, {} +], +15: [function(require, module, exports) { + /** + * Determine if an object is Buffer + * + * Author: Feross Aboukhadijeh <feross@feross.org> <http://feross.org> + * License: MIT + * + * `npm install is-buffer` + */ + + module.exports = function (obj) { + return !!(obj != null && + (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor) + (obj.constructor && + typeof obj.constructor.isBuffer === 'function' && + obj.constructor.isBuffer(obj)) + )) + } + +}, {} +], +16: [function(require, module, exports) { + module.exports = Array.isArray || function (arr) { + return Object.prototype.toString.call(arr) == '[object Array]'; + }; + +}, {} +], +17: [function(require, module, exports) { + // shim for using process in browser + + var process = module.exports = {}; + var queue = []; + var draining = false; + var currentQueue; + var queueIndex = - 1; + + function cleanUpNextTick() { + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = - 1; + } + if (queue.length) { + drainQueue(); + } + } + + function drainQueue() { + if (draining) { + return; + } + var timeout = setTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while (len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = - 1; + len = queue.length; + } + currentQueue = null; + draining = false; + clearTimeout(timeout); + } + + process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + setTimeout(drainQueue, 0); + } + }; + + // v8 likes predictible objects + function Item(fun, array) { + this.fun = fun; + this.array = array; + } + Item.prototype.run = function () { + this.fun.apply(null, this.array); + }; + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + process.version = ''; // empty string to avoid regexp issues + process.versions = {}; + + function noop() {} + + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + + process.binding = function (name) { + throw new Error('process.binding is not supported'); + }; + + process.cwd = function () { + return '/' + }; + process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); + }; + process.umask = function() { + return 0; + }; + +}, {} +], +18: [function(require, module, exports) { + (function (global) { + /*! https://mths.be/punycode v1.3.2 by @mathias */ + ; + (function(root) { + + /** Detect free variables */ + var freeExports = typeof exports == 'object' && exports && + !exports.nodeType && exports; + var freeModule = typeof module == 'object' && module && + !module.nodeType && module; + var freeGlobal = typeof global == 'object' && global; + if ( + freeGlobal.global === freeGlobal || + freeGlobal.window === freeGlobal || + freeGlobal.self === freeGlobal + ) { + root = freeGlobal; + } + + /** + * The `punycode` object. + * @name punycode + * @type Object + */ + var punycode, + /** Highest positive signed 32-bit float value */ + maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 + + /** Bootstring parameters */ + base = 36, + tMin = 1, + tMax = 26, + skew = 38, + damp = 700, + initialBias = 72, + initialN = 128, // 0x80 + delimiter = '-', // '\x2D' + + /** Regular expressions */ + regexPunycode = /^xn--/, + regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars + regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators + + /** Error messages */ + errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' + }, + /** Convenience shortcuts */ + baseMinusTMin = base - tMin, + floor = Math.floor, + stringFromCharCode = String.fromCharCode, + /** Temporary variable */ + key; + + /*--------------------------------------------------------------------------*/ + + /** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ + function error(type) { + throw RangeError(errors[type]); + } + + /** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ + function map(array, fn) { + var length = array.length; + var result = []; + while (length--) { + result[length] = fn(array[length]); + } + return result; + } + + /** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {Array} A new string of characters returned by the callback + * function. + */ + function mapDomain(string, fn) { + var parts = string.split('@'); + var result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + string = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + string = string.replace(regexSeparators, '\x2E'); + var labels = string.split('.'); + var encoded = map(labels, fn).join('.'); + return result + encoded; + } + + /** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see <https://mathiasbynens.be/notes/javascript-encoding> + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ + function ucs2decode(string) { + var output = [], + counter = 0, + length = string.length, + value, + extra; + while (counter < length) { + value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // high surrogate, and there is a next character + extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { + // low surrogate + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // unmatched surrogate; only append this code unit, in case the next + // code unit is the high surrogate of a surrogate pair + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; + } + + /** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ + function ucs2encode(array) { + return map(array, function(value) { + var output = ''; + if (value > 0xFFFF) { + value -= 0x10000; + output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); + value = 0xDC00 | value & 0x3FF; + } + output += stringFromCharCode(value); + return output; + }).join(''); + } + + /** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ + function basicToDigit(codePoint) { + if (codePoint - 48 < 10) { + return codePoint - 22; + } + if (codePoint - 65 < 26) { + return codePoint - 65; + } + if (codePoint - 97 < 26) { + return codePoint - 97; + } + return base; + } + + /** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ + function digitToBasic(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); + } + + /** + * Bias adaptation function as per section 3.4 of RFC 3492. + * http://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ + function adapt(delta, numPoints, firstTime) { + var k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for ( /* no initialization */ + ; delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); + } + + /** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ + function decode(input) { + // Don't use UCS-2 + var output = [], + inputLength = input.length, + out, + i = 0, + n = initialN, + bias = initialBias, + basic, + j, + index, + oldi, + w, + k, + digit, + t, + /** Cached calculation results */ + baseMinusT; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */ + ) { + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + for (oldi = i, w = 1, k = base; /* no condition */ + ; k += base) { + + if (index >= inputLength) { + error('invalid-input'); + } + + digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base || digit > floor((maxInt - i) / w)) { + error('overflow'); + } + + i += digit * w; + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + + if (digit < t) { + break; + } + + baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error('overflow'); + } + + w *= baseMinusT; + + } + + out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output + output.splice(i++, 0, n); + + } + + return ucs2encode(output); + } + + /** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ + function encode(input) { + var n, + delta, + handledCPCount, + basicLength, + bias, + j, + m, + q, + k, + t, + currentValue, + output = [], + /** `inputLength` will hold the number of code points in `input`. */ + inputLength, + /** Cached calculation results */ + handledCPCountPlusOne, + baseMinusT, + qMinusT; + + // Convert the input in UCS-2 to Unicode + input = ucs2decode(input); + + // Cache the length + inputLength = input.length; + + // Initialize the state + n = initialN; + delta = 0; + bias = initialBias; + + // Handle the basic code points + for (j = 0; j < inputLength; ++j) { + currentValue = input[j]; + if (currentValue < 0x80) { + output.push(stringFromCharCode(currentValue)); + } + } + + handledCPCount = basicLength = output.length; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string - if it is not empty - with a delimiter + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + for (m = maxInt, j = 0; j < inputLength; ++j) { + currentValue = input[j]; + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, + // but guard against overflow + handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + for (j = 0; j < inputLength; ++j) { + currentValue = input[j]; + + if (currentValue < n && ++delta > maxInt) { + error('overflow'); + } + + if (currentValue == n) { + // Represent delta as a generalized variable-length integer + for (q = delta, k = base; /* no condition */ + ; k += base) { + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + if (q < t) { + break; + } + qMinusT = q - t; + baseMinusT = base - t; + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + delta = 0; + ++handledCPCount; + } + } + + ++delta; + ++n; + + } + return output.join(''); + } + + /** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ + function toUnicode(input) { + return mapDomain(input, function(string) { + return regexPunycode.test(string) + ? decode(string.slice(4).toLowerCase()) + : string; + }); + } + + /** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ + function toASCII(input) { + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; + }); + } + + /*--------------------------------------------------------------------------*/ + + /** Define the public API */ + punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '1.3.2', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see <https://mathiasbynens.be/notes/javascript-encoding> + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode + }; + + /** Expose `punycode` */ + // Some AMD build optimizers, like r.js, check for specific condition patterns + // like the following: + if ( + typeof define == 'function' && + typeof define.amd == 'object' && + define.amd + ) { + define('punycode', function() { + return punycode; + }); + } else if (freeExports && freeModule) { + if (module.exports == freeExports) { + // in Node.js or RingoJS v0.8.0+ + freeModule.exports = punycode; + } else { + // in Narwhal or RingoJS v0.7.0- + for (key in punycode) { + punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]); + } + } + } else { + // in Rhino or a web browser + root.punycode = punycode; + } + + }(this)); + + }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +}, {} +], +19: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + 'use strict'; + + // If obj.hasOwnProperty has been overridden, then calling + // obj.hasOwnProperty(prop) will break. + // See: https://github.com/joyent/node/issues/1707 + function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + } + + module.exports = function(qs, sep, eq, options) { + sep = sep || '&'; + eq = eq || '='; + var obj = {}; + + if (typeof qs !== 'string' || qs.length === 0) { + return obj; + } + + var regexp = /\+/g; + qs = qs.split(sep); + + var maxKeys = 1000; + if (options && typeof options.maxKeys === 'number') { + maxKeys = options.maxKeys; + } + + var len = qs.length; + // maxKeys <= 0 means that we should not limit keys count + if (maxKeys > 0 && len > maxKeys) { + len = maxKeys; + } + + for (var i = 0; i < len; ++i) { + var x = qs[i].replace(regexp, '%20'), + idx = x.indexOf(eq), + kstr, vstr, k, v; + + if (idx >= 0) { + kstr = x.substr(0, idx); + vstr = x.substr(idx + 1); + } else { + kstr = x; + vstr = ''; + } + + k = decodeURIComponent(kstr); + v = decodeURIComponent(vstr); + + if (!hasOwnProperty(obj, k)) { + obj[k] = v; + } else if (isArray(obj[k])) { + obj[k].push(v); + } else { + obj[k] = [obj[k], v]; + } + } + + return obj; + }; + + var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; + }; + +}, {} +], +20: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + 'use strict'; + + var stringifyPrimitive = function(v) { + switch (typeof v) { + case 'string': + return v; + + case 'boolean': + return v ? 'true' : 'false'; + + case 'number': + return isFinite(v) ? v : ''; + + default: + return ''; + } + }; + + module.exports = function(obj, sep, eq, name) { + sep = sep || '&'; + eq = eq || '='; + if (obj === null) { + obj = undefined; + } + + if (typeof obj === 'object') { + return map(objectKeys(obj), function(k) { + var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; + if (isArray(obj[k])) { + return map(obj[k], function(v) { + return ks + encodeURIComponent(stringifyPrimitive(v)); + }).join(sep); + } else { + return ks + encodeURIComponent(stringifyPrimitive(obj[k])); + } + }).join(sep); + + } + + if (!name) + return ''; + return encodeURIComponent(stringifyPrimitive(name)) + eq + + encodeURIComponent(stringifyPrimitive(obj)); + }; + + var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; + }; + + function map (xs, f) { + if (xs.map) + return xs.map(f); + var res = []; + for (var i = 0; i < xs.length; i++) { + res.push(f(xs[i], i)); + } + return res; + } + + var objectKeys = Object.keys || function (obj) { + var res = []; + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) + res.push(key); + } + return res; + }; + +}, {} +], +21: [function(require, module, exports) { + 'use strict'; + + exports.decode = exports.parse = require('./decode'); + exports.encode = exports.stringify = require('./encode'); + +}, { + "./decode": 19, + "./encode": 20 +} +], +22: [function(require, module, exports) { + module.exports = require("./lib/_stream_duplex.js") +}, { + "./lib/_stream_duplex.js": 23 +} +], +23: [function(require, module, exports) { + (function (process) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + // a duplex stream is just a stream that is both readable and writable. + // Since JS doesn't have multiple prototypal inheritance, this class + // prototypally inherits from Readable, and then parasitically from + // Writable. + + module.exports = Duplex; + + /*<replacement>*/ + var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) + keys.push(key); + return keys; + } + /*</replacement>*/ + + + /*<replacement>*/ + var util = require('core-util-is'); + util.inherits = require('inherits'); + /*</replacement>*/ + + var Readable = require('./_stream_readable'); + var Writable = require('./_stream_writable'); + + util.inherits(Duplex, Readable); + + forEach(objectKeys(Writable.prototype), function(method) { + if (!Duplex.prototype[method]) + Duplex.prototype[method] = Writable.prototype[method]; + }); + + function Duplex(options) { + if (!(this instanceof Duplex)) + return new Duplex(options); + + Readable.call(this, options); + Writable.call(this, options); + + if (options && options.readable === false) + this.readable = false; + + if (options && options.writable === false) + this.writable = false; + + this.allowHalfOpen = true; + if (options && options.allowHalfOpen === false) + this.allowHalfOpen = false; + + this.once('end', onend); + } + + // the no-half-open enforcer + function onend() { + // if we allow half-open state, or if the writable side ended, + // then we're ok. + if (this.allowHalfOpen || this._writableState.ended) + return; + + // no more data can be written. + // But allow more writes to happen in this tick. + process.nextTick(this.end.bind(this)); + } + + function forEach (xs, f) { + for (var i = 0, l = xs.length; i < l; i++) { + f(xs[i], i); + } + } + + }).call(this, require('_process')) +}, { + "./_stream_readable": 25, + "./_stream_writable": 27, + "_process": 17, + "core-util-is": 28, + "inherits": 14 +} +], +24: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + // a passthrough stream. + // basically just the most minimal sort of Transform stream. + // Every written chunk gets output as-is. + + module.exports = PassThrough; + + var Transform = require('./_stream_transform'); + + /*<replacement>*/ + var util = require('core-util-is'); + util.inherits = require('inherits'); + /*</replacement>*/ + + util.inherits(PassThrough, Transform); + + function PassThrough(options) { + if (!(this instanceof PassThrough)) + return new PassThrough(options); + + Transform.call(this, options); + } + + PassThrough.prototype._transform = function(chunk, encoding, cb) { + cb(null, chunk); + }; + +}, { + "./_stream_transform": 26, + "core-util-is": 28, + "inherits": 14 +} +], +25: [function(require, module, exports) { + (function (process) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + module.exports = Readable; + + /*<replacement>*/ + var isArray = require('isarray'); + /*</replacement>*/ + + + /*<replacement>*/ + var Buffer = require('buffer').Buffer; + /*</replacement>*/ + + Readable.ReadableState = ReadableState; + + var EE = require('events').EventEmitter; + + /*<replacement>*/ + if (!EE.listenerCount) + EE.listenerCount = function(emitter, type) { + return emitter.listeners(type).length; + }; + /*</replacement>*/ + + var Stream = require('stream'); + + /*<replacement>*/ + var util = require('core-util-is'); + util.inherits = require('inherits'); + /*</replacement>*/ + + var StringDecoder; + + + /*<replacement>*/ + var debug = require('util'); + if (debug && debug.debuglog) { + debug = debug.debuglog('stream'); + } else { + debug = function () {}; + } + /*</replacement>*/ + + + util.inherits(Readable, Stream); + + function ReadableState(options, stream) { + var Duplex = require('./_stream_duplex'); + + options = options || {}; + + // the point at which it stops calling _read() to fill the buffer + // Note: 0 is a valid value, means "don't call _read preemptively ever" + var hwm = options.highWaterMark; + var defaultHwm = options.objectMode ? 16 : 16 * 1024; + this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; + + // cast to ints. + this.highWaterMark = ~~this.highWaterMark; + + this.buffer = []; + this.length = 0; + this.pipes = null; + this.pipesCount = 0; + this.flowing = null; + this.ended = false; + this.endEmitted = false; + this.reading = false; + + // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + this.sync = true; + + // whenever we return null, then we set a flag to say + // that we're awaiting a 'readable' event emission. + this.needReadable = false; + this.emittedReadable = false; + this.readableListening = false; + + + // object stream flag. Used to make read(n) ignore n and to + // make all the buffer merging and length checks go away + this.objectMode = !!options.objectMode; + + if (stream instanceof Duplex) + this.objectMode = this.objectMode || !!options.readableObjectMode; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // when piping, we only care about 'readable' events that happen + // after read()ing all the bytes and not getting any pushback. + this.ranOut = false; + + // the number of writers that are awaiting a drain event in .pipe()s + this.awaitDrain = 0; + + // if true, a maybeReadMore has been scheduled + this.readingMore = false; + + this.decoder = null; + this.encoding = null; + if (options.encoding) { + if (!StringDecoder) + StringDecoder = require('string_decoder/').StringDecoder; + this.decoder = new StringDecoder(options.encoding); + this.encoding = options.encoding; + } + } + + function Readable(options) { + var Duplex = require('./_stream_duplex'); + + if (!(this instanceof Readable)) + return new Readable(options); + + this._readableState = new ReadableState(options, this); + + // legacy + this.readable = true; + + Stream.call(this); + } + + // Manually shove something into the read() buffer. + // This returns true if the highWaterMark has not been hit yet, + // similar to how Writable.write() returns true if you should + // write() some more. + Readable.prototype.push = function(chunk, encoding) { + var state = this._readableState; + + if (util.isString(chunk) && !state.objectMode) { + encoding = encoding || state.defaultEncoding; + if (encoding !== state.encoding) { + chunk = new Buffer(chunk, encoding); + encoding = ''; + } + } + + return readableAddChunk(this, state, chunk, encoding, false); + }; + + // Unshift should *always* be something directly out of read() + Readable.prototype.unshift = function(chunk) { + var state = this._readableState; + return readableAddChunk(this, state, chunk, '', true); + }; + + function readableAddChunk(stream, state, chunk, encoding, addToFront) { + var er = chunkInvalid(state, chunk); + if (er) { + stream.emit('error', er); + } else if (util.isNullOrUndefined(chunk)) { + state.reading = false; + if (!state.ended) + onEofChunk(stream, state); + } else if (state.objectMode || chunk && chunk.length > 0) { + if (state.ended && !addToFront) { + var e = new Error('stream.push() after EOF'); + stream.emit('error', e); + } else if (state.endEmitted && addToFront) { + var e = new Error('stream.unshift() after end event'); + stream.emit('error', e); + } else { + if (state.decoder && !addToFront && !encoding) + chunk = state.decoder.write(chunk); + + if (!addToFront) + state.reading = false; + + // if we want the data now, just emit it. + if (state.flowing && state.length === 0 && !state.sync) { + stream.emit('data', chunk); + stream.read(0); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) + state.buffer.unshift(chunk); + else + state.buffer.push(chunk); + + if (state.needReadable) + emitReadable(stream); + } + + maybeReadMore(stream, state); + } + } else if (!addToFront) { + state.reading = false; + } + + return needMoreData(state); + } + + + + // if it's past the high water mark, we can push in some more. + // Also, if we have no data yet, we can stand some + // more bytes. This is to work around cases where hwm=0, + // such as the repl. Also, if the push() triggered a + // readable event, and the user called read(largeNumber) such that + // needReadable was set, then we ought to push more, so that another + // 'readable' event will be triggered. + function needMoreData(state) { + return !state.ended && + (state.needReadable || + state.length < state.highWaterMark || + state.length === 0); + } + + // backwards compatibility. + Readable.prototype.setEncoding = function(enc) { + if (!StringDecoder) + StringDecoder = require('string_decoder/').StringDecoder; + this._readableState.decoder = new StringDecoder(enc); + this._readableState.encoding = enc; + return this; + }; + + // Don't raise the hwm > 128MB + var MAX_HWM = 0x800000; + function roundUpToNextPowerOf2(n) { + if (n >= MAX_HWM) { + n = MAX_HWM; + } else { + // Get the next highest power of 2 + n--; + for (var p = 1; p < 32; p <<= 1) + n |= n >> p; + n++; + } + return n; + } + + function howMuchToRead(n, state) { + if (state.length === 0 && state.ended) + return 0; + + if (state.objectMode) + return n === 0 ? 0 : 1; + + if (isNaN(n) || util.isNull(n)) { + // only flow one buffer at a time + if (state.flowing && state.buffer.length) + return state.buffer[0].length; + else + return state.length; + } + + if (n <= 0) + return 0; + + // If we're asking for more than the target buffer level, + // then raise the water mark. Bump up to the next highest + // power of 2, to prevent increasing it excessively in tiny + // amounts. + if (n > state.highWaterMark) + state.highWaterMark = roundUpToNextPowerOf2(n); + + // don't have that much. return null, unless we've ended. + if (n > state.length) { + if (!state.ended) { + state.needReadable = true; + return 0; + } else + return state.length; + } + + return n; + } + + // you can override either this method, or the async _read(n) below. + Readable.prototype.read = function(n) { + debug('read', n); + var state = this._readableState; + var nOrig = n; + + if (!util.isNumber(n) || n > 0) + state.emittedReadable = false; + + // if we're doing read(0) to trigger a readable event, but we + // already have a bunch of data in the buffer, then just trigger + // the 'readable' event and move on. + if (n === 0 && + state.needReadable && + (state.length >= state.highWaterMark || state.ended)) { + debug('read: emitReadable', state.length, state.ended); + if (state.length === 0 && state.ended) + endReadable(this); + else + emitReadable(this); + return null; + } + + n = howMuchToRead(n, state); + + // if we've ended, and we're now clear, then finish it up. + if (n === 0 && state.ended) { + if (state.length === 0) + endReadable(this); + return null; + } + + // All the actual chunk generation logic needs to be + // *below* the call to _read. The reason is that in certain + // synthetic stream cases, such as passthrough streams, _read + // may be a completely synchronous operation which may change + // the state of the read buffer, providing enough data when + // before there was *not* enough. + // + // So, the steps are: + // 1. Figure out what the state of things will be after we do + // a read from the buffer. + // + // 2. If that resulting state will trigger a _read, then call _read. + // Note that this may be asynchronous, or synchronous. Yes, it is + // deeply ugly to write APIs this way, but that still doesn't mean + // that the Readable class should behave improperly, as streams are + // designed to be sync/async agnostic. + // Take note if the _read call is sync or async (ie, if the read call + // has returned yet), so that we know whether or not it's safe to emit + // 'readable' etc. + // + // 3. Actually pull the requested chunks out of the buffer and return. + + // if we need a readable event, then we need to do some reading. + var doRead = state.needReadable; + debug('need readable', doRead); + + // if we currently have less than the highWaterMark, then also read some + if (state.length === 0 || state.length - n < state.highWaterMark) { + doRead = true; + debug('length less than watermark', doRead); + } + + // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. + if (state.ended || state.reading) { + doRead = false; + debug('reading or ended', doRead); + } + + if (doRead) { + debug('do read'); + state.reading = true; + state.sync = true; + // if the length is currently zero, then we *need* a readable event. + if (state.length === 0) + state.needReadable = true; + // call internal read method + this._read(state.highWaterMark); + state.sync = false; + } + + // If _read pushed data synchronously, then `reading` will be false, + // and we need to re-evaluate how much data we can return to the user. + if (doRead && !state.reading) + n = howMuchToRead(nOrig, state); + + var ret; + if (n > 0) + ret = fromList(n, state); + else + ret = null; + + if (util.isNull(ret)) { + state.needReadable = true; + n = 0; + } + + state.length -= n; + + // If we have nothing in the buffer, then we want to know + // as soon as we *do* get something into the buffer. + if (state.length === 0 && !state.ended) + state.needReadable = true; + + // If we tried to read() past the EOF, then emit end on the next tick. + if (nOrig !== n && state.ended && state.length === 0) + endReadable(this); + + if (!util.isNull(ret)) + this.emit('data', ret); + + return ret; + }; + + function chunkInvalid(state, chunk) { + var er = null; + if (!util.isBuffer(chunk) && + !util.isString(chunk) && + !util.isNullOrUndefined(chunk) && + !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + return er; + } + + + function onEofChunk(stream, state) { + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) { + state.buffer.push(chunk); + state.length += state.objectMode ? 1 : chunk.length; + } + } + state.ended = true; + + // emit 'readable' now to make sure it gets picked up. + emitReadable(stream); + } + + // Don't emit readable right away in sync mode, because this can trigger + // another read() call => stack overflow. This way, it might trigger + // a nextTick recursion warning, but that's not so bad. + function emitReadable(stream) { + var state = stream._readableState; + state.needReadable = false; + if (!state.emittedReadable) { + debug('emitReadable', state.flowing); + state.emittedReadable = true; + if (state.sync) + process.nextTick(function() { + emitReadable_(stream); + }); + else + emitReadable_(stream); + } + } + + function emitReadable_(stream) { + debug('emit readable'); + stream.emit('readable'); + flow(stream); + } + + + // at this point, the user has presumably seen the 'readable' event, + // and called read() to consume some data. that may have triggered + // in turn another _read(n) call, in which case reading = true if + // it's in progress. + // However, if we're not ended, or reading, and the length < hwm, + // then go ahead and try to read some more preemptively. + function maybeReadMore(stream, state) { + if (!state.readingMore) { + state.readingMore = true; + process.nextTick(function() { + maybeReadMore_(stream, state); + }); + } + } + + function maybeReadMore_(stream, state) { + var len = state.length; + while (!state.reading && !state.flowing && !state.ended && + state.length < state.highWaterMark) { + debug('maybeReadMore read 0'); + stream.read(0); + if (len === state.length) + // didn't get any data, stop spinning. + break; + else + len = state.length; + } + state.readingMore = false; + } + + // abstract method. to be overridden in specific implementation classes. + // call cb(er, data) where data is <= n in length. + // for virtual (non-string, non-buffer) streams, "length" is somewhat + // arbitrary, and perhaps not very meaningful. + Readable.prototype._read = function(n) { + this.emit('error', new Error('not implemented')); + }; + + Readable.prototype.pipe = function(dest, pipeOpts) { + var src = this; + var state = this._readableState; + + switch (state.pipesCount) { + case 0: + state.pipes = dest; + break; + case 1: + state.pipes = [state.pipes, dest]; + break; + default: + state.pipes.push(dest); + break; + } + state.pipesCount += 1; + debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); + + var doEnd = (!pipeOpts || pipeOpts.end !== false) && + dest !== process.stdout && + dest !== process.stderr; + + var endFn = doEnd ? onend : cleanup; + if (state.endEmitted) + process.nextTick(endFn); + else + src.once('end', endFn); + + dest.on('unpipe', onunpipe); + function onunpipe(readable) { + debug('onunpipe'); + if (readable === src) { + cleanup(); + } + } + + function onend() { + debug('onend'); + dest.end(); + } + + // when the dest drains, it reduces the awaitDrain counter + // on the source. This would be more elegant with a .once() + // handler in flow(), but adding and removing repeatedly is + // too slow. + var ondrain = pipeOnDrain(src); + dest.on('drain', ondrain); + + function cleanup() { + debug('cleanup'); + // cleanup event handlers once the pipe is broken + dest.removeListener('close', onclose); + dest.removeListener('finish', onfinish); + dest.removeListener('drain', ondrain); + dest.removeListener('error', onerror); + dest.removeListener('unpipe', onunpipe); + src.removeListener('end', onend); + src.removeListener('end', cleanup); + src.removeListener('data', ondata); + + // if the reader is waiting for a drain event from this + // specific writer, then it would cause it to never start + // flowing again. + // So, if this is awaiting a drain, then we just call it now. + // If we don't know, then assume that we are waiting for one. + if (state.awaitDrain && + (!dest._writableState || dest._writableState.needDrain)) + ondrain(); + } + + src.on('data', ondata); + function ondata(chunk) { + debug('ondata'); + var ret = dest.write(chunk); + if (false === ret) { + debug('false write response, pause', + src._readableState.awaitDrain); + src._readableState.awaitDrain++; + src.pause(); + } + } + + // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. + function onerror(er) { + debug('onerror', er); + unpipe(); + dest.removeListener('error', onerror); + if (EE.listenerCount(dest, 'error') === 0) + dest.emit('error', er); + } + // This is a brutally ugly hack to make sure that our error handler + // is attached before any userland ones. NEVER DO THIS. + if (!dest._events || !dest._events.error) + dest.on('error', onerror); + else if (isArray(dest._events.error)) + dest._events.error.unshift(onerror); + else + dest._events.error = [onerror, dest._events.error]; + + + + // Both close and finish should trigger unpipe, but only once. + function onclose() { + dest.removeListener('finish', onfinish); + unpipe(); + } + dest.once('close', onclose); + function onfinish() { + debug('onfinish'); + dest.removeListener('close', onclose); + unpipe(); + } + dest.once('finish', onfinish); + + function unpipe() { + debug('unpipe'); + src.unpipe(dest); + } + + // tell the dest that it's being piped to + dest.emit('pipe', src); + + // start the flow if it hasn't been started already. + if (!state.flowing) { + debug('pipe resume'); + src.resume(); + } + + return dest; + }; + + function pipeOnDrain(src) { + return function() { + var state = src._readableState; + debug('pipeOnDrain', state.awaitDrain); + if (state.awaitDrain) + state.awaitDrain--; + if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) { + state.flowing = true; + flow(src); + } + }; + } + + + Readable.prototype.unpipe = function(dest) { + var state = this._readableState; + + // if we're not piping anywhere, then do nothing. + if (state.pipesCount === 0) + return this; + + // just one destination. most common case. + if (state.pipesCount === 1) { + // passed in one, but it's not the right one. + if (dest && dest !== state.pipes) + return this; + + if (!dest) + dest = state.pipes; + + // got a match. + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + if (dest) + dest.emit('unpipe', this); + return this; + } + + // slow case. multiple pipe destinations. + + if (!dest) { + // remove all. + var dests = state.pipes; + var len = state.pipesCount; + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + + for (var i = 0; i < len; i++) + dests[i].emit('unpipe', this); + return this; + } + + // try to find the right one. + var i = indexOf(state.pipes, dest); + if (i === - 1) + return this; + + state.pipes.splice(i, 1); + state.pipesCount -= 1; + if (state.pipesCount === 1) + state.pipes = state.pipes[0]; + + dest.emit('unpipe', this); + + return this; + }; + + // set up data events if they are asked for + // Ensure readable listeners eventually get something + Readable.prototype.on = function(ev, fn) { + var res = Stream.prototype.on.call(this, ev, fn); + + // If listening to data, and it has not explicitly been paused, + // then call resume to start the flow of data on the next tick. + if (ev === 'data' && false !== this._readableState.flowing) { + this.resume(); + } + + if (ev === 'readable' && this.readable) { + var state = this._readableState; + if (!state.readableListening) { + state.readableListening = true; + state.emittedReadable = false; + state.needReadable = true; + if (!state.reading) { + var self = this; + process.nextTick(function() { + debug('readable nexttick read 0'); + self.read(0); + }); + } else if (state.length) { + emitReadable(this, state); + } + } + } + + return res; + }; + Readable.prototype.addListener = Readable.prototype.on; + + // pause() and resume() are remnants of the legacy readable stream API + // If the user uses them, then switch into old mode. + Readable.prototype.resume = function() { + var state = this._readableState; + if (!state.flowing) { + debug('resume'); + state.flowing = true; + if (!state.reading) { + debug('resume read 0'); + this.read(0); + } + resume(this, state); + } + return this; + }; + + function resume(stream, state) { + if (!state.resumeScheduled) { + state.resumeScheduled = true; + process.nextTick(function() { + resume_(stream, state); + }); + } + } + + function resume_(stream, state) { + state.resumeScheduled = false; + stream.emit('resume'); + flow(stream); + if (state.flowing && !state.reading) + stream.read(0); + } + + Readable.prototype.pause = function() { + debug('call pause flowing=%j', this._readableState.flowing); + if (false !== this._readableState.flowing) { + debug('pause'); + this._readableState.flowing = false; + this.emit('pause'); + } + return this; + }; + + function flow(stream) { + var state = stream._readableState; + debug('flow', state.flowing); + if (state.flowing) { + do { + var chunk = stream.read(); + } + while (null !== chunk && state.flowing); + } + } + + // wrap an old-style stream as the async data source. + // This is *not* part of the readable stream interface. + // It is an ugly unfortunate mess of history. + Readable.prototype.wrap = function(stream) { + var state = this._readableState; + var paused = false; + + var self = this; + stream.on('end', function() { + debug('wrapped end'); + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) + self.push(chunk); + } + + self.push(null); + }); + + stream.on('data', function(chunk) { + debug('wrapped data'); + if (state.decoder) + chunk = state.decoder.write(chunk); + if (!chunk || !state.objectMode && !chunk.length) + return; + + var ret = self.push(chunk); + if (!ret) { + paused = true; + stream.pause(); + } + }); + + // proxy all the other methods. + // important when wrapping filters and duplexes. + for (var i in stream) { + if (util.isFunction(stream[i]) && util.isUndefined(this[i])) { + this[i] = function(method) { + return function() { + return stream[method].apply(stream, arguments); + } + }(i); + } + } + + // proxy certain important events. + var events = ['error', 'close', 'destroy', 'pause', 'resume']; + forEach(events, function(ev) { + stream.on(ev, self.emit.bind(self, ev)); + }); + + // when we try to consume some more bytes, simply unpause the + // underlying stream. + self._read = function(n) { + debug('wrapped _read', n); + if (paused) { + paused = false; + stream.resume(); + } + }; + + return self; + }; + + + + // exposed for testing purposes only. + Readable._fromList = fromList; + + // Pluck off n bytes from an array of buffers. + // Length is the combined lengths of all the buffers in the list. + function fromList(n, state) { + var list = state.buffer; + var length = state.length; + var stringMode = !!state.decoder; + var objectMode = !!state.objectMode; + var ret; + + // nothing in the list, definitely empty. + if (list.length === 0) + return null; + + if (length === 0) + ret = null; + else if (objectMode) + ret = list.shift(); + else if (!n || n >= length) { + // read it all, truncate the array. + if (stringMode) + ret = list.join(''); + else + ret = Buffer.concat(list, length); + list.length = 0; + } else { + // read just some of it. + if (n < list[0].length) { + // just take a part of the first list item. + // slice is the same for buffers and strings. + var buf = list[0]; + ret = buf.slice(0, n); + list[0] = buf.slice(n); + } else if (n === list[0].length) { + // first list is a perfect match + ret = list.shift(); + } else { + // complex case. + // we have enough to cover it, but it spans past the first buffer. + if (stringMode) + ret = ''; + else + ret = new Buffer(n); + + var c = 0; + for (var i = 0, l = list.length; i < l && c < n; i++) { + var buf = list[0]; + var cpy = Math.min(n - c, buf.length); + + if (stringMode) + ret += buf.slice(0, cpy); + else + buf.copy(ret, c, 0, cpy); + + if (cpy < buf.length) + list[0] = buf.slice(cpy); + else + list.shift(); + + c += cpy; + } + } + } + + return ret; + } + + function endReadable(stream) { + var state = stream._readableState; + + // If we get here before consuming all the bytes, then that is a + // bug in node. Should never happen. + if (state.length > 0) + throw new Error('endReadable called on non-empty stream'); + + if (!state.endEmitted) { + state.ended = true; + process.nextTick(function() { + // Check that we didn't get one last unshift. + if (!state.endEmitted && state.length === 0) { + state.endEmitted = true; + stream.readable = false; + stream.emit('end'); + } + }); + } + } + + function forEach (xs, f) { + for (var i = 0, l = xs.length; i < l; i++) { + f(xs[i], i); + } + } + + function indexOf (xs, x) { + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) + return i; + } + return - 1; + } + + }).call(this, require('_process')) +}, { + "./_stream_duplex": 23, + "_process": 17, + "buffer": 5, + "core-util-is": 28, + "events": 9, + "inherits": 14, + "isarray": 16, + "stream": 33, + "string_decoder/": 34, + "util": 4 +} +], +26: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + + // a transform stream is a readable/writable stream where you do + // something with the data. Sometimes it's called a "filter", + // but that's not a great name for it, since that implies a thing where + // some bits pass through, and others are simply ignored. (That would + // be a valid example of a transform, of course.) + // + // While the output is causally related to the input, it's not a + // necessarily symmetric or synchronous transformation. For example, + // a zlib stream might take multiple plain-text writes(), and then + // emit a single compressed chunk some time in the future. + // + // Here's how this works: + // + // The Transform stream has all the aspects of the readable and writable + // stream classes. When you write(chunk), that calls _write(chunk,cb) + // internally, and returns false if there's a lot of pending writes + // buffered up. When you call read(), that calls _read(n) until + // there's enough pending readable data buffered up. + // + // In a transform stream, the written data is placed in a buffer. When + // _read(n) is called, it transforms the queued up data, calling the + // buffered _write cb's as it consumes chunks. If consuming a single + // written chunk would result in multiple output chunks, then the first + // outputted bit calls the readcb, and subsequent chunks just go into + // the read buffer, and will cause it to emit 'readable' if necessary. + // + // This way, back-pressure is actually determined by the reading side, + // since _read has to be called to start processing a new chunk. However, + // a pathological inflate type of transform can cause excessive buffering + // here. For example, imagine a stream where every byte of input is + // interpreted as an integer from 0-255, and then results in that many + // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in + // 1kb of data being output. In this case, you could write a very small + // amount of input, and end up with a very large amount of output. In + // such a pathological inflating mechanism, there'd be no way to tell + // the system to stop doing the transform. A single 4MB write could + // cause the system to run out of memory. + // + // However, even in such a pathological case, only a single written chunk + // would be consumed, and then the rest would wait (un-transformed) until + // the results of the previous transformed chunk were consumed. + + module.exports = Transform; + + var Duplex = require('./_stream_duplex'); + + /*<replacement>*/ + var util = require('core-util-is'); + util.inherits = require('inherits'); + /*</replacement>*/ + + util.inherits(Transform, Duplex); + + + function TransformState(options, stream) { + this.afterTransform = function(er, data) { + return afterTransform(stream, er, data); + }; + + this.needTransform = false; + this.transforming = false; + this.writecb = null; + this.writechunk = null; + } + + function afterTransform(stream, er, data) { + var ts = stream._transformState; + ts.transforming = false; + + var cb = ts.writecb; + + if (!cb) + return stream.emit('error', new Error('no writecb in Transform class')); + + ts.writechunk = null; + ts.writecb = null; + + if (!util.isNullOrUndefined(data)) + stream.push(data); + + if (cb) + cb(er); + + var rs = stream._readableState; + rs.reading = false; + if (rs.needReadable || rs.length < rs.highWaterMark) { + stream._read(rs.highWaterMark); + } + } + + + function Transform(options) { + if (!(this instanceof Transform)) + return new Transform(options); + + Duplex.call(this, options); + + this._transformState = new TransformState(options, this); + + // when the writable side finishes, then flush out anything remaining. + var stream = this; + + // start out asking for a readable event once data is transformed. + this._readableState.needReadable = true; + + // we have implemented the _read method, and done the other things + // that Readable wants before the first _read call, so unset the + // sync guard flag. + this._readableState.sync = false; + + this.once('prefinish', function() { + if (util.isFunction(this._flush)) + this._flush(function(er) { + done(stream, er); + }); + else + done(stream); + }); + } + + Transform.prototype.push = function(chunk, encoding) { + this._transformState.needTransform = false; + return Duplex.prototype.push.call(this, chunk, encoding); + }; + + // This is the part where you do stuff! + // override this function in implementation classes. + // 'chunk' is an input chunk. + // + // Call `push(newChunk)` to pass along transformed output + // to the readable side. You may call 'push' zero or more times. + // + // Call `cb(err)` when you are done with this chunk. If you pass + // an error, then that'll put the hurt on the whole operation. If you + // never call cb(), then you'll never get another chunk. + Transform.prototype._transform = function(chunk, encoding, cb) { + throw new Error('not implemented'); + }; + + Transform.prototype._write = function(chunk, encoding, cb) { + var ts = this._transformState; + ts.writecb = cb; + ts.writechunk = chunk; + ts.writeencoding = encoding; + if (!ts.transforming) { + var rs = this._readableState; + if (ts.needTransform || + rs.needReadable || + rs.length < rs.highWaterMark) + this._read(rs.highWaterMark); + } + }; + + // Doesn't matter what the args are here. + // _transform does all the work. + // That we got here means that the readable side wants more data. + Transform.prototype._read = function(n) { + var ts = this._transformState; + + if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) { + ts.transforming = true; + this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); + } else { + // mark that we need a transform, so that any data that comes in + // will get processed, now that we've asked for it. + ts.needTransform = true; + } + }; + + + function done(stream, er) { + if (er) + return stream.emit('error', er); + + // if there's nothing in the write buffer, then that means + // that nothing more will ever be provided + var ws = stream._writableState; + var ts = stream._transformState; + + if (ws.length) + throw new Error('calling transform done when ws.length != 0'); + + if (ts.transforming) + throw new Error('calling transform done when still transforming'); + + return stream.push(null); + } + +}, { + "./_stream_duplex": 23, + "core-util-is": 28, + "inherits": 14 +} +], +27: [function(require, module, exports) { + (function (process) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + // A bit simpler than readable streams. + // Implement an async ._write(chunk, cb), and it'll handle all + // the drain event emission and buffering. + + module.exports = Writable; + + /*<replacement>*/ + var Buffer = require('buffer').Buffer; + /*</replacement>*/ + + Writable.WritableState = WritableState; + + + /*<replacement>*/ + var util = require('core-util-is'); + util.inherits = require('inherits'); + /*</replacement>*/ + + var Stream = require('stream'); + + util.inherits(Writable, Stream); + + function WriteReq(chunk, encoding, cb) { + this.chunk = chunk; + this.encoding = encoding; + this.callback = cb; + } + + function WritableState(options, stream) { + var Duplex = require('./_stream_duplex'); + + options = options || {}; + + // the point at which write() starts returning false + // Note: 0 is a valid value, means that we always return false if + // the entire buffer is not flushed immediately on write() + var hwm = options.highWaterMark; + var defaultHwm = options.objectMode ? 16 : 16 * 1024; + this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; + + // object stream flag to indicate whether or not this stream + // contains buffers or objects. + this.objectMode = !!options.objectMode; + + if (stream instanceof Duplex) + this.objectMode = this.objectMode || !!options.writableObjectMode; + + // cast to ints. + this.highWaterMark = ~~this.highWaterMark; + + this.needDrain = false; + // at the start of calling end() + this.ending = false; + // when end() has been called, and returned + this.ended = false; + // when 'finish' is emitted + this.finished = false; + + // should we decode strings into buffers before passing to _write? + // this is here so that some node-core streams can optimize string + // handling at a lower level. + var noDecode = options.decodeStrings === false; + this.decodeStrings = !noDecode; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // not an actual buffer we keep track of, but a measurement + // of how much we're waiting to get pushed to some underlying + // socket or file. + this.length = 0; + + // a flag to see when we're in the middle of a write. + this.writing = false; + + // when true all writes will be buffered until .uncork() call + this.corked = 0; + + // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + this.sync = true; + + // a flag to know if we're processing previously buffered items, which + // may call the _write() callback in the same tick, so that we don't + // end up in an overlapped onwrite situation. + this.bufferProcessing = false; + + // the callback that's passed to _write(chunk,cb) + this.onwrite = function(er) { + onwrite(stream, er); + }; + + // the callback that the user supplies to write(chunk,encoding,cb) + this.writecb = null; + + // the amount that is being written when _write is called. + this.writelen = 0; + + this.buffer = []; + + // number of pending user-supplied write callbacks + // this must be 0 before 'finish' can be emitted + this.pendingcb = 0; + + // emit prefinish if the only thing we're waiting for is _write cbs + // This is relevant for synchronous Transform streams + this.prefinished = false; + + // True if the error was already emitted and should not be thrown again + this.errorEmitted = false; + } + + function Writable(options) { + var Duplex = require('./_stream_duplex'); + + // Writable ctor is applied to Duplexes, though they're not + // instanceof Writable, they're instanceof Readable. + if (!(this instanceof Writable) && !(this instanceof Duplex)) + return new Writable(options); + + this._writableState = new WritableState(options, this); + + // legacy. + this.writable = true; + + Stream.call(this); + } + + // Otherwise people can pipe Writable streams, which is just wrong. + Writable.prototype.pipe = function() { + this.emit('error', new Error('Cannot pipe. Not readable.')); + }; + + + function writeAfterEnd(stream, state, cb) { + var er = new Error('write after end'); + // TODO: defer error events consistently everywhere, not just the cb + stream.emit('error', er); + process.nextTick(function() { + cb(er); + }); + } + + // If we get something that is not a buffer, string, null, or undefined, + // and we're not in objectMode, then that's an error. + // Otherwise stream chunks are all considered to be of length=1, and the + // watermarks determine how many objects to keep in the buffer, rather than + // how many bytes or characters. + function validChunk(stream, state, chunk, cb) { + var valid = true; + if (!util.isBuffer(chunk) && + !util.isString(chunk) && + !util.isNullOrUndefined(chunk) && + !state.objectMode) { + var er = new TypeError('Invalid non-string/buffer chunk'); + stream.emit('error', er); + process.nextTick(function() { + cb(er); + }); + valid = false; + } + return valid; + } + + Writable.prototype.write = function(chunk, encoding, cb) { + var state = this._writableState; + var ret = false; + + if (util.isFunction(encoding)) { + cb = encoding; + encoding = null; + } + + if (util.isBuffer(chunk)) + encoding = 'buffer'; + else if (!encoding) + encoding = state.defaultEncoding; + + if (!util.isFunction(cb)) + cb = function() {}; + + if (state.ended) + writeAfterEnd(this, state, cb); + else if (validChunk(this, state, chunk, cb)) { + state.pendingcb++; + ret = writeOrBuffer(this, state, chunk, encoding, cb); + } + + return ret; + }; + + Writable.prototype.cork = function() { + var state = this._writableState; + + state.corked++; + }; + + Writable.prototype.uncork = function() { + var state = this._writableState; + + if (state.corked) { + state.corked--; + + if (!state.writing && + !state.corked && + !state.finished && + !state.bufferProcessing && + state.buffer.length) + clearBuffer(this, state); + } + }; + + function decodeChunk(state, chunk, encoding) { + if (!state.objectMode && + state.decodeStrings !== false && + util.isString(chunk)) { + chunk = new Buffer(chunk, encoding); + } + return chunk; + } + + // if we're already writing something, then just put this + // in the queue, and wait our turn. Otherwise, call _write + // If we return false, then we need a drain event, so set that flag. + function writeOrBuffer(stream, state, chunk, encoding, cb) { + chunk = decodeChunk(state, chunk, encoding); + if (util.isBuffer(chunk)) + encoding = 'buffer'; + var len = state.objectMode ? 1 : chunk.length; + + state.length += len; + + var ret = state.length < state.highWaterMark; + // we must ensure that previous needDrain will not be reset to false. + if (!ret) + state.needDrain = true; + + if (state.writing || state.corked) + state.buffer.push(new WriteReq(chunk, encoding, cb)); + else + doWrite(stream, state, false, len, chunk, encoding, cb); + + return ret; + } + + function doWrite(stream, state, writev, len, chunk, encoding, cb) { + state.writelen = len; + state.writecb = cb; + state.writing = true; + state.sync = true; + if (writev) + stream._writev(chunk, state.onwrite); + else + stream._write(chunk, encoding, state.onwrite); + state.sync = false; + } + + function onwriteError(stream, state, sync, er, cb) { + if (sync) + process.nextTick(function() { + state.pendingcb--; + cb(er); + }); + else { + state.pendingcb--; + cb(er); + } + + stream._writableState.errorEmitted = true; + stream.emit('error', er); + } + + function onwriteStateUpdate(state) { + state.writing = false; + state.writecb = null; + state.length -= state.writelen; + state.writelen = 0; + } + + function onwrite(stream, er) { + var state = stream._writableState; + var sync = state.sync; + var cb = state.writecb; + + onwriteStateUpdate(state); + + if (er) + onwriteError(stream, state, sync, er, cb); + else { + // Check if we're actually ready to finish, but don't emit yet + var finished = needFinish(stream, state); + + if (!finished && + !state.corked && + !state.bufferProcessing && + state.buffer.length) { + clearBuffer(stream, state); + } + + if (sync) { + process.nextTick(function() { + afterWrite(stream, state, finished, cb); + }); + } else { + afterWrite(stream, state, finished, cb); + } + } + } + + function afterWrite(stream, state, finished, cb) { + if (!finished) + onwriteDrain(stream, state); + state.pendingcb--; + cb(); + finishMaybe(stream, state); + } + + // Must force callback to be called on nextTick, so that we don't + // emit 'drain' before the write() consumer gets the 'false' return + // value, and has a chance to attach a 'drain' listener. + function onwriteDrain(stream, state) { + if (state.length === 0 && state.needDrain) { + state.needDrain = false; + stream.emit('drain'); + } + } + + + // if there's something in the buffer waiting, then process it + function clearBuffer(stream, state) { + state.bufferProcessing = true; + + if (stream._writev && state.buffer.length > 1) { + // Fast case, write everything using _writev() + var cbs = []; + for (var c = 0; c < state.buffer.length; c++) + cbs.push(state.buffer[c].callback); + + // count the one we are adding, as well. + // TODO(isaacs) clean this up + state.pendingcb++; + doWrite(stream, state, true, state.length, state.buffer, '', function(err) { + for (var i = 0; i < cbs.length; i++) { + state.pendingcb--; + cbs[i](err); + } + }); + + // Clear buffer + state.buffer = []; + } else { + // Slow case, write chunks one-by-one + for (var c = 0; c < state.buffer.length; c++) { + var entry = state.buffer[c]; + var chunk = entry.chunk; + var encoding = entry.encoding; + var cb = entry.callback; + var len = state.objectMode ? 1 : chunk.length; + + doWrite(stream, state, false, len, chunk, encoding, cb); + + // if we didn't call the onwrite immediately, then + // it means that we need to wait until it does. + // also, that means that the chunk and cb are currently + // being processed, so move the buffer counter past them. + if (state.writing) { + c++; + break; + } + } + + if (c < state.buffer.length) + state.buffer = state.buffer.slice(c); + else + state.buffer.length = 0; + } + + state.bufferProcessing = false; + } + + Writable.prototype._write = function(chunk, encoding, cb) { + cb(new Error('not implemented')); + + }; + + Writable.prototype._writev = null; + + Writable.prototype.end = function(chunk, encoding, cb) { + var state = this._writableState; + + if (util.isFunction(chunk)) { + cb = chunk; + chunk = null; + encoding = null; + } else if (util.isFunction(encoding)) { + cb = encoding; + encoding = null; + } + + if (!util.isNullOrUndefined(chunk)) + this.write(chunk, encoding); + + // .end() fully uncorks + if (state.corked) { + state.corked = 1; + this.uncork(); + } + + // ignore unnecessary end() calls. + if (!state.ending && !state.finished) + endWritable(this, state, cb); + }; + + + function needFinish(stream, state) { + return (state.ending && + state.length === 0 && + !state.finished && + !state.writing); + } + + function prefinish(stream, state) { + if (!state.prefinished) { + state.prefinished = true; + stream.emit('prefinish'); + } + } + + function finishMaybe(stream, state) { + var need = needFinish(stream, state); + if (need) { + if (state.pendingcb === 0) { + prefinish(stream, state); + state.finished = true; + stream.emit('finish'); + } else + prefinish(stream, state); + } + return need; + } + + function endWritable(stream, state, cb) { + state.ending = true; + finishMaybe(stream, state); + if (cb) { + if (state.finished) + process.nextTick(cb); + else + stream.once('finish', cb); + } + state.ended = true; + } + + }).call(this, require('_process')) +}, { + "./_stream_duplex": 23, + "_process": 17, + "buffer": 5, + "core-util-is": 28, + "inherits": 14, + "stream": 33 +} +], +28: [function(require, module, exports) { + (function (Buffer) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + // NOTE: These type checking functions intentionally don't use `instanceof` + // because it is fragile and can be easily faked with `Object.create()`. + function isArray(ar) { + return Array.isArray(ar); + } + exports.isArray = isArray; + + function isBoolean(arg) { + return typeof arg === 'boolean'; + } + exports.isBoolean = isBoolean; + + function isNull(arg) { + return arg === null; + } + exports.isNull = isNull; + + function isNullOrUndefined(arg) { + return arg == null; + } + exports.isNullOrUndefined = isNullOrUndefined; + + function isNumber(arg) { + return typeof arg === 'number'; + } + exports.isNumber = isNumber; + + function isString(arg) { + return typeof arg === 'string'; + } + exports.isString = isString; + + function isSymbol(arg) { + return typeof arg === 'symbol'; + } + exports.isSymbol = isSymbol; + + function isUndefined(arg) { + return arg === void 0; + } + exports.isUndefined = isUndefined; + + function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; + } + exports.isRegExp = isRegExp; + + function isObject(arg) { + return typeof arg === 'object' && arg !== null; + } + exports.isObject = isObject; + + function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; + } + exports.isDate = isDate; + + function isError(e) { + return isObject(e) && + (objectToString(e) === '[object Error]' || e instanceof Error); + } + exports.isError = isError; + + function isFunction(arg) { + return typeof arg === 'function'; + } + exports.isFunction = isFunction; + + function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; + } + exports.isPrimitive = isPrimitive; + + function isBuffer(arg) { + return Buffer.isBuffer(arg); + } + exports.isBuffer = isBuffer; + + function objectToString(o) { + return Object.prototype.toString.call(o); + } + }).call(this, { + "isBuffer": require("/Users/sheffernan/Code/videojs.com/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/is-buffer/index.js") + }) +}, { + "/Users/sheffernan/Code/videojs.com/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/is-buffer/index.js": 15 +} +], +29: [function(require, module, exports) { + module.exports = require("./lib/_stream_passthrough.js") +}, { + "./lib/_stream_passthrough.js": 24 +} +], +30: [function(require, module, exports) { + exports = module.exports = require('./lib/_stream_readable.js'); + exports.Stream = require('stream'); + exports.Readable = exports; + exports.Writable = require('./lib/_stream_writable.js'); + exports.Duplex = require('./lib/_stream_duplex.js'); + exports.Transform = require('./lib/_stream_transform.js'); + exports.PassThrough = require('./lib/_stream_passthrough.js'); + +}, { + "./lib/_stream_duplex.js": 23, + "./lib/_stream_passthrough.js": 24, + "./lib/_stream_readable.js": 25, + "./lib/_stream_transform.js": 26, + "./lib/_stream_writable.js": 27, + "stream": 33 +} +], +31: [function(require, module, exports) { + module.exports = require("./lib/_stream_transform.js") +}, { + "./lib/_stream_transform.js": 26 +} +], +32: [function(require, module, exports) { + module.exports = require("./lib/_stream_writable.js") +}, { + "./lib/_stream_writable.js": 27 +} +], +33: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + module.exports = Stream; + + var EE = require('events').EventEmitter; + var inherits = require('inherits'); + + inherits(Stream, EE); + Stream.Readable = require('readable-stream/readable.js'); + Stream.Writable = require('readable-stream/writable.js'); + Stream.Duplex = require('readable-stream/duplex.js'); + Stream.Transform = require('readable-stream/transform.js'); + Stream.PassThrough = require('readable-stream/passthrough.js'); + + // Backwards-compat with node 0.4.x + Stream.Stream = Stream; + + + + // old-style streams. Note that the pipe method (the only relevant + // part of this class) is overridden in the Readable class. + + function Stream() { + EE.call(this); + } + + Stream.prototype.pipe = function(dest, options) { + var source = this; + + function ondata(chunk) { + if (dest.writable) { + if (false === dest.write(chunk) && source.pause) { + source.pause(); + } + } + } + + source.on('data', ondata); + + function ondrain() { + if (source.readable && source.resume) { + source.resume(); + } + } + + dest.on('drain', ondrain); + + // If the 'end' option is not supplied, dest.end() will be called when + // source gets the 'end' or 'close' events. Only dest.end() once. + if (!dest._isStdio && (!options || options.end !== false)) { + source.on('end', onend); + source.on('close', onclose); + } + + var didOnEnd = false; + function onend() { + if (didOnEnd) + return; + didOnEnd = true; + + dest.end(); + } + + + function onclose() { + if (didOnEnd) + return; + didOnEnd = true; + + if (typeof dest.destroy === 'function') + dest.destroy(); + } + + // don't leave dangling pipes when there are errors. + function onerror(er) { + cleanup(); + if (EE.listenerCount(this, 'error') === 0) { + throw er; // Unhandled stream error in pipe. + } + } + + source.on('error', onerror); + dest.on('error', onerror); + + // remove all the event listeners that were added. + function cleanup() { + source.removeListener('data', ondata); + dest.removeListener('drain', ondrain); + + source.removeListener('end', onend); + source.removeListener('close', onclose); + + source.removeListener('error', onerror); + dest.removeListener('error', onerror); + + source.removeListener('end', cleanup); + source.removeListener('close', cleanup); + + dest.removeListener('close', cleanup); + } + + source.on('end', cleanup); + source.on('close', cleanup); + + dest.on('close', cleanup); + + dest.emit('pipe', source); + + // Allow for unix-like usage: A.pipe(B).pipe(C) + return dest; + }; + +}, { + "events": 9, + "inherits": 14, + "readable-stream/duplex.js": 22, + "readable-stream/passthrough.js": 29, + "readable-stream/readable.js": 30, + "readable-stream/transform.js": 31, + "readable-stream/writable.js": 32 +} +], +34: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + var Buffer = require('buffer').Buffer; + + var isBufferEncoding = Buffer.isEncoding + || function(encoding) { + switch (encoding && encoding.toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + case 'raw': + return true; + default: + return false; + } + } + + + function assertEncoding(encoding) { + if (encoding && !isBufferEncoding(encoding)) { + throw new Error('Unknown encoding: ' + encoding); + } + } + + // StringDecoder provides an interface for efficiently splitting a series of + // buffers into a series of JS strings without breaking apart multi-byte + // characters. CESU-8 is handled as part of the UTF-8 encoding. + // + // @TODO Handling all encodings inside a single object makes it very difficult + // to reason about this code, so it should be split up in the future. + // @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code + // points as used by CESU-8. + var StringDecoder = exports.StringDecoder = function(encoding) { + this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, ''); + assertEncoding(encoding); + switch (this.encoding) { + case 'utf8': + // CESU-8 represents each of Surrogate Pair by 3-bytes + this.surrogateSize = 3; + break; + case 'ucs2': + case 'utf16le': + // UTF-16 represents each of Surrogate Pair by 2-bytes + this.surrogateSize = 2; + this.detectIncompleteChar = utf16DetectIncompleteChar; + break; + case 'base64': + // Base-64 stores 3 bytes in 4 chars, and pads the remainder. + this.surrogateSize = 3; + this.detectIncompleteChar = base64DetectIncompleteChar; + break; + default: + this.write = passThroughWrite; + return; + } + + // Enough space to store all bytes of a single character. UTF-8 needs 4 + // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate). + this.charBuffer = new Buffer(6); + // Number of bytes received for the current incomplete multi-byte character. + this.charReceived = 0; + // Number of bytes expected for the current incomplete multi-byte character. + this.charLength = 0; + }; + + + // write decodes the given buffer and returns it as JS string that is + // guaranteed to not contain any partial multi-byte characters. Any partial + // character found at the end of the buffer is buffered up, and will be + // returned when calling write again with the remaining bytes. + // + // Note: Converting a Buffer containing an orphan surrogate to a String + // currently works, but converting a String to a Buffer (via `new Buffer`, or + // Buffer#write) will replace incomplete surrogates with the unicode + // replacement character. See https://codereview.chromium.org/121173009/ . + StringDecoder.prototype.write = function(buffer) { + var charStr = ''; + // if our last write ended with an incomplete multibyte character + while (this.charLength) { + // determine how many remaining bytes this buffer has to offer for this char + var available = (buffer.length >= this.charLength - this.charReceived) ? + this.charLength - this.charReceived : + buffer.length; + + // add the new bytes to the char buffer + buffer.copy(this.charBuffer, this.charReceived, 0, available); + this.charReceived += available; + + if (this.charReceived < this.charLength) { + // still not enough chars in this buffer? wait for more ... + return ''; + } + + // remove bytes belonging to the current character from the buffer + buffer = buffer.slice(available, buffer.length); + + // get the character that was split + charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding); + + // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character + var charCode = charStr.charCodeAt(charStr.length - 1); + if (charCode >= 0xD800 && charCode <= 0xDBFF) { + this.charLength += this.surrogateSize; + charStr = ''; + continue; + } + this.charReceived = this.charLength = 0; + + // if there are no more bytes in this buffer, just emit our char + if (buffer.length === 0) { + return charStr; + } + break; + } + + // determine and set charLength / charReceived + this.detectIncompleteChar(buffer); + + var end = buffer.length; + if (this.charLength) { + // buffer the incomplete character bytes we got + buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end); + end -= this.charReceived; + } + + charStr += buffer.toString(this.encoding, 0, end); + + var end = charStr.length - 1; + var charCode = charStr.charCodeAt(end); + // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character + if (charCode >= 0xD800 && charCode <= 0xDBFF) { + var size = this.surrogateSize; + this.charLength += size; + this.charReceived += size; + this.charBuffer.copy(this.charBuffer, size, 0, size); + buffer.copy(this.charBuffer, 0, 0, size); + return charStr.substring(0, end); + } + + // or just emit the charStr + return charStr; + }; + + // detectIncompleteChar determines if there is an incomplete UTF-8 character at + // the end of the given buffer. If so, it sets this.charLength to the byte + // length that character, and sets this.charReceived to the number of bytes + // that are available for this character. + StringDecoder.prototype.detectIncompleteChar = function(buffer) { + // determine how many bytes we have to check at the end of this buffer + var i = (buffer.length >= 3) ? 3 : buffer.length; + + // Figure out if one of the last i bytes of our buffer announces an + // incomplete char. + for (; i > 0; i--) { + var c = buffer[buffer.length - i]; + + // See http://en.wikipedia.org/wiki/UTF-8#Description + + // 110XXXXX + if (i == 1 && c >> 5 == 0x06) { + this.charLength = 2; + break; + } + + // 1110XXXX + if (i <= 2 && c >> 4 == 0x0E) { + this.charLength = 3; + break; + } + + // 11110XXX + if (i <= 3 && c >> 3 == 0x1E) { + this.charLength = 4; + break; + } + } + this.charReceived = i; + }; + + StringDecoder.prototype.end = function(buffer) { + var res = ''; + if (buffer && buffer.length) + res = this.write(buffer); + + if (this.charReceived) { + var cr = this.charReceived; + var buf = this.charBuffer; + var enc = this.encoding; + res += buf.slice(0, cr).toString(enc); + } + + return res; + }; + + function passThroughWrite(buffer) { + return buffer.toString(this.encoding); + } + + function utf16DetectIncompleteChar(buffer) { + this.charReceived = buffer.length % 2; + this.charLength = this.charReceived ? 2 : 0; + } + + function base64DetectIncompleteChar(buffer) { + this.charReceived = buffer.length % 3; + this.charLength = this.charReceived ? 3 : 0; + } + +}, { + "buffer": 5 +} +], +35: [function(require, module, exports) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + var punycode = require('punycode'); + + exports.parse = urlParse; + exports.resolve = urlResolve; + exports.resolveObject = urlResolveObject; + exports.format = urlFormat; + + exports.Url = Url; + + function Url() { + this.protocol = null; + this.slashes = null; + this.auth = null; + this.host = null; + this.port = null; + this.hostname = null; + this.hash = null; + this.search = null; + this.query = null; + this.pathname = null; + this.path = null; + this.href = null; + } + + // Reference: RFC 3986, RFC 1808, RFC 2396 + + // define these here so at least they only have to be + // compiled once on the first module load. + var protocolPattern = /^([a-z0-9.+-]+:)/i, + portPattern = /:[0-9]*$/, + // RFC 2396: characters reserved for delimiting URLs. + // We actually just auto-escape these. + delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], + // RFC 2396: characters not allowed for various reasons. + unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), + // Allowed by RFCs, but cause of XSS attacks. Always escape these. + autoEscape = ['\''].concat(unwise), + // Characters that are never ever allowed in a hostname. + // Note that any invalid chars are also handled, but these + // are the ones that are *expected* to be seen, so we fast-path + // them. + nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), + hostEndingChars = ['/', '?', '#'], + hostnameMaxLen = 255, + hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/, + hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/, + // protocols that can allow "unsafe" and "unwise" chars. + unsafeProtocol = { + 'javascript': true, + 'javascript:': true + }, + // protocols that never have a hostname. + hostlessProtocol = { + 'javascript': true, + 'javascript:': true + }, + // protocols that always contain a // bit. + slashedProtocol = { + 'http': true, + 'https': true, + 'ftp': true, + 'gopher': true, + 'file': true, + 'http:': true, + 'https:': true, + 'ftp:': true, + 'gopher:': true, + 'file:': true + }, + querystring = require('querystring'); + + function urlParse(url, parseQueryString, slashesDenoteHost) { + if (url && isObject(url) && url instanceof Url) + return url; + + var u = new Url; + u.parse(url, parseQueryString, slashesDenoteHost); + return u; + } + + Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { + if (!isString(url)) { + throw new TypeError("Parameter 'url' must be a string, not " + typeof url); + } + + var rest = url; + + // trim before proceeding. + // This is to support parse stuff like " http://foo.com \n" + rest = rest.trim(); + + var proto = protocolPattern.exec(rest); + if (proto) { + proto = proto[0]; + var lowerProto = proto.toLowerCase(); + this.protocol = lowerProto; + rest = rest.substr(proto.length); + } + + // figure out if it's got a host + // user@server is *always* interpreted as a hostname, and url + // resolution will treat //foo/bar as host=foo,path=bar because that's + // how the browser resolves relative URLs. + if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { + var slashes = rest.substr(0, 2) === '//'; + if (slashes && !(proto && hostlessProtocol[proto])) { + rest = rest.substr(2); + this.slashes = true; + } + } + + if (!hostlessProtocol[proto] && + (slashes || (proto && !slashedProtocol[proto]))) { + + // there's a hostname. + // the first instance of /, ?, ;, or # ends the host. + // + // If there is an @ in the hostname, then non-host chars *are* allowed + // to the left of the last @ sign, unless some host-ending character + // comes *before* the @-sign. + // URLs are obnoxious. + // + // ex: + // http://a@b@c/ => user:a@b host:c + // http://a@b?@c => user:a host:c path:/?@c + + // v0.12 TODO(isaacs): This is not quite how Chrome does things. + // Review our test case against browsers more comprehensively. + + // find the first instance of any hostEndingChars + var hostEnd = - 1; + for (var i = 0; i < hostEndingChars.length; i++) { + var hec = rest.indexOf(hostEndingChars[i]); + if (hec !== - 1 && (hostEnd === - 1 || hec < hostEnd)) + hostEnd = hec; + } + + // at this point, either we have an explicit point where the + // auth portion cannot go past, or the last @ char is the decider. + var auth, atSign; + if (hostEnd === - 1) { + // atSign can be anywhere. + atSign = rest.lastIndexOf('@'); + } else { + // atSign must be in auth portion. + // http://a@b/c@d => host:b auth:a path:/c@d + atSign = rest.lastIndexOf('@', hostEnd); + } + + // Now we have a portion which is definitely the auth. + // Pull that off. + if (atSign !== - 1) { + auth = rest.slice(0, atSign); + rest = rest.slice(atSign + 1); + this.auth = decodeURIComponent(auth); + } + + // the host is the remaining to the left of the first non-host char + hostEnd = - 1; + for (var i = 0; i < nonHostChars.length; i++) { + var hec = rest.indexOf(nonHostChars[i]); + if (hec !== - 1 && (hostEnd === - 1 || hec < hostEnd)) + hostEnd = hec; + } + // if we still have not hit it, then the entire thing is a host. + if (hostEnd === - 1) + hostEnd = rest.length; + + this.host = rest.slice(0, hostEnd); + rest = rest.slice(hostEnd); + + // pull out port. + this.parseHost(); + + // we've indicated that there is a hostname, + // so even if it's empty, it has to be present. + this.hostname = this.hostname || ''; + + // if hostname begins with [ and ends with ] + // assume that it's an IPv6 address. + var ipv6Hostname = this.hostname[0] === '[' && + this.hostname[this.hostname.length - 1] === ']'; + + // validate a little. + if (!ipv6Hostname) { + var hostparts = this.hostname.split(/\./); + for (var i = 0, l = hostparts.length; i < l; i++) { + var part = hostparts[i]; + if (!part) + continue; + if (!part.match(hostnamePartPattern)) { + var newpart = ''; + for (var j = 0, k = part.length; j < k; j++) { + if (part.charCodeAt(j) > 127) { + // we replace non-ASCII char with a temporary placeholder + // we need this to make sure size of hostname is not + // broken by replacing non-ASCII by nothing + newpart += 'x'; + } else { + newpart += part[j]; + } + } + // we test again with ASCII char only + if (!newpart.match(hostnamePartPattern)) { + var validParts = hostparts.slice(0, i); + var notHost = hostparts.slice(i + 1); + var bit = part.match(hostnamePartStart); + if (bit) { + validParts.push(bit[1]); + notHost.unshift(bit[2]); + } + if (notHost.length) { + rest = '/' + notHost.join('.') + rest; + } + this.hostname = validParts.join('.'); + break; + } + } + } + } + + if (this.hostname.length > hostnameMaxLen) { + this.hostname = ''; + } else { + // hostnames are always lower case. + this.hostname = this.hostname.toLowerCase(); + } + + if (!ipv6Hostname) { + // IDNA Support: Returns a puny coded representation of "domain". + // It only converts the part of the domain name that + // has non ASCII characters. I.e. it dosent matter if + // you call it with a domain that already is in ASCII. + var domainArray = this.hostname.split('.'); + var newOut = []; + for (var i = 0; i < domainArray.length; ++i) { + var s = domainArray[i]; + newOut.push(s.match(/[^A-Za-z0-9_-]/) ? + 'xn--' + punycode.encode(s) : s); + } + this.hostname = newOut.join('.'); + } + + var p = this.port ? ':' + this.port : ''; + var h = this.hostname || ''; + this.host = h + p; + this.href += this.host; + + // strip [ and ] from the hostname + // the host field still retains them, though + if (ipv6Hostname) { + this.hostname = this.hostname.substr(1, this.hostname.length - 2); + if (rest[0] !== '/') { + rest = '/' + rest; + } + } + } + + // now rest is set to the post-host stuff. + // chop off any delim chars. + if (!unsafeProtocol[lowerProto]) { + + // First, make 100% sure that any "autoEscape" chars get + // escaped, even if encodeURIComponent doesn't think they + // need to be. + for (var i = 0, l = autoEscape.length; i < l; i++) { + var ae = autoEscape[i]; + var esc = encodeURIComponent(ae); + if (esc === ae) { + esc = escape(ae); + } + rest = rest.split(ae).join(esc); + } + } + + + // chop off from the tail first. + var hash = rest.indexOf('#'); + if (hash !== - 1) { + // got a fragment string. + this.hash = rest.substr(hash); + rest = rest.slice(0, hash); + } + var qm = rest.indexOf('?'); + if (qm !== - 1) { + this.search = rest.substr(qm); + this.query = rest.substr(qm + 1); + if (parseQueryString) { + this.query = querystring.parse(this.query); + } + rest = rest.slice(0, qm); + } else if (parseQueryString) { + // no query string, but parseQueryString still requested + this.search = ''; + this.query = {}; + } + if (rest) + this.pathname = rest; + if (slashedProtocol[lowerProto] && + this.hostname && !this.pathname) { + this.pathname = '/'; + } + + //to support http.request + if (this.pathname || this.search) { + var p = this.pathname || ''; + var s = this.search || ''; + this.path = p + s; + } + + // finally, reconstruct the href based on what has been validated. + this.href = this.format(); + return this; + }; + + // format a parsed object into a url string + function urlFormat(obj) { + // ensure it's an object, and not a string url. + // If it's an obj, this is a no-op. + // this way, you can call url_format() on strings + // to clean up potentially wonky urls. + if (isString(obj)) + obj = urlParse(obj); + if (!(obj instanceof Url)) + return Url.prototype.format.call(obj); + return obj.format(); + } + + Url.prototype.format = function() { + var auth = this.auth || ''; + if (auth) { + auth = encodeURIComponent(auth); + auth = auth.replace(/%3A/i, ':'); + auth += '@'; + } + + var protocol = this.protocol || '', + pathname = this.pathname || '', + hash = this.hash || '', + host = false, + query = ''; + + if (this.host) { + host = auth + this.host; + } else if (this.hostname) { + host = auth + (this.hostname.indexOf(':') === - 1 ? + this.hostname : + '[' + this.hostname + ']'); + if (this.port) { + host += ':' + this.port; + } + } + + if (this.query && + isObject(this.query) && + Object.keys(this.query).length) { + query = querystring.stringify(this.query); + } + + var search = this.search || (query && ('?' + query)) || ''; + + if (protocol && protocol.substr( - 1) !== ':') + protocol += ':'; + + // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. + // unless they had them to begin with. + if (this.slashes || + (!protocol || slashedProtocol[protocol]) && host !== false) { + host = '//' + (host || ''); + if (pathname && pathname.charAt(0) !== '/') + pathname = '/' + pathname; + } else if (!host) { + host = ''; + } + + if (hash && hash.charAt(0) !== '#') + hash = '#' + hash; + if (search && search.charAt(0) !== '?') + search = '?' + search; + + pathname = pathname.replace(/[?#]/g, function(match) { + return encodeURIComponent(match); + }); + search = search.replace('#', '%23'); + + return protocol + host + pathname + search + hash; + }; + + function urlResolve(source, relative) { + return urlParse(source, false, true).resolve(relative); + } + + Url.prototype.resolve = function(relative) { + return this.resolveObject(urlParse(relative, false, true)).format(); + }; + + function urlResolveObject(source, relative) { + if (!source) + return relative; + return urlParse(source, false, true).resolveObject(relative); + } + + Url.prototype.resolveObject = function(relative) { + if (isString(relative)) { + var rel = new Url(); + rel.parse(relative, false, true); + relative = rel; + } + + var result = new Url(); + Object.keys(this).forEach(function(k) { + result[k] = this[k]; + }, this); + + // hash is always overridden, no matter what. + // even href="" will remove it. + result.hash = relative.hash; + + // if the relative url is empty, then there's nothing left to do here. + if (relative.href === '') { + result.href = result.format(); + return result; + } + + // hrefs like //foo/bar always cut to the protocol. + if (relative.slashes && !relative.protocol) { + // take everything except the protocol from relative + Object.keys(relative).forEach(function(k) { + if (k !== 'protocol') + result[k] = relative[k]; + }); + + //urlParse appends trailing / to urls like http://www.example.com + if (slashedProtocol[result.protocol] && + result.hostname && !result.pathname) { + result.path = result.pathname = '/'; + } + + result.href = result.format(); + return result; + } + + if (relative.protocol && relative.protocol !== result.protocol) { + // if it's a known url protocol, then changing + // the protocol does weird things + // first, if it's not file:, then we MUST have a host, + // and if there was a path + // to begin with, then we MUST have a path. + // if it is file:, then the host is dropped, + // because that's known to be hostless. + // anything else is assumed to be absolute. + if (!slashedProtocol[relative.protocol]) { + Object.keys(relative).forEach(function(k) { + result[k] = relative[k]; + }); + result.href = result.format(); + return result; + } + + result.protocol = relative.protocol; + if (!relative.host && !hostlessProtocol[relative.protocol]) { + var relPath = (relative.pathname || '').split('/'); + while (relPath.length && !(relative.host = relPath.shift())); + if (!relative.host) + relative.host = ''; + if (!relative.hostname) + relative.hostname = ''; + if (relPath[0] !== '') + relPath.unshift(''); + if (relPath.length < 2) + relPath.unshift(''); + result.pathname = relPath.join('/'); + } else { + result.pathname = relative.pathname; + } + result.search = relative.search; + result.query = relative.query; + result.host = relative.host || ''; + result.auth = relative.auth; + result.hostname = relative.hostname || relative.host; + result.port = relative.port; + // to support http.request + if (result.pathname || result.search) { + var p = result.pathname || ''; + var s = result.search || ''; + result.path = p + s; + } + result.slashes = result.slashes || relative.slashes; + result.href = result.format(); + return result; + } + + var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), + isRelAbs = ( + relative.host || + relative.pathname && relative.pathname.charAt(0) === '/' + ), + mustEndAbs = (isRelAbs || isSourceAbs || + (result.host && relative.pathname)), + removeAllDots = mustEndAbs, + srcPath = result.pathname && result.pathname.split('/') || [], + relPath = relative.pathname && relative.pathname.split('/') || [], + psychotic = result.protocol && !slashedProtocol[result.protocol]; + + // if the url is a non-slashed url, then relative + // links like ../.. should be able + // to crawl up to the hostname, as well. This is strange. + // result.protocol has already been set by now. + // Later on, put the first path part into the host field. + if (psychotic) { + result.hostname = ''; + result.port = null; + if (result.host) { + if (srcPath[0] === '') + srcPath[0] = result.host; + else + srcPath.unshift(result.host); + } + result.host = ''; + if (relative.protocol) { + relative.hostname = null; + relative.port = null; + if (relative.host) { + if (relPath[0] === '') + relPath[0] = relative.host; + else + relPath.unshift(relative.host); + } + relative.host = null; + } + mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); + } + + if (isRelAbs) { + // it's absolute. + result.host = (relative.host || relative.host === '') ? + relative.host : result.host; + result.hostname = (relative.hostname || relative.hostname === '') ? + relative.hostname : result.hostname; + result.search = relative.search; + result.query = relative.query; + srcPath = relPath; + // fall through to the dot-handling below. + } else if (relPath.length) { + // it's relative + // throw away the existing file, and take the new path instead. + if (!srcPath) + srcPath = []; + srcPath.pop(); + srcPath = srcPath.concat(relPath); + result.search = relative.search; + result.query = relative.query; + } else if (!isNullOrUndefined(relative.search)) { + // just pull out the search. + // like href='?foo'. + // Put this after the other two cases because it simplifies the booleans + if (psychotic) { + result.hostname = result.host = srcPath.shift(); + //occationaly the auth can get stuck only in host + //this especialy happens in cases like + //url.resolveObject('mailto:local1@domain1', 'local2@domain2') + var authInHost = result.host && result.host.indexOf('@') > 0 ? + result.host.split('@') : false; + if (authInHost) { + result.auth = authInHost.shift(); + result.host = result.hostname = authInHost.shift(); + } + } + result.search = relative.search; + result.query = relative.query; + //to support http.request + if (!isNull(result.pathname) || !isNull(result.search)) { + result.path = (result.pathname ? result.pathname : '') + + (result.search ? result.search : ''); + } + result.href = result.format(); + return result; + } + + if (!srcPath.length) { + // no path at all. easy. + // we've already handled the other stuff above. + result.pathname = null; + //to support http.request + if (result.search) { + result.path = '/' + result.search; + } else { + result.path = null; + } + result.href = result.format(); + return result; + } + + // if a url ENDs in . or .., then it must get a trailing slash. + // however, if it ends in anything else non-slashy, + // then it must NOT get a trailing slash. + var last = srcPath.slice( - 1)[0]; + var hasTrailingSlash = ( + (result.host || relative.host) && (last === '.' || last === '..') || + last === ''); + + // strip single dots, resolve double dots to parent dir + // if the path tries to go above the root, `up` ends up > 0 + var up = 0; + for (var i = srcPath.length; i >= 0; i--) { + last = srcPath[i]; + if (last == '.') { + srcPath.splice(i, 1); + } else if (last === '..') { + srcPath.splice(i, 1); + up++; + } else if (up) { + srcPath.splice(i, 1); + up--; + } + } + + // if the path is allowed to go above the root, restore leading ..s + if (!mustEndAbs && !removeAllDots) { + for (; up--; up) { + srcPath.unshift('..'); + } + } + + if (mustEndAbs && srcPath[0] !== '' && + (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { + srcPath.unshift(''); + } + + if (hasTrailingSlash && (srcPath.join('/').substr( - 1) !== '/')) { + srcPath.push(''); + } + + var isAbsolute = srcPath[0] === '' || + (srcPath[0] && srcPath[0].charAt(0) === '/'); + + // put the host back + if (psychotic) { + result.hostname = result.host = isAbsolute ? '' : + srcPath.length ? srcPath.shift() : ''; + //occationaly the auth can get stuck only in host + //this especialy happens in cases like + //url.resolveObject('mailto:local1@domain1', 'local2@domain2') + var authInHost = result.host && result.host.indexOf('@') > 0 ? + result.host.split('@') : false; + if (authInHost) { + result.auth = authInHost.shift(); + result.host = result.hostname = authInHost.shift(); + } + } + + mustEndAbs = mustEndAbs || (result.host && srcPath.length); + + if (mustEndAbs && !isAbsolute) { + srcPath.unshift(''); + } + + if (!srcPath.length) { + result.pathname = null; + result.path = null; + } else { + result.pathname = srcPath.join('/'); + } + + //to support request.http + if (!isNull(result.pathname) || !isNull(result.search)) { + result.path = (result.pathname ? result.pathname : '') + + (result.search ? result.search : ''); + } + result.auth = relative.auth || result.auth; + result.slashes = result.slashes || relative.slashes; + result.href = result.format(); + return result; + }; + + Url.prototype.parseHost = function() { + var host = this.host; + var port = portPattern.exec(host); + if (port) { + port = port[0]; + if (port !== ':') { + this.port = port.substr(1); + } + host = host.substr(0, host.length - port.length); + } + if (host) + this.hostname = host; + }; + + function isString(arg) { + return typeof arg === "string"; + } + + function isObject(arg) { + return typeof arg === 'object' && arg !== null; + } + + function isNull(arg) { + return arg === null; + } + function isNullOrUndefined(arg) { + return arg == null; + } + +}, { + "punycode": 18, + "querystring": 21 +} +], +36: [function(require, module, exports) { + module.exports = function isBuffer(arg) { + return arg && typeof arg === 'object' + && typeof arg.copy === 'function' + && typeof arg.fill === 'function' + && typeof arg.readUInt8 === 'function'; + } +}, {} +], +37: [function(require, module, exports) { + (function (process, global) { + // Copyright Joyent, Inc. and other Node contributors. + // + // Permission is hereby granted, free of charge, to any person obtaining a + // copy of this software and associated documentation files (the + // "Software"), to deal in the Software without restriction, including + // without limitation the rights to use, copy, modify, merge, publish, + // distribute, sublicense, and/or sell copies of the Software, and to permit + // persons to whom the Software is furnished to do so, subject to the + // following conditions: + // + // The above copyright notice and this permission notice shall be included + // in all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + // USE OR OTHER DEALINGS IN THE SOFTWARE. + + var formatRegExp = /%[sdj%]/g; + exports.format = function(f) { + if (!isString(f)) { + var objects = []; + for (var i = 0; i < arguments.length; i++) { + objects.push(inspect(arguments[i])); + } + return objects.join(' '); + } + + var i = 1; + var args = arguments; + var len = args.length; + var str = String(f).replace(formatRegExp, function(x) { + if (x === '%%') + return '%'; + if (i >= len) + return x; + switch (x) { + case '%s': + return String(args[i++]); + case '%d': + return Number(args[i++]); + case '%j': + try { + return JSON.stringify(args[i++]); + } catch (_) { + return '[Circular]'; + } + default: + return x; + } + }); + for (var x = args[i]; i < len; x = args[++i]) { + if (isNull(x) || !isObject(x)) { + str += ' ' + x; + } else { + str += ' ' + inspect(x); + } + } + return str; + }; + + + // Mark that a method should not be used. + // Returns a modified function which warns once by default. + // If --no-deprecation is set, then it is a no-op. + exports.deprecate = function(fn, msg) { + // Allow for deprecating things in the process of starting up. + if (isUndefined(global.process)) { + return function() { + return exports.deprecate(fn, msg).apply(this, arguments); + }; + } + + if (process.noDeprecation === true) { + return fn; + } + + var warned = false; + function deprecated() { + if (!warned) { + if (process.throwDeprecation) { + throw new Error(msg); + } else if (process.traceDeprecation) { + console.trace(msg); + } else { + console.error(msg); + } + warned = true; + } + return fn.apply(this, arguments); + } + + return deprecated; + }; + + + var debugs = {}; + var debugEnviron; + exports.debuglog = function(set) { + if (isUndefined(debugEnviron)) + debugEnviron = process.env.NODE_DEBUG || ''; + set = set.toUpperCase(); + if (!debugs[set]) { + if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { + var pid = process.pid; + debugs[set] = function() { + var msg = exports.format.apply(exports, arguments); + console.error('%s %d: %s', set, pid, msg); + }; + } else { + debugs[set] = function() {}; + } + } + return debugs[set]; + }; + + + /** + * Echos the value of a value. Trys to print the value out + * in the best way possible given the different types. + * + * @param {Object} obj The object to print out. + * @param {Object} opts Optional options object that alters the output. + */ + /* legacy: obj, showHidden, depth, colors*/ + function inspect(obj, opts) { + // default options + var ctx = { + seen: [], + stylize: stylizeNoColor + }; + // legacy... + if (arguments.length >= 3) + ctx.depth = arguments[2]; + if (arguments.length >= 4) + ctx.colors = arguments[3]; + if (isBoolean(opts)) { + // legacy... + ctx.showHidden = opts; + } else if (opts) { + // got an "options" object + exports._extend(ctx, opts); + } + // set default options + if (isUndefined(ctx.showHidden)) + ctx.showHidden = false; + if (isUndefined(ctx.depth)) + ctx.depth = 2; + if (isUndefined(ctx.colors)) + ctx.colors = false; + if (isUndefined(ctx.customInspect)) + ctx.customInspect = true; + if (ctx.colors) + ctx.stylize = stylizeWithColor; + return formatValue(ctx, obj, ctx.depth); + } + exports.inspect = inspect; + + + // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics + inspect.colors = { + 'bold' : [1, 22], + 'italic' : [3, 23], + 'underline' : [4, 24], + 'inverse' : [7, 27], + 'white' : [37, 39], + 'grey' : [90, 39], + 'black' : [30, 39], + 'blue' : [34, 39], + 'cyan' : [36, 39], + 'green' : [32, 39], + 'magenta' : [35, 39], + 'red' : [31, 39], + 'yellow' : [33, 39] + }; + + // Don't use 'blue' not visible on cmd.exe + inspect.styles = { + 'special': 'cyan', + 'number': 'yellow', + 'boolean': 'yellow', + 'undefined': 'grey', + 'null': 'bold', + 'string': 'green', + 'date': 'magenta', + // "name": intentionally not styling + 'regexp': 'red' + }; + + + function stylizeWithColor(str, styleType) { + var style = inspect.styles[styleType]; + + if (style) { + return '\u001b[' + inspect.colors[style][0] + 'm' + str + + '\u001b[' + inspect.colors[style][1] + 'm'; + } else { + return str; + } + } + + + function stylizeNoColor(str, styleType) { + return str; + } + + + function arrayToHash(array) { + var hash = {}; + + array.forEach(function(val, idx) { + hash[val] = true; + }); + + return hash; + } + + + function formatValue(ctx, value, recurseTimes) { + // Provide a hook for user-specified inspect functions. + // Check that value is an object with an inspect function on it + if (ctx.customInspect && + value && + isFunction(value.inspect) && + // Filter out the util module, it's inspect function is special + value.inspect !== exports.inspect && + // Also filter out any prototype objects using the circular check. + !(value.constructor && value.constructor.prototype === value)) { + var ret = value.inspect(recurseTimes, ctx); + if (!isString(ret)) { + ret = formatValue(ctx, ret, recurseTimes); + } + return ret; + } + + // Primitive types cannot have properties + var primitive = formatPrimitive(ctx, value); + if (primitive) { + return primitive; + } + + // Look up the keys of the object. + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + + if (ctx.showHidden) { + keys = Object.getOwnPropertyNames(value); + } + + // IE doesn't make error fields non-enumerable + // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx + if (isError(value) + && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { + return formatError(value); + } + + // Some type of object without properties can be shortcutted. + if (keys.length === 0) { + if (isFunction(value)) { + var name = value.name ? ': ' + value.name : ''; + return ctx.stylize('[Function' + name + ']', 'special'); + } + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } + if (isDate(value)) { + return ctx.stylize(Date.prototype.toString.call(value), 'date'); + } + if (isError(value)) { + return formatError(value); + } + } + + var base = '', array = false, braces = ['{', '}']; + + // Make Array say that they are Array + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } + + // Make functions say that they are functions + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } + + // Make RegExps say that they are RegExps + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } + + // Make dates with properties first say the date + if (isDate(value)) { + base = ' ' + Date.prototype.toUTCString.call(value); + } + + // Make error with message first say the error + if (isError(value)) { + base = ' ' + formatError(value); + } + + if (keys.length === 0 && (!array || value.length == 0)) { + return braces[0] + base + braces[1]; + } + + if (recurseTimes < 0) { + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } else { + return ctx.stylize('[Object]', 'special'); + } + } + + ctx.seen.push(value); + + var output; + if (array) { + output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); + } else { + output = keys.map(function(key) { + return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); + }); + } + + ctx.seen.pop(); + + return reduceToSingleString(output, base, braces); + } + + + function formatPrimitive(ctx, value) { + if (isUndefined(value)) + return ctx.stylize('undefined', 'undefined'); + if (isString(value)) { + var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') + .replace(/'/g, "\\'") + .replace(/\\"/g, '"') + '\''; + return ctx.stylize(simple, 'string'); + } + if (isNumber(value)) + return ctx.stylize('' + value, 'number'); + if (isBoolean(value)) + return ctx.stylize('' + value, 'boolean'); + // For some reason typeof null is "object", so special case here. + if (isNull(value)) + return ctx.stylize('null', 'null'); + } + + + function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; + } + + + function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { + var output = []; + for (var i = 0, l = value.length; i < l; ++i) { + if (hasOwnProperty(value, String(i))) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, + String(i), true)); + } else { + output.push(''); + } + } + keys.forEach(function(key) { + if (!key.match(/^\d+$/)) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, + key, true)); + } + }); + return output; + } + + + function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { + var name, str, desc; + desc = Object.getOwnPropertyDescriptor(value, key) || { + value: value[key] + }; + if (desc.get) { + if (desc.set) { + str = ctx.stylize('[Getter/Setter]', 'special'); + } else { + str = ctx.stylize('[Getter]', 'special'); + } + } else { + if (desc.set) { + str = ctx.stylize('[Setter]', 'special'); + } + } + if (!hasOwnProperty(visibleKeys, key)) { + name = '[' + key + ']'; + } + if (!str) { + if (ctx.seen.indexOf(desc.value) < 0) { + if (isNull(recurseTimes)) { + str = formatValue(ctx, desc.value, null); + } else { + str = formatValue(ctx, desc.value, recurseTimes - 1); + } + if (str.indexOf('\n') > - 1) { + if (array) { + str = str.split('\n').map(function(line) { + return ' ' + line; + }).join('\n').substr(2); + } else { + str = '\n' + str.split('\n').map(function(line) { + return ' ' + line; + }).join('\n'); + } + } + } else { + str = ctx.stylize('[Circular]', 'special'); + } + } + if (isUndefined(name)) { + if (array && key.match(/^\d+$/)) { + return str; + } + name = JSON.stringify('' + key); + if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { + name = name.substr(1, name.length - 2); + name = ctx.stylize(name, 'name'); + } else { + name = name.replace(/'/g, "\\'") + .replace(/\\"/g, '"') + .replace(/(^"|"$)/g, "'"); + name = ctx.stylize(name, 'string'); + } + } + + return name + ': ' + str; + } + + + function reduceToSingleString(output, base, braces) { + var numLinesEst = 0; + var length = output.reduce(function(prev, cur) { + numLinesEst++; + if (cur.indexOf('\n') >= 0) + numLinesEst++; + return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; + }, 0); + + if (length > 60) { + return braces[0] + + (base === '' ? '' : base + '\n ') + + ' ' + + output.join(',\n ') + + ' ' + + braces[1]; + } + + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; + } + + + // NOTE: These type checking functions intentionally don't use `instanceof` + // because it is fragile and can be easily faked with `Object.create()`. + function isArray(ar) { + return Array.isArray(ar); + } + exports.isArray = isArray; + + function isBoolean(arg) { + return typeof arg === 'boolean'; + } + exports.isBoolean = isBoolean; + + function isNull(arg) { + return arg === null; + } + exports.isNull = isNull; + + function isNullOrUndefined(arg) { + return arg == null; + } + exports.isNullOrUndefined = isNullOrUndefined; + + function isNumber(arg) { + return typeof arg === 'number'; + } + exports.isNumber = isNumber; + + function isString(arg) { + return typeof arg === 'string'; + } + exports.isString = isString; + + function isSymbol(arg) { + return typeof arg === 'symbol'; + } + exports.isSymbol = isSymbol; + + function isUndefined(arg) { + return arg === void 0; + } + exports.isUndefined = isUndefined; + + function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; + } + exports.isRegExp = isRegExp; + + function isObject(arg) { + return typeof arg === 'object' && arg !== null; + } + exports.isObject = isObject; + + function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; + } + exports.isDate = isDate; + + function isError(e) { + return isObject(e) && + (objectToString(e) === '[object Error]' || e instanceof Error); + } + exports.isError = isError; + + function isFunction(arg) { + return typeof arg === 'function'; + } + exports.isFunction = isFunction; + + function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; + } + exports.isPrimitive = isPrimitive; + + exports.isBuffer = require('./support/isBuffer'); + + function objectToString(o) { + return Object.prototype.toString.call(o); + } + + + function pad(n) { + return n < 10 ? '0' + n.toString(10) : n.toString(10); + } + + + var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', + 'Oct', 'Nov', 'Dec']; + + // 26 Feb 16:19:34 + function timestamp() { + var d = new Date(); + var time = [pad(d.getHours()), + pad(d.getMinutes()), + pad(d.getSeconds())].join(':'); + return [d.getDate(), months[d.getMonth()], time].join(' '); + } + + + // log is just a thin wrapper to console.log that prepends a timestamp + exports.log = function() { + console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); + }; + + + /** + * Inherit the prototype methods from one constructor into another. + * + * The Function.prototype.inherits from lang.js rewritten as a standalone + * function (not on Function.prototype). NOTE: If this file is to be loaded + * during bootstrapping this function needs to be rewritten using some native + * functions as prototype setup using normal JavaScript does not work as + * expected during bootstrapping (see mirror.js in r114903). + * + * @param {function} ctor Constructor function which needs to inherit the + * prototype. + * @param {function} superCtor Constructor function to inherit prototype from. + */ + exports.inherits = require('inherits'); + + exports._extend = function(origin, add) { + // Don't do anything if add isn't an object + if (!add || !isObject(add)) + return origin; + + var keys = Object.keys(add); + var i = keys.length; + while (i--) { + origin[keys[i]] = add[keys[i]]; + } + return origin; + }; + + function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + } + + }).call(this, require('_process'), typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +}, { + "./support/isBuffer": 36, + "_process": 17, + "inherits": 14 +} +], +38: [function(require, module, exports) { + /* + Syntax highlighting with language autodetection. + https://highlightjs.org/ + */ + + (function(factory) { + + // Setup highlight.js for different environments. First is Node.js or + // CommonJS. + if (typeof exports !== 'undefined') { + factory(exports); + } else { + // Export hljs globally even when using AMD for cases when this script + // is loaded with others that may still expect a global hljs. + window.hljs = factory({}); + + // Finally register the global hljs with AMD. + if (typeof define === 'function' && define.amd) { + define('hljs', [], function() { + return window.hljs; + }); + } + } + + }(function(hljs) { + + /* Utility functions */ + + function escape(value) { + return value.replace(/&/gm, '&').replace(/</gm, '<').replace(/>/gm, '>'); + } + + function tag(node) { + return node.nodeName.toLowerCase(); + } + + function testRe(re, lexeme) { + var match = re && re.exec(lexeme); + return match && match.index == 0; + } + + function isNotHighlighted(language) { + return (/^(no-?highlight|plain|text)$/i).test(language); + } + + function blockLanguage(block) { + var i, match, length, + classes = block.className + ' '; + + classes += block.parentNode ? block.parentNode.className : ''; + + // language-* takes precedence over non-prefixed class names + match = (/\blang(?:uage)?-([\w-]+)\b/i).exec(classes); + if (match) { + return getLanguage(match[1]) ? match[1] : 'no-highlight'; + } + + classes = classes.split(/\s+/); + for (i = 0, length = classes.length; i < length; i++) { + if (getLanguage(classes[i]) || isNotHighlighted(classes[i])) { + return classes[i]; + } + } + } + + function inherit(parent, obj) { + var result = {}, key; + for (key in parent) + result[key] = parent[key]; + if (obj) + for (key in obj) + result[key] = obj[key]; + return result; + } + + /* Stream merging */ + + function nodeStream(node) { + var result = []; + (function _nodeStream(node, offset) { + for (var child = node.firstChild; child; child = child.nextSibling) { + if (child.nodeType == 3) + offset += child.nodeValue.length; + else if (child.nodeType == 1) { + result.push({ + event: 'start', + offset: offset, + node: child + }); + offset = _nodeStream(child, offset); + // Prevent void elements from having an end tag that would actually + // double them in the output. There are more void elements in HTML + // but we list only those realistically expected in code display. + if (!tag(child).match(/br|hr|img|input/)) { + result.push({ + event: 'stop', + offset: offset, + node: child + }); + } + } + } + return offset; + })(node, 0); + return result; + } + + function mergeStreams(original, highlighted, value) { + var processed = 0; + var result = ''; + var nodeStack = []; + + function selectStream() { + if (!original.length || !highlighted.length) { + return original.length ? original : highlighted; + } + if (original[0].offset != highlighted[0].offset) { + return (original[0].offset < highlighted[0].offset) ? original : highlighted; + } + + /* + To avoid starting the stream just before it should stop the order is + ensured that original always starts first and closes last: + + if (event1 == 'start' && event2 == 'start') + return original; + if (event1 == 'start' && event2 == 'stop') + return highlighted; + if (event1 == 'stop' && event2 == 'start') + return original; + if (event1 == 'stop' && event2 == 'stop') + return highlighted; + + ... which is collapsed to: + */ + return highlighted[0].event == 'start' ? original : highlighted; + } + + function open(node) { + function attr_str(a) { + return ' ' + a.nodeName + '="' + escape(a.value) + '"'; + } + result += '<' + tag(node) + Array.prototype.map.call(node.attributes, attr_str).join('') + '>'; + } + + function close(node) { + result += '</' + tag(node) + '>'; + } + + function render(event) { + (event.event == 'start' ? open : close)(event.node); + } + + while (original.length || highlighted.length) { + var stream = selectStream(); + result += escape(value.substr(processed, stream[0].offset - processed)); + processed = stream[0].offset; + if (stream == original) { + /* + On any opening or closing tag of the original markup we first close + the entire highlighted node stack, then render the original tag along + with all the following original tags at the same offset and then + reopen all the tags on the highlighted stack. + */ + nodeStack.reverse().forEach(close); + do { + render(stream.splice(0, 1)[0]); + stream = selectStream(); + } + while (stream == original && stream.length && stream[0].offset == processed); + nodeStack.reverse().forEach(open); + } else { + if (stream[0].event == 'start') { + nodeStack.push(stream[0].node); + } else { + nodeStack.pop(); + } + render(stream.splice(0, 1)[0]); + } + } + return result + escape(value.substr(processed)); + } + + /* Initialization */ + + function compileLanguage(language) { + + function reStr(re) { + return (re && re.source) || re; + } + + function langRe(value, global) { + return new RegExp( + reStr(value), + 'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '') + ); + } + + function compileMode(mode, parent) { + if (mode.compiled) + return; + mode.compiled = true; + + mode.keywords = mode.keywords || mode.beginKeywords; + if (mode.keywords) { + var compiled_keywords = {}; + + var flatten = function(className, str) { + if (language.case_insensitive) { + str = str.toLowerCase(); + } + str.split(' ').forEach(function(kw) { + var pair = kw.split('|'); + compiled_keywords[pair[0]] = [className, pair[1] ? Number(pair[1]) : 1]; + }); + }; + + if (typeof mode.keywords == 'string') { + // string + flatten('keyword', mode.keywords); + } else { + Object.keys(mode.keywords).forEach(function (className) { + flatten(className, mode.keywords[className]); + }); + } + mode.keywords = compiled_keywords; + } + mode.lexemesRe = langRe(mode.lexemes || /\b\w+\b/, true); + + if (parent) { + if (mode.beginKeywords) { + mode.begin = '\\b(' + mode.beginKeywords.split(' ').join('|') + ')\\b'; + } + if (!mode.begin) + mode.begin = /\B|\b/; + mode.beginRe = langRe(mode.begin); + if (!mode.end && !mode.endsWithParent) + mode.end = /\B|\b/; + if (mode.end) + mode.endRe = langRe(mode.end); + mode.terminator_end = reStr(mode.end) || ''; + if (mode.endsWithParent && parent.terminator_end) + mode.terminator_end += (mode.end ? '|' : '') + parent.terminator_end; + } + if (mode.illegal) + mode.illegalRe = langRe(mode.illegal); + if (mode.relevance === undefined) + mode.relevance = 1; + if (!mode.contains) { + mode.contains = []; + } + var expanded_contains = []; + mode.contains.forEach(function(c) { + if (c.variants) { + c.variants.forEach(function(v) { + expanded_contains.push(inherit(c, v)); + }); + } else { + expanded_contains.push(c == 'self' ? mode : c); + } + }); + mode.contains = expanded_contains; + mode.contains.forEach(function(c) { + compileMode(c, mode); + }); + + if (mode.starts) { + compileMode(mode.starts, parent); + } + + var terminators = + mode.contains.map(function(c) { + return c.beginKeywords ? '\\.?(' + c.begin + ')\\.?' : c.begin; + }) + .concat([mode.terminator_end, mode.illegal]) + .map(reStr) + .filter(Boolean); + mode.terminators = terminators.length ? langRe(terminators.join('|'), true) : { + exec: function( /*s*/ + ) { + return null; + } + }; + } + + compileMode(language); + } + + /* + Core highlighting function. Accepts a language name, or an alias, and a + string with the code to highlight. Returns an object with the following + properties: + + - relevance (int) + - value (an HTML string with highlighting markup) + + */ + function highlight(name, value, ignore_illegals, continuation) { + + function subMode(lexeme, mode) { + for (var i = 0; i < mode.contains.length; i++) { + if (testRe(mode.contains[i].beginRe, lexeme)) { + return mode.contains[i]; + } + } + } + + function endOfMode(mode, lexeme) { + if (testRe(mode.endRe, lexeme)) { + while (mode.endsParent && mode.parent) { + mode = mode.parent; + } + return mode; + } + if (mode.endsWithParent) { + return endOfMode(mode.parent, lexeme); + } + } + + function isIllegal(lexeme, mode) { + return !ignore_illegals && testRe(mode.illegalRe, lexeme); + } + + function keywordMatch(mode, match) { + var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0]; + return mode.keywords.hasOwnProperty(match_str) && mode.keywords[match_str]; + } + + function buildSpan(classname, insideSpan, leaveOpen, noPrefix) { + var classPrefix = noPrefix ? '' : options.classPrefix, + openSpan = '<span class="' + classPrefix, + closeSpan = leaveOpen ? '' : '</span>'; + + openSpan += classname + '">'; + + return openSpan + insideSpan + closeSpan; + } + + function processKeywords() { + if (!top.keywords) + return escape(mode_buffer); + var result = ''; + var last_index = 0; + top.lexemesRe.lastIndex = 0; + var match = top.lexemesRe.exec(mode_buffer); + while (match) { + result += escape(mode_buffer.substr(last_index, match.index - last_index)); + var keyword_match = keywordMatch(top, match); + if (keyword_match) { + relevance += keyword_match[1]; + result += buildSpan(keyword_match[0], escape(match[0])); + } else { + result += escape(match[0]); + } + last_index = top.lexemesRe.lastIndex; + match = top.lexemesRe.exec(mode_buffer); + } + return result + escape(mode_buffer.substr(last_index)); + } + + function processSubLanguage() { + var explicit = typeof top.subLanguage == 'string'; + if (explicit && !languages[top.subLanguage]) { + return escape(mode_buffer); + } + + var result = explicit ? + highlight(top.subLanguage, mode_buffer, true, continuations[top.subLanguage]) : + highlightAuto(mode_buffer, top.subLanguage.length ? top.subLanguage : undefined); + + // Counting embedded language score towards the host language may be disabled + // with zeroing the containing mode relevance. Usecase in point is Markdown that + // allows XML everywhere and makes every XML snippet to have a much larger Markdown + // score. + if (top.relevance > 0) { + relevance += result.relevance; + } + if (explicit) { + continuations[top.subLanguage] = result.top; + } + return buildSpan(result.language, result.value, false, true); + } + + function processBuffer() { + return top.subLanguage !== undefined ? processSubLanguage() : processKeywords(); + } + + function startNewMode(mode, lexeme) { + var markup = mode.className ? buildSpan(mode.className, '', true): ''; + if (mode.returnBegin) { + result += markup; + mode_buffer = ''; + } else if (mode.excludeBegin) { + result += escape(lexeme) + markup; + mode_buffer = ''; + } else { + result += markup; + mode_buffer = lexeme; + } + top = Object.create(mode, { + parent: { + value: top + } + }); + } + + function processLexeme(buffer, lexeme) { + + mode_buffer += buffer; + if (lexeme === undefined) { + result += processBuffer(); + return 0; + } + + var new_mode = subMode(lexeme, top); + if (new_mode) { + result += processBuffer(); + startNewMode(new_mode, lexeme); + return new_mode.returnBegin ? 0 : lexeme.length; + } + + var end_mode = endOfMode(top, lexeme); + if (end_mode) { + var origin = top; + if (!(origin.returnEnd || origin.excludeEnd)) { + mode_buffer += lexeme; + } + result += processBuffer(); + do { + if (top.className) { + result += '</span>'; + } + relevance += top.relevance; + top = top.parent; + } + while (top != end_mode.parent); + if (origin.excludeEnd) { + result += escape(lexeme); + } + mode_buffer = ''; + if (end_mode.starts) { + startNewMode(end_mode.starts, ''); + } + return origin.returnEnd ? 0 : lexeme.length; + } + + if (isIllegal(lexeme, top)) + throw new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.className || '<unnamed>') + '"'); + + /* + Parser should not reach this point as all types of lexemes should be caught + earlier, but if it does due to some bug make sure it advances at least one + character forward to prevent infinite looping. + */ + mode_buffer += lexeme; + return lexeme.length || 1; + } + + var language = getLanguage(name); + if (!language) { + throw new Error('Unknown language: "' + name + '"'); + } + + compileLanguage(language); + var top = continuation || language; + var continuations = {}; // keep continuations for sub-languages + var result = '', current; + for (current = top; current != language; current = current.parent) { + if (current.className) { + result = buildSpan(current.className, '', true) + result; + } + } + var mode_buffer = ''; + var relevance = 0; + try { + var match, count, index = 0; + while (true) { + top.terminators.lastIndex = index; + match = top.terminators.exec(value); + if (!match) + break; + count = processLexeme(value.substr(index, match.index - index), match[0]); + index = match.index + count; + } + processLexeme(value.substr(index)); + for (current = top; current.parent; current = current.parent) { + // close dangling modes + if (current.className) { + result += '</span>'; + } + } + return { + relevance: relevance, + value: result, + language: name, + top: top + }; + } catch (e) { + if (e.message.indexOf('Illegal') != - 1) { + return { + relevance: 0, + value: escape(value) + }; + } else { + throw e; + } + } + } + + /* + Highlighting with language detection. Accepts a string with the code to + highlight. Returns an object with the following properties: + + - language (detected language) + - relevance (int) + - value (an HTML string with highlighting markup) + - second_best (object with the same structure for second-best heuristically + detected language, may be absent) + + */ + function highlightAuto(text, languageSubset) { + languageSubset = languageSubset || options.languages || Object.keys(languages); + var result = { + relevance: 0, + value: escape(text) + }; + var second_best = result; + languageSubset.forEach(function(name) { + if (!getLanguage(name)) { + return; + } + var current = highlight(name, text, false); + current.language = name; + if (current.relevance > second_best.relevance) { + second_best = current; + } + if (current.relevance > result.relevance) { + second_best = result; + result = current; + } + }); + if (second_best.language) { + result.second_best = second_best; + } + return result; + } + + /* + Post-processing of the highlighted markup: + + - replace TABs with something more useful + - replace real line-breaks with '<br>' for non-pre containers + + */ + function fixMarkup(value) { + if (options.tabReplace) { + value = value.replace(/^((<[^>]+>|\t)+)/gm, function(match, p1 /*..., offset, s*/ + ) { + return p1.replace(/\t/g, options.tabReplace); + }); + } + if (options.useBR) { + value = value.replace(/\n/g, '<br>'); + } + return value; + } + + function buildClassName(prevClassName, currentLang, resultLang) { + var language = currentLang ? aliases[currentLang] : resultLang, + result = [prevClassName.trim()]; + + if (!prevClassName.match(/\bhljs\b/)) { + result.push('hljs'); + } + + if (prevClassName.indexOf(language) === - 1) { + result.push(language); + } + + return result.join(' ').trim(); + } + + /* + Applies highlighting to a DOM node containing code. Accepts a DOM node and + two optional parameters for fixMarkup. + */ + function highlightBlock(block) { + var language = blockLanguage(block); + if (isNotHighlighted(language)) + return; + + var node; + if (options.useBR) { + node = document.createElementNS('http://www.w3.org/1999/xhtml', 'div'); + node.innerHTML = block.innerHTML.replace(/\n/g, '').replace(/<br[ \/]*>/g, '\n'); + } else { + node = block; + } + var text = node.textContent; + var result = language ? highlight(language, text, true) : highlightAuto(text); + + var originalStream = nodeStream(node); + if (originalStream.length) { + var resultNode = document.createElementNS('http://www.w3.org/1999/xhtml', 'div'); + resultNode.innerHTML = result.value; + result.value = mergeStreams(originalStream, nodeStream(resultNode), text); + } + result.value = fixMarkup(result.value); + + block.innerHTML = result.value; + block.className = buildClassName(block.className, language, result.language); + block.result = { + language: result.language, + re: result.relevance + }; + if (result.second_best) { + block.second_best = { + language: result.second_best.language, + re: result.second_best.relevance + }; + } + } + + var options = { + classPrefix: 'hljs-', + tabReplace: null, + useBR: false, + languages: undefined + }; + + /* + Updates highlight.js global options with values passed in the form of an object + */ + function configure(user_options) { + options = inherit(options, user_options); + } + + /* + Applies highlighting to all <pre><code>..</code></pre> blocks on a page. + */ + function initHighlighting() { + if (initHighlighting.called) + return; + initHighlighting.called = true; + + var blocks = document.querySelectorAll('pre code'); + Array.prototype.forEach.call(blocks, highlightBlock); + } + + /* + Attaches highlighting to the page load event. + */ + function initHighlightingOnLoad() { + addEventListener('DOMContentLoaded', initHighlighting, false); + addEventListener('load', initHighlighting, false); + } + + var languages = {}; + var aliases = {}; + + function registerLanguage(name, language) { + var lang = languages[name] = language(hljs); + if (lang.aliases) { + lang.aliases.forEach(function(alias) { + aliases[alias] = name; + }); + } + } + + function listLanguages() { + return Object.keys(languages); + } + + function getLanguage(name) { + name = name.toLowerCase(); + return languages[name] || languages[aliases[name]]; + } + + /* Interface definition */ + + hljs.highlight = highlight; + hljs.highlightAuto = highlightAuto; + hljs.fixMarkup = fixMarkup; + hljs.highlightBlock = highlightBlock; + hljs.configure = configure; + hljs.initHighlighting = initHighlighting; + hljs.initHighlightingOnLoad = initHighlightingOnLoad; + hljs.registerLanguage = registerLanguage; + hljs.listLanguages = listLanguages; + hljs.getLanguage = getLanguage; + hljs.inherit = inherit; + + // Common regexps + hljs.IDENT_RE = '[a-zA-Z]\\w*'; + hljs.UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*'; + hljs.NUMBER_RE = '\\b\\d+(\\.\\d+)?'; + hljs.C_NUMBER_RE = '(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'; // 0x..., 0..., decimal, float + hljs.BINARY_NUMBER_RE = '\\b(0b[01]+)'; // 0b... + hljs.RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~'; + + // Common modes + hljs.BACKSLASH_ESCAPE = { + begin: '\\\\[\\s\\S]', + relevance: 0 + }; + hljs.APOS_STRING_MODE = { + className: 'string', + begin: '\'', + end: '\'', + illegal: '\\n', + contains: [hljs.BACKSLASH_ESCAPE] + }; + hljs.QUOTE_STRING_MODE = { + className: 'string', + begin: '"', + end: '"', + illegal: '\\n', + contains: [hljs.BACKSLASH_ESCAPE] + }; + hljs.PHRASAL_WORDS_MODE = { + begin: /\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/ + }; + hljs.COMMENT = function (begin, end, inherits) { + var mode = hljs.inherit( + { + className: 'comment', + begin: begin, + end: end, + contains: [] + }, + inherits || {}); + mode.contains.push(hljs.PHRASAL_WORDS_MODE); + mode.contains.push({ + className: 'doctag', + begin: "(?:TODO|FIXME|NOTE|BUG|XXX):", + relevance: 0 + }); + return mode; + }; + hljs.C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$'); + hljs.C_BLOCK_COMMENT_MODE = hljs.COMMENT('/\\*', '\\*/'); + hljs.HASH_COMMENT_MODE = hljs.COMMENT('#', '$'); + hljs.NUMBER_MODE = { + className: 'number', + begin: hljs.NUMBER_RE, + relevance: 0 + }; + hljs.C_NUMBER_MODE = { + className: 'number', + begin: hljs.C_NUMBER_RE, + relevance: 0 + }; + hljs.BINARY_NUMBER_MODE = { + className: 'number', + begin: hljs.BINARY_NUMBER_RE, + relevance: 0 + }; + hljs.CSS_NUMBER_MODE = { + className: 'number', + begin: hljs.NUMBER_RE + '(' + + '%|em|ex|ch|rem' + + '|vw|vh|vmin|vmax' + + '|cm|mm|in|pt|pc|px' + + '|deg|grad|rad|turn' + + '|s|ms' + + '|Hz|kHz' + + '|dpi|dpcm|dppx' + + ')?', + relevance: 0 + }; + hljs.REGEXP_MODE = { + className: 'regexp', + begin: /\//, + end: /\/[gimuy]*/, + illegal: /\n/, + contains: [ + hljs.BACKSLASH_ESCAPE, + { + begin: /\[/, + end: /\]/, + relevance: 0, + contains: [hljs.BACKSLASH_ESCAPE] + } + ] + }; + hljs.TITLE_MODE = { + className: 'title', + begin: hljs.IDENT_RE, + relevance: 0 + }; + hljs.UNDERSCORE_TITLE_MODE = { + className: 'title', + begin: hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + }; + + return hljs; + })); + +}, {} +], +39: [function(require, module, exports) { + var hljs = require('./highlight'); + + hljs.registerLanguage('1c', require('./languages/1c')); + hljs.registerLanguage('accesslog', require('./languages/accesslog')); + hljs.registerLanguage('actionscript', require('./languages/actionscript')); + hljs.registerLanguage('apache', require('./languages/apache')); + hljs.registerLanguage('applescript', require('./languages/applescript')); + hljs.registerLanguage('armasm', require('./languages/armasm')); + hljs.registerLanguage('xml', require('./languages/xml')); + hljs.registerLanguage('asciidoc', require('./languages/asciidoc')); + hljs.registerLanguage('aspectj', require('./languages/aspectj')); + hljs.registerLanguage('autohotkey', require('./languages/autohotkey')); + hljs.registerLanguage('autoit', require('./languages/autoit')); + hljs.registerLanguage('avrasm', require('./languages/avrasm')); + hljs.registerLanguage('axapta', require('./languages/axapta')); + hljs.registerLanguage('bash', require('./languages/bash')); + hljs.registerLanguage('brainfuck', require('./languages/brainfuck')); + hljs.registerLanguage('cal', require('./languages/cal')); + hljs.registerLanguage('capnproto', require('./languages/capnproto')); + hljs.registerLanguage('ceylon', require('./languages/ceylon')); + hljs.registerLanguage('clojure', require('./languages/clojure')); + hljs.registerLanguage('clojure-repl', require('./languages/clojure-repl')); + hljs.registerLanguage('cmake', require('./languages/cmake')); + hljs.registerLanguage('coffeescript', require('./languages/coffeescript')); + hljs.registerLanguage('cpp', require('./languages/cpp')); + hljs.registerLanguage('crystal', require('./languages/crystal')); + hljs.registerLanguage('cs', require('./languages/cs')); + hljs.registerLanguage('css', require('./languages/css')); + hljs.registerLanguage('d', require('./languages/d')); + hljs.registerLanguage('markdown', require('./languages/markdown')); + hljs.registerLanguage('dart', require('./languages/dart')); + hljs.registerLanguage('delphi', require('./languages/delphi')); + hljs.registerLanguage('diff', require('./languages/diff')); + hljs.registerLanguage('django', require('./languages/django')); + hljs.registerLanguage('dns', require('./languages/dns')); + hljs.registerLanguage('dockerfile', require('./languages/dockerfile')); + hljs.registerLanguage('dos', require('./languages/dos')); + hljs.registerLanguage('dust', require('./languages/dust')); + hljs.registerLanguage('elixir', require('./languages/elixir')); + hljs.registerLanguage('elm', require('./languages/elm')); + hljs.registerLanguage('ruby', require('./languages/ruby')); + hljs.registerLanguage('erb', require('./languages/erb')); + hljs.registerLanguage('erlang-repl', require('./languages/erlang-repl')); + hljs.registerLanguage('erlang', require('./languages/erlang')); + hljs.registerLanguage('fix', require('./languages/fix')); + hljs.registerLanguage('fortran', require('./languages/fortran')); + hljs.registerLanguage('fsharp', require('./languages/fsharp')); + hljs.registerLanguage('gams', require('./languages/gams')); + hljs.registerLanguage('gcode', require('./languages/gcode')); + hljs.registerLanguage('gherkin', require('./languages/gherkin')); + hljs.registerLanguage('glsl', require('./languages/glsl')); + hljs.registerLanguage('go', require('./languages/go')); + hljs.registerLanguage('golo', require('./languages/golo')); + hljs.registerLanguage('gradle', require('./languages/gradle')); + hljs.registerLanguage('groovy', require('./languages/groovy')); + hljs.registerLanguage('haml', require('./languages/haml')); + hljs.registerLanguage('handlebars', require('./languages/handlebars')); + hljs.registerLanguage('haskell', require('./languages/haskell')); + hljs.registerLanguage('haxe', require('./languages/haxe')); + hljs.registerLanguage('http', require('./languages/http')); + hljs.registerLanguage('inform7', require('./languages/inform7')); + hljs.registerLanguage('ini', require('./languages/ini')); + hljs.registerLanguage('irpf90', require('./languages/irpf90')); + hljs.registerLanguage('java', require('./languages/java')); + hljs.registerLanguage('javascript', require('./languages/javascript')); + hljs.registerLanguage('json', require('./languages/json')); + hljs.registerLanguage('julia', require('./languages/julia')); + hljs.registerLanguage('kotlin', require('./languages/kotlin')); + hljs.registerLanguage('lasso', require('./languages/lasso')); + hljs.registerLanguage('less', require('./languages/less')); + hljs.registerLanguage('lisp', require('./languages/lisp')); + hljs.registerLanguage('livecodeserver', require('./languages/livecodeserver')); + hljs.registerLanguage('livescript', require('./languages/livescript')); + hljs.registerLanguage('lua', require('./languages/lua')); + hljs.registerLanguage('makefile', require('./languages/makefile')); + hljs.registerLanguage('mathematica', require('./languages/mathematica')); + hljs.registerLanguage('matlab', require('./languages/matlab')); + hljs.registerLanguage('mel', require('./languages/mel')); + hljs.registerLanguage('mercury', require('./languages/mercury')); + hljs.registerLanguage('mizar', require('./languages/mizar')); + hljs.registerLanguage('perl', require('./languages/perl')); + hljs.registerLanguage('mojolicious', require('./languages/mojolicious')); + hljs.registerLanguage('monkey', require('./languages/monkey')); + hljs.registerLanguage('nginx', require('./languages/nginx')); + hljs.registerLanguage('nimrod', require('./languages/nimrod')); + hljs.registerLanguage('nix', require('./languages/nix')); + hljs.registerLanguage('nsis', require('./languages/nsis')); + hljs.registerLanguage('objectivec', require('./languages/objectivec')); + hljs.registerLanguage('ocaml', require('./languages/ocaml')); + hljs.registerLanguage('openscad', require('./languages/openscad')); + hljs.registerLanguage('oxygene', require('./languages/oxygene')); + hljs.registerLanguage('parser3', require('./languages/parser3')); + hljs.registerLanguage('pf', require('./languages/pf')); + hljs.registerLanguage('php', require('./languages/php')); + hljs.registerLanguage('powershell', require('./languages/powershell')); + hljs.registerLanguage('processing', require('./languages/processing')); + hljs.registerLanguage('profile', require('./languages/profile')); + hljs.registerLanguage('prolog', require('./languages/prolog')); + hljs.registerLanguage('protobuf', require('./languages/protobuf')); + hljs.registerLanguage('puppet', require('./languages/puppet')); + hljs.registerLanguage('python', require('./languages/python')); + hljs.registerLanguage('q', require('./languages/q')); + hljs.registerLanguage('r', require('./languages/r')); + hljs.registerLanguage('rib', require('./languages/rib')); + hljs.registerLanguage('roboconf', require('./languages/roboconf')); + hljs.registerLanguage('rsl', require('./languages/rsl')); + hljs.registerLanguage('ruleslanguage', require('./languages/ruleslanguage')); + hljs.registerLanguage('rust', require('./languages/rust')); + hljs.registerLanguage('scala', require('./languages/scala')); + hljs.registerLanguage('scheme', require('./languages/scheme')); + hljs.registerLanguage('scilab', require('./languages/scilab')); + hljs.registerLanguage('scss', require('./languages/scss')); + hljs.registerLanguage('smali', require('./languages/smali')); + hljs.registerLanguage('smalltalk', require('./languages/smalltalk')); + hljs.registerLanguage('sml', require('./languages/sml')); + hljs.registerLanguage('sql', require('./languages/sql')); + hljs.registerLanguage('stata', require('./languages/stata')); + hljs.registerLanguage('step21', require('./languages/step21')); + hljs.registerLanguage('stylus', require('./languages/stylus')); + hljs.registerLanguage('swift', require('./languages/swift')); + hljs.registerLanguage('tcl', require('./languages/tcl')); + hljs.registerLanguage('tex', require('./languages/tex')); + hljs.registerLanguage('thrift', require('./languages/thrift')); + hljs.registerLanguage('tp', require('./languages/tp')); + hljs.registerLanguage('twig', require('./languages/twig')); + hljs.registerLanguage('typescript', require('./languages/typescript')); + hljs.registerLanguage('vala', require('./languages/vala')); + hljs.registerLanguage('vbnet', require('./languages/vbnet')); + hljs.registerLanguage('vbscript', require('./languages/vbscript')); + hljs.registerLanguage('vbscript-html', require('./languages/vbscript-html')); + hljs.registerLanguage('verilog', require('./languages/verilog')); + hljs.registerLanguage('vhdl', require('./languages/vhdl')); + hljs.registerLanguage('vim', require('./languages/vim')); + hljs.registerLanguage('x86asm', require('./languages/x86asm')); + hljs.registerLanguage('xl', require('./languages/xl')); + hljs.registerLanguage('xquery', require('./languages/xquery')); + hljs.registerLanguage('zephir', require('./languages/zephir')); + + module.exports = hljs; +}, { + "./highlight": 38, + "./languages/1c": 40, + "./languages/accesslog": 41, + "./languages/actionscript": 42, + "./languages/apache": 43, + "./languages/applescript": 44, + "./languages/armasm": 45, + "./languages/asciidoc": 46, + "./languages/aspectj": 47, + "./languages/autohotkey": 48, + "./languages/autoit": 49, + "./languages/avrasm": 50, + "./languages/axapta": 51, + "./languages/bash": 52, + "./languages/brainfuck": 53, + "./languages/cal": 54, + "./languages/capnproto": 55, + "./languages/ceylon": 56, + "./languages/clojure": 58, + "./languages/clojure-repl": 57, + "./languages/cmake": 59, + "./languages/coffeescript": 60, + "./languages/cpp": 61, + "./languages/crystal": 62, + "./languages/cs": 63, + "./languages/css": 64, + "./languages/d": 65, + "./languages/dart": 66, + "./languages/delphi": 67, + "./languages/diff": 68, + "./languages/django": 69, + "./languages/dns": 70, + "./languages/dockerfile": 71, + "./languages/dos": 72, + "./languages/dust": 73, + "./languages/elixir": 74, + "./languages/elm": 75, + "./languages/erb": 76, + "./languages/erlang": 78, + "./languages/erlang-repl": 77, + "./languages/fix": 79, + "./languages/fortran": 80, + "./languages/fsharp": 81, + "./languages/gams": 82, + "./languages/gcode": 83, + "./languages/gherkin": 84, + "./languages/glsl": 85, + "./languages/go": 86, + "./languages/golo": 87, + "./languages/gradle": 88, + "./languages/groovy": 89, + "./languages/haml": 90, + "./languages/handlebars": 91, + "./languages/haskell": 92, + "./languages/haxe": 93, + "./languages/http": 94, + "./languages/inform7": 95, + "./languages/ini": 96, + "./languages/irpf90": 97, + "./languages/java": 98, + "./languages/javascript": 99, + "./languages/json": 100, + "./languages/julia": 101, + "./languages/kotlin": 102, + "./languages/lasso": 103, + "./languages/less": 104, + "./languages/lisp": 105, + "./languages/livecodeserver": 106, + "./languages/livescript": 107, + "./languages/lua": 108, + "./languages/makefile": 109, + "./languages/markdown": 110, + "./languages/mathematica": 111, + "./languages/matlab": 112, + "./languages/mel": 113, + "./languages/mercury": 114, + "./languages/mizar": 115, + "./languages/mojolicious": 116, + "./languages/monkey": 117, + "./languages/nginx": 118, + "./languages/nimrod": 119, + "./languages/nix": 120, + "./languages/nsis": 121, + "./languages/objectivec": 122, + "./languages/ocaml": 123, + "./languages/openscad": 124, + "./languages/oxygene": 125, + "./languages/parser3": 126, + "./languages/perl": 127, + "./languages/pf": 128, + "./languages/php": 129, + "./languages/powershell": 130, + "./languages/processing": 131, + "./languages/profile": 132, + "./languages/prolog": 133, + "./languages/protobuf": 134, + "./languages/puppet": 135, + "./languages/python": 136, + "./languages/q": 137, + "./languages/r": 138, + "./languages/rib": 139, + "./languages/roboconf": 140, + "./languages/rsl": 141, + "./languages/ruby": 142, + "./languages/ruleslanguage": 143, + "./languages/rust": 144, + "./languages/scala": 145, + "./languages/scheme": 146, + "./languages/scilab": 147, + "./languages/scss": 148, + "./languages/smali": 149, + "./languages/smalltalk": 150, + "./languages/sml": 151, + "./languages/sql": 152, + "./languages/stata": 153, + "./languages/step21": 154, + "./languages/stylus": 155, + "./languages/swift": 156, + "./languages/tcl": 157, + "./languages/tex": 158, + "./languages/thrift": 159, + "./languages/tp": 160, + "./languages/twig": 161, + "./languages/typescript": 162, + "./languages/vala": 163, + "./languages/vbnet": 164, + "./languages/vbscript": 166, + "./languages/vbscript-html": 165, + "./languages/verilog": 167, + "./languages/vhdl": 168, + "./languages/vim": 169, + "./languages/x86asm": 170, + "./languages/xl": 171, + "./languages/xml": 172, + "./languages/xquery": 173, + "./languages/zephir": 174 +} +], +40: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE_RU = '[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*'; + var OneS_KEYWORDS = 'возврат дата для если и или иначе иначеесли исключение конецесли ' + + 'конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем ' + + 'перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл ' + + 'число экспорт'; + var OneS_BUILT_IN = 'ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ' + + 'ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос ' + + 'восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц ' + + 'датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации ' + + 'запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр ' + + 'значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера ' + + 'имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы ' + + 'кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби ' + + 'конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс ' + + 'максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ ' + + 'назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби ' + + 'началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели ' + + 'номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки ' + + 'основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально ' + + 'отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята ' + + 'получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта ' + + 'получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации ' + + 'пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц ' + + 'разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына ' + + 'рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп ' + + 'сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить ' + + 'стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента ' + + 'счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты ' + + 'установитьтана установитьтапо фиксшаблон формат цел шаблон'; + var DQUOTE = { + className: 'dquote', + begin: '""' + }; + var STR_START = { + className: 'string', + begin: '"', + end: '"|$', + contains: [DQUOTE] + }; + var STR_CONT = { + className: 'string', + begin: '\\|', + end: '"|$', + contains: [DQUOTE] + }; + + return { + case_insensitive: true, + lexemes: IDENT_RE_RU, + keywords: { + keyword: OneS_KEYWORDS, + built_in: OneS_BUILT_IN + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.NUMBER_MODE, + STR_START, STR_CONT, + { + className: 'function', + begin: '(процедура|функция)', + end: '$', + lexemes: IDENT_RE_RU, + keywords: 'процедура функция', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: IDENT_RE_RU + }), + { + className: 'tail', + endsWithParent: true, + contains: [ + { + className: 'params', + begin: '\\(', + end: '\\)', + lexemes: IDENT_RE_RU, + keywords: 'знач', + contains: [STR_START, STR_CONT] + }, + { + className: 'export', + begin: 'экспорт', + endsWithParent: true, + lexemes: IDENT_RE_RU, + keywords: 'экспорт', + contains: [hljs.C_LINE_COMMENT_MODE] + } + ] + }, + hljs.C_LINE_COMMENT_MODE + ] + }, + { + className: 'preprocessor', + begin: '#', + end: '$' + }, + { + className: 'date', + begin: '\'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})\'' + } + ] + }; + }; +}, {} +], +41: [function(require, module, exports) { + module.exports = function(hljs) { + return { + contains: [ + // IP + { + className: 'number', + begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b' + }, + // Other numbers + { + className: 'number', + begin: '\\b\\d+\\b', + relevance: 0 + }, + // Requests + { + className: 'string', + begin: '"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)', + end: '"', + keywords: 'GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE', + illegal: '\\n', + relevance: 10 + }, + // Dates + { + className: 'string', + begin: /\[/, + end: /\]/, + illegal: '\\n' + }, + // Strings + { + className: 'string', + begin: '"', + end: '"', + illegal: '\\n' + } + ] + }; + }; +}, {} +], +42: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*'; + var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)'; + + var AS3_REST_ARG_MODE = { + className: 'rest_arg', + begin: '[.]{3}', + end: IDENT_RE, + relevance: 10 + }; + + return { + aliases: ['as'], + keywords: { + keyword: 'as break case catch class const continue default delete do dynamic each ' + + 'else extends final finally for function get if implements import in include ' + + 'instanceof interface internal is namespace native new override package private ' + + 'protected public return set static super switch this throw try typeof use var void ' + + 'while with', + literal: 'true false null undefined' + }, + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_NUMBER_MODE, + { + className: 'package', + beginKeywords: 'package', + end: '{', + contains: [hljs.TITLE_MODE] + }, + { + className: 'class', + beginKeywords: 'class interface', + end: '{', + excludeEnd: true, + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.TITLE_MODE + ] + }, + { + className: 'preprocessor', + beginKeywords: 'import include', + end: ';' + }, + { + className: 'function', + beginKeywords: 'function', + end: '[{;]', + excludeEnd: true, + illegal: '\\S', + contains: [ + hljs.TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + AS3_REST_ARG_MODE + ] + }, + { + className: 'type', + begin: ':', + end: IDENT_FUNC_RETURN_TYPE_RE, + relevance: 10 + } + ] + } + ], + illegal: /#/ + }; + }; +}, {} +], +43: [function(require, module, exports) { + module.exports = function(hljs) { + var NUMBER = { + className: 'number', + begin: '[\\$%]\\d+' + }; + return { + aliases: ['apacheconf'], + case_insensitive: true, + contains: [ + hljs.HASH_COMMENT_MODE, + { + className: 'tag', + begin: '</?', + end: '>' + }, + { + className: 'keyword', + begin: /\w+/, + relevance: 0, + // keywords aren’t needed for highlighting per se, they only boost relevance + // for a very generally defined mode (starts with a word, ends with line-end + keywords: { + common: + 'order deny allow setenv rewriterule rewriteengine rewritecond documentroot ' + + 'sethandler errordocument loadmodule options header listen serverroot ' + + 'servername' + }, + starts: { + end: /$/, + relevance: 0, + keywords: { + literal: 'on off all' + }, + contains: [ + { + className: 'sqbracket', + begin: '\\s\\[', + end: '\\]$' + }, + { + className: 'cbracket', + begin: '[\\$%]\\{', + end: '\\}', + contains: ['self', NUMBER] + }, + NUMBER, + hljs.QUOTE_STRING_MODE + ] + } + } + ], + illegal: /\S/ + }; + }; +}, {} +], +44: [function(require, module, exports) { + module.exports = function(hljs) { + var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: '' + }); + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)', + contains: ['self', hljs.C_NUMBER_MODE, STRING] + }; + var COMMENT_MODE_1 = hljs.COMMENT('--', '$'); + var COMMENT_MODE_2 = hljs.COMMENT( + '\\(\\*', + '\\*\\)', + { + contains: ['self', COMMENT_MODE_1] //allow nesting + }); + var COMMENTS = [ + COMMENT_MODE_1, + COMMENT_MODE_2, + hljs.HASH_COMMENT_MODE + ]; + + return { + aliases: ['osascript'], + keywords: { + keyword: + 'about above after against and around as at back before beginning ' + + 'behind below beneath beside between but by considering ' + + 'contain contains continue copy div does eighth else end equal ' + + 'equals error every exit fifth first for fourth from front ' + + 'get given global if ignoring in into is it its last local me ' + + 'middle mod my ninth not of on onto or over prop property put ref ' + + 'reference repeat returning script second set seventh since ' + + 'sixth some tell tenth that the|0 then third through thru ' + + 'timeout times to transaction try until where while whose with ' + + 'without', + constant: + 'AppleScript false linefeed return pi quote result space tab true', + type: + 'alias application boolean class constant date file integer list ' + + 'number real record string text', + command: + 'activate beep count delay launch log offset read round ' + + 'run say summarize write', + property: + 'character characters contents day frontmost id item length ' + + 'month name paragraph paragraphs rest reverse running time version ' + + 'weekday word words year' + }, + contains: [ + STRING, + hljs.C_NUMBER_MODE, + { + className: 'type', + begin: '\\bPOSIX file\\b' + }, + { + className: 'command', + begin: + '\\b(clipboard info|the clipboard|info for|list (disks|folder)|' + + 'mount volume|path to|(close|open for) access|(get|set) eof|' + + 'current date|do shell script|get volume settings|random number|' + + 'set volume|system attribute|system info|time to GMT|' + + '(load|run|store) script|scripting components|' + + 'ASCII (character|number)|localized string|' + + 'choose (application|color|file|file name|' + + 'folder|from list|remote application|URL)|' + + 'display (alert|dialog))\\b|^\\s*return\\b' + }, + { + className: 'constant', + begin: + '\\b(text item delimiters|current application|missing value)\\b' + }, + { + className: 'keyword', + begin: + '\\b(apart from|aside from|instead of|out of|greater than|' + + "isn't|(doesn't|does not) (equal|come before|come after|contain)|" + + '(greater|less) than( or equal)?|(starts?|ends|begins?) with|' + + 'contained by|comes (before|after)|a (ref|reference))\\b' + }, + { + className: 'property', + begin: + '\\b(POSIX path|(date|time) string|quoted form)\\b' + }, + { + className: 'function_start', + beginKeywords: 'on', + illegal: '[${=;\\n]', + contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS] + } + ].concat(COMMENTS), + illegal: '//|->|=>|\\[\\[' + }; + }; +}, {} +], +45: [function(require, module, exports) { + module.exports = function(hljs) { + //local labels: %?[FB]?[AT]?\d{1,2}\w+ + return { + case_insensitive: true, + aliases: ['arm'], + lexemes: '\\.?' + hljs.IDENT_RE, + keywords: { + literal: + 'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ' + //standard registers + 'pc lr sp ip sl sb fp ' + //typical regs plus backward compatibility + 'a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 ' + //more regs and fp + 'p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ' + //coprocessor regs + 'c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 ' + //more coproc + 'q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 ' + //advanced SIMD NEON regs + + //program status registers + 'cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf ' + + 'spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf ' + + //NEON and VFP registers + 's0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 ' + + 's16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 ' + + 'd0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 ' + + 'd16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 ', + preprocessor: + //GNU preprocs + '.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ' + + //ARM directives + 'ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ', + built_in: + '{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @ ' + }, + contains: [ + { + className: 'keyword', + begin: '\\b(' + //mnemonics + 'adc|' + + '(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|' + + 'and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|' + + 'bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|' + + 'setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|' + + 'ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|' + + 'mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|' + + 'mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|' + + 'mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|' + + 'rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|' + + 'stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|' + + '[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|' + + 'wfe|wfi|yield' + + ')' + + '(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?' + //condition codes + '[sptrx]?' , + //legal postfixes + end: '\\s' + }, + hljs.COMMENT('[;@]', '$', { + relevance: 0 + }), + hljs.C_BLOCK_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: '\'', + end: '[^\\\\]\'', + relevance: 0 + }, + { + className: 'title', + begin: '\\|', + end: '\\|', + illegal: '\\n', + relevance: 0 + }, + { + className: 'number', + variants: [ + { + begin: '[#$=]?0x[0-9a-f]+' + }, //hex + { + begin: '[#$=]?0b[01]+' + }, //bin + { + begin: '[#$=]\\d+' + }, //literal + { + begin: '\\b\\d+' + } + //bare number + ], + relevance: 0 + }, + { + className: 'label', + variants: [ + { + begin: '^[a-z_\\.\\$][a-z0-9_\\.\\$]+' + }, //ARM syntax + { + begin: '^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:' + }, //GNU ARM syntax + { + begin: '[=#]\\w+' + } + //label reference + ], + relevance: 0 + } + ] + }; + }; +}, {} +], +46: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['adoc'], + contains: [ + // block comment + hljs.COMMENT( + '^/{4,}\\n', + '\\n/{4,}$', + // can also be done as... + //'^/{4,}$', + //'^/{4,}$', + { + relevance: 10 + }), + // line comment + hljs.COMMENT( + '^//', + '$', + { + relevance: 0 + }), + // title + { + className: 'title', + begin: '^\\.\\w.*$' + }, + // example, admonition & sidebar blocks + { + begin: '^[=\\*]{4,}\\n', + end: '\\n^[=\\*]{4,}$', + relevance: 10 + }, + // headings + { + className: 'header', + begin: '^(={1,5}) .+?( \\1)?$', + relevance: 10 + }, + { + className: 'header', + begin: '^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$', + relevance: 10 + }, + // document attributes + { + className: 'attribute', + begin: '^:.+?:', + end: '\\s', + excludeEnd: true, + relevance: 10 + }, + // block attributes + { + className: 'attribute', + begin: '^\\[.+?\\]$', + relevance: 0 + }, + // quoteblocks + { + className: 'blockquote', + begin: '^_{4,}\\n', + end: '\\n_{4,}$', + relevance: 10 + }, + // listing and literal blocks + { + className: 'code', + begin: '^[\\-\\.]{4,}\\n', + end: '\\n[\\-\\.]{4,}$', + relevance: 10 + }, + // passthrough blocks + { + begin: '^\\+{4,}\\n', + end: '\\n\\+{4,}$', + contains: [ + { + begin: '<', + end: '>', + subLanguage: 'xml', + relevance: 0 + } + ], + relevance: 10 + }, + // lists (can only capture indicators) + { + className: 'bullet', + begin: '^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+' + }, + // admonition + { + className: 'label', + begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+', + relevance: 10 + }, + // inline strong + { + className: 'strong', + // must not follow a word character or be followed by an asterisk or space + begin: '\\B\\*(?![\\*\\s])', + end: '(\\n{2}|\\*)', + // allow escaped asterisk followed by word char + contains: [ + { + begin: '\\\\*\\w', + relevance: 0 + } + ] + }, + // inline emphasis + { + className: 'emphasis', + // must not follow a word character or be followed by a single quote or space + begin: '\\B\'(?![\'\\s])', + end: '(\\n{2}|\')', + // allow escaped single quote followed by word char + contains: [ + { + begin: '\\\\\'\\w', + relevance: 0 + } + ], + relevance: 0 + }, + // inline emphasis (alt) + { + className: 'emphasis', + // must not follow a word character or be followed by an underline or space + begin: '_(?![_\\s])', + end: '(\\n{2}|_)', + relevance: 0 + }, + // inline smart quotes + { + className: 'smartquote', + variants: [ + { + begin: "``.+?''" + }, + { + begin: "`.+?'" + } + ] + }, + // inline code snippets (TODO should get same treatment as strong and emphasis) + { + className: 'code', + begin: '(`.+?`|\\+.+?\\+)', + relevance: 0 + }, + // indented literal block + { + className: 'code', + begin: '^[ \\t]', + end: '$', + relevance: 0 + }, + // horizontal rules + { + className: 'horizontal_rule', + begin: '^\'{3,}[ \\t]*$', + relevance: 10 + }, + // images and links + { + begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]', + returnBegin: true, + contains: [ + { + //className: 'macro', + begin: '(link|image:?):', + relevance: 0 + }, + { + className: 'link_url', + begin: '\\w', + end: '[^\\[]+', + relevance: 0 + }, + { + className: 'link_label', + begin: '\\[', + end: '\\]', + excludeBegin: true, + excludeEnd: true, + relevance: 0 + } + ], + relevance: 10 + } + ] + }; + }; +}, {} +], +47: [function(require, module, exports) { + module.exports = function (hljs) { + var KEYWORDS = + 'false synchronized int abstract float private char boolean static null if const ' + + 'for true while long throw strictfp finally protected import native final return void ' + + 'enum else extends implements break transient new catch instanceof byte super volatile case ' + + 'assert short package default double public try this switch continue throws privileged ' + + 'aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization ' + + 'staticinitialization withincode target within execution getWithinTypeName handler ' + + 'thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents ' + + 'warning error soft precedence thisAspectInstance'; + var SHORTKEYS = 'get set args call'; + return { + keywords : KEYWORDS, + illegal : /<\/|#/, + contains : [ + hljs.COMMENT( + '/\\*\\*', + '\\*/', + { + relevance : 0, + contains : [{ + className : 'doctag', + begin : '@[A-Za-z]+' + } + ] + }), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + className : 'aspect', + beginKeywords : 'aspect', + end : /[{;=]/, + excludeEnd : true, + illegal : /[:;"\[\]]/, + contains : [ + { + beginKeywords : 'extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton' + }, + hljs.UNDERSCORE_TITLE_MODE, + { + begin : /\([^\)]*/, + end : /[)]+/, + keywords : KEYWORDS + ' ' + SHORTKEYS, + excludeEnd : false + } + ] + }, + { + className : 'class', + beginKeywords : 'class interface', + end : /[{;=]/, + excludeEnd : true, + relevance: 0, + keywords : 'class interface', + illegal : /[:"\[\]]/, + contains : [ + { + beginKeywords : 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + // AspectJ Constructs + beginKeywords : 'pointcut after before around throwing returning', + end : /[)]/, + excludeEnd : false, + illegal : /["\[\]]/, + contains : [ + { + begin : hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', + returnBegin : true, + contains : [hljs.UNDERSCORE_TITLE_MODE] + } + ] + }, + { + begin : /[:]/, + returnBegin : true, + end : /[{;]/, + relevance: 0, + excludeEnd : false, + keywords : KEYWORDS, + illegal : /["\[\]]/, + contains : [ + { + begin : hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', + keywords : KEYWORDS + ' ' + SHORTKEYS + }, + hljs.QUOTE_STRING_MODE + ] + }, + { + // this prevents 'new Name(...), or throw ...' from being recognized as a function definition + beginKeywords : 'new throw', + relevance : 0 + }, + { + // the function class is a bit different for AspectJ compared to the Java language + className : 'function', + begin : /\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/, + returnBegin : true, + end : /[{;=]/, + keywords : KEYWORDS, + excludeEnd : true, + contains : [ + { + begin : hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', + returnBegin : true, + relevance: 0, + contains : [hljs.UNDERSCORE_TITLE_MODE] + }, + { + className : 'params', + begin : /\(/, + end : /\)/, + relevance: 0, + keywords : KEYWORDS, + contains : [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + hljs.C_NUMBER_MODE, + { + // annotation is also used in this language + className : 'annotation', + begin : '@[A-Za-z]+' + } + ] + }; + }; +}, {} +], +48: [function(require, module, exports) { + module.exports = function(hljs) { + var BACKTICK_ESCAPE = { + className: 'escape', + begin: '`[\\s\\S]' + }; + var COMMENTS = hljs.COMMENT( + ';', + '$', + { + relevance: 0 + }); + var BUILT_IN = [ + { + className: 'built_in', + begin: 'A_[a-zA-Z0-9]+' + }, + { + className: 'built_in', + beginKeywords: 'ComSpec Clipboard ClipboardAll ErrorLevel' + } + ]; + + return { + case_insensitive: true, + keywords: { + keyword: 'Break Continue Else Gosub If Loop Return While', + literal: 'A true false NOT AND OR' + }, + contains: BUILT_IN.concat([ + BACKTICK_ESCAPE, + hljs.inherit(hljs.QUOTE_STRING_MODE, { + contains: [BACKTICK_ESCAPE] + }), + COMMENTS, + { + className: 'number', + begin: hljs.NUMBER_RE, + relevance: 0 + }, + { + className: 'var_expand', + // FIXME + begin: '%', + end: '%', + illegal: '\\n', + contains: [BACKTICK_ESCAPE] + }, + { + className: 'label', + contains: [BACKTICK_ESCAPE], + variants: [ + { + begin: '^[^\\n";]+::(?!=)' + }, + { + begin: '^[^\\n";]+:(?!=)', + relevance: 0 + } + // zero relevance as it catches a lot of things + // followed by a single ':' in many languages + ] + }, + { + // consecutive commas, not for highlighting but just for relevance + begin: ',\\s*,', + relevance: 10 + } + ]) + } + }; +}, {} +], +49: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = 'ByRef Case Const ContinueCase ContinueLoop ' + + 'Default Dim Do Else ElseIf EndFunc EndIf EndSelect ' + + 'EndSwitch EndWith Enum Exit ExitLoop For Func ' + + 'Global If In Local Next ReDim Return Select Static ' + + 'Step Switch Then To Until Volatile WEnd While With', + LITERAL = 'True False And Null Not Or', + BUILT_IN = 'Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin ' + + 'Assign ATan AutoItSetOption AutoItWinGetTitle ' + + 'AutoItWinSetTitle Beep Binary BinaryLen BinaryMid ' + + 'BinaryToString BitAND BitNOT BitOR BitRotate BitShift ' + + 'BitXOR BlockInput Break Call CDTray Ceiling Chr ' + + 'ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ' + + 'ConsoleWriteError ControlClick ControlCommand ' + + 'ControlDisable ControlEnable ControlFocus ControlGetFocus ' + + 'ControlGetHandle ControlGetPos ControlGetText ControlHide ' + + 'ControlListView ControlMove ControlSend ControlSetText ' + + 'ControlShow ControlTreeView Cos Dec DirCopy DirCreate ' + + 'DirGetSize DirMove DirRemove DllCall DllCallAddress ' + + 'DllCallbackFree DllCallbackGetPtr DllCallbackRegister ' + + 'DllClose DllOpen DllStructCreate DllStructGetData ' + + 'DllStructGetPtr DllStructGetSize DllStructSetData ' + + 'DriveGetDrive DriveGetFileSystem DriveGetLabel ' + + 'DriveGetSerial DriveGetType DriveMapAdd DriveMapDel ' + + 'DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal ' + + 'DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp ' + + 'FileChangeDir FileClose FileCopy FileCreateNTFSLink ' + + 'FileCreateShortcut FileDelete FileExists FileFindFirstFile ' + + 'FileFindNextFile FileFlush FileGetAttrib FileGetEncoding ' + + 'FileGetLongName FileGetPos FileGetShortcut FileGetShortName ' + + 'FileGetSize FileGetTime FileGetVersion FileInstall ' + + 'FileMove FileOpen FileOpenDialog FileRead FileReadLine ' + + 'FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog ' + + 'FileSelectFolder FileSetAttrib FileSetEnd FileSetPos ' + + 'FileSetTime FileWrite FileWriteLine Floor FtpSetProxy ' + + 'FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton ' + + 'GUICtrlCreateCheckbox GUICtrlCreateCombo ' + + 'GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy ' + + 'GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup ' + + 'GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel ' + + 'GUICtrlCreateList GUICtrlCreateListView ' + + 'GUICtrlCreateListViewItem GUICtrlCreateMenu ' + + 'GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj ' + + 'GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio ' + + 'GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem ' + + 'GUICtrlCreateTreeView GUICtrlCreateTreeViewItem ' + + 'GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle ' + + 'GUICtrlGetState GUICtrlRead GUICtrlRecvMsg ' + + 'GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy ' + + 'GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor ' + + 'GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor ' + + 'GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage ' + + 'GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos ' + + 'GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle ' + + 'GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg ' + + 'GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor ' + + 'GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon ' + + 'GUISetOnEvent GUISetState GUISetStyle GUIStartGroup ' + + 'GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent ' + + 'HWnd InetClose InetGet InetGetInfo InetGetSize InetRead ' + + 'IniDelete IniRead IniReadSection IniReadSectionNames ' + + 'IniRenameSection IniWrite IniWriteSection InputBox Int ' + + 'IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct ' + + 'IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj ' + + 'IsPtr IsString Log MemGetStats Mod MouseClick ' + + 'MouseClickDrag MouseDown MouseGetCursor MouseGetPos ' + + 'MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ' + + 'ObjCreateInterface ObjEvent ObjGet ObjName ' + + 'OnAutoItExitRegister OnAutoItExitUnRegister Opt Ping ' + + 'PixelChecksum PixelGetColor PixelSearch ProcessClose ' + + 'ProcessExists ProcessGetStats ProcessList ' + + 'ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ' + + 'ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey ' + + 'RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait ' + + 'RunWait Send SendKeepActive SetError SetExtended ' + + 'ShellExecute ShellExecuteWait Shutdown Sin Sleep ' + + 'SoundPlay SoundSetWaveVolume SplashImageOn SplashOff ' + + 'SplashTextOn Sqrt SRandom StatusbarGetText StderrRead ' + + 'StdinWrite StdioClose StdoutRead String StringAddCR ' + + 'StringCompare StringFormat StringFromASCIIArray StringInStr ' + + 'StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit ' + + 'StringIsFloat StringIsInt StringIsLower StringIsSpace ' + + 'StringIsUpper StringIsXDigit StringLeft StringLen ' + + 'StringLower StringMid StringRegExp StringRegExpReplace ' + + 'StringReplace StringReverse StringRight StringSplit ' + + 'StringStripCR StringStripWS StringToASCIIArray ' + + 'StringToBinary StringTrimLeft StringTrimRight StringUpper ' + + 'Tan TCPAccept TCPCloseSocket TCPConnect TCPListen ' + + 'TCPNameToIP TCPRecv TCPSend TCPShutdown TCPStartup ' + + 'TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu ' + + 'TrayGetMsg TrayItemDelete TrayItemGetHandle ' + + 'TrayItemGetState TrayItemGetText TrayItemSetOnEvent ' + + 'TrayItemSetState TrayItemSetText TraySetClick TraySetIcon ' + + 'TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip ' + + 'TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv ' + + 'UDPSend UDPShutdown UDPStartup VarGetType WinActivate ' + + 'WinActive WinClose WinExists WinFlash WinGetCaretPos ' + + 'WinGetClassList WinGetClientSize WinGetHandle WinGetPos ' + + 'WinGetProcess WinGetState WinGetText WinGetTitle WinKill ' + + 'WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo ' + + 'WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans ' + + 'WinWait WinWaitActive WinWaitClose WinWaitNotActive ' + + 'Array1DToHistogram ArrayAdd ArrayBinarySearch ' + + 'ArrayColDelete ArrayColInsert ArrayCombinations ' + + 'ArrayConcatenate ArrayDelete ArrayDisplay ArrayExtract ' + + 'ArrayFindAll ArrayInsert ArrayMax ArrayMaxIndex ArrayMin ' + + 'ArrayMinIndex ArrayPermute ArrayPop ArrayPush ' + + 'ArrayReverse ArraySearch ArrayShuffle ArraySort ArraySwap ' + + 'ArrayToClip ArrayToString ArrayTranspose ArrayTrim ' + + 'ArrayUnique Assert ChooseColor ChooseFont ' + + 'ClipBoard_ChangeChain ClipBoard_Close ClipBoard_CountFormats ' + + 'ClipBoard_Empty ClipBoard_EnumFormats ClipBoard_FormatStr ' + + 'ClipBoard_GetData ClipBoard_GetDataEx ClipBoard_GetFormatName ' + + 'ClipBoard_GetOpenWindow ClipBoard_GetOwner ' + + 'ClipBoard_GetPriorityFormat ClipBoard_GetSequenceNumber ' + + 'ClipBoard_GetViewer ClipBoard_IsFormatAvailable ' + + 'ClipBoard_Open ClipBoard_RegisterFormat ClipBoard_SetData ' + + 'ClipBoard_SetDataEx ClipBoard_SetViewer ClipPutFile ' + + 'ColorConvertHSLtoRGB ColorConvertRGBtoHSL ColorGetBlue ' + + 'ColorGetCOLORREF ColorGetGreen ColorGetRed ColorGetRGB ' + + 'ColorSetCOLORREF ColorSetRGB Crypt_DecryptData ' + + 'Crypt_DecryptFile Crypt_DeriveKey Crypt_DestroyKey ' + + 'Crypt_EncryptData Crypt_EncryptFile Crypt_GenRandom ' + + 'Crypt_HashData Crypt_HashFile Crypt_Shutdown Crypt_Startup ' + + 'DateAdd DateDayOfWeek DateDaysInMonth DateDiff ' + + 'DateIsLeapYear DateIsValid DateTimeFormat DateTimeSplit ' + + 'DateToDayOfWeek DateToDayOfWeekISO DateToDayValue ' + + 'DateToMonth Date_Time_CompareFileTime ' + + 'Date_Time_DOSDateTimeToArray Date_Time_DOSDateTimeToFileTime ' + + 'Date_Time_DOSDateTimeToStr Date_Time_DOSDateToArray ' + + 'Date_Time_DOSDateToStr Date_Time_DOSTimeToArray ' + + 'Date_Time_DOSTimeToStr Date_Time_EncodeFileTime ' + + 'Date_Time_EncodeSystemTime Date_Time_FileTimeToArray ' + + 'Date_Time_FileTimeToDOSDateTime ' + + 'Date_Time_FileTimeToLocalFileTime Date_Time_FileTimeToStr ' + + 'Date_Time_FileTimeToSystemTime Date_Time_GetFileTime ' + + 'Date_Time_GetLocalTime Date_Time_GetSystemTime ' + + 'Date_Time_GetSystemTimeAdjustment ' + + 'Date_Time_GetSystemTimeAsFileTime Date_Time_GetSystemTimes ' + + 'Date_Time_GetTickCount Date_Time_GetTimeZoneInformation ' + + 'Date_Time_LocalFileTimeToFileTime Date_Time_SetFileTime ' + + 'Date_Time_SetLocalTime Date_Time_SetSystemTime ' + + 'Date_Time_SetSystemTimeAdjustment ' + + 'Date_Time_SetTimeZoneInformation Date_Time_SystemTimeToArray ' + + 'Date_Time_SystemTimeToDateStr Date_Time_SystemTimeToDateTimeStr ' + + 'Date_Time_SystemTimeToFileTime Date_Time_SystemTimeToTimeStr ' + + 'Date_Time_SystemTimeToTzSpecificLocalTime ' + + 'Date_Time_TzSpecificLocalTimeToSystemTime DayValueToDate ' + + 'DebugBugReportEnv DebugCOMError DebugOut DebugReport ' + + 'DebugReportEx DebugReportVar DebugSetup Degree ' + + 'EventLog__Backup EventLog__Clear EventLog__Close ' + + 'EventLog__Count EventLog__DeregisterSource EventLog__Full ' + + 'EventLog__Notify EventLog__Oldest EventLog__Open ' + + 'EventLog__OpenBackup EventLog__Read EventLog__RegisterSource ' + + 'EventLog__Report Excel_BookAttach Excel_BookClose ' + + 'Excel_BookList Excel_BookNew Excel_BookOpen ' + + 'Excel_BookOpenText Excel_BookSave Excel_BookSaveAs ' + + 'Excel_Close Excel_ColumnToLetter Excel_ColumnToNumber ' + + 'Excel_ConvertFormula Excel_Export Excel_FilterGet ' + + 'Excel_FilterSet Excel_Open Excel_PictureAdd Excel_Print ' + + 'Excel_RangeCopyPaste Excel_RangeDelete Excel_RangeFind ' + + 'Excel_RangeInsert Excel_RangeLinkAddRemove Excel_RangeRead ' + + 'Excel_RangeReplace Excel_RangeSort Excel_RangeValidate ' + + 'Excel_RangeWrite Excel_SheetAdd Excel_SheetCopyMove ' + + 'Excel_SheetDelete Excel_SheetList FileCountLines FileCreate ' + + 'FileListToArray FileListToArrayRec FilePrint ' + + 'FileReadToArray FileWriteFromArray FileWriteLog ' + + 'FileWriteToLine FTP_Close FTP_Command FTP_Connect ' + + 'FTP_DecodeInternetStatus FTP_DirCreate FTP_DirDelete ' + + 'FTP_DirGetCurrent FTP_DirPutContents FTP_DirSetCurrent ' + + 'FTP_FileClose FTP_FileDelete FTP_FileGet FTP_FileGetSize ' + + 'FTP_FileOpen FTP_FilePut FTP_FileRead FTP_FileRename ' + + 'FTP_FileTimeLoHiToStr FTP_FindFileClose FTP_FindFileFirst ' + + 'FTP_FindFileNext FTP_GetLastResponseInfo FTP_ListToArray ' + + 'FTP_ListToArray2D FTP_ListToArrayEx FTP_Open ' + + 'FTP_ProgressDownload FTP_ProgressUpload FTP_SetStatusCallback ' + + 'GDIPlus_ArrowCapCreate GDIPlus_ArrowCapDispose ' + + 'GDIPlus_ArrowCapGetFillState GDIPlus_ArrowCapGetHeight ' + + 'GDIPlus_ArrowCapGetMiddleInset GDIPlus_ArrowCapGetWidth ' + + 'GDIPlus_ArrowCapSetFillState GDIPlus_ArrowCapSetHeight ' + + 'GDIPlus_ArrowCapSetMiddleInset GDIPlus_ArrowCapSetWidth ' + + 'GDIPlus_BitmapApplyEffect GDIPlus_BitmapApplyEffectEx ' + + 'GDIPlus_BitmapCloneArea GDIPlus_BitmapConvertFormat ' + + 'GDIPlus_BitmapCreateApplyEffect ' + + 'GDIPlus_BitmapCreateApplyEffectEx ' + + 'GDIPlus_BitmapCreateDIBFromBitmap GDIPlus_BitmapCreateFromFile ' + + 'GDIPlus_BitmapCreateFromGraphics ' + + 'GDIPlus_BitmapCreateFromHBITMAP GDIPlus_BitmapCreateFromHICON ' + + 'GDIPlus_BitmapCreateFromHICON32 GDIPlus_BitmapCreateFromMemory ' + + 'GDIPlus_BitmapCreateFromResource GDIPlus_BitmapCreateFromScan0 ' + + 'GDIPlus_BitmapCreateFromStream ' + + 'GDIPlus_BitmapCreateHBITMAPFromBitmap GDIPlus_BitmapDispose ' + + 'GDIPlus_BitmapGetHistogram GDIPlus_BitmapGetHistogramEx ' + + 'GDIPlus_BitmapGetHistogramSize GDIPlus_BitmapGetPixel ' + + 'GDIPlus_BitmapLockBits GDIPlus_BitmapSetPixel ' + + 'GDIPlus_BitmapUnlockBits GDIPlus_BrushClone ' + + 'GDIPlus_BrushCreateSolid GDIPlus_BrushDispose ' + + 'GDIPlus_BrushGetSolidColor GDIPlus_BrushGetType ' + + 'GDIPlus_BrushSetSolidColor GDIPlus_ColorMatrixCreate ' + + 'GDIPlus_ColorMatrixCreateGrayScale ' + + 'GDIPlus_ColorMatrixCreateNegative ' + + 'GDIPlus_ColorMatrixCreateSaturation ' + + 'GDIPlus_ColorMatrixCreateScale ' + + 'GDIPlus_ColorMatrixCreateTranslate GDIPlus_CustomLineCapClone ' + + 'GDIPlus_CustomLineCapCreate GDIPlus_CustomLineCapDispose ' + + 'GDIPlus_CustomLineCapGetStrokeCaps ' + + 'GDIPlus_CustomLineCapSetStrokeCaps GDIPlus_Decoders ' + + 'GDIPlus_DecodersGetCount GDIPlus_DecodersGetSize ' + + 'GDIPlus_DrawImageFX GDIPlus_DrawImageFXEx ' + + 'GDIPlus_DrawImagePoints GDIPlus_EffectCreate ' + + 'GDIPlus_EffectCreateBlur GDIPlus_EffectCreateBrightnessContrast ' + + 'GDIPlus_EffectCreateColorBalance GDIPlus_EffectCreateColorCurve ' + + 'GDIPlus_EffectCreateColorLUT GDIPlus_EffectCreateColorMatrix ' + + 'GDIPlus_EffectCreateHueSaturationLightness ' + + 'GDIPlus_EffectCreateLevels GDIPlus_EffectCreateRedEyeCorrection ' + + 'GDIPlus_EffectCreateSharpen GDIPlus_EffectCreateTint ' + + 'GDIPlus_EffectDispose GDIPlus_EffectGetParameters ' + + 'GDIPlus_EffectSetParameters GDIPlus_Encoders ' + + 'GDIPlus_EncodersGetCLSID GDIPlus_EncodersGetCount ' + + 'GDIPlus_EncodersGetParamList GDIPlus_EncodersGetParamListSize ' + + 'GDIPlus_EncodersGetSize GDIPlus_FontCreate ' + + 'GDIPlus_FontDispose GDIPlus_FontFamilyCreate ' + + 'GDIPlus_FontFamilyCreateFromCollection ' + + 'GDIPlus_FontFamilyDispose GDIPlus_FontFamilyGetCellAscent ' + + 'GDIPlus_FontFamilyGetCellDescent GDIPlus_FontFamilyGetEmHeight ' + + 'GDIPlus_FontFamilyGetLineSpacing GDIPlus_FontGetHeight ' + + 'GDIPlus_FontPrivateAddFont GDIPlus_FontPrivateAddMemoryFont ' + + 'GDIPlus_FontPrivateCollectionDispose ' + + 'GDIPlus_FontPrivateCreateCollection GDIPlus_GraphicsClear ' + + 'GDIPlus_GraphicsCreateFromHDC GDIPlus_GraphicsCreateFromHWND ' + + 'GDIPlus_GraphicsDispose GDIPlus_GraphicsDrawArc ' + + 'GDIPlus_GraphicsDrawBezier GDIPlus_GraphicsDrawClosedCurve ' + + 'GDIPlus_GraphicsDrawClosedCurve2 GDIPlus_GraphicsDrawCurve ' + + 'GDIPlus_GraphicsDrawCurve2 GDIPlus_GraphicsDrawEllipse ' + + 'GDIPlus_GraphicsDrawImage GDIPlus_GraphicsDrawImagePointsRect ' + + 'GDIPlus_GraphicsDrawImageRect GDIPlus_GraphicsDrawImageRectRect ' + + 'GDIPlus_GraphicsDrawLine GDIPlus_GraphicsDrawPath ' + + 'GDIPlus_GraphicsDrawPie GDIPlus_GraphicsDrawPolygon ' + + 'GDIPlus_GraphicsDrawRect GDIPlus_GraphicsDrawString ' + + 'GDIPlus_GraphicsDrawStringEx GDIPlus_GraphicsFillClosedCurve ' + + 'GDIPlus_GraphicsFillClosedCurve2 GDIPlus_GraphicsFillEllipse ' + + 'GDIPlus_GraphicsFillPath GDIPlus_GraphicsFillPie ' + + 'GDIPlus_GraphicsFillPolygon GDIPlus_GraphicsFillRect ' + + 'GDIPlus_GraphicsFillRegion GDIPlus_GraphicsGetCompositingMode ' + + 'GDIPlus_GraphicsGetCompositingQuality GDIPlus_GraphicsGetDC ' + + 'GDIPlus_GraphicsGetInterpolationMode ' + + 'GDIPlus_GraphicsGetSmoothingMode GDIPlus_GraphicsGetTransform ' + + 'GDIPlus_GraphicsMeasureCharacterRanges ' + + 'GDIPlus_GraphicsMeasureString GDIPlus_GraphicsReleaseDC ' + + 'GDIPlus_GraphicsResetClip GDIPlus_GraphicsResetTransform ' + + 'GDIPlus_GraphicsRestore GDIPlus_GraphicsRotateTransform ' + + 'GDIPlus_GraphicsSave GDIPlus_GraphicsScaleTransform ' + + 'GDIPlus_GraphicsSetClipPath GDIPlus_GraphicsSetClipRect ' + + 'GDIPlus_GraphicsSetClipRegion ' + + 'GDIPlus_GraphicsSetCompositingMode ' + + 'GDIPlus_GraphicsSetCompositingQuality ' + + 'GDIPlus_GraphicsSetInterpolationMode ' + + 'GDIPlus_GraphicsSetPixelOffsetMode ' + + 'GDIPlus_GraphicsSetSmoothingMode ' + + 'GDIPlus_GraphicsSetTextRenderingHint ' + + 'GDIPlus_GraphicsSetTransform GDIPlus_GraphicsTransformPoints ' + + 'GDIPlus_GraphicsTranslateTransform GDIPlus_HatchBrushCreate ' + + 'GDIPlus_HICONCreateFromBitmap GDIPlus_ImageAttributesCreate ' + + 'GDIPlus_ImageAttributesDispose ' + + 'GDIPlus_ImageAttributesSetColorKeys ' + + 'GDIPlus_ImageAttributesSetColorMatrix GDIPlus_ImageDispose ' + + 'GDIPlus_ImageGetDimension GDIPlus_ImageGetFlags ' + + 'GDIPlus_ImageGetGraphicsContext GDIPlus_ImageGetHeight ' + + 'GDIPlus_ImageGetHorizontalResolution ' + + 'GDIPlus_ImageGetPixelFormat GDIPlus_ImageGetRawFormat ' + + 'GDIPlus_ImageGetThumbnail GDIPlus_ImageGetType ' + + 'GDIPlus_ImageGetVerticalResolution GDIPlus_ImageGetWidth ' + + 'GDIPlus_ImageLoadFromFile GDIPlus_ImageLoadFromStream ' + + 'GDIPlus_ImageResize GDIPlus_ImageRotateFlip ' + + 'GDIPlus_ImageSaveToFile GDIPlus_ImageSaveToFileEx ' + + 'GDIPlus_ImageSaveToStream GDIPlus_ImageScale ' + + 'GDIPlus_LineBrushCreate GDIPlus_LineBrushCreateFromRect ' + + 'GDIPlus_LineBrushCreateFromRectWithAngle ' + + 'GDIPlus_LineBrushGetColors GDIPlus_LineBrushGetRect ' + + 'GDIPlus_LineBrushMultiplyTransform ' + + 'GDIPlus_LineBrushResetTransform GDIPlus_LineBrushSetBlend ' + + 'GDIPlus_LineBrushSetColors GDIPlus_LineBrushSetGammaCorrection ' + + 'GDIPlus_LineBrushSetLinearBlend GDIPlus_LineBrushSetPresetBlend ' + + 'GDIPlus_LineBrushSetSigmaBlend GDIPlus_LineBrushSetTransform ' + + 'GDIPlus_MatrixClone GDIPlus_MatrixCreate ' + + 'GDIPlus_MatrixDispose GDIPlus_MatrixGetElements ' + + 'GDIPlus_MatrixInvert GDIPlus_MatrixMultiply ' + + 'GDIPlus_MatrixRotate GDIPlus_MatrixScale ' + + 'GDIPlus_MatrixSetElements GDIPlus_MatrixShear ' + + 'GDIPlus_MatrixTransformPoints GDIPlus_MatrixTranslate ' + + 'GDIPlus_PaletteInitialize GDIPlus_ParamAdd GDIPlus_ParamInit ' + + 'GDIPlus_ParamSize GDIPlus_PathAddArc GDIPlus_PathAddBezier ' + + 'GDIPlus_PathAddClosedCurve GDIPlus_PathAddClosedCurve2 ' + + 'GDIPlus_PathAddCurve GDIPlus_PathAddCurve2 ' + + 'GDIPlus_PathAddCurve3 GDIPlus_PathAddEllipse ' + + 'GDIPlus_PathAddLine GDIPlus_PathAddLine2 GDIPlus_PathAddPath ' + + 'GDIPlus_PathAddPie GDIPlus_PathAddPolygon ' + + 'GDIPlus_PathAddRectangle GDIPlus_PathAddString ' + + 'GDIPlus_PathBrushCreate GDIPlus_PathBrushCreateFromPath ' + + 'GDIPlus_PathBrushGetCenterPoint GDIPlus_PathBrushGetFocusScales ' + + 'GDIPlus_PathBrushGetPointCount GDIPlus_PathBrushGetRect ' + + 'GDIPlus_PathBrushGetWrapMode GDIPlus_PathBrushMultiplyTransform ' + + 'GDIPlus_PathBrushResetTransform GDIPlus_PathBrushSetBlend ' + + 'GDIPlus_PathBrushSetCenterColor GDIPlus_PathBrushSetCenterPoint ' + + 'GDIPlus_PathBrushSetFocusScales ' + + 'GDIPlus_PathBrushSetGammaCorrection ' + + 'GDIPlus_PathBrushSetLinearBlend GDIPlus_PathBrushSetPresetBlend ' + + 'GDIPlus_PathBrushSetSigmaBlend ' + + 'GDIPlus_PathBrushSetSurroundColor ' + + 'GDIPlus_PathBrushSetSurroundColorsWithCount ' + + 'GDIPlus_PathBrushSetTransform GDIPlus_PathBrushSetWrapMode ' + + 'GDIPlus_PathClone GDIPlus_PathCloseFigure GDIPlus_PathCreate ' + + 'GDIPlus_PathCreate2 GDIPlus_PathDispose GDIPlus_PathFlatten ' + + 'GDIPlus_PathGetData GDIPlus_PathGetFillMode ' + + 'GDIPlus_PathGetLastPoint GDIPlus_PathGetPointCount ' + + 'GDIPlus_PathGetPoints GDIPlus_PathGetWorldBounds ' + + 'GDIPlus_PathIsOutlineVisiblePoint GDIPlus_PathIsVisiblePoint ' + + 'GDIPlus_PathIterCreate GDIPlus_PathIterDispose ' + + 'GDIPlus_PathIterGetSubpathCount GDIPlus_PathIterNextMarkerPath ' + + 'GDIPlus_PathIterNextSubpathPath GDIPlus_PathIterRewind ' + + 'GDIPlus_PathReset GDIPlus_PathReverse GDIPlus_PathSetFillMode ' + + 'GDIPlus_PathSetMarker GDIPlus_PathStartFigure ' + + 'GDIPlus_PathTransform GDIPlus_PathWarp GDIPlus_PathWiden ' + + 'GDIPlus_PathWindingModeOutline GDIPlus_PenCreate ' + + 'GDIPlus_PenCreate2 GDIPlus_PenDispose GDIPlus_PenGetAlignment ' + + 'GDIPlus_PenGetColor GDIPlus_PenGetCustomEndCap ' + + 'GDIPlus_PenGetDashCap GDIPlus_PenGetDashStyle ' + + 'GDIPlus_PenGetEndCap GDIPlus_PenGetMiterLimit ' + + 'GDIPlus_PenGetWidth GDIPlus_PenSetAlignment ' + + 'GDIPlus_PenSetColor GDIPlus_PenSetCustomEndCap ' + + 'GDIPlus_PenSetDashCap GDIPlus_PenSetDashStyle ' + + 'GDIPlus_PenSetEndCap GDIPlus_PenSetLineCap ' + + 'GDIPlus_PenSetLineJoin GDIPlus_PenSetMiterLimit ' + + 'GDIPlus_PenSetStartCap GDIPlus_PenSetWidth ' + + 'GDIPlus_RectFCreate GDIPlus_RegionClone ' + + 'GDIPlus_RegionCombinePath GDIPlus_RegionCombineRect ' + + 'GDIPlus_RegionCombineRegion GDIPlus_RegionCreate ' + + 'GDIPlus_RegionCreateFromPath GDIPlus_RegionCreateFromRect ' + + 'GDIPlus_RegionDispose GDIPlus_RegionGetBounds ' + + 'GDIPlus_RegionGetHRgn GDIPlus_RegionTransform ' + + 'GDIPlus_RegionTranslate GDIPlus_Shutdown GDIPlus_Startup ' + + 'GDIPlus_StringFormatCreate GDIPlus_StringFormatDispose ' + + 'GDIPlus_StringFormatGetMeasurableCharacterRangeCount ' + + 'GDIPlus_StringFormatSetAlign GDIPlus_StringFormatSetLineAlign ' + + 'GDIPlus_StringFormatSetMeasurableCharacterRanges ' + + 'GDIPlus_TextureCreate GDIPlus_TextureCreate2 ' + + 'GDIPlus_TextureCreateIA GetIP GUICtrlAVI_Close ' + + 'GUICtrlAVI_Create GUICtrlAVI_Destroy GUICtrlAVI_IsPlaying ' + + 'GUICtrlAVI_Open GUICtrlAVI_OpenEx GUICtrlAVI_Play ' + + 'GUICtrlAVI_Seek GUICtrlAVI_Show GUICtrlAVI_Stop ' + + 'GUICtrlButton_Click GUICtrlButton_Create ' + + 'GUICtrlButton_Destroy GUICtrlButton_Enable ' + + 'GUICtrlButton_GetCheck GUICtrlButton_GetFocus ' + + 'GUICtrlButton_GetIdealSize GUICtrlButton_GetImage ' + + 'GUICtrlButton_GetImageList GUICtrlButton_GetNote ' + + 'GUICtrlButton_GetNoteLength GUICtrlButton_GetSplitInfo ' + + 'GUICtrlButton_GetState GUICtrlButton_GetText ' + + 'GUICtrlButton_GetTextMargin GUICtrlButton_SetCheck ' + + 'GUICtrlButton_SetDontClick GUICtrlButton_SetFocus ' + + 'GUICtrlButton_SetImage GUICtrlButton_SetImageList ' + + 'GUICtrlButton_SetNote GUICtrlButton_SetShield ' + + 'GUICtrlButton_SetSize GUICtrlButton_SetSplitInfo ' + + 'GUICtrlButton_SetState GUICtrlButton_SetStyle ' + + 'GUICtrlButton_SetText GUICtrlButton_SetTextMargin ' + + 'GUICtrlButton_Show GUICtrlComboBoxEx_AddDir ' + + 'GUICtrlComboBoxEx_AddString GUICtrlComboBoxEx_BeginUpdate ' + + 'GUICtrlComboBoxEx_Create GUICtrlComboBoxEx_CreateSolidBitMap ' + + 'GUICtrlComboBoxEx_DeleteString GUICtrlComboBoxEx_Destroy ' + + 'GUICtrlComboBoxEx_EndUpdate GUICtrlComboBoxEx_FindStringExact ' + + 'GUICtrlComboBoxEx_GetComboBoxInfo ' + + 'GUICtrlComboBoxEx_GetComboControl GUICtrlComboBoxEx_GetCount ' + + 'GUICtrlComboBoxEx_GetCurSel ' + + 'GUICtrlComboBoxEx_GetDroppedControlRect ' + + 'GUICtrlComboBoxEx_GetDroppedControlRectEx ' + + 'GUICtrlComboBoxEx_GetDroppedState ' + + 'GUICtrlComboBoxEx_GetDroppedWidth ' + + 'GUICtrlComboBoxEx_GetEditControl GUICtrlComboBoxEx_GetEditSel ' + + 'GUICtrlComboBoxEx_GetEditText ' + + 'GUICtrlComboBoxEx_GetExtendedStyle ' + + 'GUICtrlComboBoxEx_GetExtendedUI GUICtrlComboBoxEx_GetImageList ' + + 'GUICtrlComboBoxEx_GetItem GUICtrlComboBoxEx_GetItemEx ' + + 'GUICtrlComboBoxEx_GetItemHeight GUICtrlComboBoxEx_GetItemImage ' + + 'GUICtrlComboBoxEx_GetItemIndent ' + + 'GUICtrlComboBoxEx_GetItemOverlayImage ' + + 'GUICtrlComboBoxEx_GetItemParam ' + + 'GUICtrlComboBoxEx_GetItemSelectedImage ' + + 'GUICtrlComboBoxEx_GetItemText GUICtrlComboBoxEx_GetItemTextLen ' + + 'GUICtrlComboBoxEx_GetList GUICtrlComboBoxEx_GetListArray ' + + 'GUICtrlComboBoxEx_GetLocale GUICtrlComboBoxEx_GetLocaleCountry ' + + 'GUICtrlComboBoxEx_GetLocaleLang ' + + 'GUICtrlComboBoxEx_GetLocalePrimLang ' + + 'GUICtrlComboBoxEx_GetLocaleSubLang ' + + 'GUICtrlComboBoxEx_GetMinVisible GUICtrlComboBoxEx_GetTopIndex ' + + 'GUICtrlComboBoxEx_GetUnicode GUICtrlComboBoxEx_InitStorage ' + + 'GUICtrlComboBoxEx_InsertString GUICtrlComboBoxEx_LimitText ' + + 'GUICtrlComboBoxEx_ReplaceEditSel GUICtrlComboBoxEx_ResetContent ' + + 'GUICtrlComboBoxEx_SetCurSel GUICtrlComboBoxEx_SetDroppedWidth ' + + 'GUICtrlComboBoxEx_SetEditSel GUICtrlComboBoxEx_SetEditText ' + + 'GUICtrlComboBoxEx_SetExtendedStyle ' + + 'GUICtrlComboBoxEx_SetExtendedUI GUICtrlComboBoxEx_SetImageList ' + + 'GUICtrlComboBoxEx_SetItem GUICtrlComboBoxEx_SetItemEx ' + + 'GUICtrlComboBoxEx_SetItemHeight GUICtrlComboBoxEx_SetItemImage ' + + 'GUICtrlComboBoxEx_SetItemIndent ' + + 'GUICtrlComboBoxEx_SetItemOverlayImage ' + + 'GUICtrlComboBoxEx_SetItemParam ' + + 'GUICtrlComboBoxEx_SetItemSelectedImage ' + + 'GUICtrlComboBoxEx_SetMinVisible GUICtrlComboBoxEx_SetTopIndex ' + + 'GUICtrlComboBoxEx_SetUnicode GUICtrlComboBoxEx_ShowDropDown ' + + 'GUICtrlComboBox_AddDir GUICtrlComboBox_AddString ' + + 'GUICtrlComboBox_AutoComplete GUICtrlComboBox_BeginUpdate ' + + 'GUICtrlComboBox_Create GUICtrlComboBox_DeleteString ' + + 'GUICtrlComboBox_Destroy GUICtrlComboBox_EndUpdate ' + + 'GUICtrlComboBox_FindString GUICtrlComboBox_FindStringExact ' + + 'GUICtrlComboBox_GetComboBoxInfo GUICtrlComboBox_GetCount ' + + 'GUICtrlComboBox_GetCueBanner GUICtrlComboBox_GetCurSel ' + + 'GUICtrlComboBox_GetDroppedControlRect ' + + 'GUICtrlComboBox_GetDroppedControlRectEx ' + + 'GUICtrlComboBox_GetDroppedState GUICtrlComboBox_GetDroppedWidth ' + + 'GUICtrlComboBox_GetEditSel GUICtrlComboBox_GetEditText ' + + 'GUICtrlComboBox_GetExtendedUI ' + + 'GUICtrlComboBox_GetHorizontalExtent ' + + 'GUICtrlComboBox_GetItemHeight GUICtrlComboBox_GetLBText ' + + 'GUICtrlComboBox_GetLBTextLen GUICtrlComboBox_GetList ' + + 'GUICtrlComboBox_GetListArray GUICtrlComboBox_GetLocale ' + + 'GUICtrlComboBox_GetLocaleCountry GUICtrlComboBox_GetLocaleLang ' + + 'GUICtrlComboBox_GetLocalePrimLang ' + + 'GUICtrlComboBox_GetLocaleSubLang GUICtrlComboBox_GetMinVisible ' + + 'GUICtrlComboBox_GetTopIndex GUICtrlComboBox_InitStorage ' + + 'GUICtrlComboBox_InsertString GUICtrlComboBox_LimitText ' + + 'GUICtrlComboBox_ReplaceEditSel GUICtrlComboBox_ResetContent ' + + 'GUICtrlComboBox_SelectString GUICtrlComboBox_SetCueBanner ' + + 'GUICtrlComboBox_SetCurSel GUICtrlComboBox_SetDroppedWidth ' + + 'GUICtrlComboBox_SetEditSel GUICtrlComboBox_SetEditText ' + + 'GUICtrlComboBox_SetExtendedUI ' + + 'GUICtrlComboBox_SetHorizontalExtent ' + + 'GUICtrlComboBox_SetItemHeight GUICtrlComboBox_SetMinVisible ' + + 'GUICtrlComboBox_SetTopIndex GUICtrlComboBox_ShowDropDown ' + + 'GUICtrlDTP_Create GUICtrlDTP_Destroy GUICtrlDTP_GetMCColor ' + + 'GUICtrlDTP_GetMCFont GUICtrlDTP_GetMonthCal ' + + 'GUICtrlDTP_GetRange GUICtrlDTP_GetRangeEx ' + + 'GUICtrlDTP_GetSystemTime GUICtrlDTP_GetSystemTimeEx ' + + 'GUICtrlDTP_SetFormat GUICtrlDTP_SetMCColor ' + + 'GUICtrlDTP_SetMCFont GUICtrlDTP_SetRange ' + + 'GUICtrlDTP_SetRangeEx GUICtrlDTP_SetSystemTime ' + + 'GUICtrlDTP_SetSystemTimeEx GUICtrlEdit_AppendText ' + + 'GUICtrlEdit_BeginUpdate GUICtrlEdit_CanUndo ' + + 'GUICtrlEdit_CharFromPos GUICtrlEdit_Create ' + + 'GUICtrlEdit_Destroy GUICtrlEdit_EmptyUndoBuffer ' + + 'GUICtrlEdit_EndUpdate GUICtrlEdit_Find GUICtrlEdit_FmtLines ' + + 'GUICtrlEdit_GetCueBanner GUICtrlEdit_GetFirstVisibleLine ' + + 'GUICtrlEdit_GetLimitText GUICtrlEdit_GetLine ' + + 'GUICtrlEdit_GetLineCount GUICtrlEdit_GetMargins ' + + 'GUICtrlEdit_GetModify GUICtrlEdit_GetPasswordChar ' + + 'GUICtrlEdit_GetRECT GUICtrlEdit_GetRECTEx GUICtrlEdit_GetSel ' + + 'GUICtrlEdit_GetText GUICtrlEdit_GetTextLen ' + + 'GUICtrlEdit_HideBalloonTip GUICtrlEdit_InsertText ' + + 'GUICtrlEdit_LineFromChar GUICtrlEdit_LineIndex ' + + 'GUICtrlEdit_LineLength GUICtrlEdit_LineScroll ' + + 'GUICtrlEdit_PosFromChar GUICtrlEdit_ReplaceSel ' + + 'GUICtrlEdit_Scroll GUICtrlEdit_SetCueBanner ' + + 'GUICtrlEdit_SetLimitText GUICtrlEdit_SetMargins ' + + 'GUICtrlEdit_SetModify GUICtrlEdit_SetPasswordChar ' + + 'GUICtrlEdit_SetReadOnly GUICtrlEdit_SetRECT ' + + 'GUICtrlEdit_SetRECTEx GUICtrlEdit_SetRECTNP ' + + 'GUICtrlEdit_SetRectNPEx GUICtrlEdit_SetSel ' + + 'GUICtrlEdit_SetTabStops GUICtrlEdit_SetText ' + + 'GUICtrlEdit_ShowBalloonTip GUICtrlEdit_Undo ' + + 'GUICtrlHeader_AddItem GUICtrlHeader_ClearFilter ' + + 'GUICtrlHeader_ClearFilterAll GUICtrlHeader_Create ' + + 'GUICtrlHeader_CreateDragImage GUICtrlHeader_DeleteItem ' + + 'GUICtrlHeader_Destroy GUICtrlHeader_EditFilter ' + + 'GUICtrlHeader_GetBitmapMargin GUICtrlHeader_GetImageList ' + + 'GUICtrlHeader_GetItem GUICtrlHeader_GetItemAlign ' + + 'GUICtrlHeader_GetItemBitmap GUICtrlHeader_GetItemCount ' + + 'GUICtrlHeader_GetItemDisplay GUICtrlHeader_GetItemFlags ' + + 'GUICtrlHeader_GetItemFormat GUICtrlHeader_GetItemImage ' + + 'GUICtrlHeader_GetItemOrder GUICtrlHeader_GetItemParam ' + + 'GUICtrlHeader_GetItemRect GUICtrlHeader_GetItemRectEx ' + + 'GUICtrlHeader_GetItemText GUICtrlHeader_GetItemWidth ' + + 'GUICtrlHeader_GetOrderArray GUICtrlHeader_GetUnicodeFormat ' + + 'GUICtrlHeader_HitTest GUICtrlHeader_InsertItem ' + + 'GUICtrlHeader_Layout GUICtrlHeader_OrderToIndex ' + + 'GUICtrlHeader_SetBitmapMargin ' + + 'GUICtrlHeader_SetFilterChangeTimeout ' + + 'GUICtrlHeader_SetHotDivider GUICtrlHeader_SetImageList ' + + 'GUICtrlHeader_SetItem GUICtrlHeader_SetItemAlign ' + + 'GUICtrlHeader_SetItemBitmap GUICtrlHeader_SetItemDisplay ' + + 'GUICtrlHeader_SetItemFlags GUICtrlHeader_SetItemFormat ' + + 'GUICtrlHeader_SetItemImage GUICtrlHeader_SetItemOrder ' + + 'GUICtrlHeader_SetItemParam GUICtrlHeader_SetItemText ' + + 'GUICtrlHeader_SetItemWidth GUICtrlHeader_SetOrderArray ' + + 'GUICtrlHeader_SetUnicodeFormat GUICtrlIpAddress_ClearAddress ' + + 'GUICtrlIpAddress_Create GUICtrlIpAddress_Destroy ' + + 'GUICtrlIpAddress_Get GUICtrlIpAddress_GetArray ' + + 'GUICtrlIpAddress_GetEx GUICtrlIpAddress_IsBlank ' + + 'GUICtrlIpAddress_Set GUICtrlIpAddress_SetArray ' + + 'GUICtrlIpAddress_SetEx GUICtrlIpAddress_SetFocus ' + + 'GUICtrlIpAddress_SetFont GUICtrlIpAddress_SetRange ' + + 'GUICtrlIpAddress_ShowHide GUICtrlListBox_AddFile ' + + 'GUICtrlListBox_AddString GUICtrlListBox_BeginUpdate ' + + 'GUICtrlListBox_ClickItem GUICtrlListBox_Create ' + + 'GUICtrlListBox_DeleteString GUICtrlListBox_Destroy ' + + 'GUICtrlListBox_Dir GUICtrlListBox_EndUpdate ' + + 'GUICtrlListBox_FindInText GUICtrlListBox_FindString ' + + 'GUICtrlListBox_GetAnchorIndex GUICtrlListBox_GetCaretIndex ' + + 'GUICtrlListBox_GetCount GUICtrlListBox_GetCurSel ' + + 'GUICtrlListBox_GetHorizontalExtent GUICtrlListBox_GetItemData ' + + 'GUICtrlListBox_GetItemHeight GUICtrlListBox_GetItemRect ' + + 'GUICtrlListBox_GetItemRectEx GUICtrlListBox_GetListBoxInfo ' + + 'GUICtrlListBox_GetLocale GUICtrlListBox_GetLocaleCountry ' + + 'GUICtrlListBox_GetLocaleLang GUICtrlListBox_GetLocalePrimLang ' + + 'GUICtrlListBox_GetLocaleSubLang GUICtrlListBox_GetSel ' + + 'GUICtrlListBox_GetSelCount GUICtrlListBox_GetSelItems ' + + 'GUICtrlListBox_GetSelItemsText GUICtrlListBox_GetText ' + + 'GUICtrlListBox_GetTextLen GUICtrlListBox_GetTopIndex ' + + 'GUICtrlListBox_InitStorage GUICtrlListBox_InsertString ' + + 'GUICtrlListBox_ItemFromPoint GUICtrlListBox_ReplaceString ' + + 'GUICtrlListBox_ResetContent GUICtrlListBox_SelectString ' + + 'GUICtrlListBox_SelItemRange GUICtrlListBox_SelItemRangeEx ' + + 'GUICtrlListBox_SetAnchorIndex GUICtrlListBox_SetCaretIndex ' + + 'GUICtrlListBox_SetColumnWidth GUICtrlListBox_SetCurSel ' + + 'GUICtrlListBox_SetHorizontalExtent GUICtrlListBox_SetItemData ' + + 'GUICtrlListBox_SetItemHeight GUICtrlListBox_SetLocale ' + + 'GUICtrlListBox_SetSel GUICtrlListBox_SetTabStops ' + + 'GUICtrlListBox_SetTopIndex GUICtrlListBox_Sort ' + + 'GUICtrlListBox_SwapString GUICtrlListBox_UpdateHScroll ' + + 'GUICtrlListView_AddArray GUICtrlListView_AddColumn ' + + 'GUICtrlListView_AddItem GUICtrlListView_AddSubItem ' + + 'GUICtrlListView_ApproximateViewHeight ' + + 'GUICtrlListView_ApproximateViewRect ' + + 'GUICtrlListView_ApproximateViewWidth GUICtrlListView_Arrange ' + + 'GUICtrlListView_BeginUpdate GUICtrlListView_CancelEditLabel ' + + 'GUICtrlListView_ClickItem GUICtrlListView_CopyItems ' + + 'GUICtrlListView_Create GUICtrlListView_CreateDragImage ' + + 'GUICtrlListView_CreateSolidBitMap ' + + 'GUICtrlListView_DeleteAllItems GUICtrlListView_DeleteColumn ' + + 'GUICtrlListView_DeleteItem GUICtrlListView_DeleteItemsSelected ' + + 'GUICtrlListView_Destroy GUICtrlListView_DrawDragImage ' + + 'GUICtrlListView_EditLabel GUICtrlListView_EnableGroupView ' + + 'GUICtrlListView_EndUpdate GUICtrlListView_EnsureVisible ' + + 'GUICtrlListView_FindInText GUICtrlListView_FindItem ' + + 'GUICtrlListView_FindNearest GUICtrlListView_FindParam ' + + 'GUICtrlListView_FindText GUICtrlListView_GetBkColor ' + + 'GUICtrlListView_GetBkImage GUICtrlListView_GetCallbackMask ' + + 'GUICtrlListView_GetColumn GUICtrlListView_GetColumnCount ' + + 'GUICtrlListView_GetColumnOrder ' + + 'GUICtrlListView_GetColumnOrderArray ' + + 'GUICtrlListView_GetColumnWidth GUICtrlListView_GetCounterPage ' + + 'GUICtrlListView_GetEditControl ' + + 'GUICtrlListView_GetExtendedListViewStyle ' + + 'GUICtrlListView_GetFocusedGroup GUICtrlListView_GetGroupCount ' + + 'GUICtrlListView_GetGroupInfo ' + + 'GUICtrlListView_GetGroupInfoByIndex ' + + 'GUICtrlListView_GetGroupRect ' + + 'GUICtrlListView_GetGroupViewEnabled GUICtrlListView_GetHeader ' + + 'GUICtrlListView_GetHotCursor GUICtrlListView_GetHotItem ' + + 'GUICtrlListView_GetHoverTime GUICtrlListView_GetImageList ' + + 'GUICtrlListView_GetISearchString GUICtrlListView_GetItem ' + + 'GUICtrlListView_GetItemChecked GUICtrlListView_GetItemCount ' + + 'GUICtrlListView_GetItemCut GUICtrlListView_GetItemDropHilited ' + + 'GUICtrlListView_GetItemEx GUICtrlListView_GetItemFocused ' + + 'GUICtrlListView_GetItemGroupID GUICtrlListView_GetItemImage ' + + 'GUICtrlListView_GetItemIndent GUICtrlListView_GetItemParam ' + + 'GUICtrlListView_GetItemPosition ' + + 'GUICtrlListView_GetItemPositionX ' + + 'GUICtrlListView_GetItemPositionY GUICtrlListView_GetItemRect ' + + 'GUICtrlListView_GetItemRectEx GUICtrlListView_GetItemSelected ' + + 'GUICtrlListView_GetItemSpacing GUICtrlListView_GetItemSpacingX ' + + 'GUICtrlListView_GetItemSpacingY GUICtrlListView_GetItemState ' + + 'GUICtrlListView_GetItemStateImage GUICtrlListView_GetItemText ' + + 'GUICtrlListView_GetItemTextArray ' + + 'GUICtrlListView_GetItemTextString GUICtrlListView_GetNextItem ' + + 'GUICtrlListView_GetNumberOfWorkAreas GUICtrlListView_GetOrigin ' + + 'GUICtrlListView_GetOriginX GUICtrlListView_GetOriginY ' + + 'GUICtrlListView_GetOutlineColor ' + + 'GUICtrlListView_GetSelectedColumn ' + + 'GUICtrlListView_GetSelectedCount ' + + 'GUICtrlListView_GetSelectedIndices ' + + 'GUICtrlListView_GetSelectionMark GUICtrlListView_GetStringWidth ' + + 'GUICtrlListView_GetSubItemRect GUICtrlListView_GetTextBkColor ' + + 'GUICtrlListView_GetTextColor GUICtrlListView_GetToolTips ' + + 'GUICtrlListView_GetTopIndex GUICtrlListView_GetUnicodeFormat ' + + 'GUICtrlListView_GetView GUICtrlListView_GetViewDetails ' + + 'GUICtrlListView_GetViewLarge GUICtrlListView_GetViewList ' + + 'GUICtrlListView_GetViewRect GUICtrlListView_GetViewSmall ' + + 'GUICtrlListView_GetViewTile GUICtrlListView_HideColumn ' + + 'GUICtrlListView_HitTest GUICtrlListView_InsertColumn ' + + 'GUICtrlListView_InsertGroup GUICtrlListView_InsertItem ' + + 'GUICtrlListView_JustifyColumn GUICtrlListView_MapIDToIndex ' + + 'GUICtrlListView_MapIndexToID GUICtrlListView_RedrawItems ' + + 'GUICtrlListView_RegisterSortCallBack ' + + 'GUICtrlListView_RemoveAllGroups GUICtrlListView_RemoveGroup ' + + 'GUICtrlListView_Scroll GUICtrlListView_SetBkColor ' + + 'GUICtrlListView_SetBkImage GUICtrlListView_SetCallBackMask ' + + 'GUICtrlListView_SetColumn GUICtrlListView_SetColumnOrder ' + + 'GUICtrlListView_SetColumnOrderArray ' + + 'GUICtrlListView_SetColumnWidth ' + + 'GUICtrlListView_SetExtendedListViewStyle ' + + 'GUICtrlListView_SetGroupInfo GUICtrlListView_SetHotItem ' + + 'GUICtrlListView_SetHoverTime GUICtrlListView_SetIconSpacing ' + + 'GUICtrlListView_SetImageList GUICtrlListView_SetItem ' + + 'GUICtrlListView_SetItemChecked GUICtrlListView_SetItemCount ' + + 'GUICtrlListView_SetItemCut GUICtrlListView_SetItemDropHilited ' + + 'GUICtrlListView_SetItemEx GUICtrlListView_SetItemFocused ' + + 'GUICtrlListView_SetItemGroupID GUICtrlListView_SetItemImage ' + + 'GUICtrlListView_SetItemIndent GUICtrlListView_SetItemParam ' + + 'GUICtrlListView_SetItemPosition ' + + 'GUICtrlListView_SetItemPosition32 ' + + 'GUICtrlListView_SetItemSelected GUICtrlListView_SetItemState ' + + 'GUICtrlListView_SetItemStateImage GUICtrlListView_SetItemText ' + + 'GUICtrlListView_SetOutlineColor ' + + 'GUICtrlListView_SetSelectedColumn ' + + 'GUICtrlListView_SetSelectionMark GUICtrlListView_SetTextBkColor ' + + 'GUICtrlListView_SetTextColor GUICtrlListView_SetToolTips ' + + 'GUICtrlListView_SetUnicodeFormat GUICtrlListView_SetView ' + + 'GUICtrlListView_SetWorkAreas GUICtrlListView_SimpleSort ' + + 'GUICtrlListView_SortItems GUICtrlListView_SubItemHitTest ' + + 'GUICtrlListView_UnRegisterSortCallBack GUICtrlMenu_AddMenuItem ' + + 'GUICtrlMenu_AppendMenu GUICtrlMenu_CalculatePopupWindowPosition ' + + 'GUICtrlMenu_CheckMenuItem GUICtrlMenu_CheckRadioItem ' + + 'GUICtrlMenu_CreateMenu GUICtrlMenu_CreatePopup ' + + 'GUICtrlMenu_DeleteMenu GUICtrlMenu_DestroyMenu ' + + 'GUICtrlMenu_DrawMenuBar GUICtrlMenu_EnableMenuItem ' + + 'GUICtrlMenu_FindItem GUICtrlMenu_FindParent ' + + 'GUICtrlMenu_GetItemBmp GUICtrlMenu_GetItemBmpChecked ' + + 'GUICtrlMenu_GetItemBmpUnchecked GUICtrlMenu_GetItemChecked ' + + 'GUICtrlMenu_GetItemCount GUICtrlMenu_GetItemData ' + + 'GUICtrlMenu_GetItemDefault GUICtrlMenu_GetItemDisabled ' + + 'GUICtrlMenu_GetItemEnabled GUICtrlMenu_GetItemGrayed ' + + 'GUICtrlMenu_GetItemHighlighted GUICtrlMenu_GetItemID ' + + 'GUICtrlMenu_GetItemInfo GUICtrlMenu_GetItemRect ' + + 'GUICtrlMenu_GetItemRectEx GUICtrlMenu_GetItemState ' + + 'GUICtrlMenu_GetItemStateEx GUICtrlMenu_GetItemSubMenu ' + + 'GUICtrlMenu_GetItemText GUICtrlMenu_GetItemType ' + + 'GUICtrlMenu_GetMenu GUICtrlMenu_GetMenuBackground ' + + 'GUICtrlMenu_GetMenuBarInfo GUICtrlMenu_GetMenuContextHelpID ' + + 'GUICtrlMenu_GetMenuData GUICtrlMenu_GetMenuDefaultItem ' + + 'GUICtrlMenu_GetMenuHeight GUICtrlMenu_GetMenuInfo ' + + 'GUICtrlMenu_GetMenuStyle GUICtrlMenu_GetSystemMenu ' + + 'GUICtrlMenu_InsertMenuItem GUICtrlMenu_InsertMenuItemEx ' + + 'GUICtrlMenu_IsMenu GUICtrlMenu_LoadMenu ' + + 'GUICtrlMenu_MapAccelerator GUICtrlMenu_MenuItemFromPoint ' + + 'GUICtrlMenu_RemoveMenu GUICtrlMenu_SetItemBitmaps ' + + 'GUICtrlMenu_SetItemBmp GUICtrlMenu_SetItemBmpChecked ' + + 'GUICtrlMenu_SetItemBmpUnchecked GUICtrlMenu_SetItemChecked ' + + 'GUICtrlMenu_SetItemData GUICtrlMenu_SetItemDefault ' + + 'GUICtrlMenu_SetItemDisabled GUICtrlMenu_SetItemEnabled ' + + 'GUICtrlMenu_SetItemGrayed GUICtrlMenu_SetItemHighlighted ' + + 'GUICtrlMenu_SetItemID GUICtrlMenu_SetItemInfo ' + + 'GUICtrlMenu_SetItemState GUICtrlMenu_SetItemSubMenu ' + + 'GUICtrlMenu_SetItemText GUICtrlMenu_SetItemType ' + + 'GUICtrlMenu_SetMenu GUICtrlMenu_SetMenuBackground ' + + 'GUICtrlMenu_SetMenuContextHelpID GUICtrlMenu_SetMenuData ' + + 'GUICtrlMenu_SetMenuDefaultItem GUICtrlMenu_SetMenuHeight ' + + 'GUICtrlMenu_SetMenuInfo GUICtrlMenu_SetMenuStyle ' + + 'GUICtrlMenu_TrackPopupMenu GUICtrlMonthCal_Create ' + + 'GUICtrlMonthCal_Destroy GUICtrlMonthCal_GetCalendarBorder ' + + 'GUICtrlMonthCal_GetCalendarCount GUICtrlMonthCal_GetColor ' + + 'GUICtrlMonthCal_GetColorArray GUICtrlMonthCal_GetCurSel ' + + 'GUICtrlMonthCal_GetCurSelStr GUICtrlMonthCal_GetFirstDOW ' + + 'GUICtrlMonthCal_GetFirstDOWStr GUICtrlMonthCal_GetMaxSelCount ' + + 'GUICtrlMonthCal_GetMaxTodayWidth ' + + 'GUICtrlMonthCal_GetMinReqHeight GUICtrlMonthCal_GetMinReqRect ' + + 'GUICtrlMonthCal_GetMinReqRectArray ' + + 'GUICtrlMonthCal_GetMinReqWidth GUICtrlMonthCal_GetMonthDelta ' + + 'GUICtrlMonthCal_GetMonthRange GUICtrlMonthCal_GetMonthRangeMax ' + + 'GUICtrlMonthCal_GetMonthRangeMaxStr ' + + 'GUICtrlMonthCal_GetMonthRangeMin ' + + 'GUICtrlMonthCal_GetMonthRangeMinStr ' + + 'GUICtrlMonthCal_GetMonthRangeSpan GUICtrlMonthCal_GetRange ' + + 'GUICtrlMonthCal_GetRangeMax GUICtrlMonthCal_GetRangeMaxStr ' + + 'GUICtrlMonthCal_GetRangeMin GUICtrlMonthCal_GetRangeMinStr ' + + 'GUICtrlMonthCal_GetSelRange GUICtrlMonthCal_GetSelRangeMax ' + + 'GUICtrlMonthCal_GetSelRangeMaxStr ' + + 'GUICtrlMonthCal_GetSelRangeMin ' + + 'GUICtrlMonthCal_GetSelRangeMinStr GUICtrlMonthCal_GetToday ' + + 'GUICtrlMonthCal_GetTodayStr GUICtrlMonthCal_GetUnicodeFormat ' + + 'GUICtrlMonthCal_HitTest GUICtrlMonthCal_SetCalendarBorder ' + + 'GUICtrlMonthCal_SetColor GUICtrlMonthCal_SetCurSel ' + + 'GUICtrlMonthCal_SetDayState GUICtrlMonthCal_SetFirstDOW ' + + 'GUICtrlMonthCal_SetMaxSelCount GUICtrlMonthCal_SetMonthDelta ' + + 'GUICtrlMonthCal_SetRange GUICtrlMonthCal_SetSelRange ' + + 'GUICtrlMonthCal_SetToday GUICtrlMonthCal_SetUnicodeFormat ' + + 'GUICtrlRebar_AddBand GUICtrlRebar_AddToolBarBand ' + + 'GUICtrlRebar_BeginDrag GUICtrlRebar_Create ' + + 'GUICtrlRebar_DeleteBand GUICtrlRebar_Destroy ' + + 'GUICtrlRebar_DragMove GUICtrlRebar_EndDrag ' + + 'GUICtrlRebar_GetBandBackColor GUICtrlRebar_GetBandBorders ' + + 'GUICtrlRebar_GetBandBordersEx GUICtrlRebar_GetBandChildHandle ' + + 'GUICtrlRebar_GetBandChildSize GUICtrlRebar_GetBandCount ' + + 'GUICtrlRebar_GetBandForeColor GUICtrlRebar_GetBandHeaderSize ' + + 'GUICtrlRebar_GetBandID GUICtrlRebar_GetBandIdealSize ' + + 'GUICtrlRebar_GetBandLength GUICtrlRebar_GetBandLParam ' + + 'GUICtrlRebar_GetBandMargins GUICtrlRebar_GetBandMarginsEx ' + + 'GUICtrlRebar_GetBandRect GUICtrlRebar_GetBandRectEx ' + + 'GUICtrlRebar_GetBandStyle GUICtrlRebar_GetBandStyleBreak ' + + 'GUICtrlRebar_GetBandStyleChildEdge ' + + 'GUICtrlRebar_GetBandStyleFixedBMP ' + + 'GUICtrlRebar_GetBandStyleFixedSize ' + + 'GUICtrlRebar_GetBandStyleGripperAlways ' + + 'GUICtrlRebar_GetBandStyleHidden ' + + 'GUICtrlRebar_GetBandStyleHideTitle ' + + 'GUICtrlRebar_GetBandStyleNoGripper ' + + 'GUICtrlRebar_GetBandStyleTopAlign ' + + 'GUICtrlRebar_GetBandStyleUseChevron ' + + 'GUICtrlRebar_GetBandStyleVariableHeight ' + + 'GUICtrlRebar_GetBandText GUICtrlRebar_GetBarHeight ' + + 'GUICtrlRebar_GetBarInfo GUICtrlRebar_GetBKColor ' + + 'GUICtrlRebar_GetColorScheme GUICtrlRebar_GetRowCount ' + + 'GUICtrlRebar_GetRowHeight GUICtrlRebar_GetTextColor ' + + 'GUICtrlRebar_GetToolTips GUICtrlRebar_GetUnicodeFormat ' + + 'GUICtrlRebar_HitTest GUICtrlRebar_IDToIndex ' + + 'GUICtrlRebar_MaximizeBand GUICtrlRebar_MinimizeBand ' + + 'GUICtrlRebar_MoveBand GUICtrlRebar_SetBandBackColor ' + + 'GUICtrlRebar_SetBandForeColor GUICtrlRebar_SetBandHeaderSize ' + + 'GUICtrlRebar_SetBandID GUICtrlRebar_SetBandIdealSize ' + + 'GUICtrlRebar_SetBandLength GUICtrlRebar_SetBandLParam ' + + 'GUICtrlRebar_SetBandStyle GUICtrlRebar_SetBandStyleBreak ' + + 'GUICtrlRebar_SetBandStyleChildEdge ' + + 'GUICtrlRebar_SetBandStyleFixedBMP ' + + 'GUICtrlRebar_SetBandStyleFixedSize ' + + 'GUICtrlRebar_SetBandStyleGripperAlways ' + + 'GUICtrlRebar_SetBandStyleHidden ' + + 'GUICtrlRebar_SetBandStyleHideTitle ' + + 'GUICtrlRebar_SetBandStyleNoGripper ' + + 'GUICtrlRebar_SetBandStyleTopAlign ' + + 'GUICtrlRebar_SetBandStyleUseChevron ' + + 'GUICtrlRebar_SetBandStyleVariableHeight ' + + 'GUICtrlRebar_SetBandText GUICtrlRebar_SetBarInfo ' + + 'GUICtrlRebar_SetBKColor GUICtrlRebar_SetColorScheme ' + + 'GUICtrlRebar_SetTextColor GUICtrlRebar_SetToolTips ' + + 'GUICtrlRebar_SetUnicodeFormat GUICtrlRebar_ShowBand ' + + 'GUICtrlRichEdit_AppendText GUICtrlRichEdit_AutoDetectURL ' + + 'GUICtrlRichEdit_CanPaste GUICtrlRichEdit_CanPasteSpecial ' + + 'GUICtrlRichEdit_CanRedo GUICtrlRichEdit_CanUndo ' + + 'GUICtrlRichEdit_ChangeFontSize GUICtrlRichEdit_Copy ' + + 'GUICtrlRichEdit_Create GUICtrlRichEdit_Cut ' + + 'GUICtrlRichEdit_Deselect GUICtrlRichEdit_Destroy ' + + 'GUICtrlRichEdit_EmptyUndoBuffer GUICtrlRichEdit_FindText ' + + 'GUICtrlRichEdit_FindTextInRange GUICtrlRichEdit_GetBkColor ' + + 'GUICtrlRichEdit_GetCharAttributes ' + + 'GUICtrlRichEdit_GetCharBkColor GUICtrlRichEdit_GetCharColor ' + + 'GUICtrlRichEdit_GetCharPosFromXY ' + + 'GUICtrlRichEdit_GetCharPosOfNextWord ' + + 'GUICtrlRichEdit_GetCharPosOfPreviousWord ' + + 'GUICtrlRichEdit_GetCharWordBreakInfo ' + + 'GUICtrlRichEdit_GetFirstCharPosOnLine GUICtrlRichEdit_GetFont ' + + 'GUICtrlRichEdit_GetLineCount GUICtrlRichEdit_GetLineLength ' + + 'GUICtrlRichEdit_GetLineNumberFromCharPos ' + + 'GUICtrlRichEdit_GetNextRedo GUICtrlRichEdit_GetNextUndo ' + + 'GUICtrlRichEdit_GetNumberOfFirstVisibleLine ' + + 'GUICtrlRichEdit_GetParaAlignment ' + + 'GUICtrlRichEdit_GetParaAttributes GUICtrlRichEdit_GetParaBorder ' + + 'GUICtrlRichEdit_GetParaIndents GUICtrlRichEdit_GetParaNumbering ' + + 'GUICtrlRichEdit_GetParaShading GUICtrlRichEdit_GetParaSpacing ' + + 'GUICtrlRichEdit_GetParaTabStops GUICtrlRichEdit_GetPasswordChar ' + + 'GUICtrlRichEdit_GetRECT GUICtrlRichEdit_GetScrollPos ' + + 'GUICtrlRichEdit_GetSel GUICtrlRichEdit_GetSelAA ' + + 'GUICtrlRichEdit_GetSelText GUICtrlRichEdit_GetSpaceUnit ' + + 'GUICtrlRichEdit_GetText GUICtrlRichEdit_GetTextInLine ' + + 'GUICtrlRichEdit_GetTextInRange GUICtrlRichEdit_GetTextLength ' + + 'GUICtrlRichEdit_GetVersion GUICtrlRichEdit_GetXYFromCharPos ' + + 'GUICtrlRichEdit_GetZoom GUICtrlRichEdit_GotoCharPos ' + + 'GUICtrlRichEdit_HideSelection GUICtrlRichEdit_InsertText ' + + 'GUICtrlRichEdit_IsModified GUICtrlRichEdit_IsTextSelected ' + + 'GUICtrlRichEdit_Paste GUICtrlRichEdit_PasteSpecial ' + + 'GUICtrlRichEdit_PauseRedraw GUICtrlRichEdit_Redo ' + + 'GUICtrlRichEdit_ReplaceText GUICtrlRichEdit_ResumeRedraw ' + + 'GUICtrlRichEdit_ScrollLineOrPage GUICtrlRichEdit_ScrollLines ' + + 'GUICtrlRichEdit_ScrollToCaret GUICtrlRichEdit_SetBkColor ' + + 'GUICtrlRichEdit_SetCharAttributes ' + + 'GUICtrlRichEdit_SetCharBkColor GUICtrlRichEdit_SetCharColor ' + + 'GUICtrlRichEdit_SetEventMask GUICtrlRichEdit_SetFont ' + + 'GUICtrlRichEdit_SetLimitOnText GUICtrlRichEdit_SetModified ' + + 'GUICtrlRichEdit_SetParaAlignment ' + + 'GUICtrlRichEdit_SetParaAttributes GUICtrlRichEdit_SetParaBorder ' + + 'GUICtrlRichEdit_SetParaIndents GUICtrlRichEdit_SetParaNumbering ' + + 'GUICtrlRichEdit_SetParaShading GUICtrlRichEdit_SetParaSpacing ' + + 'GUICtrlRichEdit_SetParaTabStops GUICtrlRichEdit_SetPasswordChar ' + + 'GUICtrlRichEdit_SetReadOnly GUICtrlRichEdit_SetRECT ' + + 'GUICtrlRichEdit_SetScrollPos GUICtrlRichEdit_SetSel ' + + 'GUICtrlRichEdit_SetSpaceUnit GUICtrlRichEdit_SetTabStops ' + + 'GUICtrlRichEdit_SetText GUICtrlRichEdit_SetUndoLimit ' + + 'GUICtrlRichEdit_SetZoom GUICtrlRichEdit_StreamFromFile ' + + 'GUICtrlRichEdit_StreamFromVar GUICtrlRichEdit_StreamToFile ' + + 'GUICtrlRichEdit_StreamToVar GUICtrlRichEdit_Undo ' + + 'GUICtrlSlider_ClearSel GUICtrlSlider_ClearTics ' + + 'GUICtrlSlider_Create GUICtrlSlider_Destroy ' + + 'GUICtrlSlider_GetBuddy GUICtrlSlider_GetChannelRect ' + + 'GUICtrlSlider_GetChannelRectEx GUICtrlSlider_GetLineSize ' + + 'GUICtrlSlider_GetLogicalTics GUICtrlSlider_GetNumTics ' + + 'GUICtrlSlider_GetPageSize GUICtrlSlider_GetPos ' + + 'GUICtrlSlider_GetRange GUICtrlSlider_GetRangeMax ' + + 'GUICtrlSlider_GetRangeMin GUICtrlSlider_GetSel ' + + 'GUICtrlSlider_GetSelEnd GUICtrlSlider_GetSelStart ' + + 'GUICtrlSlider_GetThumbLength GUICtrlSlider_GetThumbRect ' + + 'GUICtrlSlider_GetThumbRectEx GUICtrlSlider_GetTic ' + + 'GUICtrlSlider_GetTicPos GUICtrlSlider_GetToolTips ' + + 'GUICtrlSlider_GetUnicodeFormat GUICtrlSlider_SetBuddy ' + + 'GUICtrlSlider_SetLineSize GUICtrlSlider_SetPageSize ' + + 'GUICtrlSlider_SetPos GUICtrlSlider_SetRange ' + + 'GUICtrlSlider_SetRangeMax GUICtrlSlider_SetRangeMin ' + + 'GUICtrlSlider_SetSel GUICtrlSlider_SetSelEnd ' + + 'GUICtrlSlider_SetSelStart GUICtrlSlider_SetThumbLength ' + + 'GUICtrlSlider_SetTic GUICtrlSlider_SetTicFreq ' + + 'GUICtrlSlider_SetTipSide GUICtrlSlider_SetToolTips ' + + 'GUICtrlSlider_SetUnicodeFormat GUICtrlStatusBar_Create ' + + 'GUICtrlStatusBar_Destroy GUICtrlStatusBar_EmbedControl ' + + 'GUICtrlStatusBar_GetBorders GUICtrlStatusBar_GetBordersHorz ' + + 'GUICtrlStatusBar_GetBordersRect GUICtrlStatusBar_GetBordersVert ' + + 'GUICtrlStatusBar_GetCount GUICtrlStatusBar_GetHeight ' + + 'GUICtrlStatusBar_GetIcon GUICtrlStatusBar_GetParts ' + + 'GUICtrlStatusBar_GetRect GUICtrlStatusBar_GetRectEx ' + + 'GUICtrlStatusBar_GetText GUICtrlStatusBar_GetTextFlags ' + + 'GUICtrlStatusBar_GetTextLength GUICtrlStatusBar_GetTextLengthEx ' + + 'GUICtrlStatusBar_GetTipText GUICtrlStatusBar_GetUnicodeFormat ' + + 'GUICtrlStatusBar_GetWidth GUICtrlStatusBar_IsSimple ' + + 'GUICtrlStatusBar_Resize GUICtrlStatusBar_SetBkColor ' + + 'GUICtrlStatusBar_SetIcon GUICtrlStatusBar_SetMinHeight ' + + 'GUICtrlStatusBar_SetParts GUICtrlStatusBar_SetSimple ' + + 'GUICtrlStatusBar_SetText GUICtrlStatusBar_SetTipText ' + + 'GUICtrlStatusBar_SetUnicodeFormat GUICtrlStatusBar_ShowHide ' + + 'GUICtrlTab_ActivateTab GUICtrlTab_ClickTab GUICtrlTab_Create ' + + 'GUICtrlTab_DeleteAllItems GUICtrlTab_DeleteItem ' + + 'GUICtrlTab_DeselectAll GUICtrlTab_Destroy GUICtrlTab_FindTab ' + + 'GUICtrlTab_GetCurFocus GUICtrlTab_GetCurSel ' + + 'GUICtrlTab_GetDisplayRect GUICtrlTab_GetDisplayRectEx ' + + 'GUICtrlTab_GetExtendedStyle GUICtrlTab_GetImageList ' + + 'GUICtrlTab_GetItem GUICtrlTab_GetItemCount ' + + 'GUICtrlTab_GetItemImage GUICtrlTab_GetItemParam ' + + 'GUICtrlTab_GetItemRect GUICtrlTab_GetItemRectEx ' + + 'GUICtrlTab_GetItemState GUICtrlTab_GetItemText ' + + 'GUICtrlTab_GetRowCount GUICtrlTab_GetToolTips ' + + 'GUICtrlTab_GetUnicodeFormat GUICtrlTab_HighlightItem ' + + 'GUICtrlTab_HitTest GUICtrlTab_InsertItem ' + + 'GUICtrlTab_RemoveImage GUICtrlTab_SetCurFocus ' + + 'GUICtrlTab_SetCurSel GUICtrlTab_SetExtendedStyle ' + + 'GUICtrlTab_SetImageList GUICtrlTab_SetItem ' + + 'GUICtrlTab_SetItemImage GUICtrlTab_SetItemParam ' + + 'GUICtrlTab_SetItemSize GUICtrlTab_SetItemState ' + + 'GUICtrlTab_SetItemText GUICtrlTab_SetMinTabWidth ' + + 'GUICtrlTab_SetPadding GUICtrlTab_SetToolTips ' + + 'GUICtrlTab_SetUnicodeFormat GUICtrlToolbar_AddBitmap ' + + 'GUICtrlToolbar_AddButton GUICtrlToolbar_AddButtonSep ' + + 'GUICtrlToolbar_AddString GUICtrlToolbar_ButtonCount ' + + 'GUICtrlToolbar_CheckButton GUICtrlToolbar_ClickAccel ' + + 'GUICtrlToolbar_ClickButton GUICtrlToolbar_ClickIndex ' + + 'GUICtrlToolbar_CommandToIndex GUICtrlToolbar_Create ' + + 'GUICtrlToolbar_Customize GUICtrlToolbar_DeleteButton ' + + 'GUICtrlToolbar_Destroy GUICtrlToolbar_EnableButton ' + + 'GUICtrlToolbar_FindToolbar GUICtrlToolbar_GetAnchorHighlight ' + + 'GUICtrlToolbar_GetBitmapFlags GUICtrlToolbar_GetButtonBitmap ' + + 'GUICtrlToolbar_GetButtonInfo GUICtrlToolbar_GetButtonInfoEx ' + + 'GUICtrlToolbar_GetButtonParam GUICtrlToolbar_GetButtonRect ' + + 'GUICtrlToolbar_GetButtonRectEx GUICtrlToolbar_GetButtonSize ' + + 'GUICtrlToolbar_GetButtonState GUICtrlToolbar_GetButtonStyle ' + + 'GUICtrlToolbar_GetButtonText GUICtrlToolbar_GetColorScheme ' + + 'GUICtrlToolbar_GetDisabledImageList ' + + 'GUICtrlToolbar_GetExtendedStyle GUICtrlToolbar_GetHotImageList ' + + 'GUICtrlToolbar_GetHotItem GUICtrlToolbar_GetImageList ' + + 'GUICtrlToolbar_GetInsertMark GUICtrlToolbar_GetInsertMarkColor ' + + 'GUICtrlToolbar_GetMaxSize GUICtrlToolbar_GetMetrics ' + + 'GUICtrlToolbar_GetPadding GUICtrlToolbar_GetRows ' + + 'GUICtrlToolbar_GetString GUICtrlToolbar_GetStyle ' + + 'GUICtrlToolbar_GetStyleAltDrag ' + + 'GUICtrlToolbar_GetStyleCustomErase GUICtrlToolbar_GetStyleFlat ' + + 'GUICtrlToolbar_GetStyleList GUICtrlToolbar_GetStyleRegisterDrop ' + + 'GUICtrlToolbar_GetStyleToolTips ' + + 'GUICtrlToolbar_GetStyleTransparent ' + + 'GUICtrlToolbar_GetStyleWrapable GUICtrlToolbar_GetTextRows ' + + 'GUICtrlToolbar_GetToolTips GUICtrlToolbar_GetUnicodeFormat ' + + 'GUICtrlToolbar_HideButton GUICtrlToolbar_HighlightButton ' + + 'GUICtrlToolbar_HitTest GUICtrlToolbar_IndexToCommand ' + + 'GUICtrlToolbar_InsertButton GUICtrlToolbar_InsertMarkHitTest ' + + 'GUICtrlToolbar_IsButtonChecked GUICtrlToolbar_IsButtonEnabled ' + + 'GUICtrlToolbar_IsButtonHidden ' + + 'GUICtrlToolbar_IsButtonHighlighted ' + + 'GUICtrlToolbar_IsButtonIndeterminate ' + + 'GUICtrlToolbar_IsButtonPressed GUICtrlToolbar_LoadBitmap ' + + 'GUICtrlToolbar_LoadImages GUICtrlToolbar_MapAccelerator ' + + 'GUICtrlToolbar_MoveButton GUICtrlToolbar_PressButton ' + + 'GUICtrlToolbar_SetAnchorHighlight GUICtrlToolbar_SetBitmapSize ' + + 'GUICtrlToolbar_SetButtonBitMap GUICtrlToolbar_SetButtonInfo ' + + 'GUICtrlToolbar_SetButtonInfoEx GUICtrlToolbar_SetButtonParam ' + + 'GUICtrlToolbar_SetButtonSize GUICtrlToolbar_SetButtonState ' + + 'GUICtrlToolbar_SetButtonStyle GUICtrlToolbar_SetButtonText ' + + 'GUICtrlToolbar_SetButtonWidth GUICtrlToolbar_SetCmdID ' + + 'GUICtrlToolbar_SetColorScheme ' + + 'GUICtrlToolbar_SetDisabledImageList ' + + 'GUICtrlToolbar_SetDrawTextFlags GUICtrlToolbar_SetExtendedStyle ' + + 'GUICtrlToolbar_SetHotImageList GUICtrlToolbar_SetHotItem ' + + 'GUICtrlToolbar_SetImageList GUICtrlToolbar_SetIndent ' + + 'GUICtrlToolbar_SetIndeterminate GUICtrlToolbar_SetInsertMark ' + + 'GUICtrlToolbar_SetInsertMarkColor GUICtrlToolbar_SetMaxTextRows ' + + 'GUICtrlToolbar_SetMetrics GUICtrlToolbar_SetPadding ' + + 'GUICtrlToolbar_SetParent GUICtrlToolbar_SetRows ' + + 'GUICtrlToolbar_SetStyle GUICtrlToolbar_SetStyleAltDrag ' + + 'GUICtrlToolbar_SetStyleCustomErase GUICtrlToolbar_SetStyleFlat ' + + 'GUICtrlToolbar_SetStyleList GUICtrlToolbar_SetStyleRegisterDrop ' + + 'GUICtrlToolbar_SetStyleToolTips ' + + 'GUICtrlToolbar_SetStyleTransparent ' + + 'GUICtrlToolbar_SetStyleWrapable GUICtrlToolbar_SetToolTips ' + + 'GUICtrlToolbar_SetUnicodeFormat GUICtrlToolbar_SetWindowTheme ' + + 'GUICtrlTreeView_Add GUICtrlTreeView_AddChild ' + + 'GUICtrlTreeView_AddChildFirst GUICtrlTreeView_AddFirst ' + + 'GUICtrlTreeView_BeginUpdate GUICtrlTreeView_ClickItem ' + + 'GUICtrlTreeView_Create GUICtrlTreeView_CreateDragImage ' + + 'GUICtrlTreeView_CreateSolidBitMap GUICtrlTreeView_Delete ' + + 'GUICtrlTreeView_DeleteAll GUICtrlTreeView_DeleteChildren ' + + 'GUICtrlTreeView_Destroy GUICtrlTreeView_DisplayRect ' + + 'GUICtrlTreeView_DisplayRectEx GUICtrlTreeView_EditText ' + + 'GUICtrlTreeView_EndEdit GUICtrlTreeView_EndUpdate ' + + 'GUICtrlTreeView_EnsureVisible GUICtrlTreeView_Expand ' + + 'GUICtrlTreeView_ExpandedOnce GUICtrlTreeView_FindItem ' + + 'GUICtrlTreeView_FindItemEx GUICtrlTreeView_GetBkColor ' + + 'GUICtrlTreeView_GetBold GUICtrlTreeView_GetChecked ' + + 'GUICtrlTreeView_GetChildCount GUICtrlTreeView_GetChildren ' + + 'GUICtrlTreeView_GetCount GUICtrlTreeView_GetCut ' + + 'GUICtrlTreeView_GetDropTarget GUICtrlTreeView_GetEditControl ' + + 'GUICtrlTreeView_GetExpanded GUICtrlTreeView_GetFirstChild ' + + 'GUICtrlTreeView_GetFirstItem GUICtrlTreeView_GetFirstVisible ' + + 'GUICtrlTreeView_GetFocused GUICtrlTreeView_GetHeight ' + + 'GUICtrlTreeView_GetImageIndex ' + + 'GUICtrlTreeView_GetImageListIconHandle ' + + 'GUICtrlTreeView_GetIndent GUICtrlTreeView_GetInsertMarkColor ' + + 'GUICtrlTreeView_GetISearchString GUICtrlTreeView_GetItemByIndex ' + + 'GUICtrlTreeView_GetItemHandle GUICtrlTreeView_GetItemParam ' + + 'GUICtrlTreeView_GetLastChild GUICtrlTreeView_GetLineColor ' + + 'GUICtrlTreeView_GetNext GUICtrlTreeView_GetNextChild ' + + 'GUICtrlTreeView_GetNextSibling GUICtrlTreeView_GetNextVisible ' + + 'GUICtrlTreeView_GetNormalImageList ' + + 'GUICtrlTreeView_GetParentHandle GUICtrlTreeView_GetParentParam ' + + 'GUICtrlTreeView_GetPrev GUICtrlTreeView_GetPrevChild ' + + 'GUICtrlTreeView_GetPrevSibling GUICtrlTreeView_GetPrevVisible ' + + 'GUICtrlTreeView_GetScrollTime GUICtrlTreeView_GetSelected ' + + 'GUICtrlTreeView_GetSelectedImageIndex ' + + 'GUICtrlTreeView_GetSelection GUICtrlTreeView_GetSiblingCount ' + + 'GUICtrlTreeView_GetState GUICtrlTreeView_GetStateImageIndex ' + + 'GUICtrlTreeView_GetStateImageList GUICtrlTreeView_GetText ' + + 'GUICtrlTreeView_GetTextColor GUICtrlTreeView_GetToolTips ' + + 'GUICtrlTreeView_GetTree GUICtrlTreeView_GetUnicodeFormat ' + + 'GUICtrlTreeView_GetVisible GUICtrlTreeView_GetVisibleCount ' + + 'GUICtrlTreeView_HitTest GUICtrlTreeView_HitTestEx ' + + 'GUICtrlTreeView_HitTestItem GUICtrlTreeView_Index ' + + 'GUICtrlTreeView_InsertItem GUICtrlTreeView_IsFirstItem ' + + 'GUICtrlTreeView_IsParent GUICtrlTreeView_Level ' + + 'GUICtrlTreeView_SelectItem GUICtrlTreeView_SelectItemByIndex ' + + 'GUICtrlTreeView_SetBkColor GUICtrlTreeView_SetBold ' + + 'GUICtrlTreeView_SetChecked GUICtrlTreeView_SetCheckedByIndex ' + + 'GUICtrlTreeView_SetChildren GUICtrlTreeView_SetCut ' + + 'GUICtrlTreeView_SetDropTarget GUICtrlTreeView_SetFocused ' + + 'GUICtrlTreeView_SetHeight GUICtrlTreeView_SetIcon ' + + 'GUICtrlTreeView_SetImageIndex GUICtrlTreeView_SetIndent ' + + 'GUICtrlTreeView_SetInsertMark ' + + 'GUICtrlTreeView_SetInsertMarkColor ' + + 'GUICtrlTreeView_SetItemHeight GUICtrlTreeView_SetItemParam ' + + 'GUICtrlTreeView_SetLineColor GUICtrlTreeView_SetNormalImageList ' + + 'GUICtrlTreeView_SetScrollTime GUICtrlTreeView_SetSelected ' + + 'GUICtrlTreeView_SetSelectedImageIndex GUICtrlTreeView_SetState ' + + 'GUICtrlTreeView_SetStateImageIndex ' + + 'GUICtrlTreeView_SetStateImageList GUICtrlTreeView_SetText ' + + 'GUICtrlTreeView_SetTextColor GUICtrlTreeView_SetToolTips ' + + 'GUICtrlTreeView_SetUnicodeFormat GUICtrlTreeView_Sort ' + + 'GUIImageList_Add GUIImageList_AddBitmap GUIImageList_AddIcon ' + + 'GUIImageList_AddMasked GUIImageList_BeginDrag ' + + 'GUIImageList_Copy GUIImageList_Create GUIImageList_Destroy ' + + 'GUIImageList_DestroyIcon GUIImageList_DragEnter ' + + 'GUIImageList_DragLeave GUIImageList_DragMove ' + + 'GUIImageList_Draw GUIImageList_DrawEx GUIImageList_Duplicate ' + + 'GUIImageList_EndDrag GUIImageList_GetBkColor ' + + 'GUIImageList_GetIcon GUIImageList_GetIconHeight ' + + 'GUIImageList_GetIconSize GUIImageList_GetIconSizeEx ' + + 'GUIImageList_GetIconWidth GUIImageList_GetImageCount ' + + 'GUIImageList_GetImageInfoEx GUIImageList_Remove ' + + 'GUIImageList_ReplaceIcon GUIImageList_SetBkColor ' + + 'GUIImageList_SetIconSize GUIImageList_SetImageCount ' + + 'GUIImageList_Swap GUIScrollBars_EnableScrollBar ' + + 'GUIScrollBars_GetScrollBarInfoEx GUIScrollBars_GetScrollBarRect ' + + 'GUIScrollBars_GetScrollBarRGState ' + + 'GUIScrollBars_GetScrollBarXYLineButton ' + + 'GUIScrollBars_GetScrollBarXYThumbBottom ' + + 'GUIScrollBars_GetScrollBarXYThumbTop ' + + 'GUIScrollBars_GetScrollInfo GUIScrollBars_GetScrollInfoEx ' + + 'GUIScrollBars_GetScrollInfoMax GUIScrollBars_GetScrollInfoMin ' + + 'GUIScrollBars_GetScrollInfoPage GUIScrollBars_GetScrollInfoPos ' + + 'GUIScrollBars_GetScrollInfoTrackPos GUIScrollBars_GetScrollPos ' + + 'GUIScrollBars_GetScrollRange GUIScrollBars_Init ' + + 'GUIScrollBars_ScrollWindow GUIScrollBars_SetScrollInfo ' + + 'GUIScrollBars_SetScrollInfoMax GUIScrollBars_SetScrollInfoMin ' + + 'GUIScrollBars_SetScrollInfoPage GUIScrollBars_SetScrollInfoPos ' + + 'GUIScrollBars_SetScrollRange GUIScrollBars_ShowScrollBar ' + + 'GUIToolTip_Activate GUIToolTip_AddTool GUIToolTip_AdjustRect ' + + 'GUIToolTip_BitsToTTF GUIToolTip_Create GUIToolTip_Deactivate ' + + 'GUIToolTip_DelTool GUIToolTip_Destroy GUIToolTip_EnumTools ' + + 'GUIToolTip_GetBubbleHeight GUIToolTip_GetBubbleSize ' + + 'GUIToolTip_GetBubbleWidth GUIToolTip_GetCurrentTool ' + + 'GUIToolTip_GetDelayTime GUIToolTip_GetMargin ' + + 'GUIToolTip_GetMarginEx GUIToolTip_GetMaxTipWidth ' + + 'GUIToolTip_GetText GUIToolTip_GetTipBkColor ' + + 'GUIToolTip_GetTipTextColor GUIToolTip_GetTitleBitMap ' + + 'GUIToolTip_GetTitleText GUIToolTip_GetToolCount ' + + 'GUIToolTip_GetToolInfo GUIToolTip_HitTest ' + + 'GUIToolTip_NewToolRect GUIToolTip_Pop GUIToolTip_PopUp ' + + 'GUIToolTip_SetDelayTime GUIToolTip_SetMargin ' + + 'GUIToolTip_SetMaxTipWidth GUIToolTip_SetTipBkColor ' + + 'GUIToolTip_SetTipTextColor GUIToolTip_SetTitle ' + + 'GUIToolTip_SetToolInfo GUIToolTip_SetWindowTheme ' + + 'GUIToolTip_ToolExists GUIToolTip_ToolToArray ' + + 'GUIToolTip_TrackActivate GUIToolTip_TrackPosition ' + + 'GUIToolTip_Update GUIToolTip_UpdateTipText HexToString ' + + 'IEAction IEAttach IEBodyReadHTML IEBodyReadText ' + + 'IEBodyWriteHTML IECreate IECreateEmbedded IEDocGetObj ' + + 'IEDocInsertHTML IEDocInsertText IEDocReadHTML ' + + 'IEDocWriteHTML IEErrorNotify IEFormElementCheckBoxSelect ' + + 'IEFormElementGetCollection IEFormElementGetObjByName ' + + 'IEFormElementGetValue IEFormElementOptionSelect ' + + 'IEFormElementRadioSelect IEFormElementSetValue ' + + 'IEFormGetCollection IEFormGetObjByName IEFormImageClick ' + + 'IEFormReset IEFormSubmit IEFrameGetCollection ' + + 'IEFrameGetObjByName IEGetObjById IEGetObjByName ' + + 'IEHeadInsertEventScript IEImgClick IEImgGetCollection ' + + 'IEIsFrameSet IELinkClickByIndex IELinkClickByText ' + + 'IELinkGetCollection IELoadWait IELoadWaitTimeout IENavigate ' + + 'IEPropertyGet IEPropertySet IEQuit IETableGetCollection ' + + 'IETableWriteToArray IETagNameAllGetCollection ' + + 'IETagNameGetCollection IE_Example IE_Introduction ' + + 'IE_VersionInfo INetExplorerCapable INetGetSource INetMail ' + + 'INetSmtpMail IsPressed MathCheckDiv Max MemGlobalAlloc ' + + 'MemGlobalFree MemGlobalLock MemGlobalSize MemGlobalUnlock ' + + 'MemMoveMemory MemVirtualAlloc MemVirtualAllocEx ' + + 'MemVirtualFree MemVirtualFreeEx Min MouseTrap ' + + 'NamedPipes_CallNamedPipe NamedPipes_ConnectNamedPipe ' + + 'NamedPipes_CreateNamedPipe NamedPipes_CreatePipe ' + + 'NamedPipes_DisconnectNamedPipe ' + + 'NamedPipes_GetNamedPipeHandleState NamedPipes_GetNamedPipeInfo ' + + 'NamedPipes_PeekNamedPipe NamedPipes_SetNamedPipeHandleState ' + + 'NamedPipes_TransactNamedPipe NamedPipes_WaitNamedPipe ' + + 'Net_Share_ConnectionEnum Net_Share_FileClose ' + + 'Net_Share_FileEnum Net_Share_FileGetInfo Net_Share_PermStr ' + + 'Net_Share_ResourceStr Net_Share_SessionDel ' + + 'Net_Share_SessionEnum Net_Share_SessionGetInfo ' + + 'Net_Share_ShareAdd Net_Share_ShareCheck Net_Share_ShareDel ' + + 'Net_Share_ShareEnum Net_Share_ShareGetInfo ' + + 'Net_Share_ShareSetInfo Net_Share_StatisticsGetSvr ' + + 'Net_Share_StatisticsGetWrk Now NowCalc NowCalcDate ' + + 'NowDate NowTime PathFull PathGetRelative PathMake ' + + 'PathSplit ProcessGetName ProcessGetPriority Radian ' + + 'ReplaceStringInFile RunDos ScreenCapture_Capture ' + + 'ScreenCapture_CaptureWnd ScreenCapture_SaveImage ' + + 'ScreenCapture_SetBMPFormat ScreenCapture_SetJPGQuality ' + + 'ScreenCapture_SetTIFColorDepth ScreenCapture_SetTIFCompression ' + + 'Security__AdjustTokenPrivileges ' + + 'Security__CreateProcessWithToken Security__DuplicateTokenEx ' + + 'Security__GetAccountSid Security__GetLengthSid ' + + 'Security__GetTokenInformation Security__ImpersonateSelf ' + + 'Security__IsValidSid Security__LookupAccountName ' + + 'Security__LookupAccountSid Security__LookupPrivilegeValue ' + + 'Security__OpenProcessToken Security__OpenThreadToken ' + + 'Security__OpenThreadTokenEx Security__SetPrivilege ' + + 'Security__SetTokenInformation Security__SidToStringSid ' + + 'Security__SidTypeStr Security__StringSidToSid SendMessage ' + + 'SendMessageA SetDate SetTime Singleton SoundClose ' + + 'SoundLength SoundOpen SoundPause SoundPlay SoundPos ' + + 'SoundResume SoundSeek SoundStatus SoundStop ' + + 'SQLite_Changes SQLite_Close SQLite_Display2DResult ' + + 'SQLite_Encode SQLite_ErrCode SQLite_ErrMsg SQLite_Escape ' + + 'SQLite_Exec SQLite_FastEncode SQLite_FastEscape ' + + 'SQLite_FetchData SQLite_FetchNames SQLite_GetTable ' + + 'SQLite_GetTable2d SQLite_LastInsertRowID SQLite_LibVersion ' + + 'SQLite_Open SQLite_Query SQLite_QueryFinalize ' + + 'SQLite_QueryReset SQLite_QuerySingleRow SQLite_SafeMode ' + + 'SQLite_SetTimeout SQLite_Shutdown SQLite_SQLiteExe ' + + 'SQLite_Startup SQLite_TotalChanges StringBetween ' + + 'StringExplode StringInsert StringProper StringRepeat ' + + 'StringTitleCase StringToHex TCPIpToName TempFile ' + + 'TicksToTime Timer_Diff Timer_GetIdleTime Timer_GetTimerID ' + + 'Timer_Init Timer_KillAllTimers Timer_KillTimer ' + + 'Timer_SetTimer TimeToTicks VersionCompare viClose ' + + 'viExecCommand viFindGpib viGpibBusReset viGTL ' + + 'viInteractiveControl viOpen viSetAttribute viSetTimeout ' + + 'WeekNumberISO WinAPI_AbortPath WinAPI_ActivateKeyboardLayout ' + + 'WinAPI_AddClipboardFormatListener WinAPI_AddFontMemResourceEx ' + + 'WinAPI_AddFontResourceEx WinAPI_AddIconOverlay ' + + 'WinAPI_AddIconTransparency WinAPI_AddMRUString ' + + 'WinAPI_AdjustBitmap WinAPI_AdjustTokenPrivileges ' + + 'WinAPI_AdjustWindowRectEx WinAPI_AlphaBlend WinAPI_AngleArc ' + + 'WinAPI_AnimateWindow WinAPI_Arc WinAPI_ArcTo ' + + 'WinAPI_ArrayToStruct WinAPI_AssignProcessToJobObject ' + + 'WinAPI_AssocGetPerceivedType WinAPI_AssocQueryString ' + + 'WinAPI_AttachConsole WinAPI_AttachThreadInput ' + + 'WinAPI_BackupRead WinAPI_BackupReadAbort WinAPI_BackupSeek ' + + 'WinAPI_BackupWrite WinAPI_BackupWriteAbort WinAPI_Beep ' + + 'WinAPI_BeginBufferedPaint WinAPI_BeginDeferWindowPos ' + + 'WinAPI_BeginPaint WinAPI_BeginPath WinAPI_BeginUpdateResource ' + + 'WinAPI_BitBlt WinAPI_BringWindowToTop ' + + 'WinAPI_BroadcastSystemMessage WinAPI_BrowseForFolderDlg ' + + 'WinAPI_BufferedPaintClear WinAPI_BufferedPaintInit ' + + 'WinAPI_BufferedPaintSetAlpha WinAPI_BufferedPaintUnInit ' + + 'WinAPI_CallNextHookEx WinAPI_CallWindowProc ' + + 'WinAPI_CallWindowProcW WinAPI_CascadeWindows ' + + 'WinAPI_ChangeWindowMessageFilterEx WinAPI_CharToOem ' + + 'WinAPI_ChildWindowFromPointEx WinAPI_ClientToScreen ' + + 'WinAPI_ClipCursor WinAPI_CloseDesktop WinAPI_CloseEnhMetaFile ' + + 'WinAPI_CloseFigure WinAPI_CloseHandle WinAPI_CloseThemeData ' + + 'WinAPI_CloseWindow WinAPI_CloseWindowStation ' + + 'WinAPI_CLSIDFromProgID WinAPI_CoInitialize ' + + 'WinAPI_ColorAdjustLuma WinAPI_ColorHLSToRGB ' + + 'WinAPI_ColorRGBToHLS WinAPI_CombineRgn ' + + 'WinAPI_CombineTransform WinAPI_CommandLineToArgv ' + + 'WinAPI_CommDlgExtendedError WinAPI_CommDlgExtendedErrorEx ' + + 'WinAPI_CompareString WinAPI_CompressBitmapBits ' + + 'WinAPI_CompressBuffer WinAPI_ComputeCrc32 ' + + 'WinAPI_ConfirmCredentials WinAPI_CopyBitmap WinAPI_CopyCursor ' + + 'WinAPI_CopyEnhMetaFile WinAPI_CopyFileEx WinAPI_CopyIcon ' + + 'WinAPI_CopyImage WinAPI_CopyRect WinAPI_CopyStruct ' + + 'WinAPI_CoTaskMemAlloc WinAPI_CoTaskMemFree ' + + 'WinAPI_CoTaskMemRealloc WinAPI_CoUninitialize ' + + 'WinAPI_Create32BitHBITMAP WinAPI_Create32BitHICON ' + + 'WinAPI_CreateANDBitmap WinAPI_CreateBitmap ' + + 'WinAPI_CreateBitmapIndirect WinAPI_CreateBrushIndirect ' + + 'WinAPI_CreateBuffer WinAPI_CreateBufferFromStruct ' + + 'WinAPI_CreateCaret WinAPI_CreateColorAdjustment ' + + 'WinAPI_CreateCompatibleBitmap WinAPI_CreateCompatibleBitmapEx ' + + 'WinAPI_CreateCompatibleDC WinAPI_CreateDesktop ' + + 'WinAPI_CreateDIB WinAPI_CreateDIBColorTable ' + + 'WinAPI_CreateDIBitmap WinAPI_CreateDIBSection ' + + 'WinAPI_CreateDirectory WinAPI_CreateDirectoryEx ' + + 'WinAPI_CreateEllipticRgn WinAPI_CreateEmptyIcon ' + + 'WinAPI_CreateEnhMetaFile WinAPI_CreateEvent WinAPI_CreateFile ' + + 'WinAPI_CreateFileEx WinAPI_CreateFileMapping ' + + 'WinAPI_CreateFont WinAPI_CreateFontEx ' + + 'WinAPI_CreateFontIndirect WinAPI_CreateGUID ' + + 'WinAPI_CreateHardLink WinAPI_CreateIcon ' + + 'WinAPI_CreateIconFromResourceEx WinAPI_CreateIconIndirect ' + + 'WinAPI_CreateJobObject WinAPI_CreateMargins ' + + 'WinAPI_CreateMRUList WinAPI_CreateMutex WinAPI_CreateNullRgn ' + + 'WinAPI_CreateNumberFormatInfo WinAPI_CreateObjectID ' + + 'WinAPI_CreatePen WinAPI_CreatePoint WinAPI_CreatePolygonRgn ' + + 'WinAPI_CreateProcess WinAPI_CreateProcessWithToken ' + + 'WinAPI_CreateRect WinAPI_CreateRectEx WinAPI_CreateRectRgn ' + + 'WinAPI_CreateRectRgnIndirect WinAPI_CreateRoundRectRgn ' + + 'WinAPI_CreateSemaphore WinAPI_CreateSize ' + + 'WinAPI_CreateSolidBitmap WinAPI_CreateSolidBrush ' + + 'WinAPI_CreateStreamOnHGlobal WinAPI_CreateString ' + + 'WinAPI_CreateSymbolicLink WinAPI_CreateTransform ' + + 'WinAPI_CreateWindowEx WinAPI_CreateWindowStation ' + + 'WinAPI_DecompressBuffer WinAPI_DecryptFile ' + + 'WinAPI_DeferWindowPos WinAPI_DefineDosDevice ' + + 'WinAPI_DefRawInputProc WinAPI_DefSubclassProc ' + + 'WinAPI_DefWindowProc WinAPI_DefWindowProcW WinAPI_DeleteDC ' + + 'WinAPI_DeleteEnhMetaFile WinAPI_DeleteFile ' + + 'WinAPI_DeleteObject WinAPI_DeleteObjectID ' + + 'WinAPI_DeleteVolumeMountPoint WinAPI_DeregisterShellHookWindow ' + + 'WinAPI_DestroyCaret WinAPI_DestroyCursor WinAPI_DestroyIcon ' + + 'WinAPI_DestroyWindow WinAPI_DeviceIoControl ' + + 'WinAPI_DisplayStruct WinAPI_DllGetVersion WinAPI_DllInstall ' + + 'WinAPI_DllUninstall WinAPI_DPtoLP WinAPI_DragAcceptFiles ' + + 'WinAPI_DragFinish WinAPI_DragQueryFileEx ' + + 'WinAPI_DragQueryPoint WinAPI_DrawAnimatedRects ' + + 'WinAPI_DrawBitmap WinAPI_DrawEdge WinAPI_DrawFocusRect ' + + 'WinAPI_DrawFrameControl WinAPI_DrawIcon WinAPI_DrawIconEx ' + + 'WinAPI_DrawLine WinAPI_DrawShadowText WinAPI_DrawText ' + + 'WinAPI_DrawThemeBackground WinAPI_DrawThemeEdge ' + + 'WinAPI_DrawThemeIcon WinAPI_DrawThemeParentBackground ' + + 'WinAPI_DrawThemeText WinAPI_DrawThemeTextEx ' + + 'WinAPI_DuplicateEncryptionInfoFile WinAPI_DuplicateHandle ' + + 'WinAPI_DuplicateTokenEx WinAPI_DwmDefWindowProc ' + + 'WinAPI_DwmEnableBlurBehindWindow WinAPI_DwmEnableComposition ' + + 'WinAPI_DwmExtendFrameIntoClientArea ' + + 'WinAPI_DwmGetColorizationColor ' + + 'WinAPI_DwmGetColorizationParameters ' + + 'WinAPI_DwmGetWindowAttribute WinAPI_DwmInvalidateIconicBitmaps ' + + 'WinAPI_DwmIsCompositionEnabled ' + + 'WinAPI_DwmQueryThumbnailSourceSize WinAPI_DwmRegisterThumbnail ' + + 'WinAPI_DwmSetColorizationParameters ' + + 'WinAPI_DwmSetIconicLivePreviewBitmap ' + + 'WinAPI_DwmSetIconicThumbnail WinAPI_DwmSetWindowAttribute ' + + 'WinAPI_DwmUnregisterThumbnail ' + + 'WinAPI_DwmUpdateThumbnailProperties WinAPI_DWordToFloat ' + + 'WinAPI_DWordToInt WinAPI_EjectMedia WinAPI_Ellipse ' + + 'WinAPI_EmptyWorkingSet WinAPI_EnableWindow WinAPI_EncryptFile ' + + 'WinAPI_EncryptionDisable WinAPI_EndBufferedPaint ' + + 'WinAPI_EndDeferWindowPos WinAPI_EndPaint WinAPI_EndPath ' + + 'WinAPI_EndUpdateResource WinAPI_EnumChildProcess ' + + 'WinAPI_EnumChildWindows WinAPI_EnumDesktops ' + + 'WinAPI_EnumDesktopWindows WinAPI_EnumDeviceDrivers ' + + 'WinAPI_EnumDisplayDevices WinAPI_EnumDisplayMonitors ' + + 'WinAPI_EnumDisplaySettings WinAPI_EnumDllProc ' + + 'WinAPI_EnumFiles WinAPI_EnumFileStreams ' + + 'WinAPI_EnumFontFamilies WinAPI_EnumHardLinks ' + + 'WinAPI_EnumMRUList WinAPI_EnumPageFiles ' + + 'WinAPI_EnumProcessHandles WinAPI_EnumProcessModules ' + + 'WinAPI_EnumProcessThreads WinAPI_EnumProcessWindows ' + + 'WinAPI_EnumRawInputDevices WinAPI_EnumResourceLanguages ' + + 'WinAPI_EnumResourceNames WinAPI_EnumResourceTypes ' + + 'WinAPI_EnumSystemGeoID WinAPI_EnumSystemLocales ' + + 'WinAPI_EnumUILanguages WinAPI_EnumWindows ' + + 'WinAPI_EnumWindowsPopup WinAPI_EnumWindowStations ' + + 'WinAPI_EnumWindowsTop WinAPI_EqualMemory WinAPI_EqualRect ' + + 'WinAPI_EqualRgn WinAPI_ExcludeClipRect ' + + 'WinAPI_ExpandEnvironmentStrings WinAPI_ExtCreatePen ' + + 'WinAPI_ExtCreateRegion WinAPI_ExtFloodFill WinAPI_ExtractIcon ' + + 'WinAPI_ExtractIconEx WinAPI_ExtSelectClipRgn ' + + 'WinAPI_FatalAppExit WinAPI_FatalExit ' + + 'WinAPI_FileEncryptionStatus WinAPI_FileExists ' + + 'WinAPI_FileIconInit WinAPI_FileInUse WinAPI_FillMemory ' + + 'WinAPI_FillPath WinAPI_FillRect WinAPI_FillRgn ' + + 'WinAPI_FindClose WinAPI_FindCloseChangeNotification ' + + 'WinAPI_FindExecutable WinAPI_FindFirstChangeNotification ' + + 'WinAPI_FindFirstFile WinAPI_FindFirstFileName ' + + 'WinAPI_FindFirstStream WinAPI_FindNextChangeNotification ' + + 'WinAPI_FindNextFile WinAPI_FindNextFileName ' + + 'WinAPI_FindNextStream WinAPI_FindResource ' + + 'WinAPI_FindResourceEx WinAPI_FindTextDlg WinAPI_FindWindow ' + + 'WinAPI_FlashWindow WinAPI_FlashWindowEx WinAPI_FlattenPath ' + + 'WinAPI_FloatToDWord WinAPI_FloatToInt WinAPI_FlushFileBuffers ' + + 'WinAPI_FlushFRBuffer WinAPI_FlushViewOfFile ' + + 'WinAPI_FormatDriveDlg WinAPI_FormatMessage WinAPI_FrameRect ' + + 'WinAPI_FrameRgn WinAPI_FreeLibrary WinAPI_FreeMemory ' + + 'WinAPI_FreeMRUList WinAPI_FreeResource WinAPI_GdiComment ' + + 'WinAPI_GetActiveWindow WinAPI_GetAllUsersProfileDirectory ' + + 'WinAPI_GetAncestor WinAPI_GetApplicationRestartSettings ' + + 'WinAPI_GetArcDirection WinAPI_GetAsyncKeyState ' + + 'WinAPI_GetBinaryType WinAPI_GetBitmapBits ' + + 'WinAPI_GetBitmapDimension WinAPI_GetBitmapDimensionEx ' + + 'WinAPI_GetBkColor WinAPI_GetBkMode WinAPI_GetBoundsRect ' + + 'WinAPI_GetBrushOrg WinAPI_GetBufferedPaintBits ' + + 'WinAPI_GetBufferedPaintDC WinAPI_GetBufferedPaintTargetDC ' + + 'WinAPI_GetBufferedPaintTargetRect WinAPI_GetBValue ' + + 'WinAPI_GetCaretBlinkTime WinAPI_GetCaretPos WinAPI_GetCDType ' + + 'WinAPI_GetClassInfoEx WinAPI_GetClassLongEx ' + + 'WinAPI_GetClassName WinAPI_GetClientHeight ' + + 'WinAPI_GetClientRect WinAPI_GetClientWidth ' + + 'WinAPI_GetClipboardSequenceNumber WinAPI_GetClipBox ' + + 'WinAPI_GetClipCursor WinAPI_GetClipRgn ' + + 'WinAPI_GetColorAdjustment WinAPI_GetCompressedFileSize ' + + 'WinAPI_GetCompression WinAPI_GetConnectedDlg ' + + 'WinAPI_GetCurrentDirectory WinAPI_GetCurrentHwProfile ' + + 'WinAPI_GetCurrentObject WinAPI_GetCurrentPosition ' + + 'WinAPI_GetCurrentProcess ' + + 'WinAPI_GetCurrentProcessExplicitAppUserModelID ' + + 'WinAPI_GetCurrentProcessID WinAPI_GetCurrentThemeName ' + + 'WinAPI_GetCurrentThread WinAPI_GetCurrentThreadId ' + + 'WinAPI_GetCursor WinAPI_GetCursorInfo WinAPI_GetDateFormat ' + + 'WinAPI_GetDC WinAPI_GetDCEx WinAPI_GetDefaultPrinter ' + + 'WinAPI_GetDefaultUserProfileDirectory WinAPI_GetDesktopWindow ' + + 'WinAPI_GetDeviceCaps WinAPI_GetDeviceDriverBaseName ' + + 'WinAPI_GetDeviceDriverFileName WinAPI_GetDeviceGammaRamp ' + + 'WinAPI_GetDIBColorTable WinAPI_GetDIBits ' + + 'WinAPI_GetDiskFreeSpaceEx WinAPI_GetDlgCtrlID ' + + 'WinAPI_GetDlgItem WinAPI_GetDllDirectory ' + + 'WinAPI_GetDriveBusType WinAPI_GetDriveGeometryEx ' + + 'WinAPI_GetDriveNumber WinAPI_GetDriveType ' + + 'WinAPI_GetDurationFormat WinAPI_GetEffectiveClientRect ' + + 'WinAPI_GetEnhMetaFile WinAPI_GetEnhMetaFileBits ' + + 'WinAPI_GetEnhMetaFileDescription WinAPI_GetEnhMetaFileDimension ' + + 'WinAPI_GetEnhMetaFileHeader WinAPI_GetErrorMessage ' + + 'WinAPI_GetErrorMode WinAPI_GetExitCodeProcess ' + + 'WinAPI_GetExtended WinAPI_GetFileAttributes WinAPI_GetFileID ' + + 'WinAPI_GetFileInformationByHandle ' + + 'WinAPI_GetFileInformationByHandleEx WinAPI_GetFilePointerEx ' + + 'WinAPI_GetFileSizeEx WinAPI_GetFileSizeOnDisk ' + + 'WinAPI_GetFileTitle WinAPI_GetFileType ' + + 'WinAPI_GetFileVersionInfo WinAPI_GetFinalPathNameByHandle ' + + 'WinAPI_GetFinalPathNameByHandleEx WinAPI_GetFocus ' + + 'WinAPI_GetFontMemoryResourceInfo WinAPI_GetFontName ' + + 'WinAPI_GetFontResourceInfo WinAPI_GetForegroundWindow ' + + 'WinAPI_GetFRBuffer WinAPI_GetFullPathName WinAPI_GetGeoInfo ' + + 'WinAPI_GetGlyphOutline WinAPI_GetGraphicsMode ' + + 'WinAPI_GetGuiResources WinAPI_GetGUIThreadInfo ' + + 'WinAPI_GetGValue WinAPI_GetHandleInformation ' + + 'WinAPI_GetHGlobalFromStream WinAPI_GetIconDimension ' + + 'WinAPI_GetIconInfo WinAPI_GetIconInfoEx WinAPI_GetIdleTime ' + + 'WinAPI_GetKeyboardLayout WinAPI_GetKeyboardLayoutList ' + + 'WinAPI_GetKeyboardState WinAPI_GetKeyboardType ' + + 'WinAPI_GetKeyNameText WinAPI_GetKeyState ' + + 'WinAPI_GetLastActivePopup WinAPI_GetLastError ' + + 'WinAPI_GetLastErrorMessage WinAPI_GetLayeredWindowAttributes ' + + 'WinAPI_GetLocaleInfo WinAPI_GetLogicalDrives ' + + 'WinAPI_GetMapMode WinAPI_GetMemorySize ' + + 'WinAPI_GetMessageExtraInfo WinAPI_GetModuleFileNameEx ' + + 'WinAPI_GetModuleHandle WinAPI_GetModuleHandleEx ' + + 'WinAPI_GetModuleInformation WinAPI_GetMonitorInfo ' + + 'WinAPI_GetMousePos WinAPI_GetMousePosX WinAPI_GetMousePosY ' + + 'WinAPI_GetMUILanguage WinAPI_GetNumberFormat WinAPI_GetObject ' + + 'WinAPI_GetObjectID WinAPI_GetObjectInfoByHandle ' + + 'WinAPI_GetObjectNameByHandle WinAPI_GetObjectType ' + + 'WinAPI_GetOpenFileName WinAPI_GetOutlineTextMetrics ' + + 'WinAPI_GetOverlappedResult WinAPI_GetParent ' + + 'WinAPI_GetParentProcess WinAPI_GetPerformanceInfo ' + + 'WinAPI_GetPEType WinAPI_GetPhysicallyInstalledSystemMemory ' + + 'WinAPI_GetPixel WinAPI_GetPolyFillMode WinAPI_GetPosFromRect ' + + 'WinAPI_GetPriorityClass WinAPI_GetProcAddress ' + + 'WinAPI_GetProcessAffinityMask WinAPI_GetProcessCommandLine ' + + 'WinAPI_GetProcessFileName WinAPI_GetProcessHandleCount ' + + 'WinAPI_GetProcessID WinAPI_GetProcessIoCounters ' + + 'WinAPI_GetProcessMemoryInfo WinAPI_GetProcessName ' + + 'WinAPI_GetProcessShutdownParameters WinAPI_GetProcessTimes ' + + 'WinAPI_GetProcessUser WinAPI_GetProcessWindowStation ' + + 'WinAPI_GetProcessWorkingDirectory WinAPI_GetProfilesDirectory ' + + 'WinAPI_GetPwrCapabilities WinAPI_GetRawInputBuffer ' + + 'WinAPI_GetRawInputBufferLength WinAPI_GetRawInputData ' + + 'WinAPI_GetRawInputDeviceInfo WinAPI_GetRegionData ' + + 'WinAPI_GetRegisteredRawInputDevices ' + + 'WinAPI_GetRegKeyNameByHandle WinAPI_GetRgnBox WinAPI_GetROP2 ' + + 'WinAPI_GetRValue WinAPI_GetSaveFileName WinAPI_GetShellWindow ' + + 'WinAPI_GetStartupInfo WinAPI_GetStdHandle ' + + 'WinAPI_GetStockObject WinAPI_GetStretchBltMode ' + + 'WinAPI_GetString WinAPI_GetSysColor WinAPI_GetSysColorBrush ' + + 'WinAPI_GetSystemDefaultLangID WinAPI_GetSystemDefaultLCID ' + + 'WinAPI_GetSystemDefaultUILanguage WinAPI_GetSystemDEPPolicy ' + + 'WinAPI_GetSystemInfo WinAPI_GetSystemMetrics ' + + 'WinAPI_GetSystemPowerStatus WinAPI_GetSystemTimes ' + + 'WinAPI_GetSystemWow64Directory WinAPI_GetTabbedTextExtent ' + + 'WinAPI_GetTempFileName WinAPI_GetTextAlign ' + + 'WinAPI_GetTextCharacterExtra WinAPI_GetTextColor ' + + 'WinAPI_GetTextExtentPoint32 WinAPI_GetTextFace ' + + 'WinAPI_GetTextMetrics WinAPI_GetThemeAppProperties ' + + 'WinAPI_GetThemeBackgroundContentRect ' + + 'WinAPI_GetThemeBackgroundExtent WinAPI_GetThemeBackgroundRegion ' + + 'WinAPI_GetThemeBitmap WinAPI_GetThemeBool ' + + 'WinAPI_GetThemeColor WinAPI_GetThemeDocumentationProperty ' + + 'WinAPI_GetThemeEnumValue WinAPI_GetThemeFilename ' + + 'WinAPI_GetThemeFont WinAPI_GetThemeInt WinAPI_GetThemeMargins ' + + 'WinAPI_GetThemeMetric WinAPI_GetThemePartSize ' + + 'WinAPI_GetThemePosition WinAPI_GetThemePropertyOrigin ' + + 'WinAPI_GetThemeRect WinAPI_GetThemeString ' + + 'WinAPI_GetThemeSysBool WinAPI_GetThemeSysColor ' + + 'WinAPI_GetThemeSysColorBrush WinAPI_GetThemeSysFont ' + + 'WinAPI_GetThemeSysInt WinAPI_GetThemeSysSize ' + + 'WinAPI_GetThemeSysString WinAPI_GetThemeTextExtent ' + + 'WinAPI_GetThemeTextMetrics WinAPI_GetThemeTransitionDuration ' + + 'WinAPI_GetThreadDesktop WinAPI_GetThreadErrorMode ' + + 'WinAPI_GetThreadLocale WinAPI_GetThreadUILanguage ' + + 'WinAPI_GetTickCount WinAPI_GetTickCount64 ' + + 'WinAPI_GetTimeFormat WinAPI_GetTopWindow ' + + 'WinAPI_GetUDFColorMode WinAPI_GetUpdateRect ' + + 'WinAPI_GetUpdateRgn WinAPI_GetUserDefaultLangID ' + + 'WinAPI_GetUserDefaultLCID WinAPI_GetUserDefaultUILanguage ' + + 'WinAPI_GetUserGeoID WinAPI_GetUserObjectInformation ' + + 'WinAPI_GetVersion WinAPI_GetVersionEx ' + + 'WinAPI_GetVolumeInformation WinAPI_GetVolumeInformationByHandle ' + + 'WinAPI_GetVolumeNameForVolumeMountPoint WinAPI_GetWindow ' + + 'WinAPI_GetWindowDC WinAPI_GetWindowDisplayAffinity ' + + 'WinAPI_GetWindowExt WinAPI_GetWindowFileName ' + + 'WinAPI_GetWindowHeight WinAPI_GetWindowInfo ' + + 'WinAPI_GetWindowLong WinAPI_GetWindowOrg ' + + 'WinAPI_GetWindowPlacement WinAPI_GetWindowRect ' + + 'WinAPI_GetWindowRgn WinAPI_GetWindowRgnBox ' + + 'WinAPI_GetWindowSubclass WinAPI_GetWindowText ' + + 'WinAPI_GetWindowTheme WinAPI_GetWindowThreadProcessId ' + + 'WinAPI_GetWindowWidth WinAPI_GetWorkArea ' + + 'WinAPI_GetWorldTransform WinAPI_GetXYFromPoint ' + + 'WinAPI_GlobalMemoryStatus WinAPI_GradientFill ' + + 'WinAPI_GUIDFromString WinAPI_GUIDFromStringEx WinAPI_HashData ' + + 'WinAPI_HashString WinAPI_HiByte WinAPI_HideCaret ' + + 'WinAPI_HiDWord WinAPI_HiWord WinAPI_InflateRect ' + + 'WinAPI_InitMUILanguage WinAPI_InProcess ' + + 'WinAPI_IntersectClipRect WinAPI_IntersectRect ' + + 'WinAPI_IntToDWord WinAPI_IntToFloat WinAPI_InvalidateRect ' + + 'WinAPI_InvalidateRgn WinAPI_InvertANDBitmap ' + + 'WinAPI_InvertColor WinAPI_InvertRect WinAPI_InvertRgn ' + + 'WinAPI_IOCTL WinAPI_IsAlphaBitmap WinAPI_IsBadCodePtr ' + + 'WinAPI_IsBadReadPtr WinAPI_IsBadStringPtr ' + + 'WinAPI_IsBadWritePtr WinAPI_IsChild WinAPI_IsClassName ' + + 'WinAPI_IsDoorOpen WinAPI_IsElevated WinAPI_IsHungAppWindow ' + + 'WinAPI_IsIconic WinAPI_IsInternetConnected ' + + 'WinAPI_IsLoadKBLayout WinAPI_IsMemory ' + + 'WinAPI_IsNameInExpression WinAPI_IsNetworkAlive ' + + 'WinAPI_IsPathShared WinAPI_IsProcessInJob ' + + 'WinAPI_IsProcessorFeaturePresent WinAPI_IsRectEmpty ' + + 'WinAPI_IsThemeActive ' + + 'WinAPI_IsThemeBackgroundPartiallyTransparent ' + + 'WinAPI_IsThemePartDefined WinAPI_IsValidLocale ' + + 'WinAPI_IsWindow WinAPI_IsWindowEnabled WinAPI_IsWindowUnicode ' + + 'WinAPI_IsWindowVisible WinAPI_IsWow64Process ' + + 'WinAPI_IsWritable WinAPI_IsZoomed WinAPI_Keybd_Event ' + + 'WinAPI_KillTimer WinAPI_LineDDA WinAPI_LineTo ' + + 'WinAPI_LoadBitmap WinAPI_LoadCursor WinAPI_LoadCursorFromFile ' + + 'WinAPI_LoadIcon WinAPI_LoadIconMetric ' + + 'WinAPI_LoadIconWithScaleDown WinAPI_LoadImage ' + + 'WinAPI_LoadIndirectString WinAPI_LoadKeyboardLayout ' + + 'WinAPI_LoadLibrary WinAPI_LoadLibraryEx WinAPI_LoadMedia ' + + 'WinAPI_LoadResource WinAPI_LoadShell32Icon WinAPI_LoadString ' + + 'WinAPI_LoadStringEx WinAPI_LoByte WinAPI_LocalFree ' + + 'WinAPI_LockDevice WinAPI_LockFile WinAPI_LockResource ' + + 'WinAPI_LockWindowUpdate WinAPI_LockWorkStation WinAPI_LoDWord ' + + 'WinAPI_LongMid WinAPI_LookupIconIdFromDirectoryEx ' + + 'WinAPI_LoWord WinAPI_LPtoDP WinAPI_MAKELANGID ' + + 'WinAPI_MAKELCID WinAPI_MakeLong WinAPI_MakeQWord ' + + 'WinAPI_MakeWord WinAPI_MapViewOfFile WinAPI_MapVirtualKey ' + + 'WinAPI_MaskBlt WinAPI_MessageBeep WinAPI_MessageBoxCheck ' + + 'WinAPI_MessageBoxIndirect WinAPI_MirrorIcon ' + + 'WinAPI_ModifyWorldTransform WinAPI_MonitorFromPoint ' + + 'WinAPI_MonitorFromRect WinAPI_MonitorFromWindow ' + + 'WinAPI_Mouse_Event WinAPI_MoveFileEx WinAPI_MoveMemory ' + + 'WinAPI_MoveTo WinAPI_MoveToEx WinAPI_MoveWindow ' + + 'WinAPI_MsgBox WinAPI_MulDiv WinAPI_MultiByteToWideChar ' + + 'WinAPI_MultiByteToWideCharEx WinAPI_NtStatusToDosError ' + + 'WinAPI_OemToChar WinAPI_OffsetClipRgn WinAPI_OffsetPoints ' + + 'WinAPI_OffsetRect WinAPI_OffsetRgn WinAPI_OffsetWindowOrg ' + + 'WinAPI_OpenDesktop WinAPI_OpenFileById WinAPI_OpenFileDlg ' + + 'WinAPI_OpenFileMapping WinAPI_OpenIcon ' + + 'WinAPI_OpenInputDesktop WinAPI_OpenJobObject WinAPI_OpenMutex ' + + 'WinAPI_OpenProcess WinAPI_OpenProcessToken ' + + 'WinAPI_OpenSemaphore WinAPI_OpenThemeData ' + + 'WinAPI_OpenWindowStation WinAPI_PageSetupDlg ' + + 'WinAPI_PaintDesktop WinAPI_PaintRgn WinAPI_ParseURL ' + + 'WinAPI_ParseUserName WinAPI_PatBlt WinAPI_PathAddBackslash ' + + 'WinAPI_PathAddExtension WinAPI_PathAppend ' + + 'WinAPI_PathBuildRoot WinAPI_PathCanonicalize ' + + 'WinAPI_PathCommonPrefix WinAPI_PathCompactPath ' + + 'WinAPI_PathCompactPathEx WinAPI_PathCreateFromUrl ' + + 'WinAPI_PathFindExtension WinAPI_PathFindFileName ' + + 'WinAPI_PathFindNextComponent WinAPI_PathFindOnPath ' + + 'WinAPI_PathGetArgs WinAPI_PathGetCharType ' + + 'WinAPI_PathGetDriveNumber WinAPI_PathIsContentType ' + + 'WinAPI_PathIsDirectory WinAPI_PathIsDirectoryEmpty ' + + 'WinAPI_PathIsExe WinAPI_PathIsFileSpec ' + + 'WinAPI_PathIsLFNFileSpec WinAPI_PathIsRelative ' + + 'WinAPI_PathIsRoot WinAPI_PathIsSameRoot ' + + 'WinAPI_PathIsSystemFolder WinAPI_PathIsUNC ' + + 'WinAPI_PathIsUNCServer WinAPI_PathIsUNCServerShare ' + + 'WinAPI_PathMakeSystemFolder WinAPI_PathMatchSpec ' + + 'WinAPI_PathParseIconLocation WinAPI_PathRelativePathTo ' + + 'WinAPI_PathRemoveArgs WinAPI_PathRemoveBackslash ' + + 'WinAPI_PathRemoveExtension WinAPI_PathRemoveFileSpec ' + + 'WinAPI_PathRenameExtension WinAPI_PathSearchAndQualify ' + + 'WinAPI_PathSkipRoot WinAPI_PathStripPath ' + + 'WinAPI_PathStripToRoot WinAPI_PathToRegion ' + + 'WinAPI_PathUndecorate WinAPI_PathUnExpandEnvStrings ' + + 'WinAPI_PathUnmakeSystemFolder WinAPI_PathUnquoteSpaces ' + + 'WinAPI_PathYetAnotherMakeUniqueName WinAPI_PickIconDlg ' + + 'WinAPI_PlayEnhMetaFile WinAPI_PlaySound WinAPI_PlgBlt ' + + 'WinAPI_PointFromRect WinAPI_PolyBezier WinAPI_PolyBezierTo ' + + 'WinAPI_PolyDraw WinAPI_Polygon WinAPI_PostMessage ' + + 'WinAPI_PrimaryLangId WinAPI_PrintDlg WinAPI_PrintDlgEx ' + + 'WinAPI_PrintWindow WinAPI_ProgIDFromCLSID WinAPI_PtInRect ' + + 'WinAPI_PtInRectEx WinAPI_PtInRegion WinAPI_PtVisible ' + + 'WinAPI_QueryDosDevice WinAPI_QueryInformationJobObject ' + + 'WinAPI_QueryPerformanceCounter WinAPI_QueryPerformanceFrequency ' + + 'WinAPI_RadialGradientFill WinAPI_ReadDirectoryChanges ' + + 'WinAPI_ReadFile WinAPI_ReadProcessMemory WinAPI_Rectangle ' + + 'WinAPI_RectInRegion WinAPI_RectIsEmpty WinAPI_RectVisible ' + + 'WinAPI_RedrawWindow WinAPI_RegCloseKey ' + + 'WinAPI_RegConnectRegistry WinAPI_RegCopyTree ' + + 'WinAPI_RegCopyTreeEx WinAPI_RegCreateKey ' + + 'WinAPI_RegDeleteEmptyKey WinAPI_RegDeleteKey ' + + 'WinAPI_RegDeleteKeyValue WinAPI_RegDeleteTree ' + + 'WinAPI_RegDeleteTreeEx WinAPI_RegDeleteValue ' + + 'WinAPI_RegDisableReflectionKey WinAPI_RegDuplicateHKey ' + + 'WinAPI_RegEnableReflectionKey WinAPI_RegEnumKey ' + + 'WinAPI_RegEnumValue WinAPI_RegFlushKey ' + + 'WinAPI_RegisterApplicationRestart WinAPI_RegisterClass ' + + 'WinAPI_RegisterClassEx WinAPI_RegisterHotKey ' + + 'WinAPI_RegisterPowerSettingNotification ' + + 'WinAPI_RegisterRawInputDevices WinAPI_RegisterShellHookWindow ' + + 'WinAPI_RegisterWindowMessage WinAPI_RegLoadMUIString ' + + 'WinAPI_RegNotifyChangeKeyValue WinAPI_RegOpenKey ' + + 'WinAPI_RegQueryInfoKey WinAPI_RegQueryLastWriteTime ' + + 'WinAPI_RegQueryMultipleValues WinAPI_RegQueryReflectionKey ' + + 'WinAPI_RegQueryValue WinAPI_RegRestoreKey WinAPI_RegSaveKey ' + + 'WinAPI_RegSetValue WinAPI_ReleaseCapture WinAPI_ReleaseDC ' + + 'WinAPI_ReleaseMutex WinAPI_ReleaseSemaphore ' + + 'WinAPI_ReleaseStream WinAPI_RemoveClipboardFormatListener ' + + 'WinAPI_RemoveDirectory WinAPI_RemoveFontMemResourceEx ' + + 'WinAPI_RemoveFontResourceEx WinAPI_RemoveWindowSubclass ' + + 'WinAPI_ReOpenFile WinAPI_ReplaceFile WinAPI_ReplaceTextDlg ' + + 'WinAPI_ResetEvent WinAPI_RestartDlg WinAPI_RestoreDC ' + + 'WinAPI_RGB WinAPI_RotatePoints WinAPI_RoundRect ' + + 'WinAPI_SaveDC WinAPI_SaveFileDlg WinAPI_SaveHBITMAPToFile ' + + 'WinAPI_SaveHICONToFile WinAPI_ScaleWindowExt ' + + 'WinAPI_ScreenToClient WinAPI_SearchPath WinAPI_SelectClipPath ' + + 'WinAPI_SelectClipRgn WinAPI_SelectObject ' + + 'WinAPI_SendMessageTimeout WinAPI_SetActiveWindow ' + + 'WinAPI_SetArcDirection WinAPI_SetBitmapBits ' + + 'WinAPI_SetBitmapDimensionEx WinAPI_SetBkColor ' + + 'WinAPI_SetBkMode WinAPI_SetBoundsRect WinAPI_SetBrushOrg ' + + 'WinAPI_SetCapture WinAPI_SetCaretBlinkTime WinAPI_SetCaretPos ' + + 'WinAPI_SetClassLongEx WinAPI_SetColorAdjustment ' + + 'WinAPI_SetCompression WinAPI_SetCurrentDirectory ' + + 'WinAPI_SetCurrentProcessExplicitAppUserModelID WinAPI_SetCursor ' + + 'WinAPI_SetDCBrushColor WinAPI_SetDCPenColor ' + + 'WinAPI_SetDefaultPrinter WinAPI_SetDeviceGammaRamp ' + + 'WinAPI_SetDIBColorTable WinAPI_SetDIBits ' + + 'WinAPI_SetDIBitsToDevice WinAPI_SetDllDirectory ' + + 'WinAPI_SetEndOfFile WinAPI_SetEnhMetaFileBits ' + + 'WinAPI_SetErrorMode WinAPI_SetEvent WinAPI_SetFileAttributes ' + + 'WinAPI_SetFileInformationByHandleEx WinAPI_SetFilePointer ' + + 'WinAPI_SetFilePointerEx WinAPI_SetFileShortName ' + + 'WinAPI_SetFileValidData WinAPI_SetFocus WinAPI_SetFont ' + + 'WinAPI_SetForegroundWindow WinAPI_SetFRBuffer ' + + 'WinAPI_SetGraphicsMode WinAPI_SetHandleInformation ' + + 'WinAPI_SetInformationJobObject WinAPI_SetKeyboardLayout ' + + 'WinAPI_SetKeyboardState WinAPI_SetLastError ' + + 'WinAPI_SetLayeredWindowAttributes WinAPI_SetLocaleInfo ' + + 'WinAPI_SetMapMode WinAPI_SetMessageExtraInfo WinAPI_SetParent ' + + 'WinAPI_SetPixel WinAPI_SetPolyFillMode ' + + 'WinAPI_SetPriorityClass WinAPI_SetProcessAffinityMask ' + + 'WinAPI_SetProcessShutdownParameters ' + + 'WinAPI_SetProcessWindowStation WinAPI_SetRectRgn ' + + 'WinAPI_SetROP2 WinAPI_SetSearchPathMode ' + + 'WinAPI_SetStretchBltMode WinAPI_SetSysColors ' + + 'WinAPI_SetSystemCursor WinAPI_SetTextAlign ' + + 'WinAPI_SetTextCharacterExtra WinAPI_SetTextColor ' + + 'WinAPI_SetTextJustification WinAPI_SetThemeAppProperties ' + + 'WinAPI_SetThreadDesktop WinAPI_SetThreadErrorMode ' + + 'WinAPI_SetThreadExecutionState WinAPI_SetThreadLocale ' + + 'WinAPI_SetThreadUILanguage WinAPI_SetTimer ' + + 'WinAPI_SetUDFColorMode WinAPI_SetUserGeoID ' + + 'WinAPI_SetUserObjectInformation WinAPI_SetVolumeMountPoint ' + + 'WinAPI_SetWindowDisplayAffinity WinAPI_SetWindowExt ' + + 'WinAPI_SetWindowLong WinAPI_SetWindowOrg ' + + 'WinAPI_SetWindowPlacement WinAPI_SetWindowPos ' + + 'WinAPI_SetWindowRgn WinAPI_SetWindowsHookEx ' + + 'WinAPI_SetWindowSubclass WinAPI_SetWindowText ' + + 'WinAPI_SetWindowTheme WinAPI_SetWinEventHook ' + + 'WinAPI_SetWorldTransform WinAPI_SfcIsFileProtected ' + + 'WinAPI_SfcIsKeyProtected WinAPI_ShellAboutDlg ' + + 'WinAPI_ShellAddToRecentDocs WinAPI_ShellChangeNotify ' + + 'WinAPI_ShellChangeNotifyDeregister ' + + 'WinAPI_ShellChangeNotifyRegister WinAPI_ShellCreateDirectory ' + + 'WinAPI_ShellEmptyRecycleBin WinAPI_ShellExecute ' + + 'WinAPI_ShellExecuteEx WinAPI_ShellExtractAssociatedIcon ' + + 'WinAPI_ShellExtractIcon WinAPI_ShellFileOperation ' + + 'WinAPI_ShellFlushSFCache WinAPI_ShellGetFileInfo ' + + 'WinAPI_ShellGetIconOverlayIndex WinAPI_ShellGetImageList ' + + 'WinAPI_ShellGetKnownFolderIDList WinAPI_ShellGetKnownFolderPath ' + + 'WinAPI_ShellGetLocalizedName WinAPI_ShellGetPathFromIDList ' + + 'WinAPI_ShellGetSetFolderCustomSettings WinAPI_ShellGetSettings ' + + 'WinAPI_ShellGetSpecialFolderLocation ' + + 'WinAPI_ShellGetSpecialFolderPath WinAPI_ShellGetStockIconInfo ' + + 'WinAPI_ShellILCreateFromPath WinAPI_ShellNotifyIcon ' + + 'WinAPI_ShellNotifyIconGetRect WinAPI_ShellObjectProperties ' + + 'WinAPI_ShellOpenFolderAndSelectItems WinAPI_ShellOpenWithDlg ' + + 'WinAPI_ShellQueryRecycleBin ' + + 'WinAPI_ShellQueryUserNotificationState ' + + 'WinAPI_ShellRemoveLocalizedName WinAPI_ShellRestricted ' + + 'WinAPI_ShellSetKnownFolderPath WinAPI_ShellSetLocalizedName ' + + 'WinAPI_ShellSetSettings WinAPI_ShellStartNetConnectionDlg ' + + 'WinAPI_ShellUpdateImage WinAPI_ShellUserAuthenticationDlg ' + + 'WinAPI_ShellUserAuthenticationDlgEx WinAPI_ShortToWord ' + + 'WinAPI_ShowCaret WinAPI_ShowCursor WinAPI_ShowError ' + + 'WinAPI_ShowLastError WinAPI_ShowMsg WinAPI_ShowOwnedPopups ' + + 'WinAPI_ShowWindow WinAPI_ShutdownBlockReasonCreate ' + + 'WinAPI_ShutdownBlockReasonDestroy ' + + 'WinAPI_ShutdownBlockReasonQuery WinAPI_SizeOfResource ' + + 'WinAPI_StretchBlt WinAPI_StretchDIBits ' + + 'WinAPI_StrFormatByteSize WinAPI_StrFormatByteSizeEx ' + + 'WinAPI_StrFormatKBSize WinAPI_StrFromTimeInterval ' + + 'WinAPI_StringFromGUID WinAPI_StringLenA WinAPI_StringLenW ' + + 'WinAPI_StrLen WinAPI_StrokeAndFillPath WinAPI_StrokePath ' + + 'WinAPI_StructToArray WinAPI_SubLangId WinAPI_SubtractRect ' + + 'WinAPI_SwapDWord WinAPI_SwapQWord WinAPI_SwapWord ' + + 'WinAPI_SwitchColor WinAPI_SwitchDesktop ' + + 'WinAPI_SwitchToThisWindow WinAPI_SystemParametersInfo ' + + 'WinAPI_TabbedTextOut WinAPI_TerminateJobObject ' + + 'WinAPI_TerminateProcess WinAPI_TextOut WinAPI_TileWindows ' + + 'WinAPI_TrackMouseEvent WinAPI_TransparentBlt ' + + 'WinAPI_TwipsPerPixelX WinAPI_TwipsPerPixelY ' + + 'WinAPI_UnhookWindowsHookEx WinAPI_UnhookWinEvent ' + + 'WinAPI_UnionRect WinAPI_UnionStruct WinAPI_UniqueHardwareID ' + + 'WinAPI_UnloadKeyboardLayout WinAPI_UnlockFile ' + + 'WinAPI_UnmapViewOfFile WinAPI_UnregisterApplicationRestart ' + + 'WinAPI_UnregisterClass WinAPI_UnregisterHotKey ' + + 'WinAPI_UnregisterPowerSettingNotification ' + + 'WinAPI_UpdateLayeredWindow WinAPI_UpdateLayeredWindowEx ' + + 'WinAPI_UpdateLayeredWindowIndirect WinAPI_UpdateResource ' + + 'WinAPI_UpdateWindow WinAPI_UrlApplyScheme ' + + 'WinAPI_UrlCanonicalize WinAPI_UrlCombine WinAPI_UrlCompare ' + + 'WinAPI_UrlCreateFromPath WinAPI_UrlFixup WinAPI_UrlGetPart ' + + 'WinAPI_UrlHash WinAPI_UrlIs WinAPI_UserHandleGrantAccess ' + + 'WinAPI_ValidateRect WinAPI_ValidateRgn WinAPI_VerQueryRoot ' + + 'WinAPI_VerQueryValue WinAPI_VerQueryValueEx ' + + 'WinAPI_WaitForInputIdle WinAPI_WaitForMultipleObjects ' + + 'WinAPI_WaitForSingleObject WinAPI_WideCharToMultiByte ' + + 'WinAPI_WidenPath WinAPI_WindowFromDC WinAPI_WindowFromPoint ' + + 'WinAPI_WordToShort WinAPI_Wow64EnableWow64FsRedirection ' + + 'WinAPI_WriteConsole WinAPI_WriteFile ' + + 'WinAPI_WriteProcessMemory WinAPI_ZeroMemory ' + + 'WinNet_AddConnection WinNet_AddConnection2 ' + + 'WinNet_AddConnection3 WinNet_CancelConnection ' + + 'WinNet_CancelConnection2 WinNet_CloseEnum ' + + 'WinNet_ConnectionDialog WinNet_ConnectionDialog1 ' + + 'WinNet_DisconnectDialog WinNet_DisconnectDialog1 ' + + 'WinNet_EnumResource WinNet_GetConnection ' + + 'WinNet_GetConnectionPerformance WinNet_GetLastError ' + + 'WinNet_GetNetworkInformation WinNet_GetProviderName ' + + 'WinNet_GetResourceInformation WinNet_GetResourceParent ' + + 'WinNet_GetUniversalName WinNet_GetUser WinNet_OpenEnum ' + + 'WinNet_RestoreConnection WinNet_UseConnection Word_Create ' + + 'Word_DocAdd Word_DocAttach Word_DocClose Word_DocExport ' + + 'Word_DocFind Word_DocFindReplace Word_DocGet ' + + 'Word_DocLinkAdd Word_DocLinkGet Word_DocOpen ' + + 'Word_DocPictureAdd Word_DocPrint Word_DocRangeSet ' + + 'Word_DocSave Word_DocSaveAs Word_DocTableRead ' + + 'Word_DocTableWrite Word_Quit', + COMMENT = { + variants: [ + hljs.COMMENT(';', '$', { + relevance: 0 + }), + hljs.COMMENT('#cs', '#ce'), + hljs.COMMENT('#comments-start', '#comments-end') + ] + }, + VARIABLE = { + className: 'variable', + begin: '\\$[A-z0-9_]+' + }, + STRING = { + className: 'string', + variants: [{ + begin: /"/, + end: /"/, + contains: [{ + begin: /""/, + relevance: 0 + } + ] + }, { + begin: /'/, + end: /'/, + contains: [{ + begin: /''/, + relevance: 0 + } + ] + } + ] + }, + NUMBER = { + variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE] + }, + PREPROCESSOR = { + className: 'preprocessor', + begin: '#', + end: '$', + keywords: 'include include-once NoTrayIcon OnAutoItStartRegister RequireAdmin pragma ' + + 'Au3Stripper_Ignore_Funcs Au3Stripper_Ignore_Variables ' + + 'Au3Stripper_Off Au3Stripper_On Au3Stripper_Parameters ' + + 'AutoIt3Wrapper_Add_Constants AutoIt3Wrapper_Au3Check_Parameters ' + + 'AutoIt3Wrapper_Au3Check_Stop_OnWarning AutoIt3Wrapper_Aut2Exe ' + + 'AutoIt3Wrapper_AutoIt3 AutoIt3Wrapper_AutoIt3Dir ' + + 'AutoIt3Wrapper_Change2CUI AutoIt3Wrapper_Compile_Both ' + + 'AutoIt3Wrapper_Compression AutoIt3Wrapper_EndIf ' + + 'AutoIt3Wrapper_Icon AutoIt3Wrapper_If_Compile ' + + 'AutoIt3Wrapper_If_Run AutoIt3Wrapper_Jump_To_First_Error ' + + 'AutoIt3Wrapper_OutFile AutoIt3Wrapper_OutFile_Type ' + + 'AutoIt3Wrapper_OutFile_X64 AutoIt3Wrapper_PlugIn_Funcs ' + + 'AutoIt3Wrapper_Res_Comment Autoit3Wrapper_Res_Compatibility ' + + 'AutoIt3Wrapper_Res_Description AutoIt3Wrapper_Res_Field ' + + 'AutoIt3Wrapper_Res_File_Add AutoIt3Wrapper_Res_FileVersion ' + + 'AutoIt3Wrapper_Res_FileVersion_AutoIncrement ' + + 'AutoIt3Wrapper_Res_Icon_Add AutoIt3Wrapper_Res_Language ' + + 'AutoIt3Wrapper_Res_LegalCopyright ' + + 'AutoIt3Wrapper_Res_ProductVersion ' + + 'AutoIt3Wrapper_Res_requestedExecutionLevel ' + + 'AutoIt3Wrapper_Res_SaveSource AutoIt3Wrapper_Run_After ' + + 'AutoIt3Wrapper_Run_Au3Check AutoIt3Wrapper_Run_Au3Stripper ' + + 'AutoIt3Wrapper_Run_Before AutoIt3Wrapper_Run_Debug_Mode ' + + 'AutoIt3Wrapper_Run_SciTE_Minimized ' + + 'AutoIt3Wrapper_Run_SciTE_OutputPane_Minimized ' + + 'AutoIt3Wrapper_Run_Tidy AutoIt3Wrapper_ShowProgress ' + + 'AutoIt3Wrapper_Testing AutoIt3Wrapper_Tidy_Stop_OnError ' + + 'AutoIt3Wrapper_UPX_Parameters AutoIt3Wrapper_UseUPX ' + + 'AutoIt3Wrapper_UseX64 AutoIt3Wrapper_Version ' + + 'AutoIt3Wrapper_Versioning AutoIt3Wrapper_Versioning_Parameters ' + + 'Tidy_Off Tidy_On Tidy_Parameters EndRegion Region', + contains: [{ + begin: /\\\n/, + relevance: 0 + }, { + beginKeywords: 'include', + end: '$', + contains: [ + STRING, { + className: 'string', + variants: [{ + begin: '<', + end: '>' + }, { + begin: /"/, + end: /"/, + contains: [{ + begin: /""/, + relevance: 0 + } + ] + }, { + begin: /'/, + end: /'/, + contains: [{ + begin: /''/, + relevance: 0 + } + ] + } + ] + } + ] + }, + STRING, + COMMENT + ] + }, + CONSTANT = { + className: 'constant', + // begin: '@', + // end: '$', + // keywords: 'AppDataCommonDir AppDataDir AutoItExe AutoItPID AutoItVersion AutoItX64 COM_EventObj CommonFilesDir Compiled ComputerName ComSpec CPUArch CR CRLF DesktopCommonDir DesktopDepth DesktopDir DesktopHeight DesktopRefresh DesktopWidth DocumentsCommonDir error exitCode exitMethod extended FavoritesCommonDir FavoritesDir GUI_CtrlHandle GUI_CtrlId GUI_DragFile GUI_DragId GUI_DropId GUI_WinHandle HomeDrive HomePath HomeShare HotKeyPressed HOUR IPAddress1 IPAddress2 IPAddress3 IPAddress4 KBLayout LF LocalAppDataDir LogonDNSDomain LogonDomain LogonServer MDAY MIN MON MSEC MUILang MyDocumentsDir NumParams OSArch OSBuild OSLang OSServicePack OSType OSVersion ProgramFilesDir ProgramsCommonDir ProgramsDir ScriptDir ScriptFullPath ScriptLineNumber ScriptName SEC StartMenuCommonDir StartMenuDir StartupCommonDir StartupDir SW_DISABLE SW_ENABLE SW_HIDE SW_LOCK SW_MAXIMIZE SW_MINIMIZE SW_RESTORE SW_SHOW SW_SHOWDEFAULT SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_SHOWMINNOACTIVE SW_SHOWNA SW_SHOWNOACTIVATE SW_SHOWNORMAL SW_UNLOCK SystemDir TAB TempDir TRAY_ID TrayIconFlashing TrayIconVisible UserName UserProfileDir WDAY WindowsDir WorkingDir YDAY YEAR', + // relevance: 5 + begin: '@[A-z0-9_]+' + }, + FUNCTION = { + className: 'function', + beginKeywords: 'Func', + end: '$', + excludeEnd: true, + illegal: '\\$|\\[|%', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, { + className: 'params', + begin: '\\(', + end: '\\)', + contains: [ + VARIABLE, + STRING, + NUMBER + ] + } + ] + }; + + return { + case_insensitive: true, + keywords: { + keyword: KEYWORDS, + built_in: BUILT_IN, + literal: LITERAL + }, + contains: [ + COMMENT, + VARIABLE, + STRING, + NUMBER, + PREPROCESSOR, + CONSTANT, + FUNCTION + ] + } + }; +}, {} +], +50: [function(require, module, exports) { + module.exports = function(hljs) { + return { + case_insensitive: true, + lexemes: '\\.?' + hljs.IDENT_RE, + keywords: { + keyword: + /* mnemonic */ + 'adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs ' + + 'brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr ' + + 'clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor ' + + 'fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul ' + + 'muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs ' + + 'sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub ' + + 'subi swap tst wdr', + built_in: + /* general purpose registers */ + 'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 ' + + 'r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ' + + /* IO Registers (ATMega128) */ + 'ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h ' + + 'tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ' + + 'ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ' + + 'ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk ' + + 'tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ' + + 'ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr ' + + 'porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ' + + 'ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf', + preprocessor: + '.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list ' + + '.listmac .macro .nolist .org .set' + }, + contains: [ + hljs.C_BLOCK_COMMENT_MODE, + hljs.COMMENT( + ';', + '$', + { + relevance: 0 + }), + hljs.C_NUMBER_MODE, // 0x..., decimal, float + hljs.BINARY_NUMBER_MODE, // 0b... + { + className: 'number', + begin: '\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)' // $..., 0o... + }, + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: '\'', + end: '[^\\\\]\'', + illegal: '[^\\\\][^\']' + }, + { + className: 'label', + begin: '^[A-Za-z0-9_.$]+:' + }, + { + className: 'preprocessor', + begin: '#', + end: '$' + }, + { + // подстановка в «.macro» + className: 'localvars', + begin: '@[0-9]+' + } + ] + }; + }; +}, {} +], +51: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: 'false int abstract private char boolean static null if for true ' + + 'while long throw finally protected final return void enum else ' + + 'break new catch byte super case short default double public try this switch ' + + 'continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count ' + + 'order group by asc desc index hint like dispaly edit client server ttsbegin ' + + 'ttscommit str real date container anytype common div mod', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'preprocessor', + begin: '#', + end: '$' + }, + { + className: 'class', + beginKeywords: 'class interface', + end: '{', + excludeEnd: true, + illegal: ':', + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + } + ] + }; + }; +}, {} +], +52: [function(require, module, exports) { + module.exports = function(hljs) { + var VAR = { + className: 'variable', + variants: [ + { + begin: /\$[\w\d#@][\w\d_]*/ + }, + { + begin: /\$\{(.*?)}/ + } + ] + }; + var QUOTE_STRING = { + className: 'string', + begin: /"/, + end: /"/, + contains: [ + hljs.BACKSLASH_ESCAPE, + VAR, + { + className: 'variable', + begin: /\$\(/, + end: /\)/, + contains: [hljs.BACKSLASH_ESCAPE] + } + ] + }; + var APOS_STRING = { + className: 'string', + begin: /'/, + end: /'/ + }; + + return { + aliases: ['sh', 'zsh'], + lexemes: /-?[a-z\.]+/, + keywords: { + keyword: + 'if then else elif fi for while in do done case esac function', + literal: + 'true false', + built_in: + // Shell built-ins + // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html + 'break cd continue eval exec exit export getopts hash pwd readonly return shift test times ' + + 'trap umask unset ' + + // Bash built-ins + 'alias bind builtin caller command declare echo enable help let local logout mapfile printf ' + + 'read readarray source type typeset ulimit unalias ' + + // Shell modifiers + 'set shopt ' + + // Zsh built-ins + 'autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles ' + + 'compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate ' + + 'fc fg float functions getcap getln history integer jobs kill limit log noglob popd print ' + + 'pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit ' + + 'unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof ' + + 'zpty zregexparse zsocket zstyle ztcp', + operator: + '-ne -eq -lt -gt -f -d -e -s -l -a' // relevance booster + }, + contains: [ + { + className: 'shebang', + begin: /^#![^\n]+sh\s*$/, + relevance: 10 + }, + { + className: 'function', + begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, + returnBegin: true, + contains: [hljs.inherit(hljs.TITLE_MODE, { + begin: /\w[\w\d_]*/ + })], + relevance: 0 + }, + hljs.HASH_COMMENT_MODE, + hljs.NUMBER_MODE, + QUOTE_STRING, + APOS_STRING, + VAR + ] + }; + }; +}, {} +], +53: [function(require, module, exports) { + module.exports = function(hljs) { + var LITERAL = { + className: 'literal', + begin: '[\\+\\-]', + relevance: 0 + }; + return { + aliases: ['bf'], + contains: [ + hljs.COMMENT( + '[^\\[\\]\\.,\\+\\-<> \r\n]', + '[\\[\\]\\.,\\+\\-<> \r\n]', + { + returnEnd: true, + relevance: 0 + }), + { + className: 'title', + begin: '[\\[\\]]', + relevance: 0 + }, + { + className: 'string', + begin: '[\\.,]', + relevance: 0 + }, + { + // this mode works as the only relevance counter + begin: /\+\+|\-\-/, + returnBegin: true, + contains: [LITERAL] + }, + LITERAL + ] + }; + }; +}, {} +], +54: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = + 'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ' + + 'until while with var'; + var LITERALS = 'false true'; + var COMMENT_MODES = [ + hljs.C_LINE_COMMENT_MODE, + hljs.COMMENT( + /\{/, + /\}/, + { + relevance: 0 + }), + hljs.COMMENT( + /\(\*/, + /\*\)/, + { + relevance: 10 + }) + ]; + var STRING = { + className: 'string', + begin: /'/, + end: /'/, + contains: [{ + begin: /''/ + } + ] + }; + var CHAR_STRING = { + className: 'string', + begin: /(#\d+)+/ + }; + var DATE = { + className: 'date', + begin: '\\b\\d+(\\.\\d+)?(DT|D|T)', + relevance: 0 + }; + var DBL_QUOTED_VARIABLE = { + className: 'variable', + begin: '"', + end: '"' + }; + + var PROCEDURE = { + className: 'function', + beginKeywords: 'procedure', + end: /[:;]/, + keywords: 'procedure|10', + contains: [ + hljs.TITLE_MODE, + { + className: 'params', + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + contains: [STRING, CHAR_STRING] + } + ].concat(COMMENT_MODES) + }; + + var OBJECT = { + className: 'class', + begin: 'OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)', + returnBegin: true, + contains: [ + hljs.TITLE_MODE, + PROCEDURE + ] + }; + + return { + case_insensitive: true, + keywords: { + keyword: KEYWORDS, + literal: LITERALS + }, + contains: [ + STRING, CHAR_STRING, + DATE, DBL_QUOTED_VARIABLE, + hljs.NUMBER_MODE, + OBJECT, + PROCEDURE + ] + }; + }; +}, {} +], +55: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['capnp'], + keywords: { + keyword: + 'struct enum interface union group import using const annotation extends in of on as with from fixed', + built_in: + 'Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 ' + + 'Text Data AnyPointer AnyStruct Capability List', + literal: + 'true false' + }, + contains: [ + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE, + hljs.HASH_COMMENT_MODE, + { + className: 'shebang', + begin: /@0x[\w\d]{16};/, + illegal: /\n/ + }, + { + className: 'number', + begin: /@\d+\b/ + }, + { + className: 'class', + beginKeywords: 'struct enum', + end: /\{/, + illegal: /\n/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + starts: { + endsWithParent: true, + excludeEnd: true + } + // hack: eating everything after the first title + }) + ] + }, + { + className: 'class', + beginKeywords: 'interface', + end: /\{/, + illegal: /\n/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + starts: { + endsWithParent: true, + excludeEnd: true + } + // hack: eating everything after the first title + }) + ] + } + ] + }; + }; +}, {} +], +56: [function(require, module, exports) { + module.exports = function(hljs) { + // 2.3. Identifiers and keywords + var KEYWORDS = + 'assembly module package import alias class interface object given value ' + + 'assign void function new of extends satisfies abstracts in out return ' + + 'break continue throw assert dynamic if else switch case for while try ' + + 'catch finally then let this outer super is exists nonempty'; + // 7.4.1 Declaration Modifiers + var DECLARATION_MODIFIERS = + 'shared abstract formal default actual variable late native deprecated' + + 'final sealed annotation suppressWarnings small'; + // 7.4.2 Documentation + var DOCUMENTATION = + 'doc by license see throws tagged'; + var LANGUAGE_ANNOTATIONS = DECLARATION_MODIFIERS + ' ' + DOCUMENTATION; + var SUBST = { + className: 'subst', + excludeBegin: true, + excludeEnd: true, + begin: /``/, + end: /``/, + keywords: KEYWORDS, + relevance: 10 + }; + var EXPRESSIONS = [ + { + // verbatim string + className: 'string', + begin: '"""', + end: '"""', + relevance: 10 + }, + { + // string literal or template + className: 'string', + begin: '"', + end: '"', + contains: [SUBST] + }, + { + // character literal + className: 'string', + begin: "'", + end: "'" + }, + { + // numeric literal + className: 'number', + begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?', + relevance: 0 + } + ]; + SUBST.contains = EXPRESSIONS; + + return { + keywords: { + keyword: KEYWORDS, + annotation: LANGUAGE_ANNOTATIONS + }, + illegal: '\\$[^01]|#[^0-9a-fA-F]', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.COMMENT('/\\*', '\\*/', { + contains: ['self'] + }), + { + // compiler annotation + className: 'annotation', + begin: '@[a-z]\\w*(?:\\:\"[^\"]*\")?' + } + ].concat(EXPRESSIONS) + }; + }; +}, {} +], +57: [function(require, module, exports) { + module.exports = function(hljs) { + return { + contains: [ + { + className: 'prompt', + begin: /^([\w.-]+|\s*#_)=>/, + starts: { + end: /$/, + subLanguage: 'clojure' + } + } + ] + } + }; +}, {} +], +58: [function(require, module, exports) { + module.exports = function(hljs) { + var keywords = { + built_in: + // Clojure keywords + 'def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem ' + + 'quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? ' + + 'set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? ' + + 'class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? ' + + 'string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . ' + + 'inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last ' + + 'drop-while while intern condp case reduced cycle split-at split-with repeat replicate ' + + 'iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext ' + + 'nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends ' + + 'add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler ' + + 'set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter ' + + 'monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or ' + + 'when when-not when-let comp juxt partial sequence memoize constantly complement identity assert ' + + 'peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast ' + + 'sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import ' + + 'refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! ' + + 'assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger ' + + 'bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline ' + + 'flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking ' + + 'assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! ' + + 'reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! ' + + 'new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty ' + + 'hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list ' + + 'disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer ' + + 'chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate ' + + 'unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta ' + + 'lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize' + }; + + var SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&#\''; + var SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*'; + var SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?'; + + var SYMBOL = { + begin: SYMBOL_RE, + relevance: 0 + }; + var NUMBER = { + className: 'number', + begin: SIMPLE_NUMBER_RE, + relevance: 0 + }; + var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }); + var COMMENT = hljs.COMMENT( + ';', + '$', + { + relevance: 0 + }); + var LITERAL = { + className: 'literal', + begin: /\b(true|false|nil)\b/ + }; + var COLLECTION = { + className: 'collection', + begin: '[\\[\\{]', + end: '[\\]\\}]' + }; + var HINT = { + className: 'comment', + begin: '\\^' + SYMBOL_RE + }; + var HINT_COL = hljs.COMMENT('\\^\\{', '\\}'); + var KEY = { + className: 'attribute', + begin: '[:]' + SYMBOL_RE + }; + var LIST = { + className: 'list', + begin: '\\(', + end: '\\)' + }; + var BODY = { + endsWithParent: true, + relevance: 0 + }; + var NAME = { + keywords: keywords, + lexemes: SYMBOL_RE, + className: 'keyword', + begin: SYMBOL_RE, + starts: BODY + }; + var DEFAULT_CONTAINS = [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL, SYMBOL]; + + LIST.contains = [hljs.COMMENT('comment', ''), NAME, BODY]; + BODY.contains = DEFAULT_CONTAINS; + COLLECTION.contains = DEFAULT_CONTAINS; + + return { + aliases: ['clj'], + illegal: /\S/, + contains: [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL] + } + }; +}, {} +], +59: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['cmake.in'], + case_insensitive: true, + keywords: { + keyword: + 'add_custom_command add_custom_target add_definitions add_dependencies ' + + 'add_executable add_library add_subdirectory add_test aux_source_directory ' + + 'break build_command cmake_minimum_required cmake_policy configure_file ' + + 'create_test_sourcelist define_property else elseif enable_language enable_testing ' + + 'endforeach endfunction endif endmacro endwhile execute_process export find_file ' + + 'find_library find_package find_path find_program fltk_wrap_ui foreach function ' + + 'get_cmake_property get_directory_property get_filename_component get_property ' + + 'get_source_file_property get_target_property get_test_property if include ' + + 'include_directories include_external_msproject include_regular_expression install ' + + 'link_directories load_cache load_command macro mark_as_advanced message option ' + + 'output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return ' + + 'separate_arguments set set_directory_properties set_property ' + + 'set_source_files_properties set_target_properties set_tests_properties site_name ' + + 'source_group string target_link_libraries try_compile try_run unset variable_watch ' + + 'while build_name exec_program export_library_dependencies install_files ' + + 'install_programs install_targets link_libraries make_directory remove subdir_depends ' + + 'subdirs use_mangled_mesa utility_source variable_requires write_file ' + + 'qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or', + operator: + 'equal less greater strless strgreater strequal matches' + }, + contains: [ + { + className: 'envvar', + begin: '\\${', + end: '}' + }, + hljs.HASH_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE + ] + }; + }; +}, {} +], +60: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = { + keyword: + // JS keywords + 'in if for while finally new do return else break catch instanceof throw try this ' + + 'switch continue typeof delete debugger super ' + + // Coffee keywords + 'then unless until loop of by when and or is isnt not', + literal: + // JS literals + 'true false null undefined ' + + // Coffee literals + 'yes no on off', + built_in: + 'npm require console print module global window document' + }; + var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; + var SUBST = { + className: 'subst', + begin: /#\{/, + end: /}/, + keywords: KEYWORDS + }; + var EXPRESSIONS = [ + hljs.BINARY_NUMBER_MODE, + hljs.inherit(hljs.C_NUMBER_MODE, { + starts: { + end: '(\\s*/)?', + relevance: 0 + } + }), // a number tries to eat the following slash to prevent treating it as a regexp + { + className: 'string', + variants: [ + { + begin: /'''/, + end: /'''/, + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: /'/, + end: /'/, + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: /"""/, + end: /"""/, + contains: [hljs.BACKSLASH_ESCAPE, SUBST] + }, + { + begin: /"/, + end: /"/, + contains: [hljs.BACKSLASH_ESCAPE, SUBST] + } + ] + }, + { + className: 'regexp', + variants: [ + { + begin: '///', + end: '///', + contains: [SUBST, hljs.HASH_COMMENT_MODE] + }, + { + begin: '//[gim]*', + relevance: 0 + }, + { + // regex can't start with space to parse x / 2 / 3 as two divisions + // regex can't start with *, and it supports an "illegal" in the main mode + begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/ + } + ] + }, + { + className: 'property', + begin: '@' + JS_IDENT_RE + }, + { + begin: '`', + end: '`', + excludeBegin: true, + excludeEnd: true, + subLanguage: 'javascript' + } + ]; + SUBST.contains = EXPRESSIONS; + + var TITLE = hljs.inherit(hljs.TITLE_MODE, { + begin: JS_IDENT_RE + }); + var PARAMS_RE = '(\\(.*\\))?\\s*\\B[-=]>'; + var PARAMS = { + className: 'params', + begin: '\\([^\\(]', + returnBegin: true, + /* We need another contained nameless mode to not have every nested + pair of parens to be called "params" */ + contains: [{ + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + contains: ['self'].concat(EXPRESSIONS) + } + ] + }; + + return { + aliases: ['coffee', 'cson', 'iced'], + keywords: KEYWORDS, + illegal: /\/\*/, + contains: EXPRESSIONS.concat([ + hljs.COMMENT('###', '###'), + hljs.HASH_COMMENT_MODE, + { + className: 'function', + begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + PARAMS_RE, + end: '[-=]>', + returnBegin: true, + contains: [TITLE, PARAMS] + }, + { + // anonymous function start + begin: /[:\(,=]\s*/, + relevance: 0, + contains: [ + { + className: 'function', + begin: PARAMS_RE, + end: '[-=]>', + returnBegin: true, + contains: [PARAMS] + } + ] + }, + { + className: 'class', + beginKeywords: 'class', + end: '$', + illegal: /[:="\[\]]/, + contains: [ + { + beginKeywords: 'extends', + endsWithParent: true, + illegal: /[:="\[\]]/, + contains: [TITLE] + }, + TITLE + ] + }, + { + className: 'attribute', + begin: JS_IDENT_RE + ':', + end: ':', + returnBegin: true, + returnEnd: true, + relevance: 0 + } + ]) + }; + }; +}, {} +], +61: [function(require, module, exports) { + module.exports = function(hljs) { + var CPP_PRIMATIVE_TYPES = { + className: 'keyword', + begin: '\\b[a-z\\d_]*_t\\b' + }; + + var STRINGS = { + className: 'string', + variants: [ + hljs.inherit(hljs.QUOTE_STRING_MODE, { + begin: '((u8?|U)|L)?"' + }), + { + begin: '(u8?|U)?R"', + end: '"', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: '\'\\\\?.', + end: '\'', + illegal: '.' + } + ] + }; + + var NUMBERS = { + className: 'number', + variants: [ + { + begin: '\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)' + }, + { + begin: hljs.C_NUMBER_RE + } + ] + }; + + var PREPROCESSOR = { + className: 'preprocessor', + begin: '#', + end: '$', + keywords: 'if else elif endif define undef warning error line ' + + 'pragma ifdef ifndef', + contains: [ + { + begin: /\\\n/, + relevance: 0 + }, + { + beginKeywords: 'include', + end: '$', + contains: [ + STRINGS, + { + className: 'string', + begin: '<', + end: '>', + illegal: '\\n', + } + ] + }, + STRINGS, + NUMBERS, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }; + + var FUNCTION_TITLE = hljs.IDENT_RE + '\\s*\\('; + + var CPP_KEYWORDS = { + keyword: 'int float while private char catch export virtual operator sizeof ' + + 'dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace ' + + 'unsigned long volatile static protected bool template mutable if public friend ' + + 'do goto auto void enum else break extern using class asm case typeid ' + + 'short reinterpret_cast|10 default double register explicit signed typename try this ' + + 'switch continue inline delete alignof constexpr decltype ' + + 'noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary ' + + 'atomic_bool atomic_char atomic_schar ' + + 'atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong ' + + 'atomic_ullong', + built_in: 'std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream ' + + 'auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set ' + + 'unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos ' + + 'asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp ' + + 'fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper ' + + 'isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow ' + + 'printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp ' + + 'strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan ' + + 'vfprintf vprintf vsprintf', + literal: 'true false nullptr NULL' + }; + + return { + aliases: ['c', 'cc', 'h', 'c++', 'h++', 'hpp'], + keywords: CPP_KEYWORDS, + illegal: '</', + contains: [ + CPP_PRIMATIVE_TYPES, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + NUMBERS, + STRINGS, + PREPROCESSOR, + { + begin: '\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', + end: '>', + keywords: CPP_KEYWORDS, + contains: ['self', CPP_PRIMATIVE_TYPES] + }, + { + begin: hljs.IDENT_RE + '::', + keywords: CPP_KEYWORDS + }, + { + // Expression keywords prevent 'keyword Name(...) or else if(...)' from + // being recognized as a function definition + beginKeywords: 'new throw return else', + relevance: 0 + }, + { + className: 'function', + begin: '(' + hljs.IDENT_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE, + returnBegin: true, + end: /[{;=]/, + excludeEnd: true, + keywords: CPP_KEYWORDS, + illegal: /[^\w\s\*&]/, + contains: [ + { + begin: FUNCTION_TITLE, + returnBegin: true, + contains: [hljs.TITLE_MODE], + relevance: 0 + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + keywords: CPP_KEYWORDS, + relevance: 0, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + STRINGS, + NUMBERS + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + PREPROCESSOR + ] + } + ] + }; + }; +}, {} +], +62: [function(require, module, exports) { + module.exports = function(hljs) { + var NUM_SUFFIX = '(_[uif](8|16|32|64))?'; + var CRYSTAL_IDENT_RE = '[a-zA-Z_]\\w*[!?=]?'; + var CRYSTAL_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\][=?]?'; + var CRYSTAL_KEYWORDS = { + keyword: + 'abstract alias asm begin break case class def do else elsif end ensure enum extend for fun if ifdef ' + + 'include instance_sizeof is_a? lib macro module next of out pointerof private protected rescue responds_to? ' + + 'return require self sizeof struct super then type undef union unless until when while with yield ' + + '__DIR__ __FILE__ __LINE__', + literal: 'false nil true' + }; + var SUBST = { + className: 'subst', + begin: '#\\{', + end: '}', + keywords: CRYSTAL_KEYWORDS + }; + var EXPANSION = { + className: 'expansion', + variants: [ + { + begin: '\\{\\{', + end: '\\}\\}' + }, + { + begin: '\\{%', + end: '%\\}' + } + ], + keywords: CRYSTAL_KEYWORDS, + relevance: 10 + }; + var + STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [ + { + begin: /'/, + end: /'/ + }, + { + begin: /"/, + end: /"/ + }, + { + begin: /`/, + end: /`/ + }, + { + begin: '%w?\\(', + end: '\\)' + }, + { + begin: '%w?\\[', + end: '\\]' + }, + { + begin: '%w?{', + end: '}' + }, + { + begin: '%w?<', + end: '>' + }, + { + begin: '%w?/', + end: '/' + }, + { + begin: '%w?%', + end: '%' + }, + { + begin: '%w?-', + end: '-' + }, + { + begin: '%w?\\|', + end: '\\|' + }, + ], + relevance: 0, + }; + var CRYSTAL_DEFAULT_CONTAINS = [ + EXPANSION, + STRING, + hljs.HASH_COMMENT_MODE, + { + className: 'class', + beginKeywords: 'class module struct', end: '$|;', + illegal: /=/, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.inherit(hljs.TITLE_MODE, { + begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' + }), + { + className: 'inheritance', + begin: '<\\s*', + contains: [{ + className: 'parent', + begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE + } + ] + } + ] + }, + { + className: 'class', + beginKeywords: 'lib enum union', + end: '$|;', + illegal: /=/, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.inherit(hljs.TITLE_MODE, { + begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' + }), + ], + relevance: 10 + }, + { + className: 'function', + beginKeywords: 'def', end: /\B\b/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: CRYSTAL_METHOD_RE, + endsParent: true + }) + ] + }, + { + className: 'function', + beginKeywords: 'fun macro', + end: /\B\b/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: CRYSTAL_METHOD_RE, + endsParent: true + }) + ], + relevance: 5 + }, + { + className: 'constant', + begin: '(::)?(\\b[A-Z]\\w*(::)?)+', + relevance: 0 + }, + { + className: 'symbol', + begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:', + relevance: 0 + }, + { + className: 'symbol', + begin: ':', + contains: [STRING, { + begin: CRYSTAL_METHOD_RE + } + ], + relevance: 0 + }, + { + className: 'number', + variants: [ + { + begin: '\\b0b([01_]+)' + NUM_SUFFIX + }, + { + begin: '\\b0o([0-7_]+)' + NUM_SUFFIX + }, + { + begin: '\\b0x([A-Fa-f0-9_]+)' + NUM_SUFFIX + }, + { + begin: '\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)' + NUM_SUFFIX + } + ], + relevance: 0 + }, + { + className: 'variable', + begin: '(\\$\\W)|((\\$|\\@\\@?|%)(\\w+))' + }, + { + // regexp container + begin: '(' + hljs.RE_STARTERS_RE + ')\\s*', + contains: [ + hljs.HASH_COMMENT_MODE, + { + className: 'regexp', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [ + { + begin: '/', + end: '/[a-z]*' + }, + ] + } + ], + relevance: 0 + } + ]; + SUBST.contains = CRYSTAL_DEFAULT_CONTAINS; + EXPANSION.contains = CRYSTAL_DEFAULT_CONTAINS.slice(1); // without EXPANSION + + return { + aliases: ['cr'], + lexemes: CRYSTAL_IDENT_RE, + keywords: CRYSTAL_KEYWORDS, + contains: CRYSTAL_DEFAULT_CONTAINS + }; + }; +}, {} +], +63: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = + // Normal keywords. + 'abstract as base bool break byte case catch char checked const continue decimal dynamic ' + + 'default delegate do double else enum event explicit extern false finally fixed float ' + + 'for foreach goto if implicit in int interface internal is lock long null when ' + + 'object operator out override params private protected public readonly ref sbyte ' + + 'sealed short sizeof stackalloc static string struct switch this true try typeof ' + + 'uint ulong unchecked unsafe ushort using virtual volatile void while async ' + + 'protected public private internal ' + + // Contextual keywords. + 'ascending descending from get group into join let orderby partial select set value var ' + + 'where yield'; + var GENERIC_IDENT_RE = hljs.IDENT_RE + '(<' + hljs.IDENT_RE + '>)?'; + return { + aliases: ['csharp'], + keywords: KEYWORDS, + illegal: /::/, + contains: [ + hljs.COMMENT( + '///', + '$', + { + returnBegin: true, + contains: [ + { + className: 'xmlDocTag', + variants: [ + { + begin: '///', + relevance: 0 + }, + { + begin: '<!--|-->' + }, + { + begin: '</?', + end: '>' + } + ] + } + ] + }), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'preprocessor', + begin: '#', + end: '$', + keywords: 'if else elif endif define undef warning error line region endregion pragma checksum' + }, + { + className: 'string', + begin: '@"', + end: '"', + contains: [{ + begin: '""' + } + ] + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + beginKeywords: 'class interface', + end: /[{;=]/, + illegal: /[^\s:]/, + contains: [ + hljs.TITLE_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + { + beginKeywords: 'namespace', + end: /[{;=]/, + illegal: /[^\s:]/, + contains: [ + { + // Customization of hljs.TITLE_MODE that allows '.' + className: 'title', + begin: '[a-zA-Z](\\.?\\w)*', + relevance: 0 + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + { + // Expression keywords prevent 'keyword Name(...)' from being + // recognized as a function definition + beginKeywords: 'new return throw await', + relevance: 0 + }, + { + className: 'function', + begin: '(' + GENERIC_IDENT_RE + '\\s+)+' + hljs.IDENT_RE + '\\s*\\(', + returnBegin: true, + end: /[{;=]/, + excludeEnd: true, + keywords: KEYWORDS, + contains: [ + { + begin: hljs.IDENT_RE + '\\s*\\(', + returnBegin: true, + contains: [hljs.TITLE_MODE], + relevance: 0 + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS, + relevance: 0, + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + } + ] + }; + }; +}, {} +], +64: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*'; + var FUNCTION = { + className: 'function', + begin: IDENT_RE + '\\(', + returnBegin: true, + excludeEnd: true, + end: '\\(' + }; + var RULE = { + className: 'rule', + begin: /[A-Z\_\.\-]+\s*:/, + returnBegin: true, + end: ';', + endsWithParent: true, + contains: [ + { + className: 'attribute', + begin: /\S/, + end: ':', + excludeEnd: true, + starts: { + className: 'value', + endsWithParent: true, + excludeEnd: true, + contains: [ + FUNCTION, + hljs.CSS_NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'hexcolor', + begin: '#[0-9A-Fa-f]+' + }, + { + className: 'important', + begin: '!important' + } + ] + } + } + ] + }; + + return { + case_insensitive: true, + illegal: /[=\/|'\$]/, + contains: [ + hljs.C_BLOCK_COMMENT_MODE, + RULE, + { + className: 'id', + begin: /\#[A-Za-z0-9_-]+/ + }, + { + className: 'class', + begin: /\.[A-Za-z0-9_-]+/ + }, + { + className: 'attr_selector', + begin: /\[/, + end: /\]/, + illegal: '$' + }, + { + className: 'pseudo', + begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"']+/ + }, + { + className: 'at_rule', + begin: '@(font-face|page)', + lexemes: '[a-z-]+', + keywords: 'font-face page' + }, + { + className: 'at_rule', + begin: '@', + end: '[{;]', + // at_rule eating first "{" is a good thing + // because it doesn’t let it to be parsed as + // a rule set but instead drops parser into + // the default mode which is how it should be. + contains: [ + { + className: 'keyword', + begin: /\S+/ + }, + { + begin: /\s/, + endsWithParent: true, + excludeEnd: true, + relevance: 0, + contains: [ + FUNCTION, + hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE, + hljs.CSS_NUMBER_MODE + ] + } + ] + }, + { + className: 'tag', + begin: IDENT_RE, + relevance: 0 + }, + { + className: 'rules', + begin: '{', + end: '}', + illegal: /\S/, + contains: [ + hljs.C_BLOCK_COMMENT_MODE, + RULE, + ] + } + ] + }; + }; +}, {} +], +65: [function(require, module, exports) { + module.exports = /** + * Known issues: + * + * - invalid hex string literals will be recognized as a double quoted strings + * but 'x' at the beginning of string will not be matched + * + * - delimited string literals are not checked for matching end delimiter + * (not possible to do with js regexp) + * + * - content of token string is colored as a string (i.e. no keyword coloring inside a token string) + * also, content of token string is not validated to contain only valid D tokens + * + * - special token sequence rule is not strictly following D grammar (anything following #line + * up to the end of line is matched as special token sequence) + */ + + function(hljs) { + /** + * Language keywords + * + * @type {Object} + */ + var D_KEYWORDS = { + keyword: + 'abstract alias align asm assert auto body break byte case cast catch class ' + + 'const continue debug default delete deprecated do else enum export extern final ' + + 'finally for foreach foreach_reverse|10 goto if immutable import in inout int ' + + 'interface invariant is lazy macro mixin module new nothrow out override package ' + + 'pragma private protected public pure ref return scope shared static struct ' + + 'super switch synchronized template this throw try typedef typeid typeof union ' + + 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 ' + + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__', + built_in: + 'bool cdouble cent cfloat char creal dchar delegate double dstring float function ' + + 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar ' + + 'wstring', + literal: + 'false null true' + }; + + /** + * Number literal regexps + * + * @type {String} + */ + var decimal_integer_re = '(0|[1-9][\\d_]*)', + decimal_integer_nosus_re = '(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)', + binary_integer_re = '0[bB][01_]+', + hexadecimal_digits_re = '([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)', + hexadecimal_integer_re = '0[xX]' + hexadecimal_digits_re, + decimal_exponent_re = '([eE][+-]?' + decimal_integer_nosus_re + ')', + decimal_float_re = '(' + decimal_integer_nosus_re + '(\\.\\d*|' + decimal_exponent_re + ')|' + + '\\d+\\.' + decimal_integer_nosus_re + decimal_integer_nosus_re + '|' + + '\\.' + decimal_integer_re + decimal_exponent_re + '?' + + ')', + hexadecimal_float_re = '(0[xX](' + + hexadecimal_digits_re + '\\.' + hexadecimal_digits_re + '|' + + '\\.?' + hexadecimal_digits_re + + ')[pP][+-]?' + decimal_integer_nosus_re + ')', + integer_re = '(' + + decimal_integer_re + '|' + + binary_integer_re + '|' + + hexadecimal_integer_re + + ')', + float_re = '(' + + hexadecimal_float_re + '|' + + decimal_float_re + + ')'; + + /** + * Escape sequence supported in D string and character literals + * + * @type {String} + */ + var escape_sequence_re = '\\\\(' + + '[\'"\\?\\\\abfnrtv]|' + // common escapes + 'u[\\dA-Fa-f]{4}|' + // four hex digit unicode codepoint + '[0-7]{1,3}|' + // one to three octal digit ascii char code + 'x[\\dA-Fa-f]{2}|' + // two hex digit ascii char code + 'U[\\dA-Fa-f]{8}' + // eight hex digit unicode codepoint + ')|' + + '&[a-zA-Z\\d]{2,};'; // named character entity + + /** + * D integer number literals + * + * @type {Object} + */ + var D_INTEGER_MODE = { + className: 'number', + begin: '\\b' + integer_re + '(L|u|U|Lu|LU|uL|UL)?', + relevance: 0 + }; + + /** + * [D_FLOAT_MODE description] + * @type {Object} + */ + var D_FLOAT_MODE = { + className: 'number', + begin: '\\b(' + + float_re + '([fF]|L|i|[fF]i|Li)?|' + + integer_re + '(i|[fF]i|Li)' + + ')', + relevance: 0 + }; + + /** + * D character literal + * + * @type {Object} + */ + var D_CHARACTER_MODE = { + className: 'string', + begin: '\'(' + escape_sequence_re + '|.)', + end: '\'', + illegal: '.' + }; + + /** + * D string escape sequence + * + * @type {Object} + */ + var D_ESCAPE_SEQUENCE = { + begin: escape_sequence_re, + relevance: 0 + }; + + /** + * D double quoted string literal + * + * @type {Object} + */ + var D_STRING_MODE = { + className: 'string', + begin: '"', + contains: [D_ESCAPE_SEQUENCE], + end: '"[cwd]?' + }; + + /** + * D wysiwyg and delimited string literals + * + * @type {Object} + */ + var D_WYSIWYG_DELIMITED_STRING_MODE = { + className: 'string', + begin: '[rq]"', + end: '"[cwd]?', + relevance: 5 + }; + + /** + * D alternate wysiwyg string literal + * + * @type {Object} + */ + var D_ALTERNATE_WYSIWYG_STRING_MODE = { + className: 'string', + begin: '`', + end: '`[cwd]?' + }; + + /** + * D hexadecimal string literal + * + * @type {Object} + */ + var D_HEX_STRING_MODE = { + className: 'string', + begin: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?', + relevance: 10 + }; + + /** + * D delimited string literal + * + * @type {Object} + */ + var D_TOKEN_STRING_MODE = { + className: 'string', + begin: 'q"\\{', + end: '\\}"' + }; + + /** + * Hashbang support + * + * @type {Object} + */ + var D_HASHBANG_MODE = { + className: 'shebang', + begin: '^#!', + end: '$', + relevance: 5 + }; + + /** + * D special token sequence + * + * @type {Object} + */ + var D_SPECIAL_TOKEN_SEQUENCE_MODE = { + className: 'preprocessor', + begin: '#(line)', + end: '$', + relevance: 5 + }; + + /** + * D attributes + * + * @type {Object} + */ + var D_ATTRIBUTE_MODE = { + className: 'keyword', + begin: '@[a-zA-Z_][a-zA-Z_\\d]*' + }; + + /** + * D nesting comment + * + * @type {Object} + */ + var D_NESTING_COMMENT_MODE = hljs.COMMENT( + '\\/\\+', + '\\+\\/', + { + contains: ['self'], + relevance: 10 + }); + + return { + lexemes: hljs.UNDERSCORE_IDENT_RE, + keywords: D_KEYWORDS, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + D_NESTING_COMMENT_MODE, + D_HEX_STRING_MODE, + D_STRING_MODE, + D_WYSIWYG_DELIMITED_STRING_MODE, + D_ALTERNATE_WYSIWYG_STRING_MODE, + D_TOKEN_STRING_MODE, + D_FLOAT_MODE, + D_INTEGER_MODE, + D_CHARACTER_MODE, + D_HASHBANG_MODE, + D_SPECIAL_TOKEN_SEQUENCE_MODE, + D_ATTRIBUTE_MODE + ] + }; + }; +}, {} +], +66: [function(require, module, exports) { + module.exports = function (hljs) { + var SUBST = { + className: 'subst', + begin: '\\$\\{', + end: '}', + keywords: 'true false null this is new super' + }; + + var STRING = { + className: 'string', + variants: [ + { + begin: 'r\'\'\'', + end: '\'\'\'' + }, + { + begin: 'r"""', + end: '"""' + }, + { + begin: 'r\'', + end: '\'', + illegal: '\\n' + }, + { + begin: 'r"', + end: '"', + illegal: '\\n' + }, + { + begin: '\'\'\'', + end: '\'\'\'', + contains: [hljs.BACKSLASH_ESCAPE, SUBST] + }, + { + begin: '"""', + end: '"""', + contains: [hljs.BACKSLASH_ESCAPE, SUBST] + }, + { + begin: '\'', + end: '\'', + illegal: '\\n', + contains: [hljs.BACKSLASH_ESCAPE, SUBST] + }, + { + begin: '"', + end: '"', + illegal: '\\n', + contains: [hljs.BACKSLASH_ESCAPE, SUBST] + } + ] + }; + SUBST.contains = [ + hljs.C_NUMBER_MODE, STRING + ]; + + var KEYWORDS = { + keyword: 'assert break case catch class const continue default do else enum extends false final finally for if ' + + 'in is new null rethrow return super switch this throw true try var void while with', + literal: 'abstract as dynamic export external factory get implements import library operator part set static typedef', + built_in: + // dart:core + 'print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set ' + + 'Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num ' + + // dart:html + 'document window querySelector querySelectorAll Element ElementList' + }; + + return { + keywords: KEYWORDS, + contains: [ + STRING, + hljs.COMMENT( + '/\\*\\*', + '\\*/', + { + subLanguage: 'markdown' + }), + hljs.COMMENT( + '///', + '$', + { + subLanguage: 'markdown' + }), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'class', + beginKeywords: 'class interface', + end: '{', + excludeEnd: true, + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + }, + hljs.C_NUMBER_MODE, + { + className: 'annotation', + begin: '@[A-Za-z]+' + }, + { + begin: '=>' // No markup, just a relevance booster + } + ] + } + }; +}, {} +], +67: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = + 'exports register file shl array record property for mod while set ally label uses raise not ' + + 'stored class safecall var interface or private static exit index inherited to else stdcall ' + + 'override shr asm far resourcestring finalization packed virtual out and protected library do ' + + 'xorwrite goto near function end div overload object unit begin string on inline repeat until ' + + 'destructor write message program with read initialization except default nil if case cdecl in ' + + 'downto threadvar of try pascal const external constructor type public then implementation ' + + 'finally published procedure'; + var COMMENT_MODES = [ + hljs.C_LINE_COMMENT_MODE, + hljs.COMMENT( + /\{/, + /\}/, + { + relevance: 0 + }), + hljs.COMMENT( + /\(\*/, + /\*\)/, + { + relevance: 10 + }) + ]; + var STRING = { + className: 'string', + begin: /'/, + end: /'/, + contains: [{ + begin: /''/ + } + ] + }; + var CHAR_STRING = { + className: 'string', + begin: /(#\d+)+/ + }; + var CLASS = { + begin: hljs.IDENT_RE + '\\s*=\\s*class\\s*\\(', + returnBegin: true, + contains: [ + hljs.TITLE_MODE + ] + }; + var FUNCTION = { + className: 'function', + beginKeywords: 'function constructor destructor procedure', + end: /[:;]/, + keywords: 'function constructor|10 destructor|10 procedure|10', + contains: [ + hljs.TITLE_MODE, + { + className: 'params', + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + contains: [STRING, CHAR_STRING] + } + ].concat(COMMENT_MODES) + }; + return { + case_insensitive: true, + keywords: KEYWORDS, + illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/, + contains: [ + STRING, CHAR_STRING, + hljs.NUMBER_MODE, + CLASS, + FUNCTION + ].concat(COMMENT_MODES) + }; + }; +}, {} +], +68: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['patch'], + contains: [ + { + className: 'chunk', + relevance: 10, + variants: [ + { + begin: /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/ + }, + { + begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/ + }, + { + begin: /^\-\-\- +\d+,\d+ +\-\-\-\-$/ + } + ] + }, + { + className: 'header', + variants: [ + { + begin: /Index: /, + end: /$/ + }, + { + begin: /=====/, + end: /=====$/ + }, + { + begin: /^\-\-\-/, + end: /$/ + }, + { + begin: /^\*{3} /, + end: /$/ + }, + { + begin: /^\+\+\+/, + end: /$/ + }, + { + begin: /\*{5}/, + end: /\*{5}$/ + } + ] + }, + { + className: 'addition', + begin: '^\\+', + end: '$' + }, + { + className: 'deletion', + begin: '^\\-', + end: '$' + }, + { + className: 'change', + begin: '^\\!', + end: '$' + } + ] + }; + }; +}, {} +], +69: [function(require, module, exports) { + module.exports = function(hljs) { + var FILTER = { + className: 'filter', + begin: /\|[A-Za-z]+:?/, + keywords: + 'truncatewords removetags linebreaksbr yesno get_digit timesince random striptags ' + + 'filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands ' + + 'title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode ' + + 'timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort ' + + 'dictsortreversed default_if_none pluralize lower join center default ' + + 'truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first ' + + 'escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize ' + + 'localtime utc timezone', + contains: [ + { + className: 'argument', + begin: /"/, + end: /"/ + }, + { + className: 'argument', + begin: /'/, + end: /'/ + } + ] + }; + + return { + aliases: ['jinja'], + case_insensitive: true, + subLanguage: 'xml', + contains: [ + hljs.COMMENT(/\{%\s*comment\s*%}/, /\{%\s*endcomment\s*%}/), + hljs.COMMENT(/\{#/, /#}/), + { + className: 'template_tag', + begin: /\{%/, + end: /%}/, + keywords: + 'comment endcomment load templatetag ifchanged endifchanged if endif firstof for ' + + 'endfor in ifnotequal endifnotequal widthratio extends include spaceless ' + + 'endspaceless regroup by as ifequal endifequal ssi now with cycle url filter ' + + 'endfilter debug block endblock else autoescape endautoescape csrf_token empty elif ' + + 'endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix ' + + 'plural get_current_language language get_available_languages ' + + 'get_current_language_bidi get_language_info get_language_info_list localize ' + + 'endlocalize localtime endlocaltime timezone endtimezone get_current_timezone ' + + 'verbatim', + contains: [FILTER] + }, + { + className: 'variable', + begin: /\{\{/, + end: /}}/, + contains: [FILTER] + } + ] + }; + }; +}, {} +], +70: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['bind', 'zone'], + keywords: { + keyword: + 'IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX ' + + 'LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT' + }, + contains: [ + hljs.COMMENT(';', '$'), + { + className: 'operator', + beginKeywords: '$TTL $GENERATE $INCLUDE $ORIGIN' + }, + // IPv6 + { + className: 'number', + begin: '((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))' + }, + // IPv4 + { + className: 'number', + begin: '((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])' + } + ] + }; + }; +}, {} +], +71: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['docker'], + case_insensitive: true, + keywords: { + built_ins: 'from maintainer cmd expose add copy entrypoint volume user workdir onbuild run env' + }, + contains: [ + hljs.HASH_COMMENT_MODE, + { + keywords : { + built_in: 'run cmd entrypoint volume add copy workdir onbuild' + }, + begin: /^ *(onbuild +)?(run|cmd|entrypoint|volume|add|copy|workdir) +/, + starts: { + end: /[^\\]\n/, + subLanguage: 'bash' + } + }, + { + keywords: { + built_in: 'from maintainer expose env user onbuild' + }, + begin: /^ *(onbuild +)?(from|maintainer|expose|env|user|onbuild) +/, + end: /[^\\]\n/, + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE, + hljs.HASH_COMMENT_MODE + ] + } + ] + } + }; +}, {} +], +72: [function(require, module, exports) { + module.exports = function(hljs) { + var COMMENT = hljs.COMMENT( + /@?rem\b/, /$/, + { + relevance: 10 + }); + var LABEL = { + className: 'label', + begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)', + relevance: 0 + }; + return { + aliases: ['bat', 'cmd'], + case_insensitive: true, + keywords: { + flow: 'if else goto for in do call exit not exist errorlevel defined', + operator: 'equ neq lss leq gtr geq', + keyword: 'shift cd dir echo setlocal endlocal set pause copy', + stream: 'prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux', + winutils: 'ping net ipconfig taskkill xcopy ren del', + built_in: 'append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color ' + + 'comp compact convert date dir diskcomp diskcopy doskey erase fs ' + + 'find findstr format ftype graftabl help keyb label md mkdir mode more move path ' + + 'pause print popd pushd promt rd recover rem rename replace restore rmdir shift' + + 'sort start subst time title tree type ver verify vol' + }, + contains: [ + { + className: 'envvar', + begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/ + }, + { + className: 'function', + begin: LABEL.begin, + end: 'goto:eof', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: '([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*' + }), + COMMENT + ] + }, + { + className: 'number', + begin: '\\b\\d+', + relevance: 0 + }, + COMMENT + ] + }; + }; +}, {} +], +73: [function(require, module, exports) { + module.exports = function(hljs) { + var EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep'; + return { + aliases: ['dst'], + case_insensitive: true, + subLanguage: 'xml', + contains: [ + { + className: 'expression', + begin: '{', + end: '}', + relevance: 0, + contains: [ + { + className: 'begin-block', + begin: '\#[a-zA-Z\-\ \.]+', + keywords: EXPRESSION_KEYWORDS + }, + { + className: 'string', + begin: '"', + end: '"' + }, + { + className: 'end-block', + begin: '\\\/[a-zA-Z\-\ \.]+', + keywords: EXPRESSION_KEYWORDS + }, + { + className: 'variable', + begin: '[a-zA-Z\-\.]+', + keywords: EXPRESSION_KEYWORDS, + relevance: 0 + } + ] + } + ] + }; + }; +}, {} +], +74: [function(require, module, exports) { + module.exports = function(hljs) { + var ELIXIR_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?'; + var ELIXIR_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; + var ELIXIR_KEYWORDS = + 'and false then defined module in return redo retry end for true self when ' + + 'next until do begin unless nil break not case cond alias while ensure or ' + + 'include use alias fn quote'; + var SUBST = { + className: 'subst', + begin: '#\\{', + end: '}', + lexemes: ELIXIR_IDENT_RE, + keywords: ELIXIR_KEYWORDS + }; + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [ + { + begin: /'/, + end: /'/ + }, + { + begin: /"/, + end: /"/ + } + ] + }; + var FUNCTION = { + className: 'function', + beginKeywords: 'def defp defmacro', + end: /\B\b/, + // the mode is ended by the title + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: ELIXIR_IDENT_RE, + endsParent: true + }) + ] + }; + var CLASS = hljs.inherit(FUNCTION, { + className: 'class', + beginKeywords: 'defmodule defrecord', + end: /\bdo\b|$|;/ + }); + var ELIXIR_DEFAULT_CONTAINS = [ + STRING, + hljs.HASH_COMMENT_MODE, + CLASS, + FUNCTION, + { + className: 'constant', + begin: '(\\b[A-Z_]\\w*(.)?)+', + relevance: 0 + }, + { + className: 'symbol', + begin: ':', + contains: [STRING, { + begin: ELIXIR_METHOD_RE + } + ], + relevance: 0 + }, + { + className: 'symbol', + begin: ELIXIR_IDENT_RE + ':', + relevance: 0 + }, + { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }, + { + className: 'variable', + begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' + }, + { + begin: '->' + }, + { + // regexp container + begin: '(' + hljs.RE_STARTERS_RE + ')\\s*', + contains: [ + hljs.HASH_COMMENT_MODE, + { + className: 'regexp', + illegal: '\\n', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [ + { + begin: '/', + end: '/[a-z]*' + }, + { + begin: '%r\\[', + end: '\\][a-z]*' + } + ] + } + ], + relevance: 0 + } + ]; + SUBST.contains = ELIXIR_DEFAULT_CONTAINS; + + return { + lexemes: ELIXIR_IDENT_RE, + keywords: ELIXIR_KEYWORDS, + contains: ELIXIR_DEFAULT_CONTAINS + }; + }; +}, {} +], +75: [function(require, module, exports) { + module.exports = function(hljs) { + var COMMENT_MODES = [ + hljs.COMMENT('--', '$'), + hljs.COMMENT( + '{-', + '-}', + { + contains: ['self'] + }) + ]; + + var CONSTRUCTOR = { + className: 'type', + begin: '\\b[A-Z][\\w\']*', + // TODO: other constructors (build-in, infix). + relevance: 0 + }; + + var LIST = { + className: 'container', + begin: '\\(', + end: '\\)', + illegal: '"', + contains: [ + { + className: 'type', + begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?' + } + ].concat(COMMENT_MODES) + }; + + var RECORD = { + className: 'container', + begin: '{', + end: '}', + contains: LIST.contains + }; + + return { + keywords: + 'let in if then else case of where module import exposing ' + + 'type alias as infix infixl infixr port', + contains: [ + // Top-level constructions. + + { + className: 'module', + begin: '\\bmodule\\b', + end: 'where', + keywords: 'module where', + contains: [LIST].concat(COMMENT_MODES), + illegal: '\\W\\.|;' + }, + { + className: 'import', + begin: '\\bimport\\b', + end: '$', + keywords: 'import|0 as exposing', + contains: [LIST].concat(COMMENT_MODES), + illegal: '\\W\\.|;' + }, + { + className: 'typedef', + begin: '\\btype\\b', + end: '$', + keywords: 'type alias', + contains: [CONSTRUCTOR, LIST, RECORD].concat(COMMENT_MODES) + }, + { + className: 'infix', + beginKeywords: 'infix infixl infixr', + end: '$', + contains: [hljs.C_NUMBER_MODE].concat(COMMENT_MODES) + }, + { + className: 'foreign', + begin: '\\bport\\b', + end: '$', + keywords: 'port', + contains: COMMENT_MODES + }, + // Literals and names. + + // TODO: characters. + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + CONSTRUCTOR, + hljs.inherit(hljs.TITLE_MODE, { + begin: '^[_a-z][\\w\']*' + }), + { + begin: '->|<-' + } + // No markup, relevance booster + ].concat(COMMENT_MODES) + }; + }; +}, {} +], +76: [function(require, module, exports) { + module.exports = function(hljs) { + return { + subLanguage: 'xml', + contains: [ + hljs.COMMENT('<%#', '%>'), + { + begin: '<%[%=-]?', + end: '[%-]?%>', + subLanguage: 'ruby', + excludeBegin: true, + excludeEnd: true + } + ] + }; + }; +}, {} +], +77: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + special_functions: + 'spawn spawn_link self', + reserved: + 'after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if ' + + 'let not of or orelse|10 query receive rem try when xor' + }, + contains: [ + { + className: 'prompt', + begin: '^[0-9]+> ', + relevance: 10 + }, + hljs.COMMENT('%', '$'), + { + className: 'number', + begin: '\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)', + relevance: 0 + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'constant', + begin: '\\?(::)?([A-Z]\\w*(::)?)+' + }, + { + className: 'arrow', + begin: '->' + }, + { + className: 'ok', + begin: 'ok' + }, + { + className: 'exclamation_mark', + begin: '!' + }, + { + className: 'function_or_atom', + begin: '(\\b[a-z\'][a-zA-Z0-9_\']*:[a-z\'][a-zA-Z0-9_\']*)|(\\b[a-z\'][a-zA-Z0-9_\']*)', + relevance: 0 + }, + { + className: 'variable', + begin: '[A-Z][a-zA-Z0-9_\']*', + relevance: 0 + } + ] + }; + }; +}, {} +], +78: [function(require, module, exports) { + module.exports = function(hljs) { + var BASIC_ATOM_RE = '[a-z\'][a-zA-Z0-9_\']*'; + var FUNCTION_NAME_RE = '(' + BASIC_ATOM_RE + ':' + BASIC_ATOM_RE + '|' + BASIC_ATOM_RE + ')'; + var ERLANG_RESERVED = { + keyword: + 'after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if ' + + 'let not of orelse|10 query receive rem try when xor', + literal: + 'false true' + }; + + var COMMENT = hljs.COMMENT('%', '$'); + var NUMBER = { + className: 'number', + begin: '\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)', + relevance: 0 + }; + var NAMED_FUN = { + begin: 'fun\\s+' + BASIC_ATOM_RE + '/\\d+' + }; + var FUNCTION_CALL = { + begin: FUNCTION_NAME_RE + '\\(', + end: '\\)', + returnBegin: true, + relevance: 0, + contains: [ + { + className: 'function_name', + begin: FUNCTION_NAME_RE, + relevance: 0 + }, + { + begin: '\\(', + end: '\\)', + endsWithParent: true, + returnEnd: true, + relevance: 0 + // "contains" defined later + } + ] + }; + var TUPLE = { + className: 'tuple', + begin: '{', + end: '}', + relevance: 0 + // "contains" defined later + }; + var VAR1 = { + className: 'variable', + begin: '\\b_([A-Z][A-Za-z0-9_]*)?', + relevance: 0 + }; + var VAR2 = { + className: 'variable', + begin: '[A-Z][a-zA-Z0-9_]*', + relevance: 0 + }; + var RECORD_ACCESS = { + begin: '#' + hljs.UNDERSCORE_IDENT_RE, + relevance: 0, + returnBegin: true, + contains: [ + { + className: 'record_name', + begin: '#' + hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + }, + { + begin: '{', + end: '}', + relevance: 0 + // "contains" defined later + } + ] + }; + + var BLOCK_STATEMENTS = { + beginKeywords: 'fun receive if try case', + end: 'end', + keywords: ERLANG_RESERVED + }; + BLOCK_STATEMENTS.contains = [ + COMMENT, + NAMED_FUN, + hljs.inherit(hljs.APOS_STRING_MODE, { + className: '' + }), + BLOCK_STATEMENTS, + FUNCTION_CALL, + hljs.QUOTE_STRING_MODE, + NUMBER, + TUPLE, + VAR1, VAR2, + RECORD_ACCESS + ]; + + var BASIC_MODES = [ + COMMENT, + NAMED_FUN, + BLOCK_STATEMENTS, + FUNCTION_CALL, + hljs.QUOTE_STRING_MODE, + NUMBER, + TUPLE, + VAR1, VAR2, + RECORD_ACCESS + ]; + FUNCTION_CALL.contains[1].contains = BASIC_MODES; + TUPLE.contains = BASIC_MODES; + RECORD_ACCESS.contains[1].contains = BASIC_MODES; + + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)', + contains: BASIC_MODES + }; + return { + aliases: ['erl'], + keywords: ERLANG_RESERVED, + illegal: '(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))', + contains: [ + { + className: 'function', + begin: '^' + BASIC_ATOM_RE + '\\s*\\(', + end: '->', + returnBegin: true, + illegal: '\\(|#|//|/\\*|\\\\|:|;', + contains: [ + PARAMS, + hljs.inherit(hljs.TITLE_MODE, { + begin: BASIC_ATOM_RE + }) + ], + starts: { + end: ';|\\.', + keywords: ERLANG_RESERVED, + contains: BASIC_MODES + } + }, + COMMENT, + { + className: 'pp', + begin: '^-', + end: '\\.', + relevance: 0, + excludeEnd: true, + returnBegin: true, + lexemes: '-' + hljs.IDENT_RE, + keywords: + '-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn ' + + '-import -include -include_lib -compile -define -else -endif -file -behaviour ' + + '-behavior -spec', + contains: [PARAMS] + }, + NUMBER, + hljs.QUOTE_STRING_MODE, + RECORD_ACCESS, + VAR1, VAR2, + TUPLE, + { + begin: /\.$/ + } + // relevance booster + ] + }; + }; +}, {} +], +79: [function(require, module, exports) { + module.exports = function(hljs) { + return { + contains: [ + { + begin: /[^\u2401\u0001]+/, + end: /[\u2401\u0001]/, + excludeEnd: true, + returnBegin: true, + returnEnd: false, + contains: [ + { + begin: /([^\u2401\u0001=]+)/, + end: /=([^\u2401\u0001=]+)/, + returnEnd: true, + returnBegin: false, + className: 'attribute' + }, + { + begin: /=/, + end: /([\u2401\u0001])/, + excludeEnd: true, + excludeBegin: true, + className: 'string' + } + ] + } + ], + case_insensitive: true + }; + }; +}, {} +], +80: [function(require, module, exports) { + module.exports = function(hljs) { + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)' + }; + + var F_KEYWORDS = { + constant: '.False. .True.', + type: 'integer real character complex logical dimension allocatable|10 parameter ' + + 'external implicit|10 none double precision assign intent optional pointer ' + + 'target in out common equivalence data', + keyword: 'kind do while private call intrinsic where elsewhere ' + + 'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' + + 'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' + + 'goto save else use module select case ' + + 'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' + + 'continue format pause cycle exit ' + + 'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' + + 'synchronous nopass non_overridable pass protected volatile abstract extends import ' + + 'non_intrinsic value deferred generic final enumerator class associate bind enum ' + + 'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' + + 'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' + + 'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' + + 'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' + + 'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' + + 'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' + + 'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' + + 'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure', + built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' + + 'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' + + 'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' + + 'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' + + 'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' + + 'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' + + 'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' + + 'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' + + 'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' + + 'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' + + 'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' + + 'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' + + 'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' + + 'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of' + + 'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' + + 'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' + + 'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' + + 'num_images parity popcnt poppar shifta shiftl shiftr this_image' + }; + return { + case_insensitive: true, + aliases: ['f90', 'f95'], + keywords: F_KEYWORDS, + contains: [ + hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'string', + relevance: 0 + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + className: 'string', + relevance: 0 + }), + { + className: 'function', + beginKeywords: 'subroutine function program', + illegal: '[${=\\n]', + contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS] + }, + hljs.COMMENT('!', '$', { + relevance: 0 + }), + { + className: 'number', + begin: '(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?', + relevance: 0 + } + ] + }; + }; +}, {} +], +81: [function(require, module, exports) { + module.exports = function(hljs) { + var TYPEPARAM = { + begin: '<', + end: '>', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: /'[a-zA-Z0-9_]+/ + }) + ] + }; + + return { + aliases: ['fs'], + keywords: + 'abstract and as assert base begin class default delegate do done ' + + 'downcast downto elif else end exception extern false finally for ' + + 'fun function global if in inherit inline interface internal lazy let ' + + 'match member module mutable namespace new null of open or ' + + 'override private public rec return sig static struct then to ' + + 'true try type upcast use val void when while with yield', + contains: [ + { + // monad builder keywords (matches before non-bang kws) + className: 'keyword', + begin: /\b(yield|return|let|do)!/ + }, + { + className: 'string', + begin: '@"', + end: '"', + contains: [{ + begin: '""' + } + ] + }, + { + className: 'string', + begin: '"""', + end: '"""' + }, + hljs.COMMENT('\\(\\*', '\\*\\)'), + { + className: 'class', + beginKeywords: 'type', + end: '\\(|=|$', + excludeEnd: true, + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + TYPEPARAM + ] + }, + { + className: 'annotation', + begin: '\\[<', + end: '>\\]', + relevance: 10 + }, + { + className: 'attribute', + begin: '\\B(\'[A-Za-z])\\b', + contains: [hljs.BACKSLASH_ESCAPE] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +82: [function(require, module, exports) { + module.exports = function (hljs) { + var KEYWORDS = + 'abort acronym acronyms alias all and assign binary card diag display else1 eps eq equation equations file files ' + + 'for1 free ge gt if inf integer le loop lt maximizing minimizing model models na ne negative no not option ' + + 'options or ord parameter parameters positive prod putpage puttl repeat sameas scalar scalars semicont semiint ' + + 'set1 sets smax smin solve sos1 sos2 sum system table then until using variable variables while1 xor yes'; + + return { + aliases: ['gms'], + case_insensitive: true, + keywords: KEYWORDS, + contains: [ + { + className: 'section', + beginKeywords: 'sets parameters variables equations', + end: ';', + contains: [ + { + begin: '/', + end: '/', + contains: [hljs.NUMBER_MODE] + } + ] + }, + { + className: 'string', + begin: '\\*{3}', + end: '\\*{3}' + }, + hljs.NUMBER_MODE, + { + className: 'number', + begin: '\\$[a-zA-Z0-9]+' + } + ] + }; + }; +}, {} +], +83: [function(require, module, exports) { + module.exports = function(hljs) { + var GCODE_IDENT_RE = '[A-Z_][A-Z0-9_.]*'; + var GCODE_CLOSE_RE = '\\%'; + var GCODE_KEYWORDS = { + literal: + '', + built_in: + '', + keyword: + 'IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT ' + + 'EQ LT GT NE GE LE OR XOR' + }; + var GCODE_START = { + className: 'preprocessor', + begin: '([O])([0-9]+)' + }; + var GCODE_CODE = [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.COMMENT(/\(/, /\)/), + hljs.inherit(hljs.C_NUMBER_MODE, { + begin: '([-+]?([0-9]*\\.?[0-9]+\\.?))|' + hljs.C_NUMBER_RE + }), + hljs.inherit(hljs.APOS_STRING_MODE, { + illegal: null + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + { + className: 'keyword', + begin: '([G])([0-9]+\\.?[0-9]?)' + }, + { + className: 'title', + begin: '([M])([0-9]+\\.?[0-9]?)' + }, + { + className: 'title', + begin: '(VC|VS|#)', + end: '(\\d+)' + }, + { + className: 'title', + begin: '(VZOFX|VZOFY|VZOFZ)' + }, + { + className: 'built_in', + begin: '(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)', + end: '([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])' + }, + { + className: 'label', + variants: [ + { + begin: 'N', + end: '\\d+', + illegal: '\\W' + } + ] + } + ]; + + return { + aliases: ['nc'], + // Some implementations (CNC controls) of G-code are interoperable with uppercase and lowercase letters seamlessly. + // However, most prefer all uppercase and uppercase is customary. + case_insensitive: true, + lexemes: GCODE_IDENT_RE, + keywords: GCODE_KEYWORDS, + contains: [ + { + className: 'preprocessor', + begin: GCODE_CLOSE_RE + }, + GCODE_START + ].concat(GCODE_CODE) + }; + }; +}, {} +], +84: [function(require, module, exports) { + module.exports = function (hljs) { + return { + aliases: ['feature'], + keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When', + contains: [ + { + className: 'keyword', + begin: '\\*' + }, + hljs.COMMENT('@[^@\r\n\t ]+', '$'), + { + begin: '\\|', + end: '\\|\\w*$', + contains: [ + { + className: 'string', + begin: '[^|]+' + } + ] + }, + { + className: 'variable', + begin: '<', + end: '>' + }, + hljs.HASH_COMMENT_MODE, + { + className: 'string', + begin: '"""', + end: '"""' + }, + hljs.QUOTE_STRING_MODE + ] + }; + }; +}, {} +], +85: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: + 'atomic_uint attribute bool break bvec2 bvec3 bvec4 case centroid coherent const continue default ' + + 'discard dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 ' + + 'dmat4x4 do double dvec2 dvec3 dvec4 else flat float for highp if iimage1D iimage1DArray ' + + 'iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube ' + + 'iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect ' + + 'image3D imageBuffer imageCube imageCubeArray in inout int invariant isampler1D isampler1DArray ' + + 'isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer ' + + 'isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 layout lowp mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 ' + + 'mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 mediump noperspective out patch precision readonly restrict ' + + 'return sample sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray ' + + 'sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow ' + + 'sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow smooth ' + + 'struct subroutine switch uimage1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray ' + + 'uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint uniform usampler1D usampler1DArray ' + + 'usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D usamplerBuffer ' + + 'usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 varying vec2 vec3 vec4 void volatile while writeonly', + built_in: + 'gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial ' + + 'gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color ' + + 'gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord ' + + 'gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor ' + + 'gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial ' + + 'gl_FrontSecondaryColor gl_InstanceID gl_InvocationID gl_Layer gl_LightModel ' + + 'gl_LightSource gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize ' + + 'gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers ' + + 'gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs ' + + 'gl_MaxCombinedTextureImageUnits gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers ' + + 'gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents ' + + 'gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers ' + + 'gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents ' + + 'gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits ' + + 'gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents ' + + 'gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset ' + + 'gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms ' + + 'gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits ' + + 'gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents ' + + 'gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters ' + + 'gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents ' + + 'gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents ' + + 'gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits ' + + 'gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors ' + + 'gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs ' + + 'gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexTextureImageUnits ' + + 'gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset' + + 'gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose ' + + 'gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse ' + + 'gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose ' + + 'gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 ' + + 'gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix ' + + 'gl_NormalScale gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn ' + + 'gl_PerVertex gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn ' + + 'gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose ' + + 'gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition ' + + 'gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor ' + + 'gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID ' + + 'gl_ViewportIndex gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive ' + + 'abs acos acosh all any asin asinh atan atanh atomicCounter atomicCounterDecrement ' + + 'atomicCounterIncrement barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ' + + 'ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward ' + + 'findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan ' + + 'greaterThanEqual imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange ' + + 'imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageStore imulExtended ' + + 'intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt ' + + 'isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier ' + + 'min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 ' + + 'packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract ' + + 'round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj ' + + 'shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture ' + + 'texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj ' + + 'texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod ' + + 'textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod ' + + 'textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod ' + + 'textureProjLodOffset textureProjOffset textureQueryLod textureSize transpose trunc uaddCarry ' + + 'uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 ' + + 'unpackUnorm2x16 unpackUnorm4x8 usubBorrow gl_TextureMatrix gl_TextureMatrixInverse', + literal: 'true false' + }, + illegal: '"', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_NUMBER_MODE, + { + className: 'preprocessor', + begin: '#', + end: '$' + } + ] + }; + }; +}, {} +], +86: [function(require, module, exports) { + module.exports = function(hljs) { + var GO_KEYWORDS = { + keyword: + 'break default func interface select case map struct chan else goto package switch ' + + 'const fallthrough if range type continue for import return var go defer', + constant: + 'true false iota nil', + typename: + 'bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ' + + 'uint16 uint32 uint64 int uint uintptr rune', + built_in: + 'append cap close complex copy imag len make new panic print println real recover delete' + }; + return { + aliases: ["golang"], + keywords: GO_KEYWORDS, + illegal: '</', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: '\'', + end: '[^\\\\]\'' + }, + { + className: 'string', + begin: '`', + end: '`' + }, + { + className: 'number', + begin: hljs.C_NUMBER_RE + '[dflsi]?', + relevance: 0 + }, + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +87: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: + 'println readln print import module function local return let var ' + + 'while for foreach times in case when match with break continue ' + + 'augment augmentation each find filter reduce ' + + 'if then else otherwise try catch finally raise throw orIfNull', + typename: + 'DynamicObject|10 DynamicVariable struct Observable map set vector list array', + literal: + 'true false null' + }, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'annotation', + begin: '@[A-Za-z]+' + } + ] + } + }; +}, {} +], +88: [function(require, module, exports) { + module.exports = function(hljs) { + return { + case_insensitive: true, + keywords: { + keyword: + 'task project allprojects subprojects artifacts buildscript configurations ' + + 'dependencies repositories sourceSets description delete from into include ' + + 'exclude source classpath destinationDir includes options sourceCompatibility ' + + 'targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant ' + + 'def abstract break case catch continue default do else extends final finally ' + + 'for if implements instanceof native new private protected public return static ' + + 'switch synchronized throw throws transient try volatile while strictfp package ' + + 'import false null super this true antlrtask checkstyle codenarc copy boolean ' + + 'byte char class double float int interface long short void compile runTime ' + + 'file fileTree abs any append asList asWritable call collect compareTo count ' + + 'div dump each eachByte eachFile eachLine every find findAll flatten getAt ' + + 'getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods ' + + 'isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter ' + + 'newReader newWriter next plus pop power previous print println push putAt read ' + + 'readBytes readLines reverse reverseEach round size sort splitEachLine step subMap ' + + 'times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader ' + + 'withStream withWriter withWriterAppend write writeLine' + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE, + hljs.REGEXP_MODE + ] + } + }; +}, {} +], +89: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + typename: 'byte short char int long boolean float double void', + literal : 'true false null', + keyword: + // groovy specific keywords + 'def as in assert trait ' + + // common keywords with Java + 'super this abstract static volatile transient public private protected synchronized final ' + + 'class interface enum if else for while switch case break default continue ' + + 'throw throws try catch finally implements extends new import package return instanceof' + }, + + contains: [ + hljs.COMMENT( + '/\\*\\*', + '\\*/', + { + relevance : 0, + contains : [{ + className : 'doctag', + begin : '@[A-Za-z]+' + } + ] + }), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'string', + begin: '"""', + end: '"""' + }, + { + className: 'string', + begin: "'''", + end: "'''" + }, + { + className: 'string', + begin: "\\$/", + end: "/\\$", + relevance: 10 + }, + hljs.APOS_STRING_MODE, + { + className: 'regexp', + begin: /~?\/[^\/\n]+\//, + contains: [ + hljs.BACKSLASH_ESCAPE + ] + }, + hljs.QUOTE_STRING_MODE, + { + className: 'shebang', + begin: "^#!/usr/bin/env", + end: '$', + illegal: '\n' + }, + hljs.BINARY_NUMBER_MODE, + { + className: 'class', + beginKeywords: 'class interface trait enum', + end: '{', + illegal: ':', + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE, + ] + }, + hljs.C_NUMBER_MODE, + { + className: 'annotation', begin: '@[A-Za-z]+' + }, + { + // highlight map keys and named parameters as strings + className: 'string', begin: /[^\?]{0}[A-Za-z0-9_$]+ *:/ + }, + { + // catch middle element of the ternary operator + // to avoid highlight it as a label, named parameter, or map key + begin: /\?/, end: /\:/ + }, + { + // highlight labeled statements + className: 'label', begin: '^\\s*[A-Za-z0-9_$]+:', + relevance: 0 + }, + ], + illegal: /#/ + } + }; +}, {} +], +90: [function(require, module, exports) { + module.exports = // TODO support filter tags like :javascript, support inline HTML + function(hljs) { + return { + case_insensitive: true, + contains: [ + { + className: 'doctype', + begin: '^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$', + relevance: 10 + }, + // FIXME these comments should be allowed to span indented lines + hljs.COMMENT( + '^\\s*(!=#|=#|-#|/).*$', + false, + { + relevance: 0 + }), + { + begin: '^\\s*(-|=|!=)(?!#)', + starts: { + end: '\\n', + subLanguage: 'ruby' + } + }, + { + className: 'tag', + begin: '^\\s*%', + contains: [ + { + className: 'title', + begin: '\\w+' + }, + { + className: 'value', + begin: '[#\\.][\\w-]+' + }, + { + begin: '{\\s*', + end: '\\s*}', + excludeEnd: true, + contains: [ + { + //className: 'attribute', + begin: ':\\w+\\s*=>', + end: ',\\s+', + returnBegin: true, + endsWithParent: true, + contains: [ + { + className: 'symbol', + begin: ':\\w+' + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + begin: '\\w+', + relevance: 0 + } + ] + } + ] + }, + { + begin: '\\(\\s*', + end: '\\s*\\)', + excludeEnd: true, + contains: [ + { + //className: 'attribute', + begin: '\\w+\\s*=', + end: '\\s+', + returnBegin: true, + endsWithParent: true, + contains: [ + { + className: 'attribute', + begin: '\\w+', + relevance: 0 + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + begin: '\\w+', + relevance: 0 + } + ] + } + ] + } + ] + }, + { + className: 'bullet', + begin: '^\\s*[=~]\\s*', + relevance: 0 + }, + { + begin: '#{', + starts: { + end: '}', + subLanguage: 'ruby' + } + } + ] + }; + }; +}, {} +], +91: [function(require, module, exports) { + module.exports = function(hljs) { + var EXPRESSION_KEYWORDS = 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield'; + return { + aliases: ['hbs', 'html.hbs', 'html.handlebars'], + case_insensitive: true, + subLanguage: 'xml', + contains: [ + { + className: 'expression', + begin: '{{', + end: '}}', + contains: [ + { + className: 'begin-block', + begin: '\#[a-zA-Z\-\ \.]+', + keywords: EXPRESSION_KEYWORDS + }, + { + className: 'string', + begin: '"', + end: '"' + }, + { + className: 'end-block', + begin: '\\\/[a-zA-Z\-\ \.]+', + keywords: EXPRESSION_KEYWORDS + }, + { + className: 'variable', + begin: '[a-zA-Z\-\.]+', + keywords: EXPRESSION_KEYWORDS + } + ] + } + ] + }; + }; +}, {} +], +92: [function(require, module, exports) { + module.exports = function(hljs) { + var COMMENT_MODES = [ + hljs.COMMENT('--', '$'), + hljs.COMMENT( + '{-', + '-}', + { + contains: ['self'] + }) + ]; + + var PRAGMA = { + className: 'pragma', + begin: '{-#', + end: '#-}' + }; + + var PREPROCESSOR = { + className: 'preprocessor', + begin: '^#', + end: '$' + }; + + var CONSTRUCTOR = { + className: 'type', + begin: '\\b[A-Z][\\w\']*', + // TODO: other constructors (build-in, infix). + relevance: 0 + }; + + var LIST = { + className: 'container', + begin: '\\(', + end: '\\)', + illegal: '"', + contains: [ + PRAGMA, + PREPROCESSOR, + { + className: 'type', + begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?' + }, + hljs.inherit(hljs.TITLE_MODE, { + begin: '[_a-z][\\w\']*' + }) + ].concat(COMMENT_MODES) + }; + + var RECORD = { + className: 'container', + begin: '{', + end: '}', + contains: LIST.contains + }; + + return { + aliases: ['hs'], + keywords: + 'let in if then else case of where do module import hiding ' + + 'qualified type data newtype deriving class instance as default ' + + 'infix infixl infixr foreign export ccall stdcall cplusplus ' + + 'jvm dotnet safe unsafe family forall mdo proc rec', + contains: [ + // Top-level constructions. + + { + className: 'module', + begin: '\\bmodule\\b', + end: 'where', + keywords: 'module where', + contains: [LIST].concat(COMMENT_MODES), + illegal: '\\W\\.|;' + }, + { + className: 'import', + begin: '\\bimport\\b', + end: '$', + keywords: 'import|0 qualified as hiding', + contains: [LIST].concat(COMMENT_MODES), + illegal: '\\W\\.|;' + }, + { + className: 'class', + begin: '^(\\s*)?(class|instance)\\b', + end: 'where', + keywords: 'class family instance where', + contains: [CONSTRUCTOR, LIST].concat(COMMENT_MODES) + }, + { + className: 'typedef', + begin: '\\b(data|(new)?type)\\b', + end: '$', + keywords: 'data family type newtype deriving', + contains: [PRAGMA, CONSTRUCTOR, LIST, RECORD].concat(COMMENT_MODES) + }, + { + className: 'default', + beginKeywords: 'default', + end: '$', + contains: [CONSTRUCTOR, LIST].concat(COMMENT_MODES) + }, + { + className: 'infix', + beginKeywords: 'infix infixl infixr', + end: '$', + contains: [hljs.C_NUMBER_MODE].concat(COMMENT_MODES) + }, + { + className: 'foreign', + begin: '\\bforeign\\b', + end: '$', + keywords: 'foreign import export ccall stdcall cplusplus jvm ' + + 'dotnet safe unsafe', + contains: [CONSTRUCTOR, hljs.QUOTE_STRING_MODE].concat(COMMENT_MODES) + }, + { + className: 'shebang', + begin: '#!\\/usr\\/bin\\/env\ runhaskell', + end: '$' + }, + // "Whitespaces". + + PRAGMA, + PREPROCESSOR, + // Literals and names. + + // TODO: characters. + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + CONSTRUCTOR, + hljs.inherit(hljs.TITLE_MODE, { + begin: '^[_a-z][\\w\']*' + }), + { + begin: '->|<-' + } + // No markup, relevance booster + ].concat(COMMENT_MODES) + }; + }; +}, {} +], +93: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*'; + var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)'; + + return { + aliases: ['hx'], + keywords: { + keyword: 'break callback case cast catch class continue default do dynamic else enum extends extern ' + + 'for function here if implements import in inline interface never new override package private ' + + 'public return static super switch this throw trace try typedef untyped using var while', + literal: 'true false null' + }, + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_NUMBER_MODE, + { + className: 'class', + beginKeywords: 'class interface', + end: '{', + excludeEnd: true, + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.TITLE_MODE + ] + }, + { + className: 'preprocessor', + begin: '#', + end: '$', + keywords: 'if else elseif end error' + }, + { + className: 'function', + beginKeywords: 'function', + end: '[{;]', + excludeEnd: true, + illegal: '\\S', + contains: [ + hljs.TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + { + className: 'type', + begin: ':', + end: IDENT_FUNC_RETURN_TYPE_RE, + relevance: 10 + } + ] + } + ] + }; + }; +}, {} +], +94: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['https'], + illegal: '\\S', + contains: [ + { + className: 'status', + begin: '^HTTP/[0-9\\.]+', + end: '$', + contains: [{ + className: 'number', + begin: '\\b\\d{3}\\b' + } + ] + }, + { + className: 'request', + begin: '^[A-Z]+ (.*?) HTTP/[0-9\\.]+$', + returnBegin: true, + end: '$', + contains: [ + { + className: 'string', + begin: ' ', + end: ' ', + excludeBegin: true, + excludeEnd: true + } + ] + }, + { + className: 'attribute', + begin: '^\\w', + end: ': ', + excludeEnd: true, + illegal: '\\n|\\s|=', + starts: { + className: 'string', + end: '$' + } + }, + { + begin: '\\n\\n', + starts: { + subLanguage: [], + endsWithParent: true + } + } + ] + }; + }; +}, {} +], +95: [function(require, module, exports) { + module.exports = function(hljs) { + var START_BRACKET = '\\['; + var END_BRACKET = '\\]'; + return { + aliases: ['i7'], + case_insensitive: true, + keywords: { + // Some keywords more or less unique to I7, for relevance. + keyword: + // kind: + 'thing room person man woman animal container ' + + 'supporter backdrop door ' + + // characteristic: + 'scenery open closed locked inside gender ' + + // verb: + 'is are say understand ' + + // misc keyword: + 'kind of rule' + }, + contains: [ + { + className: 'string', + begin: '"', + end: '"', + relevance: 0, + contains: [ + { + className: 'subst', + begin: START_BRACKET, + end: END_BRACKET + } + ] + }, + { + className: 'title', + begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/, + end: '$' + }, + { + // Rule definition + // This is here for relevance. + begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/, + end: ':', + contains: [ + { + //Rule name + begin: '\\b\\(This', + end: '\\)' + } + ] + }, + { + className: 'comment', + begin: START_BRACKET, + end: END_BRACKET, + contains: ['self'] + } + ] + }; + }; +}, {} +], +96: [function(require, module, exports) { + module.exports = function(hljs) { + var STRING = { + className: "string", + contains: [hljs.BACKSLASH_ESCAPE], + variants: [ + { + begin: "'''", + end: "'''", + relevance: 10 + }, { + begin: '"""', + end: '"""', + relevance: 10 + }, { + begin: '"', + end: '"' + }, { + begin: "'", + end: "'" + } + ] + }; + return { + aliases: ['toml'], + case_insensitive: true, + illegal: /\S/, + contains: [ + hljs.COMMENT(';', '$'), + hljs.HASH_COMMENT_MODE, + { + className: 'title', + begin: /^\s*\[+/, + end: /\]+/ + }, + { + className: 'setting', + begin: /^[a-z0-9\[\]_-]+\s*=\s*/, + end: '$', + contains: [ + { + className: 'value', + endsWithParent: true, + keywords: 'on off true false yes no', + contains: [ + { + className: 'variable', + variants: [ + { + begin: /\$[\w\d"][\w\d_]*/ + }, + { + begin: /\$\{(.*?)}/ + } + ] + }, + STRING, + { + className: 'number', + begin: /([\+\-]+)?[\d]+_[\d_]+/ + }, + hljs.NUMBER_MODE + ], + relevance: 0 + } + ] + } + ] + }; + }; +}, {} +], +97: [function(require, module, exports) { + module.exports = function(hljs) { + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)' + }; + + var F_KEYWORDS = { + constant: '.False. .True.', + type: 'integer real character complex logical dimension allocatable|10 parameter ' + + 'external implicit|10 none double precision assign intent optional pointer ' + + 'target in out common equivalence data', + keyword: 'kind do while private call intrinsic where elsewhere ' + + 'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' + + 'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' + + 'goto save else use module select case ' + + 'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' + + 'continue format pause cycle exit ' + + 'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' + + 'synchronous nopass non_overridable pass protected volatile abstract extends import ' + + 'non_intrinsic value deferred generic final enumerator class associate bind enum ' + + 'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' + + 'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' + + 'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' + + 'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' + + 'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' + + 'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' + + 'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' + + 'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure ' + + // IRPF90 special keywords + 'begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch ' + + 'soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read', + built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' + + 'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' + + 'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' + + 'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' + + 'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' + + 'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' + + 'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' + + 'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' + + 'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' + + 'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' + + 'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' + + 'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' + + 'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' + + 'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of' + + 'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' + + 'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' + + 'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' + + 'num_images parity popcnt poppar shifta shiftl shiftr this_image ' + + // IRPF90 special built_ins + 'IRP_ALIGN irp_here' + }; + return { + case_insensitive: true, + keywords: F_KEYWORDS, + contains: [ + hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'string', + relevance: 0 + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + className: 'string', + relevance: 0 + }), + { + className: 'function', + beginKeywords: 'subroutine function program', + illegal: '[${=\\n]', + contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS] + }, + hljs.COMMENT('!', '$', { + relevance: 0 + }), + hljs.COMMENT('begin_doc', 'end_doc', { + relevance: 10 + }), + { + className: 'number', + begin: '(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?', + relevance: 0 + } + ] + }; + }; +}, {} +], +98: [function(require, module, exports) { + module.exports = function(hljs) { + var GENERIC_IDENT_RE = hljs.UNDERSCORE_IDENT_RE + '(<' + hljs.UNDERSCORE_IDENT_RE + '>)?'; + var KEYWORDS = + 'false synchronized int abstract float private char boolean static null if const ' + + 'for true while long strictfp finally protected import native final void ' + + 'enum else break transient catch instanceof byte super volatile case assert short ' + + 'package default double public try this switch continue throws protected public private'; + + // https://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html + var JAVA_NUMBER_RE = '\\b' + + '(' + + '0[bB]([01]+[01_]+[01]+|[01]+)' + // 0b... + '|' + + '0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)' + // 0x... + '|' + + '(' + + '([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?' + + '|' + + '\\.([\\d]+[\\d_]+[\\d]+|[\\d]+)' + + ')' + + '([eE][-+]?\\d+)?' + // octal, decimal, float + ')' + + '[lLfF]?'; + var JAVA_NUMBER_MODE = { + className: 'number', + begin: JAVA_NUMBER_RE, + relevance: 0 + }; + + return { + aliases: ['jsp'], + keywords: KEYWORDS, + illegal: /<\/|#/, + contains: [ + hljs.COMMENT( + '/\\*\\*', + '\\*/', + { + relevance : 0, + contains : [{ + className : 'doctag', + begin : '@[A-Za-z]+' + } + ] + }), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'class', + beginKeywords: 'class interface', + end: /[{;=]/, + excludeEnd: true, + keywords: 'class interface', + illegal: /[:"\[\]]/, + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + // Expression keywords prevent 'keyword Name(...)' from being + // recognized as a function definition + beginKeywords: 'new throw return else', + relevance: 0 + }, + { + className: 'function', + begin: '(' + GENERIC_IDENT_RE + '\\s+)+' + hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', + returnBegin: true, + end: /[{;=]/, + excludeEnd: true, + keywords: KEYWORDS, + contains: [ + { + begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', + returnBegin: true, + relevance: 0, + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + relevance: 0, + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + JAVA_NUMBER_MODE, + { + className: 'annotation', + begin: '@[A-Za-z]+' + } + ] + }; + }; +}, {} +], +99: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['js'], + keywords: { + keyword: + 'in of if for while finally var new function do return void else break catch ' + + 'instanceof with throw case default try this switch continue typeof delete ' + + 'let yield const export super debugger as async await', + literal: + 'true false null undefined NaN Infinity', + built_in: + 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' + + 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' + + 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' + + 'TypeError URIError Number Math Date String RegExp Array Float32Array ' + + 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' + + 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' + + 'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' + + 'Promise' + }, + contains: [ + { + className: 'pi', + relevance: 10, + begin: /^\s*['"]use (strict|asm)['"]/ + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + // template string + className: 'string', + begin: '`', + end: '`', + contains: [ + hljs.BACKSLASH_ESCAPE, + { + className: 'subst', + begin: '\\$\\{', + end: '\\}' + } + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'number', + variants: [ + { + begin: '\\b(0[bB][01]+)' + }, + { + begin: '\\b(0[oO][0-7]+)' + }, + { + begin: hljs.C_NUMBER_RE + } + ], + relevance: 0 + }, + { + // "value" container + begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.REGEXP_MODE, + { + // E4X / JSX + begin: /</, + end: />\s*[);\]]/, + relevance: 0, + subLanguage: 'xml' + } + ], + relevance: 0 + }, + { + className: 'function', + beginKeywords: 'function', + end: /\{/, + excludeEnd: true, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: /[A-Za-z$_][0-9A-Za-z$_]*/ + }), + { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + } + ], + illegal: /\[|%/ + }, + { + begin: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` + }, + { + begin: '\\.' + hljs.IDENT_RE, + relevance: 0 // hack: prevents detection of keywords after dots + }, + // ECMAScript 6 modules import + { + beginKeywords: 'import', + end: '[;$]', + keywords: 'import from as', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }, + { + // ES6 class + className: 'class', + beginKeywords: 'class', + end: /[{;=]/, + excludeEnd: true, + illegal: /[:"\[\]]/, + contains: [ + { + beginKeywords: 'extends' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + } + ], + illegal: /#/ + }; + }; +}, {} +], +100: [function(require, module, exports) { + module.exports = function(hljs) { + var LITERALS = { + literal: 'true false null' + }; + var TYPES = [ + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE + ]; + var VALUE_CONTAINER = { + className: 'value', + end: ',', + endsWithParent: true, + excludeEnd: true, + contains: TYPES, + keywords: LITERALS + }; + var OBJECT = { + begin: '{', + end: '}', + contains: [ + { + className: 'attribute', + begin: '\\s*"', + end: '"\\s*:\\s*', + excludeBegin: true, + excludeEnd: true, + contains: [hljs.BACKSLASH_ESCAPE], + illegal: '\\n', + starts: VALUE_CONTAINER + } + ], + illegal: '\\S' + }; + var ARRAY = { + begin: '\\[', + end: '\\]', + contains: [hljs.inherit(VALUE_CONTAINER, { + className: null + })], + // inherit is also a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents + illegal: '\\S' + }; + TYPES.splice(TYPES.length, 0, OBJECT, ARRAY); + return { + contains: TYPES, + keywords: LITERALS, + illegal: '\\S' + }; + }; +}, {} +], +101: [function(require, module, exports) { + module.exports = function(hljs) { + // Since there are numerous special names in Julia, it is too much trouble + // to maintain them by hand. Hence these names (i.e. keywords, literals and + // built-ins) are automatically generated from Julia (v0.3.0) itself through + // following scripts for each. + + var KEYWORDS = { + // # keyword generator + // println("\"in\",") + // for kw in Base.REPLCompletions.complete_keyword("") + // println("\"$kw\",") + // end + keyword: + 'in abstract baremodule begin bitstype break catch ccall const continue do else elseif end export ' + + 'finally for function global if immutable import importall let local macro module quote return try type ' + + 'typealias using while', + + // # literal generator + // println("\"true\",\n\"false\"") + // for name in Base.REPLCompletions.completions("", 0)[1] + // try + // s = symbol(name) + // v = eval(s) + // if !isa(v, Function) && + // !isa(v, DataType) && + // !issubtype(typeof(v), Tuple) && + // !isa(v, UnionType) && + // !isa(v, Module) && + // !isa(v, TypeConstructor) && + // !isa(v, Colon) + // println("\"$name\",") + // end + // end + // end + literal: + 'true false ANY ARGS CPU_CORES C_NULL DL_LOAD_PATH DevNull ENDIAN_BOM ENV I|0 Inf Inf16 Inf32 ' + + 'InsertionSort JULIA_HOME LOAD_PATH MS_ASYNC MS_INVALIDATE MS_SYNC MergeSort NaN NaN16 NaN32 OS_NAME QuickSort ' + + 'RTLD_DEEPBIND RTLD_FIRST RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_NOW RoundDown ' + + 'RoundFromZero RoundNearest RoundToZero RoundUp STDERR STDIN STDOUT VERSION WORD_SIZE catalan cglobal e|0 eu|0 ' + + 'eulergamma golden im nothing pi γ π φ', + + // # built_in generator: + // for name in Base.REPLCompletions.completions("", 0)[1] + // try + // v = eval(symbol(name)) + // if isa(v, DataType) + // println("\"$name\",") + // end + // end + // end + built_in: + 'ASCIIString AbstractArray AbstractRNG AbstractSparseArray Any ArgumentError Array Associative Base64Pipe ' + + 'Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError Box CFILE Cchar Cdouble Cfloat Char ' + + 'CharString Cint Clong Clonglong ClusterManager Cmd Coff_t Colon Complex Complex128 Complex32 Complex64 ' + + 'Condition Cptrdiff_t Cshort Csize_t Cssize_t Cuchar Cuint Culong Culonglong Cushort Cwchar_t DArray DataType ' + + 'DenseArray Diagonal Dict DimensionMismatch DirectIndexString Display DivideError DomainError EOFError ' + + 'EachLine Enumerate ErrorException Exception Expr Factorization FileMonitor FileOffset Filter Float16 Float32 ' + + 'Float64 FloatRange FloatingPoint Function GetfieldNode GotoNode Hermitian IO IOBuffer IOStream IPv4 IPv6 ' + + 'InexactError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException IntrinsicFunction KeyError ' + + 'LabelNode LambdaStaticData LineNumberNode LoadError LocalProcess MIME MathConst MemoryError MersenneTwister ' + + 'Method MethodError MethodTable Module NTuple NewvarNode Nothing Number ObjectIdDict OrdinalRange ' + + 'OverflowError ParseError PollingFileWatcher ProcessExitedException ProcessGroup Ptr QuoteNode Range Range1 ' + + 'Ranges Rational RawFD Real Regex RegexMatch RemoteRef RepString RevString RopeString RoundingMode Set ' + + 'SharedArray Signed SparseMatrixCSC StackOverflowError Stat StatStruct StepRange String SubArray SubString ' + + 'SymTridiagonal Symbol SymbolNode Symmetric SystemError Task TextDisplay Timer TmStruct TopNode Triangular ' + + 'Tridiagonal Type TypeConstructor TypeError TypeName TypeVar UTF16String UTF32String UTF8String UdpSocket ' + + 'Uint Uint128 Uint16 Uint32 Uint64 Uint8 UndefRefError UndefVarError UniformScaling UnionType UnitRange ' + + 'Unsigned Vararg VersionNumber WString WeakKeyDict WeakRef Woodbury Zip' + }; + + // ref: http://julia.readthedocs.org/en/latest/manual/variables/#allowed-variable-names + var VARIABLE_NAME_RE = "[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*"; + + // placeholder for recursive self-reference + var DEFAULT = { + lexemes: VARIABLE_NAME_RE, + keywords: KEYWORDS + }; + + var TYPE_ANNOTATION = { + className: "type-annotation", + begin: /::/ + }; + + var SUBTYPE = { + className: "subtype", + begin: /<:/ + }; + + // ref: http://julia.readthedocs.org/en/latest/manual/integers-and-floating-point-numbers/ + var NUMBER = { + className: "number", + // supported numeric literals: + // * binary literal (e.g. 0x10) + // * octal literal (e.g. 0o76543210) + // * hexadecimal literal (e.g. 0xfedcba876543210) + // * hexadecimal floating point literal (e.g. 0x1p0, 0x1.2p2) + // * decimal literal (e.g. 9876543210, 100_000_000) + // * floating pointe literal (e.g. 1.2, 1.2f, .2, 1., 1.2e10, 1.2e-10) + begin: /(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/, + relevance: 0 + }; + + var CHAR = { + className: "char", + begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/ + }; + + var INTERPOLATION = { + className: 'subst', + begin: /\$\(/, + end: /\)/, + keywords: KEYWORDS + }; + + var INTERPOLATED_VARIABLE = { + className: 'variable', + begin: "\\$" + VARIABLE_NAME_RE + }; + + // TODO: neatly escape normal code in string literal + var STRING = { + className: "string", + contains: [hljs.BACKSLASH_ESCAPE, INTERPOLATION, INTERPOLATED_VARIABLE], + variants: [ + { + begin: /\w*"/, + end: /"\w*/ + }, + { + begin: /\w*"""/, + end: /"""\w*/ + } + ] + }; + + var COMMAND = { + className: "string", + contains: [hljs.BACKSLASH_ESCAPE, INTERPOLATION, INTERPOLATED_VARIABLE], + begin: '`', + end: '`' + }; + + var MACROCALL = { + className: "macrocall", + begin: "@" + VARIABLE_NAME_RE + }; + + var COMMENT = { + className: "comment", + variants: [ + { + begin: "#=", + end: "=#", + relevance: 10 + }, + { + begin: '#', + end: '$' + } + ] + }; + + DEFAULT.contains = [ + NUMBER, + CHAR, + TYPE_ANNOTATION, + SUBTYPE, + STRING, + COMMAND, + MACROCALL, + COMMENT, + hljs.HASH_COMMENT_MODE + ]; + INTERPOLATION.contains = DEFAULT.contains; + + return DEFAULT; + }; +}, {} +], +102: [function(require, module, exports) { + module.exports = function (hljs) { + var KEYWORDS = 'val var get set class trait object public open private protected ' + + 'final enum if else do while for when break continue throw try catch finally ' + + 'import package is as in return fun override default companion reified inline volatile transient native'; + + return { + keywords: { + typename: 'Byte Short Char Int Long Boolean Float Double Void Unit Nothing', + literal: 'true false null', + keyword: KEYWORDS + }, + contains : [ + hljs.COMMENT( + '/\\*\\*', + '\\*/', + { + relevance : 0, + contains : [{ + className : 'doctag', + begin : '@[A-Za-z]+' + } + ] + }), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'type', + begin: /</, + end: />/, + returnBegin: true, + excludeEnd: false, + relevance: 0 + }, + { + className: 'function', + beginKeywords: 'fun', + end: '[(]|$', + returnBegin: true, + excludeEnd: true, + keywords: KEYWORDS, + illegal: /fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/, + relevance: 5, + contains: [ + { + begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', + returnBegin: true, + relevance: 0, + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + className: 'type', + begin: /</, + end: />/, + keywords: 'reified', + relevance: 0 + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + relevance: 0, + illegal: /\([^\(,\s:]+,/, + contains: [ + { + className: 'typename', + begin: /:\s*/, + end: /\s*[=\)]/, + excludeBegin: true, + returnEnd: true, + relevance: 0 + } + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }, + { + className: 'class', + beginKeywords: 'class trait', + end: /[:\{(]|$/, + excludeEnd: true, + illegal: 'extends implements', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + { + className: 'type', + begin: /</, + end: />/, + excludeBegin: true, + excludeEnd: true, + relevance: 0 + }, + { + className: 'typename', + begin: /[,:]\s*/, + end: /[<\(,]|$/, + excludeBegin: true, + returnEnd: true + } + ] + }, + { + className: 'variable', + beginKeywords: 'var val', + end: /\s*[=:$]/, + excludeEnd: true + }, + hljs.QUOTE_STRING_MODE, + { + className: 'shebang', + begin: "^#!/usr/bin/env", + end: '$', + illegal: '\n' + }, + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +103: [function(require, module, exports) { + module.exports = function(hljs) { + var LASSO_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*'; + var LASSO_ANGLE_RE = '<\\?(lasso(script)?|=)'; + var LASSO_CLOSE_RE = '\\]|\\?>'; + var LASSO_KEYWORDS = { + literal: + 'true false none minimal full all void ' + + 'bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft', + built_in: + 'array date decimal duration integer map pair string tag xml null ' + + 'boolean bytes keyword list locale queue set stack staticarray ' + + 'local var variable global data self inherited currentcapture givenblock', + keyword: + 'error_code error_msg error_pop error_push error_reset cache ' + + 'database_names database_schemanames database_tablenames define_tag ' + + 'define_type email_batch encode_set html_comment handle handle_error ' + + 'header if inline iterate ljax_target link link_currentaction ' + + 'link_currentgroup link_currentrecord link_detail link_firstgroup ' + + 'link_firstrecord link_lastgroup link_lastrecord link_nextgroup ' + + 'link_nextrecord link_prevgroup link_prevrecord log loop ' + + 'namespace_using output_none portal private protect records referer ' + + 'referrer repeating resultset rows search_args search_arguments ' + + 'select sort_args sort_arguments thread_atomic value_list while ' + + 'abort case else if_empty if_false if_null if_true loop_abort ' + + 'loop_continue loop_count params params_up return return_value ' + + 'run_children soap_definetag soap_lastrequest soap_lastresponse ' + + 'tag_name ascending average by define descending do equals ' + + 'frozen group handle_failure import in into join let match max ' + + 'min on order parent protected provide public require returnhome ' + + 'skip split_thread sum take thread to trait type where with ' + + 'yield yieldhome' + }; + var HTML_COMMENT = hljs.COMMENT( + '<!--', + '-->', + { + relevance: 0 + }); + var LASSO_NOPROCESS = { + className: 'preprocessor', + begin: '\\[noprocess\\]', + starts: { + className: 'markup', + end: '\\[/noprocess\\]', + returnEnd: true, + contains: [HTML_COMMENT] + } + }; + var LASSO_START = { + className: 'preprocessor', + begin: '\\[/noprocess|' + LASSO_ANGLE_RE + }; + var LASSO_DATAMEMBER = { + className: 'variable', + begin: '\'' + LASSO_IDENT_RE + '\'' + }; + var LASSO_CODE = [ + hljs.COMMENT( + '/\\*\\*!', + '\\*/' + ), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.inherit(hljs.C_NUMBER_MODE, { + begin: hljs.C_NUMBER_RE + '|(infinity|nan)\\b' + }), + hljs.inherit(hljs.APOS_STRING_MODE, { + illegal: null + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + { + className: 'string', + begin: '`', + end: '`' + }, + { + className: 'variable', + variants: [ + { + begin: '[#$]' + LASSO_IDENT_RE + }, + { + begin: '#', + end: '\\d+', + illegal: '\\W' + } + ] + }, + { + className: 'tag', + begin: '::\\s*', + end: LASSO_IDENT_RE, + illegal: '\\W' + }, + { + className: 'attribute', + variants: [ + { + begin: '-(?!infinity)' + hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + }, + { + begin: '(\\.\\.\\.)' + } + ] + }, + { + className: 'subst', + variants: [ + { + begin: '->\\s*', + contains: [LASSO_DATAMEMBER] + }, + { + begin: '->|\\\\|&&?|\\|\\||!(?!=|>)|(and|or|not)\\b', + relevance: 0 + } + ] + }, + { + className: 'built_in', + begin: '\\.\\.?\\s*', + relevance: 0, + contains: [LASSO_DATAMEMBER] + }, + { + className: 'class', + beginKeywords: 'define', + returnEnd: true, + end: '\\(|=>', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: hljs.UNDERSCORE_IDENT_RE + '(=(?!>))?' + }) + ] + } + ]; + return { + aliases: ['ls', 'lassoscript'], + case_insensitive: true, + lexemes: LASSO_IDENT_RE + '|&[lg]t;', + keywords: LASSO_KEYWORDS, + contains: [ + { + className: 'preprocessor', + begin: LASSO_CLOSE_RE, + relevance: 0, + starts: { + className: 'markup', + end: '\\[|' + LASSO_ANGLE_RE, + returnEnd: true, + relevance: 0, + contains: [HTML_COMMENT] + } + }, + LASSO_NOPROCESS, + LASSO_START, + { + className: 'preprocessor', + begin: '\\[no_square_brackets', + starts: { + end: '\\[/no_square_brackets\\]', + // not implemented in the language + lexemes: LASSO_IDENT_RE + '|&[lg]t;', + keywords: LASSO_KEYWORDS, + contains: [ + { + className: 'preprocessor', + begin: LASSO_CLOSE_RE, + relevance: 0, + starts: { + className: 'markup', + end: '\\[noprocess\\]|' + LASSO_ANGLE_RE, + returnEnd: true, + contains: [HTML_COMMENT] + } + }, + LASSO_NOPROCESS, + LASSO_START + ].concat(LASSO_CODE) + } + }, + { + className: 'preprocessor', + begin: '\\[', + relevance: 0 + }, + { + className: 'shebang', + begin: '^#!.+lasso9\\b', + relevance: 10 + } + ].concat(LASSO_CODE) + }; + }; +}, {} +], +104: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE = '[\\w-]+'; // yes, Less identifiers may begin with a digit + var INTERP_IDENT_RE = '(' + IDENT_RE + '|@{' + IDENT_RE + '})'; + + /* Generic Modes */ + + var RULES = [], VALUE = []; // forward def. for recursive modes + + var STRING_MODE = function(c) { + return { + // Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings) + className: 'string', + begin: '~?' + c + '.*?' + c + }; + }; + + var IDENT_MODE = function(name, begin, relevance) { + return { + className: name, + begin: begin, + relevance: relevance + }; + }; + + var FUNCT_MODE = function(name, ident, obj) { + return hljs.inherit({ + className: name, + begin: ident + '\\(', + end: '\\(', + returnBegin: true, + excludeEnd: true, + relevance: 0 + }, obj); + }; + + var PARENS_MODE = { + // used only to properly balance nested parens inside mixin call, def. arg list + begin: '\\(', + end: '\\)', + contains: VALUE, + relevance: 0 + }; + + // generic Less highlighter (used almost everywhere except selectors): + VALUE.push( + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + STRING_MODE("'"), + STRING_MODE('"'), + hljs.CSS_NUMBER_MODE, // fixme: it does not include dot for numbers like .5em :( + IDENT_MODE('hexcolor', '#[0-9A-Fa-f]+\\b'), + FUNCT_MODE('function', '(url|data-uri)', { + starts: { + className: 'string', + end: '[\\)\\n]', + excludeEnd: true + } + }), + FUNCT_MODE('function', IDENT_RE), + PARENS_MODE, + IDENT_MODE('variable', '@@?' + IDENT_RE, 10), + IDENT_MODE('variable', '@{' + IDENT_RE + '}'), + IDENT_MODE('built_in', '~?`[^`]*?`'), // inline javascript (or whatever host language) *multiline* string + { + // @media features (it’s here to not duplicate things in AT_RULE_MODE with extra PARENS_MODE overriding): + className: 'attribute', + begin: IDENT_RE + '\\s*:', + end: ':', + returnBegin: true, + excludeEnd: true + }); + + var VALUE_WITH_RULESETS = VALUE.concat({ + begin: '{', + end: '}', + contains: RULES + }); + + var MIXIN_GUARD_MODE = { + beginKeywords: 'when', + endsWithParent: true, + contains: [{ + beginKeywords: 'and not' + } + ].concat(VALUE) // using this form to override VALUE’s 'function' match + }; + + /* Rule-Level Modes */ + + var RULE_MODE = { + className: 'attribute', + begin: INTERP_IDENT_RE, + end: ':', + excludeEnd: true, + contains: [hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE], + illegal: /\S/, + starts: { + end: '[;}]', + returnEnd: true, + contains: VALUE, + illegal: '[<=$]' + } + }; + + var AT_RULE_MODE = { + className: 'at_rule', + // highlight only at-rule keyword + begin: '@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b', + starts: { + end: '[;{}]', + returnEnd: true, + contains: VALUE, + relevance: 0 + } + }; + + // variable definitions and calls + var VAR_RULE_MODE = { + className: 'variable', + variants: [ + // using more strict pattern for higher relevance to increase chances of Less detection. + // this is *the only* Less specific statement used in most of the sources, so... + // (we’ll still often loose to the css-parser unless there's '//' comment, + // simply because 1 variable just can't beat 99 properties :) + { + begin: '@' + IDENT_RE + '\\s*:', + relevance: 15 + }, + { + begin: '@' + IDENT_RE + } + ], + starts: { + end: '[;}]', + returnEnd: true, + contains: VALUE_WITH_RULESETS + } + }; + + var SELECTOR_MODE = { + // first parse unambiguous selectors (i.e. those not starting with tag) + // then fall into the scary lookahead-discriminator variant. + // this mode also handles mixin definitions and calls + variants: [{ + begin: '[\\.#:&\\[]', + end: '[;{}]' // mixin calls end with ';' + }, { + begin: INTERP_IDENT_RE + '[^;]*{', + end: '{' + } + ], + returnBegin: true, + returnEnd: true, + illegal: '[<=\'$"]', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + MIXIN_GUARD_MODE, + IDENT_MODE('keyword', 'all\\b'), + IDENT_MODE('variable', '@{' + IDENT_RE + '}'), // otherwise it’s identified as tag + IDENT_MODE('tag', INTERP_IDENT_RE + '%?', 0), // '%' for more consistent coloring of @keyframes "tags" + IDENT_MODE('id', '#' + INTERP_IDENT_RE), + IDENT_MODE('class', '\\.' + INTERP_IDENT_RE, 0), + IDENT_MODE('keyword', '&', 0), + FUNCT_MODE('pseudo', ':not'), + FUNCT_MODE('keyword', ':extend'), + IDENT_MODE('pseudo', '::?' + INTERP_IDENT_RE), + { + className: 'attr_selector', + begin: '\\[', + end: '\\]' + }, + { + begin: '\\(', + end: '\\)', + contains: VALUE_WITH_RULESETS + }, // argument list of parametric mixins + { + begin: '!important' + } + // eat !important after mixin call or it will be colored as tag + ] + }; + + RULES.push( + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + AT_RULE_MODE, + VAR_RULE_MODE, + SELECTOR_MODE, + RULE_MODE + ); + + return { + case_insensitive: true, + illegal: '[=>\'/<($"]', + contains: RULES + }; + }; +}, {} +], +105: [function(require, module, exports) { + module.exports = function(hljs) { + var LISP_IDENT_RE = '[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*'; + var MEC_RE = '\\|[^]*?\\|'; + var LISP_SIMPLE_NUMBER_RE = '(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?'; + var SHEBANG = { + className: 'shebang', + begin: '^#!', + end: '$' + }; + var LITERAL = { + className: 'literal', + begin: '\\b(t{1}|nil)\\b' + }; + var NUMBER = { + className: 'number', + variants: [ + { + begin: LISP_SIMPLE_NUMBER_RE, + relevance: 0 + }, + { + begin: '#(b|B)[0-1]+(/[0-1]+)?' + }, + { + begin: '#(o|O)[0-7]+(/[0-7]+)?' + }, + { + begin: '#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?' + }, + { + begin: '#(c|C)\\(' + LISP_SIMPLE_NUMBER_RE + ' +' + LISP_SIMPLE_NUMBER_RE, + end: '\\)' + } + ] + }; + var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }); + var COMMENT = hljs.COMMENT( + ';', '$', + { + relevance: 0 + }); + var VARIABLE = { + className: 'variable', + begin: '\\*', + end: '\\*' + }; + var KEYWORD = { + className: 'keyword', + begin: '[:&]' + LISP_IDENT_RE + }; + var IDENT = { + begin: LISP_IDENT_RE, + relevance: 0 + }; + var MEC = { + begin: MEC_RE + }; + var QUOTED_LIST = { + begin: '\\(', + end: '\\)', + contains: ['self', LITERAL, STRING, NUMBER, IDENT] + }; + var QUOTED = { + className: 'quoted', + contains: [NUMBER, STRING, VARIABLE, KEYWORD, QUOTED_LIST, IDENT], + variants: [ + { + begin: '[\'`]\\(', + end: '\\)' + }, + { + begin: '\\(quote ', + end: '\\)', + keywords: 'quote' + }, + { + begin: '\'' + MEC_RE + } + ] + }; + var QUOTED_ATOM = { + className: 'quoted', + variants: [ + { + begin: '\'' + LISP_IDENT_RE + }, + { + begin: '#\'' + LISP_IDENT_RE + '(::' + LISP_IDENT_RE + ')*' + } + ] + }; + var LIST = { + className: 'list', + begin: '\\(\\s*', + end: '\\)' + }; + var BODY = { + endsWithParent: true, + relevance: 0 + }; + LIST.contains = [ + { + className: 'keyword', + variants: [ + { + begin: LISP_IDENT_RE + }, + { + begin: MEC_RE + } + ] + }, + BODY + ]; + BODY.contains = [QUOTED, QUOTED_ATOM, LIST, LITERAL, NUMBER, STRING, COMMENT, VARIABLE, KEYWORD, MEC, IDENT]; + + return { + illegal: /\S/, + contains: [ + NUMBER, + SHEBANG, + LITERAL, + STRING, + COMMENT, + QUOTED, + QUOTED_ATOM, + LIST, + IDENT + ] + }; + }; +}, {} +], +106: [function(require, module, exports) { + module.exports = function(hljs) { + var VARIABLE = { + className: 'variable', + begin: '\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+', + relevance: 0 + }; + var COMMENT_MODES = [ + hljs.C_BLOCK_COMMENT_MODE, + hljs.HASH_COMMENT_MODE, + hljs.COMMENT('--', '$'), + hljs.COMMENT('[^:]//', '$') + ]; + var TITLE1 = hljs.inherit(hljs.TITLE_MODE, { + variants: [ + { + begin: '\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*' + }, + { + begin: '\\b_[a-z0-9\\-]+' + } + ] + }); + var TITLE2 = hljs.inherit(hljs.TITLE_MODE, { + begin: '\\b([A-Za-z0-9_\\-]+)\\b' + }); + return { + case_insensitive: false, + keywords: { + keyword: + '$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER ' + + 'codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph ' + + 'after byte bytes english the until http forever descending using line real8 with seventh ' + + 'for stdout finally element word words fourth before black ninth sixth characters chars stderr ' + + 'uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid ' + + 'at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 ' + + 'int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat ' + + 'end repeat URL in try into switch to words https token binfile each tenth as ticks tick ' + + 'system real4 by dateItems without char character ascending eighth whole dateTime numeric short ' + + 'first ftp integer abbreviated abbr abbrev private case while if', + constant: + 'SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE ' + + 'QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO ' + + 'six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five ' + + 'quote empty one true return cr linefeed right backslash null seven tab three two ' + + 'RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK ' + + 'FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK', + operator: + 'div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within ' + + 'contains ends with begins the keys of keys', + built_in: + 'put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode ' + + 'base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum ' + + 'cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress ' + + 'constantNames cos date dateFormat decompress directories ' + + 'diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global ' + + 'globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset ' + + 'keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders ' + + 'libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 ' + + 'longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec ' + + 'millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar ' + + 'numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets ' + + 'paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation ' + + 'populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile ' + + 'revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull ' + + 'revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered ' + + 'revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames ' + + 'revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull ' + + 'revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections ' + + 'revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype ' + + 'revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext ' + + 'revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames ' + + 'revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase ' + + 'revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute ' + + 'revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces ' + + 'revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode ' + + 'revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling ' + + 'revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error ' + + 'revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute ' + + 'revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort ' + + 'revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree ' + + 'revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance ' + + 'sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound ' + + 'stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper ' + + 'transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames ' + + 'variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet ' + + 'xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process ' + + 'combine constant convert create new alias folder directory decrypt delete variable word line folder ' + + 'directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile ' + + 'libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback ' + + 'libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime ' + + 'libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename ' + + 'replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase ' + + 'revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees ' + + 'revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord ' + + 'revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase ' + + 'revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD ' + + 'revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost ' + + 'revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData ' + + 'revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel ' + + 'revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback ' + + 'revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop ' + + 'subtract union unload wait write' + }, + contains: [ + VARIABLE, + { + className: 'keyword', + begin: '\\bend\\sif\\b' + }, + { + className: 'function', + beginKeywords: 'function', + end: '$', + contains: [ + VARIABLE, + TITLE2, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.BINARY_NUMBER_MODE, + hljs.C_NUMBER_MODE, + TITLE1 + ] + }, + { + className: 'function', + begin: '\\bend\\s+', + end: '$', + keywords: 'end', + contains: [ + TITLE2, + TITLE1 + ] + }, + { + className: 'command', + beginKeywords: 'command on', + end: '$', + contains: [ + VARIABLE, + TITLE2, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.BINARY_NUMBER_MODE, + hljs.C_NUMBER_MODE, + TITLE1 + ] + }, + { + className: 'preprocessor', + variants: [ + { + begin: '<\\?(rev|lc|livecode)', + relevance: 10 + }, + { + begin: '<\\?' + }, + { + begin: '\\?>' + } + ] + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.BINARY_NUMBER_MODE, + hljs.C_NUMBER_MODE, + TITLE1 + ].concat(COMMENT_MODES), + illegal: ';$|^\\[|^=' + }; + }; +}, {} +], +107: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = { + keyword: + // JS keywords + 'in if for while finally new do return else break catch instanceof throw try this ' + + 'switch continue typeof delete debugger case default function var with ' + + // LiveScript keywords + 'then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super ' + + 'case default function var void const let enum export import native ' + + '__hasProp __extends __slice __bind __indexOf', + literal: + // JS literals + 'true false null undefined ' + + // LiveScript literals + 'yes no on off it that void', + built_in: + 'npm require console print module global window document' + }; + var JS_IDENT_RE = '[A-Za-z$_](?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*'; + var TITLE = hljs.inherit(hljs.TITLE_MODE, { + begin: JS_IDENT_RE + }); + var SUBST = { + className: 'subst', + begin: /#\{/, + end: /}/, + keywords: KEYWORDS + }; + var SUBST_SIMPLE = { + className: 'subst', + begin: /#[A-Za-z$_]/, + end: /(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/, + keywords: KEYWORDS + }; + var EXPRESSIONS = [ + hljs.BINARY_NUMBER_MODE, + { + className: 'number', + begin: '(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)', + relevance: 0, + starts: { + end: '(\\s*/)?', + relevance: 0 + } + // a number tries to eat the following slash to prevent treating it as a regexp + }, + { + className: 'string', + variants: [ + { + begin: /'''/, + end: /'''/, + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: /'/, + end: /'/, + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: /"""/, + end: /"""/, + contains: [hljs.BACKSLASH_ESCAPE, SUBST, SUBST_SIMPLE] + }, + { + begin: /"/, + end: /"/, + contains: [hljs.BACKSLASH_ESCAPE, SUBST, SUBST_SIMPLE] + }, + { + begin: /\\/, + end: /(\s|$)/, + excludeEnd: true + } + ] + }, + { + className: 'pi', + variants: [ + { + begin: '//', + end: '//[gim]*', + contains: [SUBST, hljs.HASH_COMMENT_MODE] + }, + { + // regex can't start with space to parse x / 2 / 3 as two divisions + // regex can't start with *, and it supports an "illegal" in the main mode + begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/ + } + ] + }, + { + className: 'property', + begin: '@' + JS_IDENT_RE + }, + { + begin: '``', + end: '``', + excludeBegin: true, + excludeEnd: true, + subLanguage: 'javascript' + } + ]; + SUBST.contains = EXPRESSIONS; + + var PARAMS = { + className: 'params', + begin: '\\(', + returnBegin: true, + /* We need another contained nameless mode to not have every nested + pair of parens to be called "params" */ + contains: [ + { + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + contains: ['self'].concat(EXPRESSIONS) + } + ] + }; + + return { + aliases: ['ls'], + keywords: KEYWORDS, + illegal: /\/\*/, + contains: EXPRESSIONS.concat([ + hljs.COMMENT('\\/\\*', '\\*\\/'), + hljs.HASH_COMMENT_MODE, + { + className: 'function', + contains: [TITLE, PARAMS], + returnBegin: true, + variants: [ + { + begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?', + end: '\\->\\*?' + }, + { + begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?', + end: '[-~]{1,2}>\\*?' + }, + { + begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?', + end: '!?[-~]{1,2}>\\*?' + } + ] + }, + { + className: 'class', + beginKeywords: 'class', + end: '$', + illegal: /[:="\[\]]/, + contains: [ + { + beginKeywords: 'extends', + endsWithParent: true, + illegal: /[:="\[\]]/, + contains: [TITLE] + }, + TITLE + ] + }, + { + className: 'attribute', + begin: JS_IDENT_RE + ':', + end: ':', + returnBegin: true, + returnEnd: true, + relevance: 0 + } + ]) + }; + }; +}, {} +], +108: [function(require, module, exports) { + module.exports = function(hljs) { + var OPENING_LONG_BRACKET = '\\[=*\\['; + var CLOSING_LONG_BRACKET = '\\]=*\\]'; + var LONG_BRACKETS = { + begin: OPENING_LONG_BRACKET, + end: CLOSING_LONG_BRACKET, + contains: ['self'] + }; + var COMMENTS = [ + hljs.COMMENT('--(?!' + OPENING_LONG_BRACKET + ')', '$'), + hljs.COMMENT( + '--' + OPENING_LONG_BRACKET, + CLOSING_LONG_BRACKET, + { + contains: [LONG_BRACKETS], + relevance: 10 + }) + ]; + return { + lexemes: hljs.UNDERSCORE_IDENT_RE, + keywords: { + keyword: + 'and break do else elseif end false for if in local nil not or repeat return then ' + + 'true until while', + built_in: + '_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load ' + + 'loadfile loadstring module next pairs pcall print rawequal rawget rawset require ' + + 'select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug ' + + 'io math os package string table' + }, + contains: COMMENTS.concat([ + { + className: 'function', + beginKeywords: 'function', + end: '\\)', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: '([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*' + }), + { + className: 'params', + begin: '\\(', + endsWithParent: true, + contains: COMMENTS + } + ].concat(COMMENTS) + }, + hljs.C_NUMBER_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: OPENING_LONG_BRACKET, + end: CLOSING_LONG_BRACKET, + contains: [LONG_BRACKETS], + relevance: 5 + } + ]) + }; + }; +}, {} +], +109: [function(require, module, exports) { + module.exports = function(hljs) { + var VARIABLE = { + className: 'variable', + begin: /\$\(/, + end: /\)/, + contains: [hljs.BACKSLASH_ESCAPE] + }; + return { + aliases: ['mk', 'mak'], + contains: [ + hljs.HASH_COMMENT_MODE, + { + begin: /^\w+\s*\W*=/, + returnBegin: true, + relevance: 0, + starts: { + className: 'constant', + end: /\s*\W*=/, + excludeEnd: true, + starts: { + end: /$/, + relevance: 0, + contains: [ + VARIABLE + ] + } + } + }, + { + className: 'title', + begin: /^[\w]+:\s*$/ + }, + { + className: 'phony', + begin: /^\.PHONY:/, + end: /$/, + keywords: '.PHONY', + lexemes: /[\.\w]+/ + }, + { + begin: /^\t+/, + end: /$/, + relevance: 0, + contains: [ + hljs.QUOTE_STRING_MODE, + VARIABLE + ] + } + ] + }; + }; +}, {} +], +110: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['md', 'mkdown', 'mkd'], + contains: [ + // highlight headers + { + className: 'header', + variants: [ + { + begin: '^#{1,6}', + end: '$' + }, + { + begin: '^.+?\\n[=-]{2,}$' + } + ] + }, + // inline html + { + begin: '<', + end: '>', + subLanguage: 'xml', + relevance: 0 + }, + // lists (indicators only) + { + className: 'bullet', + begin: '^([*+-]|(\\d+\\.))\\s+' + }, + // strong segments + { + className: 'strong', + begin: '[*_]{2}.+?[*_]{2}' + }, + // emphasis segments + { + className: 'emphasis', + variants: [ + { + begin: '\\*.+?\\*' + }, + { + begin: '_.+?_' + , + relevance: 0 + } + ] + }, + // blockquotes + { + className: 'blockquote', + begin: '^>\\s+', + end: '$' + }, + // code snippets + { + className: 'code', + variants: [ + { + begin: '`.+?`' + }, + { + begin: '^( {4}|\t)', + end: '$' + , + relevance: 0 + } + ] + }, + // horizontal rules + { + className: 'horizontal_rule', + begin: '^[-\\*]{3,}', + end: '$' + }, + // using links - title and link + { + begin: '\\[.+?\\][\\(\\[].*?[\\)\\]]', + returnBegin: true, + contains: [ + { + className: 'link_label', + begin: '\\[', + end: '\\]', + excludeBegin: true, + returnEnd: true, + relevance: 0 + }, + { + className: 'link_url', + begin: '\\]\\(', + end: '\\)', + excludeBegin: true, + excludeEnd: true + }, + { + className: 'link_reference', + begin: '\\]\\[', + end: '\\]', + excludeBegin: true, + excludeEnd: true + } + ], + relevance: 10 + }, + { + begin: '^\\[\.+\\]:', + returnBegin: true, + contains: [ + { + className: 'link_reference', + begin: '\\[', + end: '\\]:', + excludeBegin: true, + excludeEnd: true, + starts: { + className: 'link_url', + end: '$' + } + } + ] + } + ] + }; + }; +}, {} +], +111: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['mma'], + lexemes: '(\\$|\\b)' + hljs.IDENT_RE + '\\b', + keywords: 'AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis ' + + 'BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering ' + + 'C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ' + + 'ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition ' + + 'D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform ' + + 'DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions ' + + 'E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution ' + + 'FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve ' + + 'FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance ' + + 'GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion ' + + 'GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution ' + + 'HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData ' + + 'I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction ' + + 'InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess ' + + 'JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition ' + + 'K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter ' + + 'Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions ' + + 'LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy ' + + 'MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution ' + + 'N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator ' + + 'NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot ' + + 'O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues ' + + 'PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList ' + + 'PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions ' + + 'QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder ' + + 'RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity ' + + 'SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity ' + + 'SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders ' + + 'SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub ' + + 'Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine ' + + 'Transparent ' + + 'UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd ' + + 'V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution ' + + 'WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian ' + + 'XMLElement XMLObject Xnor Xor ' + + 'Yellow YuleDissimilarity ' + + 'ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform ' + + '$Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber', + contains: [ + { + className: "comment", + begin: /\(\*/, + end: /\*\)/ + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'list', + begin: /\{/, + end: /\}/, + illegal: /:/ + } + ] + }; + }; +}, {} +], +112: [function(require, module, exports) { + module.exports = function(hljs) { + var COMMON_CONTAINS = [ + hljs.C_NUMBER_MODE, + { + className: 'string', + begin: '\'', + end: '\'', + contains: [hljs.BACKSLASH_ESCAPE, { + begin: '\'\'' + } + ] + } + ]; + var TRANSPOSE = { + relevance: 0, + contains: [ + { + className: 'operator', + begin: /'['\.]*/ + } + ] + }; + + return { + keywords: { + keyword: + 'break case catch classdef continue else elseif end enumerated events for function ' + + 'global if methods otherwise parfor persistent properties return spmd switch try while', + built_in: + 'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' + + 'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' + + 'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' + + 'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' + + 'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' + + 'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' + + 'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' + + 'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' + + 'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' + + 'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' + + 'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' + + 'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan ' + + 'isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal ' + + 'rosser toeplitz vander wilkinson' + }, + illegal: '(//|"|#|/\\*|\\s+/\\w+)', + contains: [ + { + className: 'function', + beginKeywords: 'function', + end: '$', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)' + }, + { + className: 'params', + begin: '\\[', + end: '\\]' + } + ] + }, + { + begin: /[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/, + returnBegin: true, + relevance: 0, + contains: [ + { + begin: /[a-zA-Z_][a-zA-Z_0-9]*/, + relevance: 0 + }, + TRANSPOSE.contains[0] + ] + }, + { + className: 'matrix', + begin: '\\[', + end: '\\]', + contains: COMMON_CONTAINS, + relevance: 0, + starts: TRANSPOSE + }, + { + className: 'cell', + begin: '\\{', + end: /}/, + contains: COMMON_CONTAINS, + relevance: 0, + starts: TRANSPOSE + }, + { + // transpose operators at the end of a function call + begin: /\)/, + relevance: 0, + starts: TRANSPOSE + }, + hljs.COMMENT('^\\s*\\%\\{\\s*$', '^\\s*\\%\\}\\s*$'), + hljs.COMMENT('\\%', '$') + ].concat(COMMON_CONTAINS) + }; + }; +}, {} +], +113: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: + 'int float string vector matrix if else switch case default while do for in break ' + + 'continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic ' + + 'addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey ' + + 'affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve ' + + 'alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor ' + + 'animDisplay animView annotate appendStringArray applicationName applyAttrPreset ' + + 'applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx ' + + 'artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu ' + + 'artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand ' + + 'assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface ' + + 'attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu ' + + 'attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp ' + + 'attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery ' + + 'autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults ' + + 'bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership ' + + 'bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType ' + + 'boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu ' + + 'buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge ' + + 'cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch ' + + 'catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox ' + + 'character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp ' + + 'checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip ' + + 'clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore ' + + 'closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter ' + + 'cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color ' + + 'colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp ' + + 'colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem ' + + 'componentEditor compositingInterop computePolysetVolume condition cone confirmDialog ' + + 'connectAttr connectControl connectDynamic connectJoint connectionInfo constrain ' + + 'constrainValue constructionHistory container containsMultibyte contextInfo control ' + + 'convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation ' + + 'convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache ' + + 'cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel ' + + 'cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver ' + + 'cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor ' + + 'createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer ' + + 'createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse ' + + 'currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx ' + + 'curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface ' + + 'curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox ' + + 'defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete ' + + 'deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes ' + + 'delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo ' + + 'dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable ' + + 'disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected ' + + 'displayColor displayCull displayLevelOfDetail displayPref displayRGBColor ' + + 'displaySmoothness displayStats displayString displaySurface distanceDimContext ' + + 'distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct ' + + 'doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator ' + + 'duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression ' + + 'dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor ' + + 'dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers ' + + 'editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor ' + + 'editorTemplate effector emit emitter enableDevice encodeString endString endsWith env ' + + 'equivalent equivalentTol erf error eval evalDeferred evalEcho event ' + + 'exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp ' + + 'expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof ' + + 'fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo ' + + 'filetest filletCurve filter filterCurve filterExpand filterStudioImport ' + + 'findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster ' + + 'finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar ' + + 'floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo ' + + 'fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint ' + + 'frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss ' + + 'geometryConstraint getApplicationVersionAsFloat getAttr getClassification ' + + 'getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes ' + + 'getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender ' + + 'glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl ' + + 'gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid ' + + 'gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap ' + + 'HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor ' + + 'HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached ' + + 'HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel ' + + 'headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey ' + + 'hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender ' + + 'hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox ' + + 'iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ' + + 'ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ' + + 'ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform ' + + 'insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance ' + + 'instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp ' + + 'interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf ' + + 'isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect ' + + 'itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx ' + + 'jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner ' + + 'keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx ' + + 'keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx ' + + 'keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx ' + + 'keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor ' + + 'layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList ' + + 'lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep ' + + 'listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory ' + + 'listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation ' + + 'listNodeTypes listPanelCategories listRelatives listSets listTransforms ' + + 'listUnselected listerEditor loadFluid loadNewShelf loadPlugin ' + + 'loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log ' + + 'longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive ' + + 'makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext ' + + 'manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx ' + + 'manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout ' + + 'menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp ' + + 'mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move ' + + 'moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute ' + + 'nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast ' + + 'nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint ' + + 'normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect ' + + 'nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref ' + + 'nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType ' + + 'objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface ' + + 'offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit ' + + 'orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier ' + + 'paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration ' + + 'panelHistory paramDimContext paramDimension paramLocator parent parentConstraint ' + + 'particle particleExists particleInstancer particleRenderInfo partition pasteKey ' + + 'pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture ' + + 'pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo ' + + 'pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult ' + + 'pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend ' + + 'polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal ' + + 'polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge ' + + 'polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge ' + + 'polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet ' + + 'polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet ' + + 'polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection ' + + 'polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge ' + + 'polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet ' + + 'polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix ' + + 'polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut ' + + 'polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet ' + + 'polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge ' + + 'polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex ' + + 'polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection ' + + 'polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection ' + + 'polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint ' + + 'polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate ' + + 'polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge ' + + 'polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing ' + + 'polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet ' + + 'polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace ' + + 'popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer ' + + 'projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx ' + + 'propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd ' + + 'python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection ' + + 'radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl ' + + 'readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference ' + + 'referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE ' + + 'registerPluginResource rehash reloadImage removeJoint removeMultiInstance ' + + 'removePanelCategory rename renameAttr renameSelectionList renameUI render ' + + 'renderGlobalsNode renderInfo renderLayerButton renderLayerParent ' + + 'renderLayerPostProcess renderLayerUnparent renderManip renderPartition ' + + 'renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor ' + + 'renderWindowSelectContext renderer reorder reorderDeformers requires reroot ' + + 'resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget ' + + 'reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx ' + + 'rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout ' + + 'runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage ' + + 'saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale ' + + 'scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor ' + + 'sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable ' + + 'scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt ' + + 'searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey ' + + 'selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType ' + + 'selectedNodes selectionConnection separator setAttr setAttrEnumResource ' + + 'setAttrMapping setAttrNiceNameResource setConstraintRestPosition ' + + 'setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr ' + + 'setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe ' + + 'setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag ' + + 'setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject ' + + 'setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets ' + + 'shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare ' + + 'shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField ' + + 'shortNameOf showHelp showHidden showManipCtx showSelectionInTitle ' + + 'showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface ' + + 'size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep ' + + 'snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound ' + + 'soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort ' + + 'spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString ' + + 'startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp ' + + 'stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex ' + + 'stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex ' + + 'stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString ' + + 'stringToStringArray strip stripPrefixFromName stroke subdAutoProjection ' + + 'subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV ' + + 'subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror ' + + 'subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease ' + + 'subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring ' + + 'surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton ' + + 'symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext ' + + 'texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext ' + + 'texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text ' + + 'textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList ' + + 'textToShelf textureDisplacePlane textureHairColor texturePlacementContext ' + + 'textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath ' + + 'toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower ' + + 'toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper ' + + 'trace track trackCtx transferAttributes transformCompare transformLimits translator ' + + 'trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence ' + + 'twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit ' + + 'unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink ' + + 'uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane ' + + 'viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex ' + + 'waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire ' + + 'wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform', + illegal: '</', + contains: [ + hljs.C_NUMBER_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: '`', + end: '`', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + className: 'variable', + variants: [ + { + begin: '\\$\\d' + }, + { + begin: '[\\$\\%\\@](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)' + }, + { + begin: '\\*(\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)', + relevance: 0 + } + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }; + }; +}, {} +], +114: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = { + keyword: + 'module use_module import_module include_module end_module initialise ' + + 'mutable initialize finalize finalise interface implementation pred ' + + 'mode func type inst solver any_pred any_func is semidet det nondet ' + + 'multi erroneous failure cc_nondet cc_multi typeclass instance where ' + + 'pragma promise external trace atomic or_else require_complete_switch ' + + 'require_det require_semidet require_multi require_nondet ' + + 'require_cc_multi require_cc_nondet require_erroneous require_failure', + pragma: + 'inline no_inline type_spec source_file fact_table obsolete memo ' + + 'loop_check minimal_model terminates does_not_terminate ' + + 'check_termination promise_equivalent_clauses', + preprocessor: + 'foreign_proc foreign_decl foreign_code foreign_type ' + + 'foreign_import_module foreign_export_enum foreign_export ' + + 'foreign_enum may_call_mercury will_not_call_mercury thread_safe ' + + 'not_thread_safe maybe_thread_safe promise_pure promise_semipure ' + + 'tabled_for_io local untrailed trailed attach_to_io_state ' + + 'can_pass_as_mercury_type stable will_not_throw_exception ' + + 'may_modify_trail will_not_modify_trail may_duplicate ' + + 'may_not_duplicate affects_liveness does_not_affect_liveness ' + + 'doesnt_affect_liveness no_sharing unknown_sharing sharing', + built_in: + 'some all not if then else true fail false try catch catch_any ' + + 'semidet_true semidet_false semidet_fail impure_true impure semipure' + }; + + var TODO = { + className: 'label', + begin: 'XXX', + end: '$', + endsWithParent: true, + relevance: 0 + }; + var COMMENT = hljs.inherit(hljs.C_LINE_COMMENT_MODE, { + begin: '%' + }); + var CCOMMENT = hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, { + relevance: 0 + }); + COMMENT.contains.push(TODO); + CCOMMENT.contains.push(TODO); + + var NUMCODE = { + className: 'number', + begin: "0'.\\|0[box][0-9a-fA-F]*" + }; + + var ATOM = hljs.inherit(hljs.APOS_STRING_MODE, { + relevance: 0 + }); + var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { + relevance: 0 + }); + var STRING_FMT = { + className: 'constant', + begin: '\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]', + relevance: 0 + }; + STRING.contains.push(STRING_FMT); + + var IMPLICATION = { + className: 'built_in', + variants: [ + { + begin: '<=>' + }, + { + begin: '<=', + relevance: 0 + }, + { + begin: '=>', + relevance: 0 + }, + { + begin: '/\\\\' + }, + { + begin: '\\\\/' + } + ] + }; + + var HEAD_BODY_CONJUNCTION = { + className: 'built_in', + variants: [ + { + begin: ':-\\|-->' + }, + { + begin: '=', + relevance: 0 + } + ] + }; + + return { + aliases: ['m', 'moo'], + keywords: KEYWORDS, + contains: [ + IMPLICATION, + HEAD_BODY_CONJUNCTION, + COMMENT, + CCOMMENT, + NUMCODE, + hljs.NUMBER_MODE, + ATOM, + STRING, + { + begin: /:-/ + } + // relevance booster + ] + }; + }; +}, {} +], +115: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: + 'environ vocabularies notations constructors definitions ' + + 'registrations theorems schemes requirements begin end definition ' + + 'registration cluster existence pred func defpred deffunc theorem ' + + 'proof let take assume then thus hence ex for st holds consider ' + + 'reconsider such that and in provided of as from be being by means ' + + 'equals implies iff redefine define now not or attr is mode ' + + 'suppose per cases set thesis contradiction scheme reserve struct ' + + 'correctness compatibility coherence symmetry assymetry ' + + 'reflexivity irreflexivity connectedness uniqueness commutativity ' + + 'idempotence involutiveness projectivity', + contains: [ + hljs.COMMENT('::', '$') + ] + }; + }; +}, {} +], +116: [function(require, module, exports) { + module.exports = function(hljs) { + return { + subLanguage: 'xml', + contains: [ + { + className: 'preprocessor', + begin: '^__(END|DATA)__$' + }, + // mojolicious line + { + begin: "^\\s*%{1,2}={0,2}", + end: '$', + subLanguage: 'perl' + }, + // mojolicious block + { + begin: "<%{1,2}={0,2}", + end: "={0,1}%>", + subLanguage: 'perl', + excludeBegin: true, + excludeEnd: true + } + ] + }; + }; +}, {} +], +117: [function(require, module, exports) { + module.exports = function(hljs) { + var NUMBER = { + className: 'number', + relevance: 0, + variants: [ + { + begin: '[$][a-fA-F0-9]+' + }, + hljs.NUMBER_MODE + ] + }; + + return { + case_insensitive: true, + keywords: { + keyword: 'public private property continue exit extern new try catch ' + + 'eachin not abstract final select case default const local global field ' + + 'end if then else elseif endif while wend repeat until forever for to step next return module inline throw', + + built_in: 'DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil ' + + 'Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI', + + literal: 'true false null and or shl shr mod' + }, + contains: [ + hljs.COMMENT('#rem', '#end'), + hljs.COMMENT( + "'", + '$', + { + relevance: 0 + }), + { + className: 'function', + beginKeywords: 'function method', + end: '[(=:]|$', + illegal: /\n/, + contains: [ + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + className: 'class', + beginKeywords: 'class interface', + end: '$', + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + className: 'variable', + begin: '\\b(self|super)\\b' + }, + { + className: 'preprocessor', + beginKeywords: 'import', + end: '$' + }, + { + className: 'preprocessor', + begin: '\\s*#', + end: '$', + keywords: 'if else elseif endif end then' + }, + { + className: 'pi', + begin: '^\\s*strict\\b' + }, + { + beginKeywords: 'alias', + end: '=', + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + hljs.QUOTE_STRING_MODE, + NUMBER + ] + } + }; +}, {} +], +118: [function(require, module, exports) { + module.exports = function(hljs) { + var VAR = { + className: 'variable', + variants: [ + { + begin: /\$\d+/ + }, + { + begin: /\$\{/, + end: /}/ + }, + { + begin: '[\\$\\@]' + hljs.UNDERSCORE_IDENT_RE + } + ] + }; + var DEFAULT = { + endsWithParent: true, + lexemes: '[a-z/_]+', + keywords: { + built_in: + 'on off yes no true false none blocked debug info notice warn error crit ' + + 'select break last permanent redirect kqueue rtsig epoll poll /dev/poll' + }, + relevance: 0, + illegal: '=>', + contains: [ + hljs.HASH_COMMENT_MODE, + { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, VAR], + variants: [ + { + begin: /"/, + end: /"/ + }, + { + begin: /'/, + end: /'/ + } + ] + }, + { + className: 'url', + begin: '([a-z]+):/', + end: '\\s', + endsWithParent: true, + excludeEnd: true, + contains: [VAR] + }, + { + className: 'regexp', + contains: [hljs.BACKSLASH_ESCAPE, VAR], + variants: [ + { + begin: "\\s\\^", + end: "\\s|{|;", + returnEnd: true + }, + // regexp locations (~, ~*) + { + begin: "~\\*?\\s+", + end: "\\s|{|;", + returnEnd: true + }, + // *.example.com + { + begin: "\\*(\\.[a-z\\-]+)+" + }, + // sub.example.* + { + begin: "([a-z\\-]+\\.)+\\*" + } + ] + }, + // IP + { + className: 'number', + begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b' + }, + // units + { + className: 'number', + begin: '\\b\\d+[kKmMgGdshdwy]*\\b', + relevance: 0 + }, + VAR + ] + }; + + return { + aliases: ['nginxconf'], + contains: [ + hljs.HASH_COMMENT_MODE, + { + begin: hljs.UNDERSCORE_IDENT_RE + '\\s', + end: ';|{', + returnBegin: true, + contains: [ + { + className: 'title', + begin: hljs.UNDERSCORE_IDENT_RE, + starts: DEFAULT + } + ], + relevance: 0 + } + ], + illegal: '[^\\s\\}]' + }; + }; +}, {} +], +119: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['nim'], + keywords: { + keyword: 'addr and as asm bind block break|0 case|0 cast const|0 continue|0 converter discard distinct|10 div do elif else|0 end|0 enum|0 except export finally for from generic if|0 import|0 in include|0 interface is isnot|10 iterator|10 let|0 macro method|10 mixin mod nil not notin|10 object|0 of or out proc|10 ptr raise ref|10 return shl shr static template try|0 tuple type|0 using|0 var|0 when while|0 with without xor yield', + literal: 'shared guarded stdin stdout stderr result|10 true false' + }, + contains: [ { + className: 'decorator', + // Actually pragma + begin: /{\./, + end: /\.}/, + relevance: 10 + }, { + className: 'string', + begin: /[a-zA-Z]\w*"/, + end: /"/, + contains: [{ + begin: /""/ + } + ] + }, { + className: 'string', + begin: /([a-zA-Z]\w*)?"""/, + end: /"""/ + }, + hljs.QUOTE_STRING_MODE, + { + className: 'type', + begin: /\b[A-Z]\w+\b/, + relevance: 0 + }, { + className: 'type', + begin: /\b(int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float|float32|float64|bool|char|string|cstring|pointer|expr|stmt|void|auto|any|range|array|openarray|varargs|seq|set|clong|culong|cchar|cschar|cshort|cint|csize|clonglong|cfloat|cdouble|clongdouble|cuchar|cushort|cuint|culonglong|cstringarray|semistatic)\b/ + }, { + className: 'number', + begin: /\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/, + relevance: 0 + }, { + className: 'number', + begin: /\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/, + relevance: 0 + }, { + className: 'number', + begin: /\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/, + relevance: 0 + }, { + className: 'number', + begin: /\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/, + relevance: 0 + }, + hljs.HASH_COMMENT_MODE + ] + } + }; +}, {} +], +120: [function(require, module, exports) { + module.exports = function(hljs) { + var NIX_KEYWORDS = { + keyword: 'rec with let in inherit assert if else then', + constant: 'true false or and null', + built_in: + 'import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation' + }; + var ANTIQUOTE = { + className: 'subst', + begin: /\$\{/, + end: /}/, + keywords: NIX_KEYWORDS + }; + var ATTRS = { + className: 'variable', + // TODO: we have to figure out a way how to exclude \s*= + begin: /[a-zA-Z0-9-_]+(\s*=)/, + relevance: 0 + }; + var SINGLE_QUOTE = { + className: 'string', + begin: "''", + end: "''", + contains: [ + ANTIQUOTE + ] + }; + var DOUBLE_QUOTE = { + className: 'string', + begin: '"', + end: '"', + contains: [ + ANTIQUOTE + ] + }; + var EXPRESSIONS = [ + hljs.NUMBER_MODE, + hljs.HASH_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + SINGLE_QUOTE, + DOUBLE_QUOTE, + ATTRS + ]; + ANTIQUOTE.contains = EXPRESSIONS; + return { + aliases: ["nixos"], + keywords: NIX_KEYWORDS, + contains: EXPRESSIONS + }; + }; +}, {} +], +121: [function(require, module, exports) { + module.exports = function(hljs) { + var CONSTANTS = { + className: 'symbol', + begin: '\\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)' + }; + + var DEFINES = { + // ${defines} + className: 'constant', + begin: '\\$+{[a-zA-Z0-9_]+}' + }; + + var VARIABLES = { + // $variables + className: 'variable', + begin: '\\$+[a-zA-Z0-9_]+', + illegal: '\\(\\){}' + }; + + var LANGUAGES = { + // $(language_strings) + className: 'constant', + begin: '\\$+\\([a-zA-Z0-9_]+\\)' + }; + + var PARAMETERS = { + // command parameters + className: 'params', + begin: '(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)' + }; + + var COMPILER = { + // !compiler_flags + className: 'constant', + begin: '\\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)' + }; + + return { + case_insensitive: false, + keywords: { + keyword: + 'Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetPluginUnload SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption SubSectionEnd Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle', + literal: + 'admin all auto both colored current false force hide highest lastused leave listonly none normal notset off on open print show silent silentlog smooth textonly true user ' + }, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'string', + begin: '"', + end: '"', + illegal: '\\n', + contains: [ + { + // $\n, $\r, $\t, $$ + className: 'symbol', + begin: '\\$(\\\\(n|r|t)|\\$)' + }, + CONSTANTS, + DEFINES, + VARIABLES, + LANGUAGES + ] + }, + hljs.COMMENT( + ';', + '$', + { + relevance: 0 + }), + { + className: 'function', + beginKeywords: 'Function PageEx Section SectionGroup SubSection', + end: '$' + }, + COMPILER, + DEFINES, + VARIABLES, + LANGUAGES, + PARAMETERS, + hljs.NUMBER_MODE, + { + // plug::ins + className: 'literal', + begin: hljs.IDENT_RE + '::' + hljs.IDENT_RE + } + ] + }; + }; +}, {} +], +122: [function(require, module, exports) { + module.exports = function(hljs) { + var API_CLASS = { + className: 'built_in', + begin: '(AV|CA|CF|CG|CI|MK|MP|NS|UI)\\w+', + }; + var OBJC_KEYWORDS = { + keyword: + 'int float while char export sizeof typedef const struct for union ' + + 'unsigned long volatile static bool mutable if do return goto void ' + + 'enum else break extern asm case short default double register explicit ' + + 'signed typename this switch continue wchar_t inline readonly assign ' + + 'readwrite self @synchronized id typeof ' + + 'nonatomic super unichar IBOutlet IBAction strong weak copy ' + + 'in out inout bycopy byref oneway __strong __weak __block __autoreleasing ' + + '@private @protected @public @try @property @end @throw @catch @finally ' + + '@autoreleasepool @synthesize @dynamic @selector @optional @required', + literal: + 'false true FALSE TRUE nil YES NO NULL', + built_in: + 'BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once' + }; + var LEXEMES = /[a-zA-Z@][a-zA-Z0-9_]*/; + var CLASS_KEYWORDS = '@interface @class @protocol @implementation'; + return { + aliases: ['mm', 'objc', 'obj-c'], + keywords: OBJC_KEYWORDS, + lexemes: LEXEMES, + illegal: '</', + contains: [ + API_CLASS, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'string', + variants: [ + { + begin: '@"', + end: '"', + illegal: '\\n', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: '\'', + end: '[^\\\\]\'', + illegal: '[^\\\\][^\']' + } + ] + }, + { + className: 'preprocessor', + begin: '#', + end: '$', + contains: [ + { + className: 'title', + variants: [ + { + begin: '\"', + end: '\"' + }, + { + begin: '<', + end: '>' + } + ] + } + ] + }, + { + className: 'class', + begin: '(' + CLASS_KEYWORDS.split(' ').join('|') + ')\\b', + end: '({|$)', + excludeEnd: true, + keywords: CLASS_KEYWORDS, + lexemes: LEXEMES, + contains: [ + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + className: 'variable', + begin: '\\.' + hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + } + ] + }; + }; +}, {} +], +123: [function(require, module, exports) { + module.exports = function(hljs) { + /* missing support for heredoc-like string (OCaml 4.0.2+) */ + return { + aliases: ['ml'], + keywords: { + keyword: + 'and as assert asr begin class constraint do done downto else end ' + + 'exception external for fun function functor if in include ' + + 'inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method ' + + 'mod module mutable new object of open! open or private rec sig struct ' + + 'then to try type val! val virtual when while with ' + + /* camlp4 */ + 'parser value', + built_in: + /* built-in types */ + 'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit ' + + /* (some) types in Pervasives */ + 'in_channel out_channel ref', + literal: + 'true false' + }, + illegal: /\/\/|>>/, + lexemes: '[a-z_]\\w*!?', + contains: [ + { + className: 'literal', + begin: '\\[(\\|\\|)?\\]|\\(\\)', + relevance: 0 + }, + hljs.COMMENT( + '\\(\\*', + '\\*\\)', + { + contains: ['self'] + }), + { + /* type variable */ + className: 'symbol', + begin: '\'[A-Za-z_](?!\')[\\w\']*' + /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ + }, + { + /* polymorphic variant */ + className: 'tag', + begin: '`[A-Z][\\w\']*' + }, + { + /* module or constructor */ + className: 'type', + begin: '\\b[A-Z][\\w\']*', + relevance: 0 + }, + { + /* don't color identifiers, but safely catch all identifiers with '*/ + begin: '[a-z_]\\w*\'[\\w\']*' + }, + hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'char', + relevance: 0 + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + { + className: 'number', + begin: + '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' + + '0[oO][0-7_]+[Lln]?|' + + '0[bB][01_]+[Lln]?|' + + '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', + relevance: 0 + }, + { + begin: /[-=]>/ // relevance booster + } + ] + } + }; +}, {} +], +124: [function(require, module, exports) { + module.exports = function(hljs) { + var SPECIAL_VARS = { + className: 'keyword', + begin: '\\$(f[asn]|t|vp[rtd]|children)' + }, + LITERALS = { + className: 'literal', + begin: 'false|true|PI|undef' + }, + NUMBERS = { + className: 'number', + begin: '\\b\\d+(\\.\\d+)?(e-?\\d+)?', + //adds 1e5, 1e-10 + relevance: 0 + }, + STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + PREPRO = { + className: 'preprocessor', + keywords: 'include use', + begin: 'include|use <', + end: '>' + }, + PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)', + contains: ['self', NUMBERS, STRING, SPECIAL_VARS, LITERALS] + }, + MODIFIERS = { + className: 'built_in', + begin: '[*!#%]', + relevance: 0 + }, + FUNCTIONS = { + className: 'function', + beginKeywords: 'module function', + end: '\\=|\\{', + contains: [PARAMS, hljs.UNDERSCORE_TITLE_MODE] + }; + + return { + aliases: ['scad'], + keywords: { + keyword: 'function module include use for intersection_for if else \\%', + literal: 'false true PI undef', + built_in: 'circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign' + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + NUMBERS, + PREPRO, + STRING, + SPECIAL_VARS, + MODIFIERS, + FUNCTIONS + ] + } + }; +}, {} +], +125: [function(require, module, exports) { + module.exports = function(hljs) { + var OXYGENE_KEYWORDS = 'abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue ' + + 'create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false ' + + 'final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited ' + + 'inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of ' + + 'old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly ' + + 'record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple ' + + 'type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal ' + + 'register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained'; + var CURLY_COMMENT = hljs.COMMENT( + '{', + '}', + { + relevance: 0 + }); + var PAREN_COMMENT = hljs.COMMENT( + '\\(\\*', + '\\*\\)', + { + relevance: 10 + }); + var STRING = { + className: 'string', + begin: '\'', + end: '\'', + contains: [{ + begin: '\'\'' + } + ] + }; + var CHAR_STRING = { + className: 'string', + begin: '(#\\d+)+' + }; + var FUNCTION = { + className: 'function', + beginKeywords: 'function constructor destructor procedure method', + end: '[:;]', + keywords: 'function constructor|10 destructor|10 procedure|10 method|10', + contains: [ + hljs.TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)', + keywords: OXYGENE_KEYWORDS, + contains: [STRING, CHAR_STRING] + }, + CURLY_COMMENT, PAREN_COMMENT + ] + }; + return { + case_insensitive: true, + keywords: OXYGENE_KEYWORDS, + illegal: '("|\\$[G-Zg-z]|\\/\\*|</|=>|->)', + contains: [ + CURLY_COMMENT, PAREN_COMMENT, hljs.C_LINE_COMMENT_MODE, + STRING, CHAR_STRING, + hljs.NUMBER_MODE, + FUNCTION, + { + className: 'class', + begin: '=\\bclass\\b', + end: 'end;', + keywords: OXYGENE_KEYWORDS, + contains: [ + STRING, CHAR_STRING, + CURLY_COMMENT, PAREN_COMMENT, hljs.C_LINE_COMMENT_MODE, + FUNCTION + ] + } + ] + }; + }; +}, {} +], +126: [function(require, module, exports) { + module.exports = function(hljs) { + var CURLY_SUBCOMMENT = hljs.COMMENT( + '{', + '}', + { + contains: ['self'] + }); + return { + subLanguage: 'xml', + relevance: 0, + contains: [ + hljs.COMMENT('^#', '$'), + hljs.COMMENT( + '\\^rem{', + '}', + { + relevance: 10, + contains: [ + CURLY_SUBCOMMENT + ] + }), + { + className: 'preprocessor', + begin: '^@(?:BASE|USE|CLASS|OPTIONS)$', + relevance: 10 + }, + { + className: 'title', + begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$' + }, + { + className: 'variable', + begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?' + }, + { + className: 'keyword', + begin: '\\^[\\w\\-\\.\\:]+' + }, + { + className: 'number', + begin: '\\^#[0-9a-fA-F]+' + }, + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +127: [function(require, module, exports) { + module.exports = function(hljs) { + var PERL_KEYWORDS = 'getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ' + + 'ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime ' + + 'readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq' + + 'fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent ' + + 'shutdown dump chomp connect getsockname die socketpair close flock exists index shmget' + + 'sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr ' + + 'unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 ' + + 'getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline ' + + 'endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand ' + + 'mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink ' + + 'getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr ' + + 'untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link ' + + 'getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller ' + + 'lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and ' + + 'sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 ' + + 'chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach ' + + 'tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir' + + 'ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe ' + + 'atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when'; + var SUBST = { + className: 'subst', + begin: '[$@]\\{', + end: '\\}', + keywords: PERL_KEYWORDS + }; + var METHOD = { + begin: '->{', + end: '}' + // contains defined later + }; + var VAR = { + className: 'variable', + variants: [ + { + begin: /\$\d/ + }, + { + begin: /[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/ + }, + { + begin: /[\$%@][^\s\w{]/, + relevance: 0 + } + ] + }; + var STRING_CONTAINS = [hljs.BACKSLASH_ESCAPE, SUBST, VAR]; + var PERL_DEFAULT_CONTAINS = [ + VAR, + hljs.HASH_COMMENT_MODE, + hljs.COMMENT( + '^\\=\\w', + '\\=cut', + { + endsWithParent: true + }), + METHOD, + { + className: 'string', + contains: STRING_CONTAINS, + variants: [ + { + begin: 'q[qwxr]?\\s*\\(', + end: '\\)', + relevance: 5 + }, + { + begin: 'q[qwxr]?\\s*\\[', + end: '\\]', + relevance: 5 + }, + { + begin: 'q[qwxr]?\\s*\\{', + end: '\\}', + relevance: 5 + }, + { + begin: 'q[qwxr]?\\s*\\|', + end: '\\|', + relevance: 5 + }, + { + begin: 'q[qwxr]?\\s*\\<', + end: '\\>', + relevance: 5 + }, + { + begin: 'qw\\s+q', + end: 'q', + relevance: 5 + }, + { + begin: '\'', + end: '\'', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: '"', + end: '"' + }, + { + begin: '`', + end: '`', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + begin: '{\\w+}', + contains: [], + relevance: 0 + }, + { + begin: '\-?\\w+\\s*\\=\\>', + contains: [], + relevance: 0 + } + ] + }, + { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }, + { + // regexp container + begin: '(\\/\\/|' + hljs.RE_STARTERS_RE + '|\\b(split|return|print|reverse|grep)\\b)\\s*', + keywords: 'split return print reverse grep', + relevance: 0, + contains: [ + hljs.HASH_COMMENT_MODE, + { + className: 'regexp', + begin: '(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*', + relevance: 10 + }, + { + className: 'regexp', + begin: '(m|qr)?/', + end: '/[a-z]*', + contains: [hljs.BACKSLASH_ESCAPE], + relevance: 0 // allows empty "//" which is a common comment delimiter in other languages + } + ] + }, + { + className: 'sub', + beginKeywords: 'sub', + end: '(\\s*\\(.*?\\))?[;{]', + relevance: 5 + }, + { + className: 'operator', + begin: '-\\w\\b', + relevance: 0 + }, + { + begin: "^__DATA__$", + end: "^__END__$", + subLanguage: 'mojolicious', + contains: [ + { + begin: "^@@.*", + end: "$", + className: "comment" + } + ] + } + ]; + SUBST.contains = PERL_DEFAULT_CONTAINS; + METHOD.contains = PERL_DEFAULT_CONTAINS; + + return { + aliases: ['pl'], + keywords: PERL_KEYWORDS, + contains: PERL_DEFAULT_CONTAINS + }; + }; +}, {} +], +128: [function(require, module, exports) { + module.exports = function(hljs) { + var MACRO = { + className: 'variable', + begin: /\$[\w\d#@][\w\d_]*/ + }; + var TABLE = { + className: 'variable', + begin: /</, + end: />/ + }; + var QUOTE_STRING = { + className: 'string', + begin: /"/, + end: /"/ + }; + + return { + aliases: ['pf.conf'], + lexemes: /[a-z0-9_<>-]+/, + keywords: { + built_in: /* block match pass are "actions" in pf.conf(5), the rest are + * lexically similar top-level commands. + */ + 'block match pass load anchor|5 antispoof|10 set table', + keyword: + 'in out log quick on rdomain inet inet6 proto from port os to route' + + 'allow-opts divert-packet divert-reply divert-to flags group icmp-type' + + 'icmp6-type label once probability recieved-on rtable prio queue' + + 'tos tag tagged user keep fragment for os drop' + + 'af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin' + + 'source-hash static-port' + + 'dup-to reply-to route-to' + + 'parent bandwidth default min max qlimit' + + 'block-policy debug fingerprints hostid limit loginterface optimization' + + 'reassemble ruleset-optimization basic none profile skip state-defaults' + + 'state-policy timeout' + + 'const counters persist' + + 'no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy' + + 'source-track global rule max-src-nodes max-src-states max-src-conn' + + 'max-src-conn-rate overload flush' + + 'scrub|5 max-mss min-ttl no-df|10 random-id', + literal: + 'all any no-route self urpf-failed egress|5 unknown' + }, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + MACRO, + TABLE + ] + }; + }; +}, {} +], +129: [function(require, module, exports) { + module.exports = function(hljs) { + var VARIABLE = { + className: 'variable', + begin: '\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' + }; + var PREPROCESSOR = { + className: 'preprocessor', + begin: /<\?(php)?|\?>/ + }; + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, PREPROCESSOR], + variants: [ + { + begin: 'b"', + end: '"' + }, + { + begin: 'b\'', + end: '\'' + }, + hljs.inherit(hljs.APOS_STRING_MODE, { + illegal: null + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }) + ] + }; + var NUMBER = { + variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE] + }; + return { + aliases: ['php3', 'php4', 'php5', 'php6'], + case_insensitive: true, + keywords: + 'and include_once list abstract global private echo interface as static endswitch ' + + 'array null if endwhile or const for endforeach self var while isset public ' + + 'protected exit foreach throw elseif include __FILE__ empty require_once do xor ' + + 'return parent clone use __CLASS__ __LINE__ else break print eval new ' + + 'catch __METHOD__ case exception default die require __FUNCTION__ ' + + 'enddeclare final try switch continue endfor endif declare unset true false ' + + 'trait goto instanceof insteadof __DIR__ __NAMESPACE__ ' + + 'yield finally', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.HASH_COMMENT_MODE, + hljs.COMMENT( + '/\\*', + '\\*/', + { + contains: [ + { + className: 'doctag', + begin: '@[A-Za-z]+' + }, + PREPROCESSOR + ] + }), + hljs.COMMENT( + '__halt_compiler.+?;', + false, + { + endsWithParent: true, + keywords: '__halt_compiler', + lexemes: hljs.UNDERSCORE_IDENT_RE + }), + { + className: 'string', + begin: /<<<['"]?\w+['"]?$/, + end: /^\w+;?$/, + contains: [ + hljs.BACKSLASH_ESCAPE, + { + className: 'subst', + variants: [ + { + begin: /\$\w+/ + }, + { + begin: /\{\$/, + end: /\}/ + } + ] + } + ] + }, + PREPROCESSOR, + VARIABLE, + { + // swallow composed identifiers to avoid parsing them as keywords + begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/ + }, + { + className: 'function', + beginKeywords: 'function', + end: /[;{]/, + excludeEnd: true, + illegal: '\\$|\\[|%', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)', + contains: [ + 'self', + VARIABLE, + hljs.C_BLOCK_COMMENT_MODE, + STRING, + NUMBER + ] + } + ] + }, + { + className: 'class', + beginKeywords: 'class interface', + end: '{', + excludeEnd: true, + illegal: /[:\(\$"]/, + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + beginKeywords: 'namespace', + end: ';', + illegal: /[\.']/, + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + beginKeywords: 'use', + end: ';', + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + begin: '=>' // No markup, just a relevance booster + }, + STRING, + NUMBER + ] + }; + }; +}, {} +], +130: [function(require, module, exports) { + module.exports = function(hljs) { + var backtickEscape = { + begin: '`[\\s\\S]', + relevance: 0 + }; + var VAR = { + className: 'variable', + variants: [ + { + begin: /\$[\w\d][\w\d_:]*/ + } + ] + }; + var QUOTE_STRING = { + className: 'string', + begin: /"/, + end: /"/, + contains: [ + backtickEscape, + VAR, + { + className: 'variable', + begin: /\$[A-z]/, + end: /[^A-z]/ + } + ] + }; + var APOS_STRING = { + className: 'string', + begin: /'/, + end: /'/ + }; + + return { + aliases: ['ps'], + lexemes: /-?[A-z\.\-]+/, + case_insensitive: true, + keywords: { + keyword: 'if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch', + literal: '$null $true $false', + built_in: 'Add-Content Add-History Add-Member Add-PSSnapin Clear-Content Clear-Item Clear-Item Property Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ConvertTo-Html ConvertTo-SecureString Copy-Item Copy-ItemProperty Export-Alias Export-Clixml Export-Console Export-Csv ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item Join-Path Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug Set-Service Set-TraceSource Set-Variable Sort-Object Split-Path Start-Service Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where-Object Write-Debug Write-Error Write-Host Write-Output Write-Progress Write-Verbose Write-Warning', + operator: '-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace' + }, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.NUMBER_MODE, + QUOTE_STRING, + APOS_STRING, + VAR + ] + }; + }; +}, {} +], +131: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: 'BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color ' + + 'double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject ' + + 'Object StringDict StringList Table TableRow XML ' + + // Java keywords + 'false synchronized int abstract float private char boolean static null if const ' + + 'for true while long throw strictfp finally protected import native final return void ' + + 'enum else break transient new catch instanceof byte super volatile case assert short ' + + 'package default double public try this switch continue throws protected public private', + constant: 'P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI', + variable: 'displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key ' + + 'keyCode pixels focused frameCount frameRate height width', + title: 'setup draw', + built_in: 'size createGraphics beginDraw createShape loadShape PShape arc ellipse line point ' + + 'quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint ' + + 'curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex ' + + 'endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap ' + + 'strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased ' + + 'mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour ' + + 'millis minute month second year background clear colorMode fill noFill noStroke stroke alpha ' + + 'blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY ' + + 'screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ' + + 'ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle ' + + 'pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf ' + + 'nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset ' + + 'box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings ' + + 'loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput ' + + 'createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings ' + + 'saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale ' + + 'shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal ' + + 'pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap ' + + 'blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont ' + + 'loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil ' + + 'constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees ' + + 'radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed' + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +132: [function(require, module, exports) { + module.exports = function(hljs) { + return { + contains: [ + hljs.C_NUMBER_MODE, + { + className: 'built_in', + begin: '{', + end: '}$', + excludeBegin: true, + excludeEnd: true, + contains: [hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE], + relevance: 0 + }, + { + className: 'filename', + begin: '[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}', + end: ':', + excludeEnd: true + }, + { + className: 'header', + begin: '(ncalls|tottime|cumtime)', + end: '$', + keywords: 'ncalls tottime|10 cumtime|10 filename', + relevance: 10 + }, + { + className: 'summary', + begin: 'function calls', + end: '$', + contains: [hljs.C_NUMBER_MODE], + relevance: 10 + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'function', + begin: '\\(', + end: '\\)$', + contains: [ + hljs.UNDERSCORE_TITLE_MODE + ], + relevance: 0 + } + ] + }; + }; +}, {} +], +133: [function(require, module, exports) { + module.exports = function(hljs) { + + var ATOM = { + + className: 'atom', + begin: /[a-z][A-Za-z0-9_]*/, + relevance: 0 + }; + + var VAR = { + + className: 'name', + variants: [ + { + begin: /[A-Z][a-zA-Z0-9_]*/ + }, + { + begin: /_[A-Za-z0-9_]*/ + }, + ], + relevance: 0 + }; + + var PARENTED = { + + begin: /\(/, + end: /\)/, + relevance: 0 + }; + + var LIST = { + + begin: /\[/, + end: /\]/ + }; + + var LINE_COMMENT = { + + className: 'comment', + begin: /%/, end: /$/, + contains: [hljs.PHRASAL_WORDS_MODE] + }; + + var BACKTICK_STRING = { + + className: 'string', + begin: /`/, + end: /`/, + contains: [hljs.BACKSLASH_ESCAPE] + }; + + var CHAR_CODE = { + + className: 'string', + // 0'a etc. + begin: /0\'(\\\'|.)/ + }; + + var SPACE_CODE = { + + className: 'string', + begin: /0\'\\s/ // 0'\s + }; + + var PRED_OP = { + // relevance booster + begin: /:-/ + }; + + var inner = [ + ATOM, + VAR, + PARENTED, + PRED_OP, + LIST, + LINE_COMMENT, + hljs.C_BLOCK_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + BACKTICK_STRING, + CHAR_CODE, + SPACE_CODE, + hljs.C_NUMBER_MODE + ]; + + PARENTED.contains = inner; + LIST.contains = inner; + + return { + contains: inner.concat([ + { + begin: /\.$/ + } + // relevance booster + ]) + }; + }; +}, {} +], +134: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: 'package import option optional required repeated group', + built_in: 'double float int32 int64 uint32 uint64 sint32 sint64 ' + + 'fixed32 fixed64 sfixed32 sfixed64 bool string bytes', + literal: 'true false' + }, + contains: [ + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE, + hljs.C_LINE_COMMENT_MODE, + { + className: 'class', + beginKeywords: 'message enum service', + end: /\{/, + illegal: /\n/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + starts: { + endsWithParent: true, + excludeEnd: true + } + // hack: eating everything after the first title + }) + ] + }, + { + className: 'function', + beginKeywords: 'rpc', + end: /;/, + excludeEnd: true, + keywords: 'rpc returns' + }, + { + className: 'constant', + begin: /^\s*[A-Z_]+/, + end: /\s*=/, + excludeEnd: true + } + ] + }; + }; +}, {} +], +135: [function(require, module, exports) { + module.exports = function(hljs) { + + var PUPPET_KEYWORDS = { + keyword: + /* language keywords */ + 'and case default else elsif false if in import enherits node or true undef unless main settings $string ', + literal: + /* metaparameters */ + 'alias audit before loglevel noop require subscribe tag ' + + /* normal attributes */ + 'owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check ' + + 'en_address ip_address realname command environment hour monute month monthday special target weekday ' + + 'creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore ' + + 'links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source ' + + 'souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ' + + 'ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel ' + + 'native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options ' + + 'device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use ' + + 'message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform ' + + 'responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running ' + + 'start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age ' + + 'password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled ' + + 'enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist ' + + 'priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey ' + + 'sslverify mounted', + built_in: + /* core facts */ + 'architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers ' + + 'domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ' + + 'ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion ' + + 'kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease ' + + 'lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major ' + + 'macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease ' + + 'operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion ' + + 'rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced ' + + 'selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime ' + + 'uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version' + }; + + var COMMENT = hljs.COMMENT('#', '$'); + + var IDENT_RE = '([A-Za-z_]|::)(\\w|::)*'; + + var TITLE = hljs.inherit(hljs.TITLE_MODE, { + begin: IDENT_RE + }); + + var VARIABLE = { + className: 'variable', + begin: '\\$' + IDENT_RE + }; + + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, VARIABLE], + variants: [ + { + begin: /'/, + end: /'/ + }, + { + begin: /"/, + end: /"/ + } + ] + }; + + return { + aliases: ['pp'], + contains: [ + COMMENT, + VARIABLE, + STRING, + { + beginKeywords: 'class', + end: '\\{|;', + illegal: /=/, + contains: [TITLE, COMMENT] + }, + { + beginKeywords: 'define', + end: /\{/, + contains: [ + { + className: 'title', + begin: hljs.IDENT_RE, + endsParent: true + } + ] + }, + { + begin: hljs.IDENT_RE + '\\s+\\{', + returnBegin: true, + end: /\S/, + contains: [ + { + className: 'name', + begin: hljs.IDENT_RE + }, + { + begin: /\{/, + end: /\}/, + keywords: PUPPET_KEYWORDS, + relevance: 0, + contains: [ + STRING, + COMMENT, + { + begin: '[a-zA-Z_]+\\s*=>' + }, + { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }, + VARIABLE + ] + } + ], + relevance: 0 + } + ] + } + }; +}, {} +], +136: [function(require, module, exports) { + module.exports = function(hljs) { + var PROMPT = { + className: 'prompt', + begin: /^(>>>|\.\.\.) / + }; + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE], + variants: [ + { + begin: /(u|b)?r?'''/, + end: /'''/, + contains: [PROMPT], + relevance: 10 + }, + { + begin: /(u|b)?r?"""/, + end: /"""/, + contains: [PROMPT], + relevance: 10 + }, + { + begin: /(u|r|ur)'/, + end: /'/, + relevance: 10 + }, + { + begin: /(u|r|ur)"/, + end: /"/, + relevance: 10 + }, + { + begin: /(b|br)'/, + end: /'/ + }, + { + begin: /(b|br)"/, + end: /"/ + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }; + var NUMBER = { + className: 'number', + relevance: 0, + variants: [ + { + begin: hljs.BINARY_NUMBER_RE + '[lLjJ]?' + }, + { + begin: '\\b(0o[0-7]+)[lLjJ]?' + }, + { + begin: hljs.C_NUMBER_RE + '[lLjJ]?' + } + ] + }; + var PARAMS = { + className: 'params', + begin: /\(/, + end: /\)/, + contains: ['self', PROMPT, NUMBER, STRING] + }; + return { + aliases: ['py', 'gyp'], + keywords: { + keyword: + 'and elif is global as in if from raise for except finally print import pass return ' + + 'exec else break not with class assert yield try while continue del or def lambda ' + + 'async await nonlocal|10 None True False', + built_in: + 'Ellipsis NotImplemented' + }, + illegal: /(<\/|->|\?)/, + contains: [ + PROMPT, + NUMBER, + STRING, + hljs.HASH_COMMENT_MODE, + { + variants: [ + { + className: 'function', + beginKeywords: 'def', + relevance: 10 + }, + { + className: 'class', + beginKeywords: 'class' + } + ], + end: /:/, + illegal: /[${=;\n,]/, + contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS] + }, + { + className: 'decorator', + begin: /^[\t ]*@/, + end: /$/ + }, + { + begin: /\b(print|exec)\(/ // don’t highlight keywords-turned-functions in Python 3 + } + ] + }; + }; +}, {} +], +137: [function(require, module, exports) { + module.exports = function(hljs) { + var Q_KEYWORDS = { + keyword: + 'do while select delete by update from', + constant: + '0b 1b', + built_in: + 'neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum', + typename: + '`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid' + }; + return { + aliases: ['k', 'kdb'], + keywords: Q_KEYWORDS, + lexemes: /\b(`?)[A-Za-z0-9_]+\b/, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +138: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE = '([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*'; + + return { + contains: [ + hljs.HASH_COMMENT_MODE, + { + begin: IDENT_RE, + lexemes: IDENT_RE, + keywords: { + keyword: + 'function if in break next repeat else for return switch while try tryCatch ' + + 'stop warning require library attach detach source setMethod setGeneric ' + + 'setGroupGeneric setClass ...', + literal: + 'NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 ' + + 'NA_complex_|10' + }, + relevance: 0 + }, + { + // hex value + className: 'number', + begin: "0[xX][0-9a-fA-F]+[Li]?\\b", + relevance: 0 + }, + { + // explicit integer + className: 'number', + begin: "\\d+(?:[eE][+\\-]?\\d*)?L\\b", + relevance: 0 + }, + { + // number with trailing decimal + className: 'number', + begin: "\\d+\\.(?!\\d)(?:i\\b)?", + relevance: 0 + }, + { + // number + className: 'number', + begin: "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b", + relevance: 0 + }, + { + // number with leading decimal + className: 'number', + begin: "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b", + relevance: 0 + }, + { + // escaped identifier + begin: '`', + end: '`', + relevance: 0 + }, + { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE], + variants: [ + { + begin: '"', + end: '"' + }, + { + begin: "'", + end: "'" + } + ] + } + ] + }; + }; +}, {} +], +139: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: + 'ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis ' + + 'Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone ' + + 'CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail ' + + 'DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format ' + + 'FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry ' + + 'Hider Hyperboloid Identity Illuminate Imager Interior LightSource ' + + 'MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte ' + + 'MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option ' + + 'Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples ' + + 'PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection ' + + 'Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ' + + 'ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere ' + + 'SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd ' + + 'TransformPoints Translate TrimCurve WorldBegin WorldEnd', + illegal: '</', + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.C_NUMBER_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }; + }; +}, {} +], +140: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENTIFIER = '[a-zA-Z-_][^\n{\r\n]+\\{'; + + return { + aliases: ['graph', 'instances'], + case_insensitive: true, + keywords: 'import', + contains: [ + // Facet sections + { + className: 'facet', + begin: '^facet ' + IDENTIFIER, + end: '}', + keywords: 'facet installer exports children extends', + contains: [ + hljs.HASH_COMMENT_MODE + ] + }, + // Instance sections + { + className: 'instance-of', + begin: '^instance of ' + IDENTIFIER, + end: '}', + keywords: 'name count channels instance-data instance-state instance of', + contains: [ + // Instance overridden properties + { + className: 'keyword', + begin: '[a-zA-Z-_]+( |\t)*:' + }, + hljs.HASH_COMMENT_MODE + ] + }, + // Component sections + { + className: 'component', + begin: '^' + IDENTIFIER, + end: '}', + lexemes: '\\(?[a-zA-Z]+\\)?', + keywords: 'installer exports children extends imports facets alias (optional)', + contains: [ + // Imported component variables + { + className: 'string', + begin: '\\.[a-zA-Z-_]+', + end: '\\s|,|;', + excludeEnd: true + }, + hljs.HASH_COMMENT_MODE + ] + }, + // Comments + hljs.HASH_COMMENT_MODE + ] + }; + }; +}, {} +], +141: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: + 'float color point normal vector matrix while for if do return else break extern continue', + built_in: + 'abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise ' + + 'clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp ' + + 'faceforward filterstep floor format fresnel incident length lightsource log match ' + + 'max min mod noise normalize ntransform opposite option phong pnoise pow printf ' + + 'ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp ' + + 'setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan ' + + 'texture textureinfo trace transform vtransform xcomp ycomp zcomp' + }, + illegal: '</', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'preprocessor', + begin: '#', + end: '$' + }, + { + className: 'shader', + beginKeywords: 'surface displacement light volume imager', + end: '\\(' + }, + { + className: 'shading', + beginKeywords: 'illuminate illuminance gather', + end: '\\(' + } + ] + }; + }; +}, {} +], +142: [function(require, module, exports) { + module.exports = function(hljs) { + var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; + var RUBY_KEYWORDS = + 'and false then defined module in return redo if BEGIN retry end for true self when ' + + 'next until do begin unless END rescue nil else break undef not super class case ' + + 'require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor'; + var YARDOCTAG = { + className: 'doctag', + begin: '@[A-Za-z]+' + }; + var IRB_OBJECT = { + className: 'value', + begin: '#<', + end: '>' + }; + var COMMENT_MODES = [ + hljs.COMMENT( + '#', + '$', + { + contains: [YARDOCTAG] + }), + hljs.COMMENT( + '^\\=begin', + '^\\=end', + { + contains: [YARDOCTAG], + relevance: 10 + }), + hljs.COMMENT('^__END__', '\\n$') + ]; + var SUBST = { + className: 'subst', + begin: '#\\{', + end: '}', + keywords: RUBY_KEYWORDS + }; + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [ + { + begin: /'/, + end: /'/ + }, + { + begin: /"/, + end: /"/ + }, + { + begin: /`/, + end: /`/ + }, + { + begin: '%[qQwWx]?\\(', + end: '\\)' + }, + { + begin: '%[qQwWx]?\\[', + end: '\\]' + }, + { + begin: '%[qQwWx]?{', + end: '}' + }, + { + begin: '%[qQwWx]?<', + end: '>' + }, + { + begin: '%[qQwWx]?/', + end: '/' + }, + { + begin: '%[qQwWx]?%', + end: '%' + }, + { + begin: '%[qQwWx]?-', + end: '-' + }, + { + begin: '%[qQwWx]?\\|', + end: '\\|' + }, + { + // \B in the beginning suppresses recognition of ?-sequences where ? + // is the last character of a preceding identifier, as in: `func?4` + begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ + } + ] + }; + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)', + keywords: RUBY_KEYWORDS + }; + + var RUBY_DEFAULT_CONTAINS = [ + STRING, + IRB_OBJECT, + { + className: 'class', + beginKeywords: 'class module', + end: '$|;', + illegal: /=/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' + }), + { + className: 'inheritance', + begin: '<\\s*', + contains: [{ + className: 'parent', + begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE + } + ] + } + ].concat(COMMENT_MODES) + }, + { + className: 'function', + beginKeywords: 'def', + end: '$|;', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: RUBY_METHOD_RE + }), + PARAMS + ].concat(COMMENT_MODES) + }, + { + className: 'constant', + begin: '(::)?(\\b[A-Z]\\w*(::)?)+', + relevance: 0 + }, + { + className: 'symbol', + begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:', + relevance: 0 + }, + { + className: 'symbol', + begin: ':', + contains: [STRING, { + begin: RUBY_METHOD_RE + } + ], + relevance: 0 + }, + { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }, + { + className: 'variable', + begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' + }, + { + // regexp container + begin: '(' + hljs.RE_STARTERS_RE + ')\\s*', + contains: [ + IRB_OBJECT, + { + className: 'regexp', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + illegal: /\n/, + variants: [ + { + begin: '/', + end: '/[a-z]*' + }, + { + begin: '%r{', + end: '}[a-z]*' + }, + { + begin: '%r\\(', + end: '\\)[a-z]*' + }, + { + begin: '%r!', + end: '![a-z]*' + }, + { + begin: '%r\\[', + end: '\\][a-z]*' + } + ] + } + ].concat(COMMENT_MODES), + relevance: 0 + } + ].concat(COMMENT_MODES); + + SUBST.contains = RUBY_DEFAULT_CONTAINS; + PARAMS.contains = RUBY_DEFAULT_CONTAINS; + + var SIMPLE_PROMPT = "[>?]>"; + var DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>"; + var RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>"; + + var IRB_DEFAULT = [ + { + begin: /^\s*=>/, + className: 'status', + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + }, + { + className: 'prompt', + begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')', + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + } + ]; + + return { + aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'], + keywords: RUBY_KEYWORDS, + contains: COMMENT_MODES.concat(IRB_DEFAULT).concat(RUBY_DEFAULT_CONTAINS) + }; + }; +}, {} +], +143: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: 'BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE ' + + 'INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 ' + + 'INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 ' + + 'INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 ' + + 'INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 ' + + 'INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 ' + + 'INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 ' + + 'INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 ' + + 'INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 ' + + 'INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 ' + + 'INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 ' + + 'INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 ' + + 'INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 ' + + 'INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 ' + + 'INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 ' + + 'MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER ' + + 'OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE ' + + 'NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH ' + + 'IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND ' + + 'UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ' + + 'ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE ' + + 'GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE ' + + 'SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING ' + + 'DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF ' + + 'MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY ' + + 'YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE ' + + 'COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR ' + + 'READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ' + + 'ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE ' + + 'EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE ' + + 'SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL ' + + 'COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN ' + + 'MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING ' + + 'FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM ' + + 'NUMDAYS READ_DATE STAGING', + built_in: 'IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML ' + + 'DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT ' + + 'DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE ' + + 'DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT ' + + 'DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME' + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'array', + variants: [ + { + begin: '#\\s+[a-zA-Z\\ \\.]*', + relevance: 0 + }, // looks like #-comment + { + begin: '#[a-zA-Z\\ \\.]+' + } + ] + } + ] + }; + }; +}, {} +], +144: [function(require, module, exports) { + module.exports = function(hljs) { + var NUM_SUFFIX = '([uif](8|16|32|64|size))\?'; + var BLOCK_COMMENT = hljs.inherit(hljs.C_BLOCK_COMMENT_MODE); + BLOCK_COMMENT.contains.push('self'); + return { + aliases: ['rs'], + keywords: { + keyword: + 'alignof as be box break const continue crate do else enum extern ' + + 'false fn for if impl in let loop match mod mut offsetof once priv ' + + 'proc pub pure ref return self Self sizeof static struct super trait true ' + + 'type typeof unsafe unsized use virtual while where yield ' + + 'int i8 i16 i32 i64 ' + + 'uint u8 u32 u64 ' + + 'float f32 f64 ' + + 'str char bool', + built_in: + // prelude + 'Copy Send Sized Sync Drop Fn FnMut FnOnce drop Box ToOwned Clone ' + + 'PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator ' + + 'Extend IntoIterator DoubleEndedIterator ExactSizeIterator Option ' + + 'Some None Result Ok Err SliceConcatExt String ToString Vec ' + + // macros + 'assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! ' + + 'debug_assert! debug_assert_eq! env! panic! file! format! format_args! ' + + 'include_bin! include_str! line! local_data_key! module_path! ' + + 'option_env! print! println! select! stringify! try! unimplemented! ' + + 'unreachable! vec! write! writeln!' + }, + lexemes: hljs.IDENT_RE + '!?', + illegal: '</', + contains: [ + hljs.C_LINE_COMMENT_MODE, + BLOCK_COMMENT, + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + { + className: 'string', + variants: [ + { + begin: /r(#*)".*?"\1(?!#)/ + }, + { + begin: /'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/ + }, + { + begin: /'[a-zA-Z_][a-zA-Z0-9_]*/ + } + ] + }, + { + className: 'number', + variants: [ + { + begin: '\\b0b([01_]+)' + NUM_SUFFIX + }, + { + begin: '\\b0o([0-7_]+)' + NUM_SUFFIX + }, + { + begin: '\\b0x([A-Fa-f0-9_]+)' + NUM_SUFFIX + }, + { + begin: '\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)' + + NUM_SUFFIX + } + ], + relevance: 0 + }, + { + className: 'function', + beginKeywords: 'fn', + end: '(\\(|<)', + excludeEnd: true, + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + className: 'preprocessor', + begin: '#\\!?\\[', + end: '\\]' + }, + { + beginKeywords: 'type', + end: '(=|<)', + contains: [hljs.UNDERSCORE_TITLE_MODE], + illegal: '\\S' + }, + { + beginKeywords: 'trait enum', + end: '{', + contains: [ + hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, { + endsParent: true + }) + ], + illegal: '[\\w\\d]' + }, + { + begin: hljs.IDENT_RE + '::' + }, + { + begin: '->' + } + ] + }; + }; +}, {} +], +145: [function(require, module, exports) { + module.exports = function(hljs) { + + var ANNOTATION = { + className: 'annotation', + begin: '@[A-Za-z]+' + }; + + var STRING = { + className: 'string', + begin: 'u?r?"""', + end: '"""', + relevance: 10 + }; + + var SYMBOL = { + className: 'symbol', + begin: '\'\\w[\\w\\d_]*(?!\')' + }; + + var TYPE = { + className: 'type', + begin: '\\b[A-Z][A-Za-z0-9_]*', + relevance: 0 + }; + + var NAME = { + className: 'title', + begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/, + relevance: 0 + }; + + var CLASS = { + className: 'class', + beginKeywords: 'class object trait type', + end: /[:={\[(\n;]/, + contains: [{ + className: 'keyword', + beginKeywords: 'extends with', + relevance: 10 + }, NAME] + }; + + var METHOD = { + className: 'function', + beginKeywords: 'def val', + end: /[:={\[(\n;]/, + contains: [NAME] + }; + + return { + keywords: { + literal: 'true false null', + keyword: 'type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit' + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + STRING, + hljs.QUOTE_STRING_MODE, + SYMBOL, + TYPE, + METHOD, + CLASS, + hljs.C_NUMBER_MODE, + ANNOTATION + ] + }; + }; +}, {} +], +146: [function(require, module, exports) { + module.exports = function(hljs) { + var SCHEME_IDENT_RE = '[^\\(\\)\\[\\]\\{\\}",\'`;#|\\\\\\s]+'; + var SCHEME_SIMPLE_NUMBER_RE = '(\\-|\\+)?\\d+([./]\\d+)?'; + var SCHEME_COMPLEX_NUMBER_RE = SCHEME_SIMPLE_NUMBER_RE + '[+\\-]' + SCHEME_SIMPLE_NUMBER_RE + 'i'; + var BUILTINS = { + built_in: + 'case-lambda call/cc class define-class exit-handler field import ' + + 'inherit init-field interface let*-values let-values let/ec mixin ' + + 'opt-lambda override protect provide public rename require ' + + 'require-for-syntax syntax syntax-case syntax-error unit/sig unless ' + + 'when with-syntax and begin call-with-current-continuation ' + + 'call-with-input-file call-with-output-file case cond define ' + + 'define-syntax delay do dynamic-wind else for-each if lambda let let* ' + + 'let-syntax letrec letrec-syntax map or syntax-rules \' * + , ,@ - ... / ' + + '; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan ' + + 'boolean? caar cadr call-with-input-file call-with-output-file ' + + 'call-with-values car cdddar cddddr cdr ceiling char->integer ' + + 'char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? ' + + 'char-downcase char-lower-case? char-numeric? char-ready? char-upcase ' + + 'char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? ' + + 'char? close-input-port close-output-port complex? cons cos ' + + 'current-input-port current-output-port denominator display eof-object? ' + + 'eq? equal? eqv? eval even? exact->inexact exact? exp expt floor ' + + 'force gcd imag-part inexact->exact inexact? input-port? integer->char ' + + 'integer? interaction-environment lcm length list list->string ' + + 'list->vector list-ref list-tail list? load log magnitude make-polar ' + + 'make-rectangular make-string make-vector max member memq memv min ' + + 'modulo negative? newline not null-environment null? number->string ' + + 'number? numerator odd? open-input-file open-output-file output-port? ' + + 'pair? peek-char port? positive? procedure? quasiquote quote quotient ' + + 'rational? rationalize read read-char real-part real? remainder reverse ' + + 'round scheme-report-environment set! set-car! set-cdr! sin sqrt string ' + + 'string->list string->number string->symbol string-append string-ci<=? ' + + 'string-ci<? string-ci=? string-ci>=? string-ci>? string-copy ' + + 'string-fill! string-length string-ref string-set! string<=? string<? ' + + 'string=? string>=? string>? string? substring symbol->string symbol? ' + + 'tan transcript-off transcript-on truncate values vector ' + + 'vector->list vector-fill! vector-length vector-ref vector-set! ' + + 'with-input-from-file with-output-to-file write write-char zero?' + }; + + var SHEBANG = { + className: 'shebang', + begin: '^#!', + end: '$' + }; + + var LITERAL = { + className: 'literal', + begin: '(#t|#f|#\\\\' + SCHEME_IDENT_RE + '|#\\\\.)' + }; + + var NUMBER = { + className: 'number', + variants: [ + { + begin: SCHEME_SIMPLE_NUMBER_RE, + relevance: 0 + }, + { + begin: SCHEME_COMPLEX_NUMBER_RE, + relevance: 0 + }, + { + begin: '#b[0-1]+(/[0-1]+)?' + }, + { + begin: '#o[0-7]+(/[0-7]+)?' + }, + { + begin: '#x[0-9a-f]+(/[0-9a-f]+)?' + } + ] + }; + + var STRING = hljs.QUOTE_STRING_MODE; + + var REGULAR_EXPRESSION = { + className: 'regexp', + begin: '#[pr]x"', + end: '[^\\\\]"' + }; + + var COMMENT_MODES = [ + hljs.COMMENT( + ';', + '$', + { + relevance: 0 + }), + hljs.COMMENT('#\\|', '\\|#') + ]; + + var IDENT = { + begin: SCHEME_IDENT_RE, + relevance: 0 + }; + + var QUOTED_IDENT = { + className: 'variable', + begin: '\'' + SCHEME_IDENT_RE + }; + + var BODY = { + endsWithParent: true, + relevance: 0 + }; + + var LIST = { + className: 'list', + variants: [ + { + begin: '\\(', + end: '\\)' + }, + { + begin: '\\[', + end: '\\]' + } + ], + contains: [ + { + className: 'keyword', + begin: SCHEME_IDENT_RE, + lexemes: SCHEME_IDENT_RE, + keywords: BUILTINS + }, + BODY + ] + }; + + BODY.contains = [LITERAL, NUMBER, STRING, IDENT, QUOTED_IDENT, LIST].concat(COMMENT_MODES); + + return { + illegal: /\S/, + contains: [SHEBANG, NUMBER, STRING, QUOTED_IDENT, LIST].concat(COMMENT_MODES) + }; + }; +}, {} +], +147: [function(require, module, exports) { + module.exports = function(hljs) { + + var COMMON_CONTAINS = [ + hljs.C_NUMBER_MODE, + { + className: 'string', + begin: '\'|\"', + end: '\'|\"', + contains: [hljs.BACKSLASH_ESCAPE, { + begin: '\'\'' + } + ] + } + ]; + + return { + aliases: ['sci'], + keywords: { + keyword: 'abort break case clear catch continue do elseif else endfunction end for function' + + 'global if pause return resume select try then while' + + '%f %F %t %T %pi %eps %inf %nan %e %i %z %s', + built_in: // Scilab has more than 2000 functions. Just list the most commons + 'abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error' + + 'exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty' + + 'isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log' + + 'max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real' + + 'round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan' + + 'type typename warning zeros matrix' + }, + illegal: '("|#|/\\*|\\s+/\\w+)', + contains: [ + { + className: 'function', + beginKeywords: 'function endfunction', + end: '$', + keywords: 'function endfunction|10', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)' + } + ] + }, + { + className: 'transposed_variable', + begin: '[a-zA-Z_][a-zA-Z_0-9]*(\'+[\\.\']*|[\\.\']+)', + end: '', + relevance: 0 + }, + { + className: 'matrix', + begin: '\\[', + end: '\\]\'*[\\.\']*', + relevance: 0, + contains: COMMON_CONTAINS + }, + hljs.COMMENT('//', '$') + ].concat(COMMON_CONTAINS) + }; + }; +}, {} +], +148: [function(require, module, exports) { + module.exports = function(hljs) { + var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*'; + var VARIABLE = { + className: 'variable', + begin: '(\\$' + IDENT_RE + ')\\b' + }; + var FUNCTION = { + className: 'function', + begin: IDENT_RE + '\\(', + returnBegin: true, + excludeEnd: true, + end: '\\(' + }; + var HEXCOLOR = { + className: 'hexcolor', + begin: '#[0-9A-Fa-f]+' + }; + var DEF_INTERNALS = { + className: 'attribute', + begin: '[A-Z\\_\\.\\-]+', + end: ':', + excludeEnd: true, + illegal: '[^\\s]', + starts: { + className: 'value', + endsWithParent: true, + excludeEnd: true, + contains: [ + FUNCTION, + HEXCOLOR, + hljs.CSS_NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'important', + begin: '!important' + } + ] + } + }; + return { + case_insensitive: true, + illegal: '[=/|\']', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + FUNCTION, + { + className: 'id', + begin: '\\#[A-Za-z0-9_-]+', + relevance: 0 + }, + { + className: 'class', + begin: '\\.[A-Za-z0-9_-]+', + relevance: 0 + }, + { + className: 'attr_selector', + begin: '\\[', + end: '\\]', + illegal: '$' + }, + { + className: 'tag', + // begin: IDENT_RE, end: '[,|\\s]' + begin: '\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b', + relevance: 0 + }, + { + className: 'pseudo', + begin: ':(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)' + }, + { + className: 'pseudo', + begin: '::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)' + }, + VARIABLE, + { + className: 'attribute', + begin: '\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b', + illegal: '[^\\s]' + }, + { + className: 'value', + begin: '\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b' + }, + { + className: 'value', + begin: ':', + end: ';', + contains: [ + FUNCTION, + VARIABLE, + HEXCOLOR, + hljs.CSS_NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + { + className: 'important', + begin: '!important' + } + ] + }, + { + className: 'at_rule', + begin: '@', + end: '[{;]', + keywords: 'mixin include extend for if else each while charset import debug media page content font-face namespace warn', + contains: [ + FUNCTION, + VARIABLE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + HEXCOLOR, + hljs.CSS_NUMBER_MODE, + { + className: 'preprocessor', + begin: '\\s[A-Za-z0-9_.-]+', + relevance: 0 + } + ] + } + ] + }; + }; +}, {} +], +149: [function(require, module, exports) { + module.exports = function(hljs) { + var smali_instr_low_prio = ['add', 'and', 'cmp', 'cmpg', 'cmpl', 'const', 'div', 'double', 'float', 'goto', 'if', 'int', 'long', 'move', 'mul', 'neg', 'new', 'nop', 'not', 'or', 'rem', 'return', 'shl', 'shr', 'sput', 'sub', 'throw', 'ushr', 'xor']; + var smali_instr_high_prio = ['aget', 'aput', 'array', 'check', 'execute', 'fill', 'filled', 'goto/16', 'goto/32', 'iget', 'instance', 'invoke', 'iput', 'monitor', 'packed', 'sget', 'sparse']; + var smali_keywords = ['transient', 'constructor', 'abstract', 'final', 'synthetic', 'public', 'private', 'protected', 'static', 'bridge', 'system']; + return { + aliases: ['smali'], + contains: [ + { + className: 'string', + begin: '"', + end: '"', + relevance: 0 + }, + hljs.COMMENT( + '#', + '$', + { + relevance: 0 + }), + { + className: 'keyword', + begin: '\\s*\\.end\\s[a-zA-Z0-9]*', + relevance: 1 + }, + { + className: 'keyword', + begin: '^[ ]*\\.[a-zA-Z]*', + relevance: 0 + }, + { + className: 'keyword', + begin: '\\s:[a-zA-Z_0-9]*', + relevance: 0 + }, + { + className: 'keyword', + begin: '\\s(' + smali_keywords.join('|') + ')', + relevance: 1 + }, + { + className: 'keyword', + begin: '\\[', + relevance: 0 + }, + { + className: 'instruction', + begin: '\\s(' + smali_instr_low_prio.join('|') + ')\\s', + relevance: 1 + }, + { + className: 'instruction', + begin: '\\s(' + smali_instr_low_prio.join('|') + ')((\\-|/)[a-zA-Z0-9]+)+\\s', + relevance: 10 + }, + { + className: 'instruction', + begin: '\\s(' + smali_instr_high_prio.join('|') + ')((\\-|/)[a-zA-Z0-9]+)*\\s', + relevance: 10 + }, + { + className: 'class', + begin: 'L[^\(;:\n]*;', + relevance: 0 + }, + { + className: 'function', + begin: '( |->)[^(\n ;"]*\\(', + relevance: 0 + }, + { + className: 'function', + begin: '\\)', + relevance: 0 + }, + { + className: 'variable', + begin: '[vp][0-9]+', + relevance: 0 + } + ] + }; + }; +}, {} +], +150: [function(require, module, exports) { + module.exports = function(hljs) { + var VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*'; + var CHAR = { + className: 'char', + begin: '\\$.{1}' + }; + var SYMBOL = { + className: 'symbol', + begin: '#' + hljs.UNDERSCORE_IDENT_RE + }; + return { + aliases: ['st'], + keywords: 'self super nil true false thisContext', + // only 6 + contains: [ + hljs.COMMENT('"', '"'), + hljs.APOS_STRING_MODE, + { + className: 'class', + begin: '\\b[A-Z][A-Za-z0-9_]*', + relevance: 0 + }, + { + className: 'method', + begin: VAR_IDENT_RE + ':', + relevance: 0 + }, + hljs.C_NUMBER_MODE, + SYMBOL, + CHAR, + { + className: 'localvars', + // This looks more complicated than needed to avoid combinatorial + // explosion under V8. It effectively means `| var1 var2 ... |` with + // whitespace adjacent to `|` being optional. + begin: '\\|[ ]*' + VAR_IDENT_RE + '([ ]+' + VAR_IDENT_RE + ')*[ ]*\\|', + returnBegin: true, + end: /\|/, + illegal: /\S/, + contains: [{ + begin: '(\\|[ ]*)?' + VAR_IDENT_RE + } + ] + }, + { + className: 'array', + begin: '\\#\\(', + end: '\\)', + contains: [ + hljs.APOS_STRING_MODE, + CHAR, + hljs.C_NUMBER_MODE, + SYMBOL + ] + } + ] + }; + }; +}, {} +], +151: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['ml'], + keywords: { + keyword: + /* according to Definition of Standard ML 97 */ + 'abstype and andalso as case datatype do else end eqtype ' + + 'exception fn fun functor handle if in include infix infixr ' + + 'let local nonfix of op open orelse raise rec sharing sig ' + + 'signature struct structure then type val with withtype where while', + built_in: + /* built-in types according to basis library */ + 'array bool char exn int list option order real ref string substring vector unit word', + literal: + 'true false NONE SOME LESS EQUAL GREATER nil' + }, + illegal: /\/\/|>>/, + lexemes: '[a-z_]\\w*!?', + contains: [ + { + className: 'literal', + begin: '\\[(\\|\\|)?\\]|\\(\\)' + }, + hljs.COMMENT( + '\\(\\*', + '\\*\\)', + { + contains: ['self'] + }), + { + /* type variable */ + className: 'symbol', + begin: '\'[A-Za-z_](?!\')[\\w\']*' + /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ + }, + { + /* polymorphic variant */ + className: 'tag', + begin: '`[A-Z][\\w\']*' + }, + { + /* module or constructor */ + className: 'type', + begin: '\\b[A-Z][\\w\']*', + relevance: 0 + }, + { + /* don't color identifiers, but safely catch all identifiers with '*/ + begin: '[a-z_]\\w*\'[\\w\']*' + }, + hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'char', + relevance: 0 + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + { + className: 'number', + begin: + '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' + + '0[oO][0-7_]+[Lln]?|' + + '0[bB][01_]+[Lln]?|' + + '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', + relevance: 0 + }, + { + begin: /[-=]>/ // relevance booster + } + ] + }; + }; +}, {} +], +152: [function(require, module, exports) { + module.exports = function(hljs) { + var COMMENT_MODE = hljs.COMMENT('--', '$'); + return { + case_insensitive: true, + illegal: /[<>{}*]/, + contains: [ + { + className: 'operator', + beginKeywords: + 'begin end start commit rollback savepoint lock alter create drop rename call ' + + 'delete do handler insert load replace select truncate update set show pragma grant ' + + 'merge describe use explain help declare prepare execute deallocate release ' + + 'unlock purge reset change stop analyze cache flush optimize repair kill ' + + 'install uninstall checksum restore check backup revoke', + end: /;/, + endsWithParent: true, + keywords: { + keyword: + 'abort abs absolute acc acce accep accept access accessed accessible account acos action activate add ' + + 'addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias ' + + 'allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply ' + + 'archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan ' + + 'atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid ' + + 'authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile ' + + 'before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float ' + + 'binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound ' + + 'buffer_cache buffer_pool build bulk by byte byteordermark bytes c cache caching call calling cancel ' + + 'capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base ' + + 'char_length character_length characters characterset charindex charset charsetform charsetid check ' + + 'checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close ' + + 'cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation ' + + 'collect colu colum column column_value columns columns_updated comment commit compact compatibility ' + + 'compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn ' + + 'connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection ' + + 'consider consistent constant constraint constraints constructor container content contents context ' + + 'contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost ' + + 'count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation ' + + 'critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user ' + + 'cursor curtime customdatum cycle d data database databases datafile datafiles datalength date_add ' + + 'date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts ' + + 'day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate ' + + 'declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults ' + + 'deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank ' + + 'depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor ' + + 'deterministic diagnostics difference dimension direct_load directory disable disable_all ' + + 'disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div ' + + 'do document domain dotnet double downgrade drop dumpfile duplicate duration e each edition editionable ' + + 'editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt ' + + 'end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors ' + + 'escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding ' + + 'execu execut execute exempt exists exit exp expire explain export export_set extended extent external ' + + 'external_1 external_2 externally extract f failed failed_login_attempts failover failure far fast ' + + 'feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final ' + + 'finish first first_value fixed flash_cache flashback floor flush following follows for forall force ' + + 'form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ' + + 'ftp full function g general generated get get_format get_lock getdate getutcdate global global_name ' + + 'globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups ' + + 'gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex ' + + 'hierarchy high high_priority hosts hour http i id ident_current ident_incr ident_seed identified ' + + 'identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment ' + + 'index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile ' + + 'initial initialized initially initrans inmemory inner innodb input insert install instance instantiable ' + + 'instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat ' + + 'is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists ' + + 'k keep keep_duplicates key keys kill l language large last last_day last_insert_id last_value lax lcase ' + + 'lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit ' + + 'lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate ' + + 'locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call ' + + 'logoff logon logs long loop low low_priority lower lpad lrtrim ltrim m main make_set makedate maketime ' + + 'managed management manual map mapping mask master master_pos_wait match matched materialized max ' + + 'maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans ' + + 'md5 measures median medium member memcompress memory merge microsecond mid migration min minextents ' + + 'minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month ' + + 'months mount move movement multiset mutex n name name_const names nan national native natural nav nchar ' + + 'nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile ' + + 'nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile ' + + 'nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder ' + + 'nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck ' + + 'noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe ' + + 'nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ' + + 'ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old ' + + 'on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date ' + + 'oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary ' + + 'out outer outfile outline output over overflow overriding p package pad parallel parallel_enable ' + + 'parameters parent parse partial partition partitions pascal passing password password_grace_time ' + + 'password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex ' + + 'pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc ' + + 'performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin ' + + 'policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction ' + + 'prediction_cost prediction_details prediction_probability prediction_set prepare present preserve ' + + 'prior priority private private_sga privileges procedural procedure procedure_analyze processlist ' + + 'profiles project prompt protection public publishingservername purge quarter query quick quiesce quota ' + + 'quotename radians raise rand range rank raw read reads readsize rebuild record records ' + + 'recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh ' + + 'regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy ' + + 'reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename ' + + 'repair repeat replace replicate replication required reset resetlogs resize resource respect restore ' + + 'restricted result result_cache resumable resume retention return returning returns reuse reverse revoke ' + + 'right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows ' + + 'rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll ' + + 'sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select ' + + 'self sequence sequential serializable server servererror session session_user sessions_per_user set ' + + 'sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor ' + + 'si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin ' + + 'size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex ' + + 'source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows ' + + 'sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone ' + + 'standby start starting startup statement static statistics stats_binomial_test stats_crosstab ' + + 'stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep ' + + 'stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev ' + + 'stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate ' + + 'subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum ' + + 'suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate ' + + 'sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime t table tables tablespace tan tdo ' + + 'template temporary terminated tertiary_weights test than then thread through tier ties time time_format ' + + 'time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr ' + + 'timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking ' + + 'transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate ' + + 'try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress ' + + 'under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot ' + + 'unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert ' + + 'url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date ' + + 'utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var ' + + 'var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray ' + + 'verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear ' + + 'wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped ' + + 'xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces ' + + 'xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek', + literal: + 'true false null', + built_in: + 'array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number ' + + 'numeric real record serial serial8 smallint text varchar varying void' + }, + contains: [ + { + className: 'string', + begin: '\'', + end: '\'', + contains: [hljs.BACKSLASH_ESCAPE, { + begin: '\'\'' + } + ] + }, + { + className: 'string', + begin: '"', + end: '"', + contains: [hljs.BACKSLASH_ESCAPE, { + begin: '""' + } + ] + }, + { + className: 'string', + begin: '`', + end: '`', + contains: [hljs.BACKSLASH_ESCAPE] + }, + hljs.C_NUMBER_MODE, + hljs.C_BLOCK_COMMENT_MODE, + COMMENT_MODE + ] + }, + hljs.C_BLOCK_COMMENT_MODE, + COMMENT_MODE + ] + }; + }; +}, {} +], +153: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['do', 'ado'], + case_insensitive: true, + keywords: 'if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5', + contains: [ + { + className: 'label', + variants: [ + { + begin: "\\$\\{?[a-zA-Z0-9_]+\\}?" + }, + { + begin: "`[a-zA-Z0-9_]+'" + } + + ] + }, + { + className: 'string', + variants: [ + { + begin: '`"[^\r\n]*?"\'' + }, + { + begin: '"[^\r\n"]*"' + } + ] + }, + { + className: 'literal', + variants: [ + { + begin: '\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)' + } + ] + }, + hljs.COMMENT('^[ \t]*\\*.*$', false), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }; + }; +}, {} +], +154: [function(require, module, exports) { + module.exports = function(hljs) { + var STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*'; + var STEP21_CLOSE_RE = 'END-ISO-10303-21;'; + var STEP21_KEYWORDS = { + literal: '', + built_in: '', + keyword: + 'HEADER ENDSEC DATA' + }; + var STEP21_START = { + className: 'preprocessor', + begin: 'ISO-10303-21;', + relevance: 10 + }; + var STEP21_CODE = [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.COMMENT('/\\*\\*!', '\\*/'), + hljs.C_NUMBER_MODE, + hljs.inherit(hljs.APOS_STRING_MODE, { + illegal: null + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }), + { + className: 'string', + begin: "'", + end: "'" + }, + { + className: 'label', + variants: [ + { + begin: '#', + end: '\\d+', + illegal: '\\W' + } + ] + } + ]; + + return { + aliases: ['p21', 'step', 'stp'], + case_insensitive: true, + // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized. + lexemes: STEP21_IDENT_RE, + keywords: STEP21_KEYWORDS, + contains: [ + { + className: 'preprocessor', + begin: STEP21_CLOSE_RE, + relevance: 10 + }, + STEP21_START + ].concat(STEP21_CODE) + }; + }; +}, {} +], +155: [function(require, module, exports) { + module.exports = function(hljs) { + + var VARIABLE = { + className: 'variable', + begin: '\\$' + hljs.IDENT_RE + }; + + var HEX_COLOR = { + className: 'hexcolor', + begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})', + relevance: 10 + }; + + var AT_KEYWORDS = [ + 'charset', + 'css', + 'debug', + 'extend', + 'font-face', + 'for', + 'import', + 'include', + 'media', + 'mixin', + 'page', + 'warn', + 'while' + ]; + + var PSEUDO_SELECTORS = [ + 'after', + 'before', + 'first-letter', + 'first-line', + 'active', + 'first-child', + 'focus', + 'hover', + 'lang', + 'link', + 'visited' + ]; + + var TAGS = [ + 'a', + 'abbr', + 'address', + 'article', + 'aside', + 'audio', + 'b', + 'blockquote', + 'body', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'dd', + 'del', + 'details', + 'dfn', + 'div', + 'dl', + 'dt', + 'em', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'header', + 'hgroup', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'label', + 'legend', + 'li', + 'mark', + 'menu', + 'nav', + 'object', + 'ol', + 'p', + 'q', + 'quote', + 'samp', + 'section', + 'span', + 'strong', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'tr', + 'ul', + 'var', + 'video' + ]; + + var TAG_END = '[\\.\\s\\n\\[\\:,]'; + + var ATTRIBUTES = [ + 'align-content', + 'align-items', + 'align-self', + 'animation', + 'animation-delay', + 'animation-direction', + 'animation-duration', + 'animation-fill-mode', + 'animation-iteration-count', + 'animation-name', + 'animation-play-state', + 'animation-timing-function', + 'auto', + 'backface-visibility', + 'background', + 'background-attachment', + 'background-clip', + 'background-color', + 'background-image', + 'background-origin', + 'background-position', + 'background-repeat', + 'background-size', + 'border', + 'border-bottom', + 'border-bottom-color', + 'border-bottom-left-radius', + 'border-bottom-right-radius', + 'border-bottom-style', + 'border-bottom-width', + 'border-collapse', + 'border-color', + 'border-image', + 'border-image-outset', + 'border-image-repeat', + 'border-image-slice', + 'border-image-source', + 'border-image-width', + 'border-left', + 'border-left-color', + 'border-left-style', + 'border-left-width', + 'border-radius', + 'border-right', + 'border-right-color', + 'border-right-style', + 'border-right-width', + 'border-spacing', + 'border-style', + 'border-top', + 'border-top-color', + 'border-top-left-radius', + 'border-top-right-radius', + 'border-top-style', + 'border-top-width', + 'border-width', + 'bottom', + 'box-decoration-break', + 'box-shadow', + 'box-sizing', + 'break-after', + 'break-before', + 'break-inside', + 'caption-side', + 'clear', + 'clip', + 'clip-path', + 'color', + 'column-count', + 'column-fill', + 'column-gap', + 'column-rule', + 'column-rule-color', + 'column-rule-style', + 'column-rule-width', + 'column-span', + 'column-width', + 'columns', + 'content', + 'counter-increment', + 'counter-reset', + 'cursor', + 'direction', + 'display', + 'empty-cells', + 'filter', + 'flex', + 'flex-basis', + 'flex-direction', + 'flex-flow', + 'flex-grow', + 'flex-shrink', + 'flex-wrap', + 'float', + 'font', + 'font-family', + 'font-feature-settings', + 'font-kerning', + 'font-language-override', + 'font-size', + 'font-size-adjust', + 'font-stretch', + 'font-style', + 'font-variant', + 'font-variant-ligatures', + 'font-weight', + 'height', + 'hyphens', + 'icon', + 'image-orientation', + 'image-rendering', + 'image-resolution', + 'ime-mode', + 'inherit', + 'initial', + 'justify-content', + 'left', + 'letter-spacing', + 'line-height', + 'list-style', + 'list-style-image', + 'list-style-position', + 'list-style-type', + 'margin', + 'margin-bottom', + 'margin-left', + 'margin-right', + 'margin-top', + 'marks', + 'mask', + 'max-height', + 'max-width', + 'min-height', + 'min-width', + 'nav-down', + 'nav-index', + 'nav-left', + 'nav-right', + 'nav-up', + 'none', + 'normal', + 'object-fit', + 'object-position', + 'opacity', + 'order', + 'orphans', + 'outline', + 'outline-color', + 'outline-offset', + 'outline-style', + 'outline-width', + 'overflow', + 'overflow-wrap', + 'overflow-x', + 'overflow-y', + 'padding', + 'padding-bottom', + 'padding-left', + 'padding-right', + 'padding-top', + 'page-break-after', + 'page-break-before', + 'page-break-inside', + 'perspective', + 'perspective-origin', + 'pointer-events', + 'position', + 'quotes', + 'resize', + 'right', + 'tab-size', + 'table-layout', + 'text-align', + 'text-align-last', + 'text-decoration', + 'text-decoration-color', + 'text-decoration-line', + 'text-decoration-style', + 'text-indent', + 'text-overflow', + 'text-rendering', + 'text-shadow', + 'text-transform', + 'text-underline-position', + 'top', + 'transform', + 'transform-origin', + 'transform-style', + 'transition', + 'transition-delay', + 'transition-duration', + 'transition-property', + 'transition-timing-function', + 'unicode-bidi', + 'vertical-align', + 'visibility', + 'white-space', + 'widows', + 'width', + 'word-break', + 'word-spacing', + 'word-wrap', + 'z-index' + ]; + + // illegals + var ILLEGAL = [ + '\\{', + '\\}', + '\\?', + '(\\bReturn\\b)', // monkey + '(\\bEnd\\b)', // monkey + '(\\bend\\b)', // vbscript + ';', // sql + '#\\s', // markdown + '\\*\\s', // markdown + '===\\s', // markdown + '\\|', + '%', // prolog + ]; + + return { + aliases: ['styl'], + case_insensitive : false, + illegal : '(' + ILLEGAL.join('|') + ')', + keywords : 'if else for in', + contains : [ + // strings + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + // comments + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + // hex colors + HEX_COLOR, + // class tag + { + begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*' + TAG_END, + returnBegin: true, + contains: [ + { + className: 'class', + begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*' + } + ] + }, + // id tag + { + begin: '\\#[a-zA-Z][a-zA-Z0-9_-]*' + TAG_END, + returnBegin: true, + contains: [ + { + className: 'id', + begin: '\\#[a-zA-Z][a-zA-Z0-9_-]*' + } + ] + }, + // tags + { + begin: '\\b(' + TAGS.join('|') + ')' + TAG_END, + returnBegin: true, + contains: [ + { + className: 'tag', + begin: '\\b[a-zA-Z][a-zA-Z0-9_-]*' + } + ] + }, + // psuedo selectors + { + className: 'pseudo', + begin: '&?:?:\\b(' + PSEUDO_SELECTORS.join('|') + ')' + TAG_END + }, + // @ keywords + { + className: 'at_rule', + begin: '\@(' + AT_KEYWORDS.join('|') + ')\\b' + }, + // variables + VARIABLE, + // dimension + hljs.CSS_NUMBER_MODE, + // number + hljs.NUMBER_MODE, + // functions + // - only from beginning of line + whitespace + { + className: 'function', + begin: '\\b[a-zA-Z][a-zA-Z0-9_\-]*\\(.*\\)', + illegal: '[\\n]', + returnBegin: true, + contains: [ + { + className: 'title', + begin: '\\b[a-zA-Z][a-zA-Z0-9_\-]*' + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + contains: [ + HEX_COLOR, + VARIABLE, + hljs.APOS_STRING_MODE, + hljs.CSS_NUMBER_MODE, + hljs.NUMBER_MODE, + hljs.QUOTE_STRING_MODE + ] + } + ] + }, + // attributes + // - only from beginning of line + whitespace + // - must have whitespace after it + { + className: 'attribute', + begin: '\\b(' + ATTRIBUTES.reverse().join('|') + ')\\b' + } + ] + }; + }; +}, {} +], +156: [function(require, module, exports) { + module.exports = function(hljs) { + var SWIFT_KEYWORDS = { + keyword: 'class deinit enum extension func init let protocol static ' + + 'struct subscript typealias var break case continue default do ' + + 'else fallthrough if in for return switch where while as dynamicType ' + + 'is new super self Self Type __COLUMN__ __FILE__ __FUNCTION__ ' + + '__LINE__ associativity didSet get infix inout left mutating none ' + + 'nonmutating operator override postfix precedence prefix right set ' + + 'unowned unowned safe unsafe weak willSet', + literal: 'true false nil', + built_in: 'abs advance alignof alignofValue assert bridgeFromObjectiveC ' + + 'bridgeFromObjectiveCUnconditional bridgeToObjectiveC ' + + 'bridgeToObjectiveCUnconditional c contains count countElements ' + + 'countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump ' + + 'encodeBitsAsWords enumerate equal filter find getBridgedObjectiveCType ' + + 'getVaList indices insertionSort isBridgedToObjectiveC ' + + 'isBridgedVerbatimToObjectiveC isUniquelyReferenced join ' + + 'lexicographicalCompare map max maxElement min minElement numericCast ' + + 'partition posix print println quickSort reduce reflect reinterpretCast ' + + 'reverse roundUpToAlignment sizeof sizeofValue sort split startsWith strideof ' + + 'strideofValue swap swift toString transcode underestimateCount ' + + 'unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer ' + + 'withUnsafePointerToObject withUnsafePointers withVaList' + }; + + var TYPE = { + className: 'type', + begin: '\\b[A-Z][\\w\']*', + relevance: 0 + }; + var BLOCK_COMMENT = hljs.COMMENT( + '/\\*', + '\\*/', + { + contains: ['self'] + }); + var SUBST = { + className: 'subst', + begin: /\\\(/, + end: '\\)', + keywords: SWIFT_KEYWORDS, + contains: [] // assigned later + }; + var NUMBERS = { + className: 'number', + begin: '\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b', + relevance: 0 + }; + var QUOTE_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { + contains: [SUBST, hljs.BACKSLASH_ESCAPE] + }); + SUBST.contains = [NUMBERS]; + + return { + keywords: SWIFT_KEYWORDS, + contains: [ + QUOTE_STRING_MODE, + hljs.C_LINE_COMMENT_MODE, + BLOCK_COMMENT, + TYPE, + NUMBERS, + { + className: 'func', + beginKeywords: 'func', + end: '{', + excludeEnd: true, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: /[A-Za-z$_][0-9A-Za-z$_]*/, + illegal: /\(/ + }), + { + className: 'generics', + begin: /</, + end: />/, + illegal: />/ + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + endsParent: true, + keywords: SWIFT_KEYWORDS, + contains: [ + 'self', + NUMBERS, + QUOTE_STRING_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + begin: ':' + } + // relevance booster + ], + illegal: /["']/ + } + ], + illegal: /\[|%/ + }, + { + className: 'class', + beginKeywords: 'struct protocol class extension enum', + keywords: SWIFT_KEYWORDS, + end: '\\{', + excludeEnd: true, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: /[A-Za-z$_][0-9A-Za-z$_]*/ + }) + ] + }, + { + className: 'preprocessor', + // @attributes + begin: '(@assignment|@class_protocol|@exported|@final|@lazy|@noreturn|' + + '@NSCopying|@NSManaged|@objc|@optional|@required|@auto_closure|' + + '@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|' + + '@infix|@prefix|@postfix)' + }, + { + beginKeywords: 'import', + end: /$/, + contains: [hljs.C_LINE_COMMENT_MODE, BLOCK_COMMENT] + } + ] + }; + }; +}, {} +], +157: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['tk'], + keywords: 'after append apply array auto_execok auto_import auto_load auto_mkindex ' + + 'auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock ' + + 'close concat continue dde dict encoding eof error eval exec exit expr fblocked ' + + 'fconfigure fcopy file fileevent filename flush for foreach format gets glob global ' + + 'history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list ' + + 'llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 ' + + 'mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex ' + + 'platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename ' + + 'return safe scan seek set socket source split string subst switch tcl_endOfWord ' + + 'tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter ' + + 'tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update ' + + 'uplevel upvar variable vwait while', + contains: [ + hljs.COMMENT(';[ \\t]*#', '$'), + hljs.COMMENT('^[ \\t]*#', '$'), + { + beginKeywords: 'proc', + end: '[\\{]', + excludeEnd: true, + contains: [ + { + className: 'symbol', + begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', + end: '[ \\t\\n\\r]', + endsWithParent: true, + excludeEnd: true + } + ] + }, + { + className: 'variable', + excludeEnd: true, + variants: [ + { + begin: '\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)', + end: '[^a-zA-Z0-9_\\}\\$]' + }, + { + begin: '\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', + end: '(\\))?[^a-zA-Z0-9_\\}\\$]' + } + ] + }, + { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE], + variants: [ + hljs.inherit(hljs.APOS_STRING_MODE, { + illegal: null + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }) + ] + }, + { + className: 'number', + variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE] + } + ] + } + }; +}, {} +], +158: [function(require, module, exports) { + module.exports = function(hljs) { + var COMMAND1 = { + className: 'command', + begin: '\\\\[a-zA-Zа-яА-я]+[\\*]?' + }; + var COMMAND2 = { + className: 'command', + begin: '\\\\[^a-zA-Zа-яА-я0-9]' + }; + var SPECIAL = { + className: 'special', + begin: '[{}\\[\\]\\&#~]', + relevance: 0 + }; + + return { + contains: [ + { + // parameter + begin: '\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?', + returnBegin: true, + contains: [ + COMMAND1, COMMAND2, + { + className: 'number', + begin: ' *=', + end: '-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?', + excludeBegin: true + } + ], + relevance: 10 + }, + COMMAND1, COMMAND2, + SPECIAL, + { + className: 'formula', + begin: '\\$\\$', + end: '\\$\\$', + contains: [COMMAND1, COMMAND2, SPECIAL], + relevance: 0 + }, + { + className: 'formula', + begin: '\\$', + end: '\\$', + contains: [COMMAND1, COMMAND2, SPECIAL], + relevance: 0 + }, + hljs.COMMENT( + '%', + '$', + { + relevance: 0 + }) + ] + }; + }; +}, {} +], +159: [function(require, module, exports) { + module.exports = function(hljs) { + var BUILT_IN_TYPES = 'bool byte i16 i32 i64 double string binary'; + return { + keywords: { + keyword: + 'namespace const typedef struct enum service exception void oneway set list map required optional', + built_in: + BUILT_IN_TYPES, + literal: + 'true false' + }, + contains: [ + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'class', + beginKeywords: 'struct enum service exception', + end: /\{/, + illegal: /\n/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + starts: { + endsWithParent: true, + excludeEnd: true + } + // hack: eating everything after the first title + }) + ] + }, + { + begin: '\\b(set|list|map)\\s*<', + end: '>', + keywords: BUILT_IN_TYPES, + contains: ['self'] + } + ] + }; + }; +}, {} +], +160: [function(require, module, exports) { + module.exports = function(hljs) { + var TPID = { + className: 'number', + begin: '[1-9][0-9]*', + /* no leading zeros */ + relevance: 0 + }; + var TPLABEL = { + className: 'comment', + begin: ':[^\\]]+' + }; + var TPDATA = { + className: 'built_in', + begin: '(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|\ + TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[', + end: '\\]', + contains: [ + 'self', + TPID, + TPLABEL + ] + }; + var TPIO = { + className: 'built_in', + begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[', + end: '\\]', + contains: [ + 'self', + TPID, + hljs.QUOTE_STRING_MODE, /* for pos section at bottom */ + TPLABEL + ] + }; + + return { + keywords: { + keyword: + 'ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB ' + + 'DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC ' + + 'IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE ' + + 'PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET ' + + 'Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN ' + + 'SUBSTR FINDSTR VOFFSET', + constant: + 'ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET' + }, + contains: [ + TPDATA, + TPIO, + { + className: 'keyword', + begin: '/(PROG|ATTR|MN|POS|END)\\b' + }, + { + /* this is for cases like ,CALL */ + className: 'keyword', + begin: '(CALL|RUN|POINT_LOGIC|LBL)\\b' + }, + { + /* this is for cases like CNT100 where the default lexemes do not + * separate the keyword and the number */ + className: 'keyword', + begin: '\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)' + }, + { + /* to catch numbers that do not have a word boundary on the left */ + className: 'number', + begin: '\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b', + relevance: 0 + }, + hljs.COMMENT('//', '[;$]'), + hljs.COMMENT('!', '[;$]'), + hljs.COMMENT('--eg:', '$'), + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: '\'', + end: '\'' + }, + hljs.C_NUMBER_MODE, + { + className: 'variable', + begin: '\\$[A-Za-z0-9_]+' + } + ] + }; + }; +}, {} +], +161: [function(require, module, exports) { + module.exports = function(hljs) { + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)' + }; + + var FUNCTION_NAMES = 'attribute block constant cycle date dump include ' + + 'max min parent random range source template_from_string'; + + var FUNCTIONS = { + className: 'function', + beginKeywords: FUNCTION_NAMES, + relevance: 0, + contains: [ + PARAMS + ] + }; + + var FILTER = { + className: 'filter', + begin: /\|[A-Za-z_]+:?/, + keywords: + 'abs batch capitalize convert_encoding date date_modify default ' + + 'escape first format join json_encode keys last length lower ' + + 'merge nl2br number_format raw replace reverse round slice sort split ' + + 'striptags title trim upper url_encode', + contains: [ + FUNCTIONS + ] + }; + + var TAGS = 'autoescape block do embed extends filter flush for ' + + 'if import include macro sandbox set spaceless use verbatim'; + + TAGS = TAGS + ' ' + TAGS.split(' ').map(function(t) { + return 'end' + t + }).join(' '); + + return { + aliases: ['craftcms'], + case_insensitive: true, + subLanguage: 'xml', + contains: [ + hljs.COMMENT(/\{#/, /#}/), + { + className: 'template_tag', + begin: /\{%/, + end: /%}/, + keywords: TAGS, + contains: [FILTER, FUNCTIONS] + }, + { + className: 'variable', + begin: /\{\{/, + end: /}}/, + contains: [FILTER, FUNCTIONS] + } + ] + }; + }; +}, {} +], +162: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = { + keyword: + 'in if for while finally var new function|0 do return void else break catch ' + + 'instanceof with throw case default try this switch continue typeof delete ' + + 'let yield const class public private get set super ' + + 'static implements enum export import declare type protected', + literal: + 'true false null undefined NaN Infinity', + built_in: + 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' + + 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' + + 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' + + 'TypeError URIError Number Math Date String RegExp Array Float32Array ' + + 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' + + 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' + + 'module console window document any number boolean string void' + }; + + return { + aliases: ['ts'], + keywords: KEYWORDS, + contains: [ + { + className: 'pi', + begin: /^\s*['"]use strict['"]/, + relevance: 0 + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'number', + variants: [ + { + begin: '\\b(0[bB][01]+)' + }, + { + begin: '\\b(0[oO][0-7]+)' + }, + { + begin: hljs.C_NUMBER_RE + } + ], + relevance: 0 + }, + { + // "value" container + begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.REGEXP_MODE + ], + relevance: 0 + }, + { + className: 'function', + begin: 'function', + end: /[\{;]/, + excludeEnd: true, + keywords: KEYWORDS, + contains: [ + 'self', + hljs.inherit(hljs.TITLE_MODE, { + begin: /[A-Za-z$_][0-9A-Za-z$_]*/ + }), + { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ], + illegal: /["'\(]/ + } + ], + illegal: /\[|%/, + relevance: 0 // () => {} is more typical in TypeScript + }, + { + className: 'constructor', + beginKeywords: 'constructor', + end: /\{/, + excludeEnd: true, + relevance: 10 + }, + { + className: 'module', + beginKeywords: 'module', + end: /\{/, + excludeEnd: true + }, + { + className: 'interface', + beginKeywords: 'interface', + end: /\{/, + excludeEnd: true, + keywords: 'interface extends' + }, + { + begin: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` + }, + { + begin: '\\.' + hljs.IDENT_RE, + relevance: 0 // hack: prevents detection of keywords after dots + } + ] + }; + }; +}, {} +], +163: [function(require, module, exports) { + module.exports = function(hljs) { + return { + keywords: { + keyword: + // Value types + 'char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 ' + + 'uint16 uint32 uint64 float double bool struct enum string void ' + + // Reference types + 'weak unowned owned ' + + // Modifiers + 'async signal static abstract interface override ' + + // Control Structures + 'while do for foreach else switch case break default return try catch ' + + // Visibility + 'public private protected internal ' + + // Other + 'using new this get set const stdout stdin stderr var', + built_in: + 'DBus GLib CCode Gee Object', + literal: + 'false true null' + }, + contains: [ + { + className: 'class', + beginKeywords: 'class interface delegate namespace', + end: '{', + excludeEnd: true, + illegal: '[^,:\\n\\s\\.]', + contains: [ + hljs.UNDERSCORE_TITLE_MODE + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'string', + begin: '"""', + end: '"""', + relevance: 5 + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'preprocessor', + begin: '^#', + end: '$', + relevance: 2 + }, + { + className: 'constant', + begin: ' [A-Z_]+ ', + relevance: 0 + } + ] + }; + }; +}, {} +], +164: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['vb'], + case_insensitive: true, + keywords: { + keyword: + 'addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval ' + /* a-b */ + 'call case catch class compare const continue custom declare default delegate dim distinct do ' + /* c-d */ + 'each equals else elseif end enum erase error event exit explicit finally for friend from function ' + /* e-f */ + 'get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue ' + /* g-i */ + 'join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass ' + /* j-m */ + 'namespace narrowing new next not notinheritable notoverridable ' + /* n */ + 'of off on operator option optional or order orelse overloads overridable overrides ' + /* o */ + 'paramarray partial preserve private property protected public ' + /* p */ + 'raiseevent readonly redim rem removehandler resume return ' + /* r */ + 'select set shadows shared skip static step stop structure strict sub synclock ' + /* s */ + 'take text then throw to try unicode until using when where while widening with withevents writeonly xor', + /* t-x */ + built_in: + 'boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype ' + /* b-c */ + 'date decimal directcast double gettype getxmlnamespace iif integer long object ' + /* d-o */ + 'sbyte short single string trycast typeof uinteger ulong ushort', + /* s-u */ + literal: + 'true false nothing' + }, + illegal: '//|{|}|endif|gosub|variant|wend', + /* reserved deprecated keywords */ + contains: [ + hljs.inherit(hljs.QUOTE_STRING_MODE, { + contains: [{ + begin: '""' + } + ] + }), + hljs.COMMENT( + '\'', + '$', + { + returnBegin: true, + contains: [ + { + className: 'xmlDocTag', + begin: '\'\'\'|<!--|-->', + contains: [hljs.PHRASAL_WORDS_MODE] + }, + { + className: 'xmlDocTag', + begin: '</?', + end: '>', + contains: [hljs.PHRASAL_WORDS_MODE] + } + ] + }), + hljs.C_NUMBER_MODE, + { + className: 'preprocessor', + begin: '#', + end: '$', + keywords: 'if else elseif end region externalsource' + } + ] + }; + }; +}, {} +], +165: [function(require, module, exports) { + module.exports = function(hljs) { + return { + subLanguage: 'xml', + contains: [ + { + begin: '<%', + end: '%>', + subLanguage: 'vbscript' + } + ] + }; + }; +}, {} +], +166: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['vbs'], + case_insensitive: true, + keywords: { + keyword: + 'call class const dim do loop erase execute executeglobal exit for each next function ' + + 'if then else on error option explicit new private property let get public randomize ' + + 'redim rem select case set stop sub while wend with end to elseif is or xor and not ' + + 'class_initialize class_terminate default preserve in me byval byref step resume goto', + built_in: + 'lcase month vartype instrrev ubound setlocale getobject rgb getref string ' + + 'weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency ' + + 'conversions csng timevalue second year space abs clng timeserial fixs len asc ' + + 'isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate ' + + 'instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex ' + + 'chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim ' + + 'strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion ' + + 'scriptengine split scriptengineminorversion cint sin datepart ltrim sqr ' + + 'scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw ' + + 'chrw regexp server response request cstr err', + literal: + 'true false null nothing empty' + }, + illegal: '//', + contains: [ + hljs.inherit(hljs.QUOTE_STRING_MODE, { + contains: [{ + begin: '""' + } + ] + }), + hljs.COMMENT( + /'/, + /$/, + { + relevance: 0 + }), + hljs.C_NUMBER_MODE + ] + }; + }; +}, {} +], +167: [function(require, module, exports) { + module.exports = function(hljs) { + return { + aliases: ['v'], + case_insensitive: true, + keywords: { + keyword: + 'always and assign begin buf bufif0 bufif1 case casex casez cmos deassign ' + + 'default defparam disable edge else end endcase endfunction endmodule ' + + 'endprimitive endspecify endtable endtask event for force forever fork ' + + 'function if ifnone initial inout input join macromodule module nand ' + + 'negedge nmos nor not notif0 notif1 or output parameter pmos posedge ' + + 'primitive pulldown pullup rcmos release repeat rnmos rpmos rtran ' + + 'rtranif0 rtranif1 specify specparam table task timescale tran ' + + 'tranif0 tranif1 wait while xnor xor', + typename: + 'highz0 highz1 integer large medium pull0 pull1 real realtime reg ' + + 'scalared signed small strong0 strong1 supply0 supply0 supply1 supply1 ' + + 'time tri tri0 tri1 triand trior trireg vectored wand weak0 weak1 wire wor' + }, + contains: [ + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + { + className: 'number', + begin: '\\b(\\d+\'(b|h|o|d|B|H|O|D))?[0-9xzXZ]+', + contains: [hljs.BACKSLASH_ESCAPE], + relevance: 0 + }, + /* ports in instances */ + { + className: 'typename', + begin: '\\.\\w+', + relevance: 0 + }, + /* parameters to instances */ + { + className: 'value', + begin: '#\\((?!parameter).+\\)' + }, + /* operators */ + { + className: 'keyword', + begin: '\\+|-|\\*|/|%|<|>|=|#|`|\\!|&|\\||@|:|\\^|~|\\{|\\}', + relevance: 0 + } + ] + }; // return + }; +}, {} +], +168: [function(require, module, exports) { + module.exports = function(hljs) { + // Regular expression for VHDL numeric literals. + + // Decimal literal: + var INTEGER_RE = '\\d(_|\\d)*'; + var EXPONENT_RE = '[eE][-+]?' + INTEGER_RE; + var DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?'; + // Based literal: + var BASED_INTEGER_RE = '\\w+'; + var BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?'; + + var NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')'; + + return { + case_insensitive: true, + keywords: { + keyword: + 'abs access after alias all and architecture array assert attribute begin block ' + + 'body buffer bus case component configuration constant context cover disconnect ' + + 'downto default else elsif end entity exit fairness file for force function generate ' + + 'generic group guarded if impure in inertial inout is label library linkage literal ' + + 'loop map mod nand new next nor not null of on open or others out package port ' + + 'postponed procedure process property protected pure range record register reject ' + + 'release rem report restrict restrict_guarantee return rol ror select sequence ' + + 'severity shared signal sla sll sra srl strong subtype then to transport type ' + + 'unaffected units until use variable vmode vprop vunit wait when while with xnor xor', + typename: + 'boolean bit character severity_level integer time delay_length natural positive ' + + 'string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector ' + + 'std_logic std_logic_vector unsigned signed boolean_vector integer_vector ' + + 'real_vector time_vector' + }, + illegal: '{', + contains: [ + hljs.C_BLOCK_COMMENT_MODE, // VHDL-2008 block commenting. + hljs.COMMENT('--', '$'), + hljs.QUOTE_STRING_MODE, + { + className: 'number', + begin: NUMBER_RE, + relevance: 0 + }, + { + className: 'literal', + begin: '\'(U|X|0|1|Z|W|L|H|-)\'', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + className: 'attribute', + begin: '\'[A-Za-z](_?[A-Za-z0-9])*', + contains: [hljs.BACKSLASH_ESCAPE] + } + ] + }; + }; +}, {} +], +169: [function(require, module, exports) { + module.exports = function(hljs) { + return { + lexemes: /[!#@\w]+/, + keywords: { + keyword: //ex command + // express version except: ! & * < = > !! # @ @@ + 'N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope ' + + 'cp cpf cq cr cs cst cu cuna cunme cw d|0 delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu g|0 go gr grepa gu gv ha h|0 helpf helpg helpt hi hid his i|0 ia iabc if ij il im imapc ' + + 'ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs n|0 new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 ' + + 'profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf q|0 quita qa r|0 rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv s|0 sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor ' + + 'so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync t|0 tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew ' + + 'tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up v|0 ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ ' + + // full version + 'Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload ' + + 'bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap ' + + 'cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor ' + + 'endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap ' + + 'imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview ' + + 'lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap ' + + 'nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ' + + 'ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding ' + + 'scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace ' + + 'startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious ' + 'trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew ' + + 'vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank', + built_in: //built in func + 'abs acos add and append argc argidx argv asin atan atan2 browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call ceil changenr char2nr cindent clearmatches col complete complete_add complete_check confirm copy cos cosh count cscope_connection cursor ' + + 'deepcopy delete did_filetype diff_filler diff_hlID empty escape eval eventhandler executable exists exp expand extend feedkeys filereadable filewritable filter finddir findfile float2nr floor fmod fnameescape fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function ' + + 'garbagecollect get getbufline getbufvar getchar getcharmod getcmdline getcmdpos getcmdtype getcwd getfontname getfperm getfsize getftime getftype getline getloclist getmatches getpid getpos getqflist getreg getregtype gettabvar gettabwinvar getwinposx getwinposy getwinvar glob globpath has has_key ' + + 'haslocaldir hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputlist inputrestore inputsave inputsecret insert invert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime log log10 luaeval map maparg mapcheck ' + + 'match matchadd matcharg matchdelete matchend matchlist matchstr max min mkdir mode mzeval nextnonblank nr2char or pathshorten pow prevnonblank printf pumvisible py3eval pyeval range readfile reltime reltimestr remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat ' + + 'resolve reverse round screenattr screenchar screencol screenrow search searchdecl searchpair searchpairpos searchpos server2client serverlist setbufvar setcmdpos setline setloclist setmatches setpos setqflist setreg settabvar settabwinvar setwinvar sha256 shellescape shiftwidth simplify sin ' + + 'sinh sort soundfold spellbadword spellsuggest split sqrt str2float str2nr strchars strdisplaywidth strftime stridx string strlen strpart strridx strtrans strwidth submatch substitute synconcealed synID synIDattr ' + + 'synIDtrans synstack system tabpagebuflist tabpagenr tabpagewinnr tagfiles taglist tan tanh tempname tolower toupper tr trunc type undofile undotree values virtcol visualmode wildmenumode winbufnr wincol winheight winline winnr winrestcmd winrestview winsaveview winwidth writefile xor' + }, + illegal: /[{:]/, + contains: [ + hljs.NUMBER_MODE, + hljs.APOS_STRING_MODE, + { + className: 'string', + // quote with escape, comment as quote + begin: /"((\\")|[^"\n])*("|\n)/ + }, + { + className: 'variable', + begin: /[bwtglsav]:[\w\d_]*/ + }, + { + className: 'function', + beginKeywords: 'function function!', + end: '$', + relevance: 0, + contains: [ + hljs.TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)' + } + ] + } + ] + }; + }; +}, {} +], +170: [function(require, module, exports) { + module.exports = function(hljs) { + return { + case_insensitive: true, + lexemes: '\\.?' + hljs.IDENT_RE, + keywords: { + keyword: + 'lock rep repe repz repne repnz xaquire xrelease bnd nobnd ' + + 'aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63', + literal: + // Instruction pointer + 'ip eip rip ' + + // 8-bit registers + 'al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ' + + // 16-bit registers + 'ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w ' + + // 32-bit registers + 'eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d ' + + // 64-bit registers + 'rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 ' + + // Segment registers + 'cs ds es fs gs ss ' + + // Floating point stack registers + 'st st0 st1 st2 st3 st4 st5 st6 st7 ' + + // MMX Registers + 'mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 ' + + // SSE registers + 'xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 ' + + 'xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ' + + // AVX registers + 'ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ' + + 'ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 ' + + // AVX-512F registers + 'zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 ' + + 'zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 ' + + // AVX-512F mask registers + 'k0 k1 k2 k3 k4 k5 k6 k7 ' + + // Bound (MPX) register + 'bnd0 bnd1 bnd2 bnd3 ' + + // Special register + 'cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 ' + + // NASM altreg package + 'r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b ' + + 'r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d ' + + 'r0h r1h r2h r3h ' + + 'r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l', + + pseudo: + 'db dw dd dq dt ddq do dy dz ' + + 'resb resw resd resq rest resdq reso resy resz ' + + 'incbin equ times', + + preprocessor: + '%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif ' + + '%ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep ' + + '%endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment ' + + '.nolist ' + + 'byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr ' + + '__FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ ' + + '__UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend ' + + 'align alignb sectalign daz nodaz up down zero default option assume public ', + + built_in: + 'bits use16 use32 use64 default section segment absolute extern global common cpu float ' + + '__utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ ' + + '__float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ ' + + '__Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e ' + + 'float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__' + }, + contains: [ + hljs.COMMENT( + ';', + '$', + { + relevance: 0 + }), + { + className: 'number', + variants: [ + // Float number and x87 BCD + { + begin: '\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|' + + '(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b', + relevance: 0 + }, + // Hex number in $ + { + begin: '\\$[0-9][0-9A-Fa-f]*', + relevance: 0 + }, + // Number in H,D,T,Q,O,B,Y suffix + { + begin: '\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b' + }, + // Number in X,D,T,Q,O,B,Y prefix + { + begin: '\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b' + } + ] + }, + // Double quote string + hljs.QUOTE_STRING_MODE, + { + className: 'string', + variants: [ + // Single-quoted string + { + begin: '\'', + end: '[^\\\\]\'' + }, + // Backquoted string + { + begin: '`', + end: '[^\\\\]`' + }, + // Section name + { + begin: '\\.[A-Za-z0-9]+' + } + ], + relevance: 0 + }, + { + className: 'label', + variants: [ + // Global label and local label + { + begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)' + }, + // Macro-local label + { + begin: '^\\s*%%[A-Za-z0-9_$#@~.?]*:' + } + ], + relevance: 0 + }, + // Macro parameter + { + className: 'argument', + begin: '%[0-9]+', + relevance: 0 + }, + // Macro parameter + { + className: 'built_in', + begin: '%!\S+', + relevance: 0 + } + ] + }; + }; +}, {} +], +171: [function(require, module, exports) { + module.exports = function(hljs) { + var BUILTIN_MODULES = + 'ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo ' + + 'StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts'; + + var XL_KEYWORDS = { + keyword: 'if then else do while until for loop import with is as where when by data constant', + literal: 'true false nil', + type: 'integer real text name boolean symbol infix prefix postfix block tree', + built_in: 'in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at', + module: BUILTIN_MODULES, + id: + 'text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle ' + + 'fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture ' + + 'scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle ' + + 'circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x ' + + 'mouse_?y mouse_buttons' + }; + + var XL_CONSTANT = { + className: 'constant', + begin: '[A-Z][A-Z_0-9]+', + relevance: 0 + }; + var XL_VARIABLE = { + className: 'variable', + begin: '([A-Z][a-z_0-9]+)+', + relevance: 0 + }; + var XL_ID = { + className: 'id', + begin: '[a-z][a-z_0-9]+', + relevance: 0 + }; + + var DOUBLE_QUOTE_TEXT = { + className: 'string', + begin: '"', + end: '"', + illegal: '\\n' + }; + var SINGLE_QUOTE_TEXT = { + className: 'string', + begin: '\'', + end: '\'', + illegal: '\\n' + }; + var LONG_TEXT = { + className: 'string', + begin: '<<', + end: '>>' + }; + var BASED_NUMBER = { + className: 'number', + begin: '[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?', + relevance: 10 + }; + var IMPORT = { + className: 'import', + beginKeywords: 'import', + end: '$', + keywords: { + keyword: 'import', + module: BUILTIN_MODULES + }, + relevance: 0, + contains: [DOUBLE_QUOTE_TEXT] + }; + var FUNCTION_DEFINITION = { + className: 'function', + begin: '[a-z].*->' + }; + return { + aliases: ['tao'], + lexemes: /[a-zA-Z][a-zA-Z0-9_?]*/, + keywords: XL_KEYWORDS, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + DOUBLE_QUOTE_TEXT, + SINGLE_QUOTE_TEXT, + LONG_TEXT, + FUNCTION_DEFINITION, + IMPORT, + XL_CONSTANT, + XL_VARIABLE, + XL_ID, + BASED_NUMBER, + hljs.NUMBER_MODE + ] + }; + }; +}, {} +], +172: [function(require, module, exports) { + module.exports = function(hljs) { + var XML_IDENT_RE = '[A-Za-z0-9\\._:-]+'; + var PHP = { + begin: /<\?(php)?(?!\w)/, + end: /\?>/, + subLanguage: 'php' + }; + var TAG_INTERNALS = { + endsWithParent: true, + illegal: /</, + relevance: 0, + contains: [ + PHP, + { + className: 'attribute', + begin: XML_IDENT_RE, + relevance: 0 + }, + { + begin: '=', + relevance: 0, + contains: [ + { + className: 'value', + contains: [PHP], + variants: [ + { + begin: /"/, + end: /"/ + }, + { + begin: /'/, + end: /'/ + }, + { + begin: /[^\s\/>]+/ + } + ] + } + ] + } + ] + }; + return { + aliases: ['html', 'xhtml', 'rss', 'atom', 'xsl', 'plist'], + case_insensitive: true, + contains: [ + { + className: 'doctype', + begin: '<!DOCTYPE', + end: '>', + relevance: 10, + contains: [{ + begin: '\\[', + end: '\\]' + } + ] + }, + hljs.COMMENT( + '<!--', + '-->', + { + relevance: 10 + }), + { + className: 'cdata', + begin: '<\\!\\[CDATA\\[', + end: '\\]\\]>', + relevance: 10 + }, + { + className: 'tag', + /* + The lookahead pattern (?=...) ensures that 'begin' only matches + '<style' as a single word, followed by a whitespace or an + ending braket. The '$' is needed for the lexeme to be recognized + by hljs.subMode() that tests lexemes outside the stream. + */ + begin: '<style(?=\\s|>|$)', + end: '>', + keywords: { + title: 'style' + }, + contains: [TAG_INTERNALS], + starts: { + end: '</style>', + returnEnd: true, + subLanguage: 'css' + } + }, + { + className: 'tag', + // See the comment in the <style tag about the lookahead pattern + begin: '<script(?=\\s|>|$)', + end: '>', + keywords: { + title: 'script' + }, + contains: [TAG_INTERNALS], + starts: { + end: '\<\/script\>', + returnEnd: true, + subLanguage: ['actionscript', 'javascript', 'handlebars'] + } + }, + PHP, + { + className: 'pi', + begin: /<\?\w+/, + end: /\?>/, + relevance: 10 + }, + { + className: 'tag', + begin: '</?', + end: '/?>', + contains: [ + { + className: 'title', + begin: /[^ \/><\n\t]+/, + relevance: 0 + }, + TAG_INTERNALS + ] + } + ] + }; + }; +}, {} +], +173: [function(require, module, exports) { + module.exports = function(hljs) { + var KEYWORDS = 'for let if while then else return where group by xquery encoding version' + + 'module namespace boundary-space preserve strip default collation base-uri ordering' + + 'copy-namespaces order declare import schema namespace function option in allowing empty' + + 'at tumbling window sliding window start when only end when previous next stable ascending' + + 'descending empty greatest least some every satisfies switch case typeswitch try catch and' + + 'or to union intersect instance of treat as castable cast map array delete insert into' + + 'replace value rename copy modify update'; + var LITERAL = 'false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute'; + var VAR = { + className: 'variable', + begin: /\$[a-zA-Z0-9\-]+/, + relevance: 5 + }; + + var NUMBER = { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }; + + var STRING = { + className: 'string', + variants: [ + { + begin: /"/, + end: /"/, + contains: [{ + begin: /""/, + relevance: 0 + } + ] + }, + { + begin: /'/, + end: /'/, + contains: [{ + begin: /''/, + relevance: 0 + } + ] + } + ] + }; + + var ANNOTATION = { + className: 'decorator', + begin: '%\\w+' + }; + + var COMMENT = { + className: 'comment', + begin: '\\(:', + end: ':\\)', + relevance: 10, + contains: [ + { + className: 'doc', + begin: '@\\w+' + } + ] + }; + + var METHOD = { + begin: '{', + end: '}' + }; + + var CONTAINS = [ + VAR, + STRING, + NUMBER, + COMMENT, + ANNOTATION, + METHOD + ]; + METHOD.contains = CONTAINS; + + + return { + aliases: ['xpath', 'xq'], + case_insensitive: false, + lexemes: /[a-zA-Z\$][a-zA-Z0-9_:\-]*/, + illegal: /(proc)|(abstract)|(extends)|(until)|(#)/, + keywords: { + keyword: KEYWORDS, + literal: LITERAL + }, + contains: CONTAINS + }; + }; +}, {} +], +174: [function(require, module, exports) { + module.exports = function(hljs) { + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE], + variants: [ + { + begin: 'b"', + end: '"' + }, + { + begin: 'b\'', + end: '\'' + }, + hljs.inherit(hljs.APOS_STRING_MODE, { + illegal: null + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { + illegal: null + }) + ] + }; + var NUMBER = { + variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE] + }; + return { + aliases: ['zep'], + case_insensitive: true, + keywords: + 'and include_once list abstract global private echo interface as static endswitch ' + + 'array null if endwhile or const for endforeach self var let while isset public ' + + 'protected exit foreach throw elseif include __FILE__ empty require_once do xor ' + + 'return parent clone use __CLASS__ __LINE__ else break print eval new ' + + 'catch __METHOD__ case exception default die require __FUNCTION__ ' + + 'enddeclare final try switch continue endfor endif declare unset true false ' + + 'trait goto instanceof insteadof __DIR__ __NAMESPACE__ ' + + 'yield finally int uint long ulong char uchar double float bool boolean string' + + 'likely unlikely', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.HASH_COMMENT_MODE, + hljs.COMMENT( + '/\\*', + '\\*/', + { + contains: [ + { + className: 'doctag', + begin: '@[A-Za-z]+' + } + ] + }), + hljs.COMMENT( + '__halt_compiler.+?;', + false, + { + endsWithParent: true, + keywords: '__halt_compiler', + lexemes: hljs.UNDERSCORE_IDENT_RE + }), + { + className: 'string', + begin: '<<<[\'"]?\\w+[\'"]?$', + end: '^\\w+;', + contains: [hljs.BACKSLASH_ESCAPE] + }, + { + // swallow composed identifiers to avoid parsing them as keywords + begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/ + }, + { + className: 'function', + beginKeywords: 'function', + end: /[;{]/, + excludeEnd: true, + illegal: '\\$|\\[|%', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)', + contains: [ + 'self', + hljs.C_BLOCK_COMMENT_MODE, + STRING, + NUMBER + ] + } + ] + }, + { + className: 'class', + beginKeywords: 'class interface', + end: '{', + excludeEnd: true, + illegal: /[:\(\$"]/, + contains: [ + { + beginKeywords: 'extends implements' + }, + hljs.UNDERSCORE_TITLE_MODE + ] + }, + { + beginKeywords: 'namespace', + end: ';', + illegal: /[\.']/, + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + beginKeywords: 'use', + end: ';', + contains: [hljs.UNDERSCORE_TITLE_MODE] + }, + { + begin: '=>' // No markup, just a relevance booster + }, + STRING, + NUMBER + ] + }; + }; +}, {} +] +}, {}, [1]); + + diff --git a/javascript/videojs/docs/translations-needed.md b/javascript/videojs/docs/translations-needed.md new file mode 100644 index 0000000..2310f5b --- /dev/null +++ b/javascript/videojs/docs/translations-needed.md @@ -0,0 +1,772 @@ +# Translations needed + +The currently available translations are in the lang dir. This table shows the completeness of those translations. Anything not listed does not exist yet, so go ahead and create it by copying `en.json`. + +If you add or update a translation run `npm run docs:lang` to update the list and include this modified doc in the pull request. + +## Progress Bar Translations + +The progress bar has a translation with a few token replacements. +They key is `progress bar timing: currentTime={1} duration={2}` and the default English value is `{1} of {2}`. +This default value is hardcoded as a default to the localize method in the SeekBar component. + +## Status of translations + +<!-- START langtable --> + +| Language file | Missing translations | +| ----------------------- | ----------------------------------------------------------------------------------- | +| ar.json (Complete) | | +| az.json (Complete) | | +| ba.json (missing 71) | Audio Player | +| | Video Player | +| | Replay | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Descriptions | +| | descriptions off | +| | Audio Track | +| | Volume Level | +| | The media is encrypted and we do not have the keys to decrypt it. | +| | Play Video | +| | Close | +| | Close Modal Dialog | +| | Modal Window | +| | This is a modal window | +| | This modal can be closed by pressing the Escape key or activating the close button. | +| | , opens captions settings dialog | +| | , opens subtitles settings dialog | +| | , opens descriptions settings dialog | +| | , selected | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| bg.json (missing 71) | Audio Player | +| | Video Player | +| | Replay | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Descriptions | +| | descriptions off | +| | Audio Track | +| | Volume Level | +| | The media is encrypted and we do not have the keys to decrypt it. | +| | Play Video | +| | Close | +| | Close Modal Dialog | +| | Modal Window | +| | This is a modal window | +| | This modal can be closed by pressing the Escape key or activating the close button. | +| | , opens captions settings dialog | +| | , opens subtitles settings dialog | +| | , opens descriptions settings dialog | +| | , selected | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| bn.json (missing 8) | Exit Fullscreen | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| ca.json (Complete) | | +| cs.json (missing 12) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| cy.json (missing 12) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| da.json (missing 71) | Audio Player | +| | Video Player | +| | Replay | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Descriptions | +| | descriptions off | +| | Audio Track | +| | Volume Level | +| | The media is encrypted and we do not have the keys to decrypt it. | +| | Play Video | +| | Close | +| | Close Modal Dialog | +| | Modal Window | +| | This is a modal window | +| | This modal can be closed by pressing the Escape key or activating the close button. | +| | , opens captions settings dialog | +| | , opens subtitles settings dialog | +| | , opens descriptions settings dialog | +| | , selected | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| de.json (Complete) | | +| el.json (missing 12) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | progress bar timing: currentTime={1} duration={2} | +| | Raised | +| | Depressed | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| en-GB.json (has 1) | Needs manual checking. Can safely use most default strings. | +| es.json (missing 1) | Playing in Picture-in-Picture | +| et.json (missing 8) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| eu.json (missing 8) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| fa.json (Complete) | | +| fi.json (missing 71) | Audio Player | +| | Video Player | +| | Replay | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Descriptions | +| | descriptions off | +| | Audio Track | +| | Volume Level | +| | The media is encrypted and we do not have the keys to decrypt it. | +| | Play Video | +| | Close | +| | Close Modal Dialog | +| | Modal Window | +| | This is a modal window | +| | This modal can be closed by pressing the Escape key or activating the close button. | +| | , opens captions settings dialog | +| | , opens subtitles settings dialog | +| | , opens descriptions settings dialog | +| | , selected | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| fr.json (missing 1) | Playing in Picture-in-Picture | +| gd.json (missing 10) | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| gl.json (Complete) | | +| he.json (missing 13) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| hi.json (missing 8) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| hr.json (missing 71) | Audio Player | +| | Video Player | +| | Replay | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Descriptions | +| | descriptions off | +| | Audio Track | +| | Volume Level | +| | The media is encrypted and we do not have the keys to decrypt it. | +| | Play Video | +| | Close | +| | Close Modal Dialog | +| | Modal Window | +| | This is a modal window | +| | This modal can be closed by pressing the Escape key or activating the close button. | +| | , opens captions settings dialog | +| | , opens subtitles settings dialog | +| | , opens descriptions settings dialog | +| | , selected | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| hu.json (missing 8) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| it.json (missing 8) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Raised | +| | Depressed | +| | Casual | +| | Script | +| | No content | +| | Playing in Picture-in-Picture | +| ja.json (missing 1) | Playing in Picture-in-Picture | +| ko.json (missing 3) | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| lv.json (missing 6) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| mr.json (Complete) | | +| nb.json (Complete) | | +| nl.json (missing 1) | Playing in Picture-in-Picture | +| nn.json (missing 10) | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| np.json (missing 9) | Drop shadow | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| oc.json (Complete) | | +| pl.json (missing 8) | Drop shadow | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| pt-BR.json (missing 10) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| pt-PT.json (missing 54) | Audio Player | +| | Video Player | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Volume Level | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| ro.json (missing 9) | Drop shadow | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| ru.json (missing 6) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| sk.json (missing 13) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Drop shadow | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| sl.json (missing 14) | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| sr.json (missing 71) | Audio Player | +| | Video Player | +| | Replay | +| | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Progress Bar | +| | progress bar timing: currentTime={1} duration={2} | +| | Descriptions | +| | descriptions off | +| | Audio Track | +| | Volume Level | +| | The media is encrypted and we do not have the keys to decrypt it. | +| | Play Video | +| | Close | +| | Close Modal Dialog | +| | Modal Window | +| | This is a modal window | +| | This modal can be closed by pressing the Escape key or activating the close button. | +| | , opens captions settings dialog | +| | , opens subtitles settings dialog | +| | , opens descriptions settings dialog | +| | , selected | +| | captions settings | +| | subtitles settings | +| | descriptions settings | +| | Text | +| | White | +| | Black | +| | Red | +| | Green | +| | Blue | +| | Yellow | +| | Magenta | +| | Cyan | +| | Background | +| | Window | +| | Transparent | +| | Semi-Transparent | +| | Opaque | +| | Font Size | +| | Text Edge Style | +| | None | +| | Raised | +| | Depressed | +| | Uniform | +| | Drop shadow | +| | Font Family | +| | Proportional Sans-Serif | +| | Monospace Sans-Serif | +| | Proportional Serif | +| | Monospace Serif | +| | Casual | +| | Script | +| | Small Caps | +| | Reset | +| | restore all settings to the default values | +| | Done | +| | Caption Settings Dialog | +| | Beginning of dialog window. Escape will cancel and close the window. | +| | End of dialog window. | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| sv.json (missing 10) | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| te.json (missing 8) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| th.json (missing 8) | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| tr.json (missing 7) | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| uk.json (missing 13) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Drop shadow | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| vi.json (missing 14) | Seek to live, currently behind live | +| | Seek to live, currently playing live | +| | Drop shadow | +| | {1} is loading. | +| | Exit Picture-in-Picture | +| | Picture-in-Picture | +| | No content | +| | Color | +| | Opacity | +| | Text Background | +| | Caption Area Background | +| | Playing in Picture-in-Picture | +| | Skip backward {1} seconds | +| | Skip forward {1} seconds | +| zh-CN.json (missing 2) | Drop shadow | +| | Playing in Picture-in-Picture | +| zh-TW.json (Complete) | | + +<!-- END langtable --> |
