diff --git a/docs/doc/reference/allclasses-index.html b/docs/doc/reference/allclasses-index.html index f89fe5717b..958661400f 100644 --- a/docs/doc/reference/allclasses-index.html +++ b/docs/doc/reference/allclasses-index.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":2,"i1":32,"i2":2,"i3":2,"i4":2,"i5":2,"i6":2,"i7":2,"i8":32,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":2,"i16":2,"i17":2,"i18":2,"i19":2,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":2,"i27":2,"i28":2,"i29":2,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":2,"i39":2,"i40":2,"i41":2,"i42":2,"i43":2,"i44":2,"i45":2,"i46":1,"i47":2,"i48":2,"i49":1,"i50":2,"i51":2,"i52":2,"i53":2,"i54":2,"i55":2,"i56":2,"i57":32,"i58":2,"i59":2,"i60":32,"i61":1,"i62":1,"i63":1,"i64":2,"i65":8,"i66":32,"i67":2,"i68":32,"i69":2,"i70":1,"i71":2,"i72":2,"i73":2,"i74":2,"i75":1,"i76":1,"i77":2,"i78":32,"i79":1,"i80":1,"i81":32,"i82":2,"i83":2,"i84":2,"i85":2,"i86":2,"i87":2,"i88":1,"i89":32,"i90":2,"i91":2,"i92":2,"i93":8,"i94":2,"i95":2,"i96":2,"i97":2,"i98":2,"i99":2,"i100":1,"i101":1,"i102":2,"i103":8,"i104":1,"i105":1,"i106":2,"i107":1,"i108":8,"i109":8,"i110":1,"i111":32,"i112":8,"i113":8,"i114":2,"i115":2,"i116":2,"i117":1,"i118":1,"i119":2,"i120":2,"i121":2,"i122":2,"i123":2,"i124":2,"i125":2,"i126":2,"i127":2,"i128":2,"i129":2,"i130":2,"i131":8,"i132":2,"i133":2,"i134":2,"i135":2,"i136":2,"i137":1,"i138":2,"i139":1,"i140":2,"i141":1,"i142":1,"i143":2,"i144":2,"i145":2,"i146":2,"i147":2,"i148":2,"i149":2,"i150":2,"i151":2,"i152":32,"i153":32,"i154":32,"i155":32,"i156":32,"i157":32,"i158":32,"i159":32,"i160":32,"i161":32,"i162":32,"i163":32,"i164":32,"i165":32,"i166":32,"i167":32,"i168":32,"i169":32,"i170":32,"i171":32,"i172":32,"i173":32,"i174":32,"i175":32,"i176":32,"i177":32,"i178":32,"i179":32,"i180":1,"i181":8,"i182":1,"i183":2,"i184":2,"i185":2,"i186":8,"i187":2,"i188":2,"i189":32,"i190":1,"i191":2,"i192":32,"i193":2,"i194":1,"i195":1,"i196":2,"i197":2,"i198":1,"i199":1,"i200":2,"i201":2,"i202":32,"i203":2,"i204":2,"i205":2,"i206":2,"i207":2,"i208":2,"i209":2,"i210":2,"i211":2,"i212":1,"i213":1,"i214":1,"i215":2,"i216":2,"i217":2,"i218":1,"i219":1,"i220":2,"i221":2,"i222":8,"i223":32,"i224":1,"i225":1,"i226":1,"i227":1,"i228":2,"i229":2,"i230":1,"i231":2,"i232":2,"i233":2,"i234":2,"i235":1,"i236":2,"i237":2,"i238":2,"i239":1,"i240":2,"i241":2,"i242":8,"i243":1,"i244":2,"i245":2,"i246":2,"i247":2,"i248":2,"i249":8,"i250":2,"i251":2,"i252":2,"i253":2,"i254":1,"i255":8,"i256":2,"i257":2,"i258":32,"i259":2,"i260":32,"i261":32,"i262":32,"i263":2,"i264":2,"i265":2,"i266":1,"i267":1,"i268":2,"i269":2,"i270":2,"i271":2,"i272":8,"i273":2,"i274":2,"i275":1,"i276":2,"i277":2,"i278":8,"i279":1,"i280":2,"i281":1,"i282":2,"i283":1,"i284":1,"i285":1,"i286":1,"i287":2,"i288":2,"i289":2,"i290":2,"i291":8,"i292":2,"i293":2,"i294":2,"i295":2,"i296":32,"i297":32,"i298":2,"i299":1,"i300":2,"i301":1,"i302":1,"i303":2,"i304":2,"i305":2,"i306":8,"i307":2,"i308":32,"i309":8,"i310":2,"i311":1,"i312":2,"i313":32,"i314":32,"i315":2,"i316":2,"i317":2,"i318":2,"i319":1,"i320":1,"i321":2,"i322":2,"i323":8,"i324":32,"i325":32,"i326":2,"i327":2,"i328":2,"i329":2,"i330":2,"i331":2,"i332":2,"i333":2,"i334":2,"i335":2,"i336":2,"i337":2,"i338":2,"i339":2,"i340":2,"i341":2,"i342":2,"i343":2,"i344":2,"i345":2,"i346":8,"i347":32,"i348":2,"i349":2,"i350":2,"i351":2,"i352":2,"i353":2,"i354":2,"i355":2,"i356":2,"i357":2,"i358":2,"i359":2,"i360":2,"i361":2,"i362":2,"i363":2,"i364":2,"i365":2,"i366":2,"i367":2,"i368":2,"i369":1,"i370":2,"i371":2,"i372":2,"i373":2,"i374":32,"i375":2,"i376":2,"i377":2,"i378":2,"i379":2,"i380":2,"i381":2,"i382":2,"i383":2,"i384":2,"i385":32,"i386":2,"i387":2,"i388":32,"i389":2,"i390":2,"i391":32,"i392":2,"i393":2,"i394":2,"i395":32,"i396":32,"i397":2,"i398":1,"i399":1,"i400":1,"i401":1,"i402":8,"i403":2,"i404":1,"i405":8,"i406":1,"i407":2,"i408":1,"i409":2,"i410":2,"i411":2,"i412":2,"i413":8,"i414":2,"i415":2,"i416":2,"i417":1,"i418":8,"i419":32,"i420":1,"i421":2,"i422":1,"i423":1,"i424":1,"i425":2,"i426":32,"i427":2,"i428":2,"i429":2,"i430":2,"i431":2,"i432":1,"i433":2,"i434":2,"i435":2,"i436":1,"i437":2,"i438":2,"i439":2,"i440":1,"i441":32,"i442":1,"i443":2,"i444":32,"i445":1,"i446":1,"i447":2,"i448":1,"i449":1,"i450":2,"i451":1,"i452":2,"i453":2,"i454":2,"i455":2,"i456":2,"i457":2,"i458":2,"i459":2,"i460":1,"i461":2,"i462":2,"i463":32,"i464":2,"i465":1,"i466":1,"i467":1,"i468":1,"i469":2,"i470":8,"i471":32,"i472":1,"i473":1,"i474":1,"i475":2,"i476":1,"i477":1,"i478":1,"i479":2,"i480":2,"i481":2,"i482":2,"i483":8,"i484":32,"i485":1,"i486":2,"i487":1,"i488":1,"i489":32,"i490":2,"i491":2,"i492":2,"i493":1,"i494":2,"i495":1,"i496":1,"i497":1,"i498":2,"i499":2,"i500":2,"i501":2,"i502":2,"i503":2,"i504":2,"i505":2,"i506":2,"i507":2,"i508":2,"i509":2,"i510":2,"i511":2,"i512":2,"i513":2,"i514":2,"i515":2,"i516":2,"i517":2,"i518":2,"i519":2,"i520":2,"i521":8,"i522":2,"i523":2,"i524":2,"i525":2,"i526":2,"i527":1,"i528":2,"i529":2,"i530":2,"i531":2,"i532":2,"i533":2,"i534":2,"i535":2,"i536":2,"i537":2,"i538":2,"i539":1,"i540":2,"i541":2,"i542":2,"i543":2,"i544":8,"i545":2,"i546":2,"i547":2,"i548":8,"i549":2,"i550":32,"i551":1,"i552":2,"i553":2,"i554":2,"i555":2,"i556":2,"i557":8,"i558":2,"i559":2,"i560":32,"i561":32,"i562":2,"i563":2,"i564":2,"i565":2,"i566":2,"i567":2,"i568":2,"i569":2,"i570":2,"i571":2,"i572":2,"i573":2,"i574":2,"i575":2,"i576":2,"i577":2,"i578":2,"i579":2,"i580":2,"i581":32,"i582":2,"i583":8,"i584":1,"i585":1,"i586":1,"i587":2,"i588":2,"i589":2,"i590":2,"i591":8,"i592":2,"i593":2,"i594":1,"i595":2,"i596":2,"i597":1,"i598":2,"i599":1,"i600":1,"i601":1,"i602":1,"i603":2,"i604":8,"i605":2,"i606":2,"i607":2,"i608":2,"i609":1,"i610":1,"i611":2,"i612":2,"i613":1,"i614":2,"i615":1,"i616":2,"i617":2,"i618":1,"i619":2,"i620":2,"i621":2,"i622":32,"i623":2,"i624":2,"i625":2,"i626":2,"i627":2,"i628":2,"i629":32,"i630":2,"i631":2,"i632":2,"i633":2,"i634":2,"i635":8,"i636":1,"i637":1,"i638":1,"i639":1,"i640":8,"i641":8,"i642":1,"i643":2,"i644":2,"i645":2,"i646":2,"i647":1,"i648":2,"i649":2,"i650":1,"i651":2,"i652":8,"i653":1,"i654":8,"i655":32,"i656":8,"i657":8,"i658":2,"i659":2,"i660":2,"i661":2,"i662":2,"i663":2,"i664":2,"i665":2,"i666":1,"i667":2,"i668":2,"i669":2,"i670":8,"i671":2,"i672":2,"i673":2,"i674":2,"i675":2,"i676":2,"i677":2,"i678":2,"i679":2,"i680":2,"i681":2,"i682":2,"i683":2,"i684":8,"i685":1,"i686":2,"i687":2,"i688":2,"i689":2,"i690":2,"i691":2,"i692":2,"i693":2,"i694":2,"i695":2,"i696":1,"i697":1,"i698":1,"i699":1,"i700":2,"i701":1,"i702":1,"i703":2,"i704":1,"i705":8,"i706":1,"i707":2,"i708":1,"i709":2,"i710":2,"i711":32,"i712":2,"i713":2,"i714":2,"i715":2,"i716":1,"i717":32,"i718":2,"i719":2,"i720":2,"i721":2,"i722":32,"i723":2,"i724":1,"i725":2,"i726":2,"i727":1,"i728":2,"i729":32,"i730":2,"i731":2,"i732":2,"i733":1,"i734":1,"i735":1,"i736":2,"i737":1,"i738":1,"i739":2,"i740":8,"i741":2,"i742":2,"i743":8,"i744":1,"i745":2,"i746":8,"i747":8,"i748":2,"i749":2,"i750":1,"i751":8,"i752":2,"i753":2,"i754":2,"i755":2,"i756":2,"i757":2,"i758":2,"i759":2,"i760":2,"i761":2,"i762":2,"i763":2,"i764":2,"i765":2,"i766":2,"i767":2,"i768":2,"i769":2,"i770":2,"i771":1,"i772":1,"i773":2,"i774":2,"i775":2,"i776":32,"i777":32,"i778":2,"i779":2,"i780":2,"i781":2,"i782":2,"i783":1,"i784":1,"i785":2,"i786":1,"i787":2,"i788":2,"i789":1,"i790":1,"i791":1,"i792":2,"i793":1,"i794":1,"i795":32,"i796":1,"i797":1,"i798":1,"i799":1,"i800":1,"i801":1,"i802":2,"i803":1,"i804":1,"i805":2,"i806":1,"i807":2,"i808":2,"i809":8,"i810":32,"i811":2,"i812":1,"i813":1,"i814":1,"i815":2,"i816":1,"i817":2,"i818":2,"i819":2,"i820":2,"i821":2,"i822":2,"i823":32,"i824":2,"i825":32,"i826":2,"i827":2,"i828":2,"i829":2,"i830":1,"i831":1,"i832":8,"i833":2,"i834":2,"i835":2,"i836":2,"i837":2,"i838":1,"i839":32,"i840":2,"i841":2,"i842":2,"i843":32,"i844":2,"i845":2,"i846":2,"i847":2,"i848":2,"i849":2,"i850":8,"i851":2,"i852":2,"i853":2,"i854":2,"i855":2,"i856":2,"i857":8,"i858":2,"i859":1,"i860":2,"i861":2,"i862":2,"i863":2,"i864":2,"i865":2,"i866":2,"i867":2,"i868":2,"i869":2,"i870":8,"i871":32,"i872":2,"i873":2,"i874":1,"i875":1,"i876":2,"i877":2,"i878":2,"i879":2,"i880":2,"i881":1,"i882":1,"i883":32,"i884":2,"i885":2,"i886":32,"i887":32,"i888":2,"i889":1,"i890":32,"i891":32,"i892":32,"i893":2,"i894":32,"i895":32,"i896":32,"i897":2,"i898":1,"i899":1,"i900":2,"i901":1,"i902":2,"i903":2,"i904":1,"i905":1,"i906":2,"i907":2,"i908":1,"i909":1,"i910":1,"i911":32,"i912":32,"i913":2,"i914":32,"i915":2,"i916":2,"i917":32,"i918":2,"i919":2,"i920":2,"i921":2,"i922":8,"i923":2,"i924":2,"i925":2,"i926":2,"i927":2,"i928":1,"i929":1,"i930":2,"i931":2,"i932":2,"i933":2,"i934":2,"i935":2,"i936":2,"i937":2,"i938":2,"i939":2,"i940":8,"i941":1,"i942":32,"i943":32,"i944":1,"i945":1,"i946":32,"i947":32,"i948":32,"i949":32,"i950":32,"i951":32,"i952":2,"i953":1,"i954":2,"i955":2,"i956":32,"i957":2,"i958":2,"i959":2,"i960":2,"i961":32,"i962":2,"i963":1,"i964":2,"i965":2,"i966":1,"i967":2,"i968":2,"i969":2,"i970":1,"i971":2,"i972":2,"i973":2,"i974":2,"i975":2,"i976":2,"i977":2,"i978":2,"i979":1,"i980":1,"i981":2,"i982":2,"i983":2,"i984":2,"i985":8,"i986":2,"i987":2,"i988":2,"i989":1,"i990":8,"i991":1,"i992":32,"i993":32,"i994":2,"i995":2,"i996":1,"i997":1,"i998":2,"i999":1,"i1000":2,"i1001":2,"i1002":2,"i1003":2,"i1004":2,"i1005":2,"i1006":2,"i1007":2,"i1008":2,"i1009":2,"i1010":2,"i1011":2,"i1012":2,"i1013":1,"i1014":1,"i1015":2,"i1016":1,"i1017":2,"i1018":2,"i1019":1,"i1020":2,"i1021":1,"i1022":1,"i1023":2,"i1024":1,"i1025":2,"i1026":1,"i1027":1,"i1028":1,"i1029":1,"i1030":2,"i1031":2,"i1032":1,"i1033":2,"i1034":2,"i1035":2,"i1036":2,"i1037":2,"i1038":2,"i1039":2,"i1040":2,"i1041":2,"i1042":2,"i1043":2,"i1044":2,"i1045":2,"i1046":2,"i1047":2,"i1048":2,"i1049":2,"i1050":2,"i1051":2,"i1052":2,"i1053":2,"i1054":2,"i1055":2,"i1056":2,"i1057":2,"i1058":2,"i1059":2,"i1060":2,"i1061":1,"i1062":2,"i1063":2,"i1064":1,"i1065":1,"i1066":1,"i1067":1,"i1068":1,"i1069":1,"i1070":1,"i1071":1,"i1072":1,"i1073":2,"i1074":2,"i1075":1,"i1076":2,"i1077":2,"i1078":2,"i1079":2,"i1080":2,"i1081":2,"i1082":2,"i1083":2,"i1084":2,"i1085":1,"i1086":1,"i1087":2,"i1088":2,"i1089":2,"i1090":2,"i1091":2,"i1092":8,"i1093":2,"i1094":2,"i1095":2,"i1096":2,"i1097":2,"i1098":2,"i1099":2,"i1100":2,"i1101":2,"i1102":2,"i1103":2,"i1104":1,"i1105":1,"i1106":1,"i1107":2,"i1108":1,"i1109":1,"i1110":32,"i1111":2,"i1112":1,"i1113":1,"i1114":8,"i1115":1,"i1116":2,"i1117":2,"i1118":2,"i1119":2,"i1120":32,"i1121":2,"i1122":2,"i1123":2,"i1124":2,"i1125":2,"i1126":1,"i1127":2,"i1128":2,"i1129":2,"i1130":2,"i1131":2,"i1132":2,"i1133":2,"i1134":32,"i1135":2,"i1136":32,"i1137":32,"i1138":2,"i1139":1,"i1140":2,"i1141":2,"i1142":2,"i1143":1,"i1144":1,"i1145":2,"i1146":2,"i1147":2,"i1148":2,"i1149":2,"i1150":2,"i1151":2,"i1152":1,"i1153":2,"i1154":1,"i1155":2,"i1156":2,"i1157":2,"i1158":2,"i1159":1,"i1160":2,"i1161":2,"i1162":32,"i1163":2,"i1164":2,"i1165":2,"i1166":1,"i1167":1,"i1168":2,"i1169":32,"i1170":2,"i1171":2,"i1172":1,"i1173":32,"i1174":2,"i1175":2,"i1176":1,"i1177":2,"i1178":2,"i1179":2,"i1180":2,"i1181":1,"i1182":2,"i1183":1,"i1184":2,"i1185":1,"i1186":2,"i1187":1,"i1188":8,"i1189":32,"i1190":2,"i1191":2,"i1192":2,"i1193":2,"i1194":2,"i1195":2,"i1196":1,"i1197":32,"i1198":2,"i1199":2,"i1200":32,"i1201":1,"i1202":2,"i1203":2,"i1204":1,"i1205":32,"i1206":2,"i1207":2,"i1208":2,"i1209":2,"i1210":2,"i1211":8,"i1212":32,"i1213":8,"i1214":8,"i1215":32,"i1216":2,"i1217":2,"i1218":2,"i1219":2,"i1220":2,"i1221":2,"i1222":2,"i1223":2,"i1224":1,"i1225":2,"i1226":32,"i1227":2,"i1228":1,"i1229":2,"i1230":1,"i1231":2,"i1232":2,"i1233":2,"i1234":2,"i1235":2,"i1236":2,"i1237":2,"i1238":2,"i1239":2,"i1240":2,"i1241":8,"i1242":2,"i1243":2,"i1244":2,"i1245":2,"i1246":2,"i1247":2,"i1248":2,"i1249":32,"i1250":32,"i1251":2,"i1252":2,"i1253":2,"i1254":2,"i1255":2,"i1256":2,"i1257":2,"i1258":2,"i1259":2,"i1260":1,"i1261":2}; +var data = {"i0":2,"i1":32,"i2":2,"i3":2,"i4":2,"i5":2,"i6":2,"i7":2,"i8":32,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":2,"i16":2,"i17":2,"i18":2,"i19":2,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":2,"i27":2,"i28":2,"i29":2,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":2,"i39":2,"i40":2,"i41":2,"i42":2,"i43":2,"i44":2,"i45":2,"i46":1,"i47":2,"i48":2,"i49":1,"i50":2,"i51":2,"i52":2,"i53":2,"i54":2,"i55":2,"i56":2,"i57":32,"i58":2,"i59":2,"i60":32,"i61":1,"i62":1,"i63":1,"i64":2,"i65":8,"i66":32,"i67":2,"i68":32,"i69":2,"i70":1,"i71":2,"i72":2,"i73":2,"i74":2,"i75":1,"i76":1,"i77":2,"i78":32,"i79":1,"i80":1,"i81":32,"i82":2,"i83":2,"i84":2,"i85":2,"i86":2,"i87":2,"i88":1,"i89":32,"i90":2,"i91":2,"i92":2,"i93":8,"i94":2,"i95":2,"i96":2,"i97":2,"i98":2,"i99":2,"i100":1,"i101":1,"i102":2,"i103":8,"i104":1,"i105":1,"i106":2,"i107":1,"i108":8,"i109":8,"i110":1,"i111":32,"i112":8,"i113":8,"i114":2,"i115":2,"i116":2,"i117":1,"i118":1,"i119":2,"i120":2,"i121":2,"i122":2,"i123":2,"i124":2,"i125":2,"i126":2,"i127":2,"i128":2,"i129":2,"i130":2,"i131":8,"i132":2,"i133":2,"i134":2,"i135":2,"i136":2,"i137":1,"i138":2,"i139":1,"i140":2,"i141":1,"i142":1,"i143":2,"i144":2,"i145":2,"i146":2,"i147":2,"i148":2,"i149":2,"i150":2,"i151":2,"i152":32,"i153":32,"i154":32,"i155":32,"i156":32,"i157":32,"i158":32,"i159":32,"i160":32,"i161":32,"i162":32,"i163":32,"i164":32,"i165":32,"i166":32,"i167":32,"i168":32,"i169":32,"i170":32,"i171":32,"i172":32,"i173":32,"i174":32,"i175":32,"i176":32,"i177":32,"i178":32,"i179":32,"i180":1,"i181":8,"i182":1,"i183":2,"i184":2,"i185":2,"i186":8,"i187":2,"i188":2,"i189":32,"i190":1,"i191":2,"i192":32,"i193":2,"i194":1,"i195":1,"i196":2,"i197":2,"i198":1,"i199":1,"i200":2,"i201":2,"i202":32,"i203":2,"i204":2,"i205":2,"i206":2,"i207":2,"i208":2,"i209":2,"i210":2,"i211":2,"i212":1,"i213":1,"i214":1,"i215":2,"i216":2,"i217":2,"i218":1,"i219":1,"i220":2,"i221":2,"i222":8,"i223":32,"i224":1,"i225":1,"i226":1,"i227":1,"i228":2,"i229":2,"i230":1,"i231":2,"i232":2,"i233":2,"i234":2,"i235":1,"i236":2,"i237":2,"i238":2,"i239":2,"i240":2,"i241":1,"i242":2,"i243":2,"i244":8,"i245":1,"i246":2,"i247":2,"i248":2,"i249":2,"i250":2,"i251":8,"i252":2,"i253":2,"i254":2,"i255":2,"i256":1,"i257":8,"i258":2,"i259":2,"i260":32,"i261":2,"i262":32,"i263":32,"i264":32,"i265":2,"i266":2,"i267":2,"i268":1,"i269":1,"i270":2,"i271":2,"i272":2,"i273":2,"i274":8,"i275":2,"i276":2,"i277":1,"i278":2,"i279":2,"i280":8,"i281":1,"i282":2,"i283":1,"i284":2,"i285":1,"i286":1,"i287":1,"i288":1,"i289":2,"i290":2,"i291":2,"i292":2,"i293":8,"i294":2,"i295":2,"i296":2,"i297":2,"i298":32,"i299":32,"i300":2,"i301":1,"i302":2,"i303":1,"i304":1,"i305":2,"i306":2,"i307":2,"i308":8,"i309":2,"i310":32,"i311":8,"i312":2,"i313":1,"i314":2,"i315":32,"i316":32,"i317":2,"i318":2,"i319":2,"i320":2,"i321":1,"i322":1,"i323":2,"i324":2,"i325":8,"i326":32,"i327":32,"i328":2,"i329":2,"i330":2,"i331":2,"i332":2,"i333":2,"i334":2,"i335":2,"i336":2,"i337":2,"i338":2,"i339":2,"i340":2,"i341":2,"i342":2,"i343":2,"i344":2,"i345":2,"i346":2,"i347":2,"i348":8,"i349":32,"i350":2,"i351":2,"i352":2,"i353":2,"i354":2,"i355":2,"i356":2,"i357":2,"i358":2,"i359":2,"i360":2,"i361":2,"i362":2,"i363":2,"i364":2,"i365":2,"i366":2,"i367":2,"i368":2,"i369":2,"i370":2,"i371":1,"i372":2,"i373":2,"i374":2,"i375":2,"i376":32,"i377":2,"i378":2,"i379":2,"i380":2,"i381":2,"i382":2,"i383":2,"i384":2,"i385":2,"i386":2,"i387":32,"i388":2,"i389":2,"i390":32,"i391":2,"i392":2,"i393":32,"i394":2,"i395":2,"i396":2,"i397":32,"i398":32,"i399":2,"i400":1,"i401":1,"i402":1,"i403":1,"i404":8,"i405":2,"i406":1,"i407":8,"i408":1,"i409":2,"i410":1,"i411":2,"i412":2,"i413":2,"i414":2,"i415":8,"i416":2,"i417":2,"i418":2,"i419":1,"i420":8,"i421":32,"i422":1,"i423":2,"i424":1,"i425":1,"i426":1,"i427":2,"i428":32,"i429":2,"i430":2,"i431":2,"i432":2,"i433":2,"i434":1,"i435":2,"i436":2,"i437":2,"i438":1,"i439":2,"i440":2,"i441":2,"i442":1,"i443":32,"i444":1,"i445":2,"i446":32,"i447":1,"i448":1,"i449":2,"i450":1,"i451":1,"i452":2,"i453":1,"i454":2,"i455":2,"i456":2,"i457":2,"i458":2,"i459":2,"i460":2,"i461":2,"i462":1,"i463":2,"i464":2,"i465":32,"i466":2,"i467":1,"i468":1,"i469":1,"i470":1,"i471":2,"i472":8,"i473":32,"i474":1,"i475":1,"i476":1,"i477":2,"i478":1,"i479":1,"i480":1,"i481":2,"i482":2,"i483":2,"i484":2,"i485":8,"i486":32,"i487":1,"i488":2,"i489":1,"i490":1,"i491":32,"i492":2,"i493":2,"i494":2,"i495":1,"i496":2,"i497":1,"i498":1,"i499":1,"i500":2,"i501":2,"i502":2,"i503":2,"i504":2,"i505":2,"i506":2,"i507":2,"i508":2,"i509":2,"i510":2,"i511":2,"i512":2,"i513":2,"i514":2,"i515":2,"i516":2,"i517":2,"i518":2,"i519":2,"i520":2,"i521":2,"i522":2,"i523":8,"i524":2,"i525":2,"i526":2,"i527":2,"i528":2,"i529":1,"i530":2,"i531":2,"i532":2,"i533":2,"i534":2,"i535":2,"i536":2,"i537":2,"i538":2,"i539":2,"i540":2,"i541":1,"i542":2,"i543":2,"i544":2,"i545":2,"i546":8,"i547":2,"i548":2,"i549":2,"i550":8,"i551":2,"i552":32,"i553":1,"i554":2,"i555":2,"i556":2,"i557":2,"i558":2,"i559":8,"i560":2,"i561":2,"i562":32,"i563":32,"i564":2,"i565":2,"i566":2,"i567":2,"i568":2,"i569":2,"i570":2,"i571":2,"i572":2,"i573":2,"i574":2,"i575":2,"i576":2,"i577":2,"i578":2,"i579":2,"i580":2,"i581":2,"i582":2,"i583":32,"i584":2,"i585":8,"i586":1,"i587":1,"i588":1,"i589":2,"i590":2,"i591":2,"i592":2,"i593":8,"i594":2,"i595":2,"i596":1,"i597":2,"i598":2,"i599":1,"i600":2,"i601":1,"i602":1,"i603":1,"i604":1,"i605":2,"i606":8,"i607":2,"i608":2,"i609":2,"i610":2,"i611":1,"i612":1,"i613":2,"i614":2,"i615":1,"i616":2,"i617":1,"i618":2,"i619":2,"i620":1,"i621":2,"i622":2,"i623":2,"i624":32,"i625":2,"i626":2,"i627":2,"i628":2,"i629":2,"i630":2,"i631":32,"i632":2,"i633":2,"i634":2,"i635":2,"i636":2,"i637":8,"i638":1,"i639":1,"i640":1,"i641":1,"i642":8,"i643":8,"i644":1,"i645":2,"i646":2,"i647":2,"i648":2,"i649":1,"i650":2,"i651":2,"i652":1,"i653":2,"i654":8,"i655":1,"i656":8,"i657":32,"i658":8,"i659":8,"i660":2,"i661":2,"i662":2,"i663":2,"i664":2,"i665":2,"i666":2,"i667":2,"i668":1,"i669":2,"i670":2,"i671":2,"i672":8,"i673":2,"i674":2,"i675":2,"i676":2,"i677":2,"i678":2,"i679":2,"i680":2,"i681":2,"i682":2,"i683":2,"i684":2,"i685":2,"i686":8,"i687":1,"i688":2,"i689":2,"i690":2,"i691":2,"i692":2,"i693":2,"i694":2,"i695":2,"i696":2,"i697":2,"i698":1,"i699":1,"i700":1,"i701":1,"i702":2,"i703":1,"i704":1,"i705":2,"i706":1,"i707":8,"i708":1,"i709":2,"i710":1,"i711":2,"i712":2,"i713":32,"i714":2,"i715":2,"i716":2,"i717":2,"i718":1,"i719":32,"i720":2,"i721":2,"i722":2,"i723":2,"i724":32,"i725":2,"i726":1,"i727":2,"i728":2,"i729":1,"i730":2,"i731":32,"i732":2,"i733":2,"i734":2,"i735":1,"i736":1,"i737":1,"i738":2,"i739":1,"i740":1,"i741":2,"i742":8,"i743":2,"i744":2,"i745":8,"i746":1,"i747":2,"i748":8,"i749":8,"i750":2,"i751":2,"i752":1,"i753":8,"i754":2,"i755":2,"i756":2,"i757":2,"i758":2,"i759":2,"i760":2,"i761":2,"i762":2,"i763":2,"i764":2,"i765":2,"i766":2,"i767":2,"i768":2,"i769":2,"i770":2,"i771":2,"i772":2,"i773":1,"i774":1,"i775":2,"i776":2,"i777":2,"i778":32,"i779":32,"i780":32,"i781":2,"i782":2,"i783":2,"i784":2,"i785":2,"i786":1,"i787":1,"i788":2,"i789":1,"i790":2,"i791":2,"i792":1,"i793":1,"i794":1,"i795":2,"i796":1,"i797":1,"i798":32,"i799":1,"i800":1,"i801":1,"i802":1,"i803":1,"i804":1,"i805":2,"i806":1,"i807":1,"i808":2,"i809":1,"i810":2,"i811":2,"i812":8,"i813":32,"i814":2,"i815":1,"i816":1,"i817":1,"i818":2,"i819":1,"i820":2,"i821":2,"i822":2,"i823":2,"i824":2,"i825":2,"i826":32,"i827":2,"i828":32,"i829":2,"i830":2,"i831":2,"i832":2,"i833":1,"i834":1,"i835":8,"i836":2,"i837":2,"i838":2,"i839":2,"i840":2,"i841":1,"i842":32,"i843":2,"i844":2,"i845":2,"i846":32,"i847":2,"i848":2,"i849":2,"i850":2,"i851":2,"i852":2,"i853":8,"i854":2,"i855":2,"i856":2,"i857":2,"i858":2,"i859":2,"i860":8,"i861":2,"i862":1,"i863":2,"i864":2,"i865":2,"i866":2,"i867":2,"i868":2,"i869":2,"i870":2,"i871":2,"i872":2,"i873":8,"i874":32,"i875":2,"i876":2,"i877":1,"i878":1,"i879":2,"i880":2,"i881":2,"i882":2,"i883":2,"i884":1,"i885":1,"i886":32,"i887":2,"i888":2,"i889":32,"i890":32,"i891":2,"i892":1,"i893":32,"i894":32,"i895":32,"i896":2,"i897":32,"i898":32,"i899":32,"i900":2,"i901":1,"i902":1,"i903":2,"i904":1,"i905":2,"i906":2,"i907":1,"i908":1,"i909":2,"i910":2,"i911":1,"i912":1,"i913":1,"i914":32,"i915":32,"i916":2,"i917":32,"i918":2,"i919":2,"i920":32,"i921":2,"i922":2,"i923":2,"i924":2,"i925":8,"i926":2,"i927":2,"i928":2,"i929":2,"i930":2,"i931":1,"i932":1,"i933":2,"i934":2,"i935":2,"i936":2,"i937":2,"i938":2,"i939":2,"i940":2,"i941":2,"i942":2,"i943":8,"i944":1,"i945":32,"i946":32,"i947":1,"i948":1,"i949":32,"i950":32,"i951":32,"i952":32,"i953":32,"i954":32,"i955":2,"i956":1,"i957":2,"i958":2,"i959":32,"i960":2,"i961":2,"i962":2,"i963":2,"i964":32,"i965":2,"i966":1,"i967":2,"i968":2,"i969":1,"i970":2,"i971":2,"i972":2,"i973":1,"i974":2,"i975":2,"i976":2,"i977":2,"i978":2,"i979":2,"i980":2,"i981":2,"i982":1,"i983":1,"i984":2,"i985":2,"i986":2,"i987":2,"i988":8,"i989":2,"i990":2,"i991":2,"i992":1,"i993":8,"i994":1,"i995":32,"i996":32,"i997":2,"i998":2,"i999":1,"i1000":1,"i1001":2,"i1002":1,"i1003":2,"i1004":2,"i1005":2,"i1006":2,"i1007":2,"i1008":2,"i1009":2,"i1010":2,"i1011":2,"i1012":2,"i1013":2,"i1014":2,"i1015":2,"i1016":1,"i1017":1,"i1018":2,"i1019":1,"i1020":2,"i1021":2,"i1022":1,"i1023":2,"i1024":1,"i1025":1,"i1026":2,"i1027":1,"i1028":2,"i1029":1,"i1030":1,"i1031":1,"i1032":1,"i1033":2,"i1034":2,"i1035":1,"i1036":2,"i1037":2,"i1038":2,"i1039":2,"i1040":2,"i1041":2,"i1042":2,"i1043":2,"i1044":2,"i1045":2,"i1046":1,"i1047":2,"i1048":2,"i1049":2,"i1050":2,"i1051":2,"i1052":2,"i1053":2,"i1054":2,"i1055":2,"i1056":2,"i1057":2,"i1058":2,"i1059":2,"i1060":2,"i1061":2,"i1062":2,"i1063":2,"i1064":2,"i1065":2,"i1066":2,"i1067":2,"i1068":2,"i1069":1,"i1070":2,"i1071":2,"i1072":1,"i1073":1,"i1074":1,"i1075":1,"i1076":1,"i1077":1,"i1078":1,"i1079":1,"i1080":1,"i1081":2,"i1082":2,"i1083":1,"i1084":2,"i1085":2,"i1086":2,"i1087":2,"i1088":2,"i1089":2,"i1090":2,"i1091":2,"i1092":2,"i1093":1,"i1094":1,"i1095":2,"i1096":2,"i1097":2,"i1098":2,"i1099":2,"i1100":8,"i1101":2,"i1102":2,"i1103":2,"i1104":2,"i1105":2,"i1106":2,"i1107":2,"i1108":2,"i1109":2,"i1110":2,"i1111":2,"i1112":1,"i1113":1,"i1114":1,"i1115":2,"i1116":1,"i1117":1,"i1118":32,"i1119":2,"i1120":1,"i1121":1,"i1122":8,"i1123":1,"i1124":2,"i1125":2,"i1126":2,"i1127":2,"i1128":32,"i1129":2,"i1130":2,"i1131":2,"i1132":2,"i1133":2,"i1134":1,"i1135":2,"i1136":2,"i1137":2,"i1138":2,"i1139":2,"i1140":2,"i1141":2,"i1142":32,"i1143":2,"i1144":32,"i1145":32,"i1146":2,"i1147":1,"i1148":2,"i1149":2,"i1150":2,"i1151":1,"i1152":1,"i1153":2,"i1154":2,"i1155":2,"i1156":2,"i1157":2,"i1158":2,"i1159":2,"i1160":1,"i1161":2,"i1162":1,"i1163":2,"i1164":2,"i1165":2,"i1166":2,"i1167":1,"i1168":2,"i1169":2,"i1170":32,"i1171":2,"i1172":2,"i1173":2,"i1174":1,"i1175":1,"i1176":2,"i1177":32,"i1178":2,"i1179":2,"i1180":1,"i1181":32,"i1182":2,"i1183":2,"i1184":1,"i1185":2,"i1186":2,"i1187":2,"i1188":2,"i1189":1,"i1190":2,"i1191":1,"i1192":2,"i1193":1,"i1194":2,"i1195":1,"i1196":8,"i1197":32,"i1198":2,"i1199":2,"i1200":2,"i1201":2,"i1202":2,"i1203":2,"i1204":1,"i1205":32,"i1206":2,"i1207":2,"i1208":32,"i1209":1,"i1210":2,"i1211":2,"i1212":1,"i1213":32,"i1214":2,"i1215":2,"i1216":2,"i1217":2,"i1218":2,"i1219":8,"i1220":32,"i1221":8,"i1222":8,"i1223":32,"i1224":2,"i1225":2,"i1226":2,"i1227":2,"i1228":2,"i1229":2,"i1230":2,"i1231":2,"i1232":1,"i1233":2,"i1234":32,"i1235":2,"i1236":1,"i1237":2,"i1238":1,"i1239":2,"i1240":2,"i1241":2,"i1242":2,"i1243":2,"i1244":2,"i1245":2,"i1246":2,"i1247":2,"i1248":2,"i1249":8,"i1250":2,"i1251":2,"i1252":2,"i1253":2,"i1254":2,"i1255":2,"i1256":2,"i1257":32,"i1258":32,"i1259":2,"i1260":2,"i1261":2,"i1262":2,"i1263":2,"i1264":2,"i1265":2,"i1266":2,"i1267":2,"i1268":1,"i1269":2}; var tabs = {65535:["t0","All Classes"],1:["t1","Interface Summary"],2:["t2","Class Summary"],8:["t4","Exception Summary"],32:["t6","Annotation Types Summary"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -1556,706 +1556,718 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +ConcatenatingMediaSource2 + +
Concatenates multiple MediaSources, combining everything in one single Timeline.Window.
+ + + +ConcatenatingMediaSource2.Builder + +
A builder for ConcatenatingMediaSource2 instances.
+ + + ConditionVariable
An interruptible condition variable.
- + ConstantBitrateSeekMap
A SeekMap implementation that assumes the stream has a constant bitrate and consists of multiple independent frames of the same size.
- + Consumer<T>
Represents an operation that accepts a single input argument and returns no result.
- + ContainerMediaChunk
A BaseMediaChunk that uses an Extractor to decode sample data.
- + ContentDataSource
A DataSource for reading from a content URI.
- + ContentDataSource.ContentDataSourceException
Thrown when an IOException is encountered reading from a content URI.
- + ContentMetadata
Interface for an immutable snapshot of keyed metadata.
- + ContentMetadataMutations
Defines multiple mutations on metadata value which are applied atomically.
- + Contrast
A GlEffect to control the contrast of video frames.
- + CopyOnWriteMultiset<E>
An unordered collection of elements that allows duplicates, but also allows access to a set of unique elements.
- + CronetDataSource
DataSource without intermediate buffer based on Cronet API set using UrlRequest.
- + CronetDataSource.Factory
DataSource.Factory for CronetDataSource instances.
- + CronetDataSource.OpenException
Thrown when an error is encountered when trying to open a CronetDataSource.
- + CronetDataSourceFactory Deprecated.
Use CronetDataSource.Factory instead.
- + CronetEngineWrapper Deprecated.
Use CronetEngine directly.
- + CronetUtil
Cronet utility methods.
- + Crop
Specifies a crop to apply in the vertex shader.
- + CryptoConfig
Configuration for a decoder to allow it to decode encrypted media data.
- + CryptoException
Thrown when a non-platform component fails to decrypt data.
- + CryptoInfo
Metadata describing the structure of an encrypted input sample.
- + Cue
Contains information about a specific cue, including textual content and formatting data.
- + Cue.AnchorType
The type of anchor, which may be unset.
- + Cue.Builder
A builder for Cue objects.
- + Cue.LineType
The type of line, which may be unset.
- + Cue.TextSizeType
The type of default text size for this cue, which may be unset.
- + Cue.VerticalType
The type of vertical layout for this cue, which may be unset (i.e.
- + CueDecoder
Decodes data encoded by CueEncoder.
- + CueEncoder
Encodes data that can be decoded by CueDecoder.
- + CueGroup
Class to represent the state of active Cues at a particular time.
- + DashChunkSource
A ChunkSource for DASH streams.
- + DashChunkSource.Factory
Factory for DashChunkSources.
- + DashDownloader
A downloader for DASH streams.
- + DashManifest
Represents a DASH media presentation description (mpd), as defined by ISO/IEC 23009-1:2014 Section 5.3.1.2.
- + DashManifestParser
A parser of media presentation description files.
- + DashManifestParser.RepresentationInfo
A parsed Representation element.
- + DashManifestStaleException
Thrown when a live playback's manifest is stale and a new manifest could not be loaded.
- + DashMediaSource
A DASH MediaSource.
- + DashMediaSource.Factory
Factory for DashMediaSources.
- + DashSegmentIndex
Indexes the segments within a media stream.
- + DashUtil
Utility methods for DASH streams.
- + DashWrappingSegmentIndex
An implementation of DashSegmentIndex that wraps a ChunkIndex parsed from a media stream.
- + DatabaseIOException
An IOException whose cause is an SQLException.
- + DatabaseProvider
Provides SQLiteDatabase instances to media library components, which may read and write tables prefixed with DatabaseProvider.TABLE_PREFIX.
- + DataChunk
A base class for Chunk implementations where the data should be loaded into a byte[] before being consumed.
- + DataReader
Reads bytes from a data stream.
- + DataSchemeDataSource
A DataSource for reading data URLs, as defined by RFC 2397.
- + DataSink
A component to which streams of data can be written.
- + DataSink.Factory
A factory for DataSink instances.
- + DataSource
Reads data from URI-identified resources.
- + DataSource.Factory
A factory for DataSource instances.
- + DataSourceContractTest
A collection of contract tests for DataSource implementations.
- + DataSourceContractTest.FakeTransferListener
A TransferListener that only keeps track of the transferred bytes.
- + DataSourceContractTest.TestResource
Information about a resource that can be used to test the DataSource instance.
- + DataSourceContractTest.TestResource.Builder
Builder for DataSourceContractTest.TestResource instances.
- + DataSourceException
Used to specify reason of a DataSource error.
- + DataSourceInputStream
Allows data corresponding to a given DataSpec to be read from a DataSource and consumed through an InputStream.
- + DataSourceUtil
Utility methods for DataSource.
- + DataSpec
Defines a region of data in a resource.
- + DataSpec.Builder
Builds DataSpec instances.
- + DataSpec.Flags
The flags that apply to any request for data.
- + DataSpec.HttpMethod
HTTP methods supported by ExoPlayer HttpDataSources.
- + DebugTextViewHelper
A helper class for periodically updating a TextView with debug information obtained from an ExoPlayer.
- + DebugViewProvider
Provider for views to show diagnostic information during a transformation, for debugging.
- + DecodeOneFrameUtil
Utilities for decoding a frame for tests.
- + DecodeOneFrameUtil.Listener
Listener for decoding events.
- + Decoder<I,​O,​E extends DecoderException>
A media decoder.
- + DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleDecoderOutputBuffer,​? extends DecoderException>>
Decodes and renders audio using a Decoder.
- + DecoderCounters
Maintains decoder event counts, for debugging purposes only.
- + DecoderCountersUtil
Assertions for DecoderCounters.
- + DecoderException
Thrown when a Decoder error occurs.
- + DecoderInputBuffer
Holds input for a decoder.
- + DecoderInputBuffer.BufferReplacementMode
The buffer replacement mode.
- + DecoderInputBuffer.InsufficientCapacityException
Thrown when an attempt is made to write into a DecoderInputBuffer whose DecoderInputBuffer.bufferReplacementMode is DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED and who DecoderInputBuffer.data capacity is smaller than required.
- + DecoderOutputBuffer
Output buffer decoded by a Decoder.
- + DecoderOutputBuffer.Owner<S extends DecoderOutputBuffer>
Buffer owner.
- + DecoderReuseEvaluation
The result of an evaluation to determine whether a decoder can be reused for a new input format.
- + DecoderReuseEvaluation.DecoderDiscardReasons
Possible reasons why reuse is not possible.
- + DecoderReuseEvaluation.DecoderReuseResult
Possible outcomes of the evaluation.
- + DecoderVideoRenderer
Decodes and renders video using a Decoder.
- + DefaultAllocator
Default implementation of Allocator.
- + DefaultAnalyticsCollector
Data collector that forwards analytics events to AnalyticsListeners.
- + DefaultAudioSink
Plays audio data.
- + DefaultAudioSink.AudioProcessorChain Deprecated.
Use AudioProcessorChain.
- + DefaultAudioSink.AudioTrackBufferSizeProvider
Provides the buffer size to use when creating an AudioTrack.
- + DefaultAudioSink.Builder
A builder to create DefaultAudioSink instances.
- + DefaultAudioSink.DefaultAudioProcessorChain
The default audio processor chain, which applies a (possibly empty) chain of user-defined audio processors followed by SilenceSkippingAudioProcessor and SonicAudioProcessor.
- + DefaultAudioSink.InvalidAudioTrackTimestampException
Thrown when the audio track has provided a spurious timestamp, if DefaultAudioSink.failOnSpuriousAudioTimestamp is set.
- + DefaultAudioSink.OffloadMode
Audio offload mode configuration.
- + DefaultAudioSink.OutputMode
Output mode of the audio sink.
- + DefaultAudioTrackBufferSizeProvider
Provide the buffer size to use when creating an AudioTrack.
- + DefaultAudioTrackBufferSizeProvider.Builder
A builder to create DefaultAudioTrackBufferSizeProvider instances.
- + DefaultBandwidthMeter
Estimates bandwidth by listening to data transfers.
- + DefaultBandwidthMeter.Builder
Builder for a bandwidth meter.
- + DefaultCastOptionsProvider
A convenience OptionsProvider to target the default cast receiver app.
- + DefaultCodec
A default Codec implementation that uses MediaCodec.
- + DefaultCompositeSequenceableLoaderFactory
Default implementation of CompositeSequenceableLoaderFactory.
- + DefaultContentMetadata
Default implementation of ContentMetadata.
- + DefaultDashChunkSource
A default DashChunkSource implementation.
- + DefaultDashChunkSource.Factory   - + DefaultDashChunkSource.RepresentationHolder
Holds information about a snapshot of a single Representation.
- + DefaultDashChunkSource.RepresentationSegmentIterator
MediaChunkIterator wrapping a DefaultDashChunkSource.RepresentationHolder.
- + DefaultDatabaseProvider
A DatabaseProvider that provides instances obtained from a SQLiteOpenHelper.
- + DefaultDataSource
A DataSource that supports multiple URI schemes.
- + DefaultDataSource.Factory
DataSource.Factory for DefaultDataSource instances.
- + DefaultDataSourceFactory Deprecated.
Use DefaultDataSource.Factory instead.
- + DefaultDownloaderFactory
Default DownloaderFactory, supporting creation of progressive, DASH, HLS and SmoothStreaming downloaders.
- + DefaultDownloadIndex
A DownloadIndex that uses SQLite to persist Downloads.
- + DefaultDrmSessionManager
A DrmSessionManager that supports playbacks using ExoMediaDrm.
- + DefaultDrmSessionManager.Builder
Builder for DefaultDrmSessionManager instances.
- + DefaultDrmSessionManager.MissingSchemeDataException
Signals that the Format.drmInitData passed to DefaultDrmSessionManager.acquireSession(com.google.android.exoplayer2.drm.DrmSessionEventListener.EventDispatcher, com.google.android.exoplayer2.Format) does not contain scheme data for the required UUID.
- + DefaultDrmSessionManager.Mode
Determines the action to be done after a session acquired.
- + DefaultDrmSessionManagerProvider
Default implementation of DrmSessionManagerProvider.
- + DefaultEncoderFactory
A default implementation of Codec.EncoderFactory.
- + DefaultEncoderFactory.Builder
A builder for DefaultEncoderFactory instances.
- + DefaultExtractorInput
An ExtractorInput that wraps a DataReader.
- + DefaultExtractorsFactory
An ExtractorsFactory that provides an array of extractors for the following formats: @@ -2280,1851 +2292,1851 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); com.google.android.exoplayer2.ext.flac.FlacExtractor is used.
- + DefaultHlsDataSourceFactory
Default implementation of HlsDataSourceFactory.
- + DefaultHlsExtractorFactory
Default HlsExtractorFactory implementation.
- + DefaultHlsPlaylistParserFactory
Default implementation for HlsPlaylistParserFactory.
- + DefaultHlsPlaylistTracker
Default implementation for HlsPlaylistTracker.
- + DefaultHttpDataSource
An HttpDataSource that uses Android's HttpURLConnection.
- + DefaultHttpDataSource.Factory
DataSource.Factory for DefaultHttpDataSource instances.
- + DefaultLivePlaybackSpeedControl
A LivePlaybackSpeedControl that adjusts the playback speed using a proportional controller.
- + DefaultLivePlaybackSpeedControl.Builder
Builder for a DefaultLivePlaybackSpeedControl.
- + DefaultLoadControl
The default LoadControl implementation.
- + DefaultLoadControl.Builder
Builder for DefaultLoadControl.
- + DefaultLoadErrorHandlingPolicy
Default implementation of LoadErrorHandlingPolicy.
- + DefaultMediaCodecAdapterFactory
The default MediaCodecAdapter.Factory.
- + DefaultMediaDescriptionAdapter
Default implementation of PlayerNotificationManager.MediaDescriptionAdapter.
- + DefaultMediaItemConverter
Default MediaItemConverter implementation.
- + DefaultMediaItemConverter
Default implementation of MediaItemConverter.
- + DefaultMediaSourceFactory
The default MediaSource.Factory implementation.
- + DefaultMediaSourceFactory.AdsLoaderProvider Deprecated.
Use AdsLoader.Provider instead.
- + DefaultMuxer
A default Muxer implementation.
- + DefaultMuxer.Factory
A Muxer.Factory for DefaultMuxer.
- + DefaultPlaybackSessionManager
Default PlaybackSessionManager which instantiates a new session for each window in the timeline and also for each ad within the windows.
- + DefaultRenderersFactory
Default RenderersFactory implementation.
- + DefaultRenderersFactory.ExtensionRendererMode
Modes for using extension renderers.
- + DefaultRenderersFactoryAsserts
Assertions for DefaultRenderersFactory.
- + DefaultRtpPayloadReaderFactory
Default RtpPayloadReader.Factory implementation.
- + DefaultSsChunkSource
A default SsChunkSource implementation.
- + DefaultSsChunkSource.Factory   - + DefaultTimeBar
A time bar that shows a current position, buffered position, duration and ad markers.
- + DefaultTrackNameProvider
A default TrackNameProvider.
- + DefaultTrackSelector
A default TrackSelector suitable for most use cases.
- + DefaultTrackSelector.Parameters
Extends DefaultTrackSelector.Parameters by adding fields that are specific to DefaultTrackSelector.
- + DefaultTrackSelector.Parameters.Builder
A builder for DefaultTrackSelector.Parameters.
- + DefaultTrackSelector.ParametersBuilder Deprecated.
Use DefaultTrackSelector.Parameters.Builder instead.
- + DefaultTrackSelector.SelectionEligibility
The extent to which tracks are eligible for selection.
- + DefaultTrackSelector.SelectionOverride
A track selection override.
- + DefaultTsPayloadReaderFactory
Default TsPayloadReader.Factory implementation.
- + DefaultTsPayloadReaderFactory.Flags
Flags controlling elementary stream readers' behavior.
- + Descriptor
A descriptor, as defined by ISO 23009-1, 2nd edition, 5.8.2.
- + DeviceInfo
Information about the playback device.
- + DeviceInfo.PlaybackType
Types of playback.
- + DeviceMappedEncoderBitrateProvider
Provides encoder bitrates that should target 0.95 SSIM or higher, accounting for device used.
- + DolbyVisionConfig
Dolby Vision configuration data.
- + Download
Represents state of a download.
- + Download.FailureReason
Failure reasons.
- + Download.State
Download states.
- + DownloadBuilder
Builder for Download.
- + DownloadCursor
Provides random read-write access to the result set returned by a database query.
- + Downloader
Downloads and removes a piece of content.
- + Downloader.ProgressListener
Receives progress updates during download operations.
- + DownloaderFactory
Creates Downloaders for given DownloadRequests.
- + DownloadException
Thrown on an error during downloading.
- + DownloadHelper
A helper for initializing and removing downloads.
- + DownloadHelper.Callback
A callback to be notified when the DownloadHelper is prepared.
- + DownloadHelper.LiveContentUnsupportedException
Thrown at an attempt to download live content.
- + DownloadIndex
An index of Downloads.
- + DownloadManager
Manages downloads.
- + DownloadManager.Listener
Listener for DownloadManager events.
- + DownloadNotificationHelper
Helper for creating download notifications.
- + DownloadProgress
Mutable Download progress.
- + DownloadRequest
Defines content to be downloaded.
- + DownloadRequest.Builder
A builder for download requests.
- + DownloadRequest.UnsupportedRequestException
Thrown when the encoded request data belongs to an unsupported request type.
- + DownloadService
A Service for downloading media.
- + DrmInitData
Initialization data for one or more DRM schemes.
- + DrmInitData.SchemeData
Scheme initialization data.
- + DrmSession
A DRM session.
- + DrmSession.DrmSessionException
Wraps the throwable which is the cause of the error state.
- + DrmSession.State
The state of the DRM session.
- + DrmSessionEventListener
Listener of DrmSessionManager events.
- + DrmSessionEventListener.EventDispatcher
Dispatches events to DrmSessionEventListeners.
- + DrmSessionManager
Manages a DRM session.
- + DrmSessionManager.DrmSessionReference
Represents a single reference count of a DrmSession, while deliberately not giving access to the underlying session.
- + DrmSessionManagerProvider
A provider to obtain a DrmSessionManager suitable for playing the content described by a MediaItem.
- + DrmUtil
DRM-related utility methods.
- + DrmUtil.ErrorSource
Identifies the operation which caused a DRM-related error.
- + DtsReader
Parses a continuous DTS byte stream and extracts individual samples.
- + DtsUtil
Utility methods for parsing DTS frames.
- + DummyExoMediaDrm
An ExoMediaDrm that does not support any protection schemes.
- + DummyExtractorOutput
A fake ExtractorOutput implementation.
- + DummyMainThread
Helper class to simulate main/UI thread in tests.
- + DummyMainThread.TestRunnable
Runnable variant which can throw a checked exception.
- + DummyTrackOutput
A fake TrackOutput implementation.
- + DumpableFormat
Wraps a Format to allow dumping it.
- + Dumper
Helper utility to dump field values.
- + Dumper.Dumpable
Provides custom dump method.
- + DumpFileAsserts
Helper class to enable assertions based on golden-data dump files.
- + DvbDecoder
A SimpleSubtitleDecoder for DVB subtitles.
- + DvbSubtitleReader
Parses DVB subtitle data and extracts individual frames.
- + EbmlProcessor
Defines EBML element IDs/types and processes events.
- + EbmlProcessor.ElementType
EBML element types.
- + Effect
Marker interface for a video frame effect.
- + EGLSurfaceTexture
Generates a SurfaceTexture using EGL/GLES functions.
- + EGLSurfaceTexture.SecureMode
Secure mode to be used by the EGL surface and context.
- + EGLSurfaceTexture.TextureImageListener
Listener to be called when the texture image on SurfaceTexture has been updated.
- + ElementaryStreamReader
Extracts individual samples from an elementary media stream, preserving original order.
- + EmptySampleStream
An empty SampleStream.
- + EncoderBitrateProvider
Provides bitrates for encoders to use as a target.
- + EncoderSelector
Selector of MediaCodec encoder instances.
- + EncoderUtil
Utility methods for MediaCodec encoders.
- + ErrorMessageProvider<T extends Throwable>
Converts throwables into error codes and user readable error messages.
- + ErrorStateDrmSession
A DrmSession that's in a terminal error state.
- + EventLogger
Logs events from Player and other core components using Log.
- + EventMessage
An Event Message (emsg) as defined in ISO 23009-1.
- + EventMessageDecoder
Decodes data encoded by EventMessageEncoder.
- + EventMessageEncoder
Encodes data that can be decoded by EventMessageDecoder.
- + EventStream
A DASH in-MPD EventStream element, as defined by ISO/IEC 23009-1, 2nd edition, section 5.10.
- + ExoDatabaseProvider Deprecated.
Use StandaloneDatabaseProvider.
- + ExoHostedTest
A HostActivity.HostedTest for ExoPlayer playback tests.
- + ExoMediaDrm
Used to obtain keys for decrypting protected media streams.
- + ExoMediaDrm.AppManagedProvider
Provides an ExoMediaDrm instance owned by the app.
- + ExoMediaDrm.KeyRequest
Contains data used to request keys from a license server.
- + ExoMediaDrm.KeyRequest.RequestType
Key request types.
- + ExoMediaDrm.KeyStatus
Defines the status of a key.
- + ExoMediaDrm.OnEventListener
Called when a DRM event occurs.
- + ExoMediaDrm.OnExpirationUpdateListener
Called when a session expiration update occurs.
- + ExoMediaDrm.OnKeyStatusChangeListener
Called when the keys in a DRM session change state.
- + ExoMediaDrm.Provider
Provider for ExoMediaDrm instances.
- + ExoMediaDrm.ProvisionRequest
Contains data to request a certificate from a provisioning server.
- + ExoPlaybackException
Thrown when a non locally recoverable playback failure occurs.
- + ExoPlaybackException.Type
The type of source that produced the error.
- + ExoPlayer
An extensible media player that plays MediaSources.
- + ExoPlayer.AudioComponent Deprecated.
Use ExoPlayer, as the ExoPlayer.AudioComponent methods are defined by that interface.
- + ExoPlayer.AudioOffloadListener
A listener for audio offload events.
- + ExoPlayer.Builder
A builder for ExoPlayer instances.
- + ExoPlayer.DeviceComponent Deprecated.
Use Player, as the ExoPlayer.DeviceComponent methods are defined by that interface.
- + ExoPlayer.TextComponent Deprecated.
Use Player, as the ExoPlayer.TextComponent methods are defined by that interface.
- + ExoPlayer.VideoComponent Deprecated.
Use ExoPlayer, as the ExoPlayer.VideoComponent methods are defined by that interface.
- + ExoplayerCuesDecoder
A SubtitleDecoder that decodes subtitle samples of type MimeTypes.TEXT_EXOPLAYER_CUES
- + ExoPlayerLibraryInfo
Information about the media libraries.
- + ExoPlayerTestRunner
Helper class to run an ExoPlayer test.
- + ExoPlayerTestRunner.Builder
Builder to set-up an ExoPlayerTestRunner.
- + ExoTimeoutException
A timeout of an operation on the ExoPlayer playback thread.
- + ExoTimeoutException.TimeoutOperation
The operation which produced the timeout error.
- + ExoTrackSelection
A TrackSelection that can change the individually selected track as a result of calling ExoTrackSelection.updateSelectedTrack(long, long, long, List, MediaChunkIterator[]) or ExoTrackSelection.evaluateQueueSize(long, List).
- + ExoTrackSelection.Definition
Contains of a subset of selected tracks belonging to a TrackGroup.
- + ExoTrackSelection.Factory
Factory for ExoTrackSelection instances.
- + Extractor
Extracts media data from a container format.
- + Extractor.ReadResult
Result values that can be returned by Extractor.read(ExtractorInput, PositionHolder).
- + ExtractorAsserts
Assertion methods for Extractor.
- + ExtractorAsserts.AssertionConfig
A config for the assertions made (e.g.
- + ExtractorAsserts.AssertionConfig.Builder
Builder for ExtractorAsserts.AssertionConfig instances.
- + ExtractorAsserts.ExtractorFactory
A factory for Extractor instances.
- + ExtractorAsserts.SimulationConfig
A config of different environments to simulate and extractor behaviours to test.
- + ExtractorInput
Provides data to be consumed by an Extractor.
- + ExtractorOutput
Receives stream level data extracted by an Extractor.
- + ExtractorsFactory
Factory for arrays of Extractor instances.
- + ExtractorUtil
Extractor related utility methods.
- + FailOnCloseDataSink
A DataSink that can simulate caching the bytes being written to it, and then failing to persist them when FailOnCloseDataSink.close() is called.
- + FailOnCloseDataSink.Factory
Factory to create a FailOnCloseDataSink.
- + FakeAdaptiveDataSet
Fake data set emulating the data of an adaptive media source.
- + FakeAdaptiveDataSet.Factory
Factory for FakeAdaptiveDataSets.
- + FakeAdaptiveDataSet.Iterator
MediaChunkIterator for the chunks defined by a fake adaptive data set.
- + FakeAdaptiveMediaPeriod
Fake MediaPeriod that provides tracks from the given TrackGroupArray.
- + FakeAdaptiveMediaSource
Fake MediaSource that provides a given timeline.
- + FakeAudioRenderer
A FakeRenderer that supports C.TRACK_TYPE_AUDIO.
- + FakeChunkSource
Fake ChunkSource with adaptive media chunks of a given duration.
- + FakeChunkSource.Factory
Factory for a FakeChunkSource.
- + FakeClock
Fake Clock implementation that allows to advance the time manually to trigger pending timed messages.
- + FakeCryptoConfig
Fake CryptoConfig.
- + FakeDataSet
Collection of FakeDataSet.FakeData to be served by a FakeDataSource.
- + FakeDataSet.FakeData
Container of fake data to be served by a FakeDataSource.
- + FakeDataSet.FakeData.Segment
A segment of FakeDataSet.FakeData.
- + FakeDataSource
A fake DataSource capable of simulating various scenarios.
- + FakeDataSource.Factory
Factory to create a FakeDataSource.
- + FakeExoMediaDrm
A fake implementation of ExoMediaDrm for use in tests.
- + FakeExoMediaDrm.Builder
Builder for FakeExoMediaDrm instances.
- + FakeExoMediaDrm.LicenseServer
An license server implementation to interact with FakeExoMediaDrm.
- + FakeExtractorInput
A fake ExtractorInput capable of simulating various scenarios.
- + FakeExtractorInput.Builder
Builder of FakeExtractorInput instances.
- + FakeExtractorInput.SimulatedIOException
Thrown when simulating an IOException.
- + FakeExtractorOutput
A fake ExtractorOutput.
- + FakeMediaChunk
Fake MediaChunk.
- + FakeMediaChunkIterator
Fake MediaChunkIterator.
- + FakeMediaClockRenderer
Fake abstract Renderer which is also a MediaClock.
- + FakeMediaPeriod
Fake MediaPeriod that provides tracks from the given TrackGroupArray.
- + FakeMediaPeriod.TrackDataFactory
A factory to create the test data for a particular track.
- + FakeMediaSource
Fake MediaSource that provides a given timeline.
- + FakeMediaSource.InitialTimeline
A forwarding timeline to provide an initial timeline for fake multi window sources.
- + FakeMediaSourceFactory
Fake MediaSourceFactory that creates a FakeMediaSource.
- + FakeMetadataEntry
A fake Metadata.Entry.
- + FakeRenderer
Fake Renderer that supports any format with the matching track type.
- + FakeSampleStream
Fake SampleStream that outputs a given Format and any amount of items.
- + FakeSampleStream.FakeSampleStreamItem
Item to customize a return value of SampleStream.readData(com.google.android.exoplayer2.FormatHolder, com.google.android.exoplayer2.decoder.DecoderInputBuffer, @com.google.android.exoplayer2.source.SampleStream.ReadFlags int).
- + FakeShuffleOrder
Fake ShuffleOrder which returns a reverse order.
- + FakeTimeline
Fake Timeline which can be setup to return custom FakeTimeline.TimelineWindowDefinitions.
- + FakeTimeline.TimelineWindowDefinition
Definition used to define a FakeTimeline.
- + FakeTrackOutput
A fake TrackOutput.
- + FakeTrackOutput.Factory
Factory for FakeTrackOutput instances.
- + FakeTrackSelection
A fake ExoTrackSelection that only returns 1 fixed track, and allows querying the number of calls to its methods.
- + FakeTrackSelector
A fake MappingTrackSelector that returns FakeTrackSelections.
- + FakeVideoRenderer
A FakeRenderer that supports C.TRACK_TYPE_VIDEO.
- + FfmpegAudioRenderer
Decodes and renders audio using FFmpeg.
- + FfmpegDecoderException
Thrown when an FFmpeg decoder error occurs.
- + FfmpegLibrary
Configures and queries the underlying native library.
- + FileDataSource
A DataSource for reading local files.
- + FileDataSource.Factory
DataSource.Factory for FileDataSource instances.
- + FileDataSource.FileDataSourceException
Thrown when a FileDataSource encounters an error reading a file.
- + FileTypes
Defines common file type constants and helper methods.
- + FileTypes.Type
File types.
- + FilterableManifest<T>
A manifest that can generate copies of itself including only the streams specified by the given keys.
- + FilteringHlsPlaylistParserFactory
A HlsPlaylistParserFactory that includes only the streams identified by the given stream keys.
- + FilteringManifestParser<T extends FilterableManifest<T>>
A manifest parser that includes only the streams identified by the given stream keys.
- + FixedTrackSelection
A TrackSelection consisting of a single track.
- + FlacConstants
Defines constants used by the FLAC extractor.
- + FlacDecoder
Flac decoder.
- + FlacDecoderException
Thrown when an Flac decoder error occurs.
- + FlacExtractor
Facilitates the extraction of data from the FLAC container format.
- + FlacExtractor
Extracts data from FLAC container format.
- + FlacExtractor.Flags
Flags controlling the behavior of the extractor.
- + FlacExtractor.Flags
Flags controlling the behavior of the extractor.
- + FlacFrameReader
Reads and peeks FLAC frame elements according to the FLAC format specification.
- + FlacFrameReader.SampleNumberHolder
Holds a sample number.
- + FlacLibrary
Configures and queries the underlying native library.
- + FlacMetadataReader
Reads and peeks FLAC stream metadata elements according to the FLAC format specification.
- + FlacMetadataReader.FlacStreamMetadataHolder
Holds a FlacStreamMetadata.
- + FlacSeekTableSeekMap
A SeekMap implementation for FLAC streams that contain a seek table.
- + FlacStreamMetadata
Holder for FLAC metadata.
- + FlacStreamMetadata.SeekTable
A FLAC seek table.
- + FlagSet
A set of integer flags.
- + FlagSet.Builder
A builder for FlagSet instances.
- + FlvExtractor
Extracts data from the FLV container format.
- + Format
Represents a media format.
- + Format.Builder
Builds Format instances.
- + FormatHolder
Holds a Format.
- + ForwardingAudioSink
An overridable AudioSink implementation forwarding all methods to another sink.
- + ForwardingExtractorInput
An overridable ExtractorInput implementation forwarding all methods to another input.
- + ForwardingPlayer
A Player that forwards operations to another Player.
- + ForwardingTimeline
An overridable Timeline implementation forwarding all methods to another timeline.
- + FragmentedMp4Extractor
Extracts data from the FMP4 container format.
- + FragmentedMp4Extractor.Flags
Flags controlling the behavior of the extractor.
- + FrameInfo
Value class specifying information about a decoded video frame.
- + FrameProcessingException
Thrown when an exception occurs while applying effects to video frames.
- + FrameProcessor
Interface for a frame processor that applies changes to individual video frames.
- + FrameProcessor.Factory
A factory for FrameProcessor instances.
- + FrameProcessor.Listener
Listener for asynchronous frame processing events.
- + FrameworkCryptoConfig
A CryptoConfig for C.CRYPTO_TYPE_FRAMEWORK.
- + FrameworkMediaDrm
An ExoMediaDrm implementation that wraps the framework MediaDrm.
- + GaplessInfoHolder
Holder for gapless playback information.
- + Gav1Decoder
Gav1 decoder.
- + Gav1DecoderException
Thrown when a libgav1 decoder error occurs.
- + Gav1Library
Configures and queries the underlying native library.
- + GeobFrame
GEOB (General Encapsulated Object) ID3 frame.
- + GlEffect
Interface for a video frame effect with a GlTextureProcessor implementation.
- + GlEffectsFrameProcessor
A FrameProcessor implementation that applies GlEffect instances using OpenGL on a background thread.
- + GlEffectsFrameProcessor.Factory
A factory for GlEffectsFrameProcessor instances.
- + GlMatrixTransformation
Specifies a 4x4 transformation Matrix to apply in the vertex shader for each frame.
- + GlProgram
Represents a GLSL shader program.
- + GlTextureProcessor
Processes frames from one OpenGL 2D texture to another.
- + GlTextureProcessor.ErrorListener
Listener for frame processing errors.
- + GlTextureProcessor.InputListener
Listener for input-related frame processing events.
- + GlTextureProcessor.OutputListener
Listener for output-related frame processing events.
- + GlUtil
OpenGL ES utilities.
- + GlUtil.GlException
Thrown when an OpenGL error occurs.
- + H262Reader
Parses a continuous H262 byte stream and extracts individual frames.
- + H263Reader
Parses an ISO/IEC 14496-2 (MPEG-4 Part 2) or ITU-T Recommendation H.263 byte stream and extracts individual frames.
- + H264Reader
Parses a continuous H264 byte stream and extracts individual frames.
- + H265Reader
Parses a continuous H.265 byte stream and extracts individual frames.
- + HandlerWrapper
An interface to call through to a Handler.
- + HandlerWrapper.Message
A message obtained from the handler.
- + HeartRating
A rating expressed as "heart" or "no heart".
- + HevcConfig
HEVC configuration data.
- + HlsDataSourceFactory
Creates DataSources for HLS playlists, encryption and media chunks.
- + HlsDownloader
A downloader for HLS streams.
- + HlsExtractorFactory
Factory for HLS media chunk extractors.
- + HlsManifest
Holds a multivariant playlist along with a snapshot of one of its media playlists.
- + HlsMasterPlaylist Deprecated.
Use HlsMultivariantPlaylist instead.
- + HlsMediaChunkExtractor
Extracts samples and track Formats from HlsMediaChunks.
- + HlsMediaPeriod
A MediaPeriod that loads an HLS stream.
- + HlsMediaPlaylist
Represents an HLS media playlist.
- + HlsMediaPlaylist.Part
A media part.
- + HlsMediaPlaylist.PlaylistType
Type of the playlist, as defined by #EXT-X-PLAYLIST-TYPE.
- + HlsMediaPlaylist.RenditionReport
A rendition report for an alternative rendition defined in another media playlist.
- + HlsMediaPlaylist.Segment
Media segment reference.
- + HlsMediaPlaylist.SegmentBase
The base for a HlsMediaPlaylist.Segment or a HlsMediaPlaylist.Part required for playback.
- + HlsMediaPlaylist.ServerControl
Server control attributes.
- + HlsMediaSource
An HLS MediaSource.
- + HlsMediaSource.Factory
Factory for HlsMediaSources.
- + HlsMediaSource.MetadataType
The types of metadata that can be extracted from HLS streams.
- + HlsMultivariantPlaylist
Represents an HLS multivariant playlist.
- + HlsMultivariantPlaylist.Rendition
A rendition (i.e.
- + HlsMultivariantPlaylist.Variant
A variant (i.e.
- + HlsPlaylist
Represents an HLS playlist.
- + HlsPlaylistParser
HLS playlists parsing logic.
- + HlsPlaylistParser.DeltaUpdateException
Exception thrown when merging a delta update fails.
- + HlsPlaylistParserFactory
Factory for HlsPlaylist parsers.
- + HlsPlaylistTracker
Tracks playlists associated to an HLS stream and provides snapshots.
- + HlsPlaylistTracker.Factory
Factory for HlsPlaylistTracker instances.
- + HlsPlaylistTracker.PlaylistEventListener
Called on playlist loading events.
- + HlsPlaylistTracker.PlaylistResetException
Thrown when the media sequence of a new snapshot indicates the server has reset.
- + HlsPlaylistTracker.PlaylistStuckException
Thrown when a playlist is considered to be stuck due to a server side error.
- + HlsPlaylistTracker.PrimaryPlaylistListener
Listener for primary playlist changes.
- + HlsTrackMetadataEntry
Holds metadata associated to an HLS media track.
- + HlsTrackMetadataEntry.VariantInfo
Holds attributes defined in an EXT-X-STREAM-INF tag.
- + HorizontalTextInVerticalContextSpan
A styling span for horizontal text in a vertical context.
- + HostActivity
A host activity for performing playback tests.
- + HostActivity.HostedTest
Interface for tests that run inside of a HostActivity.
- + HslAdjustment
Adjusts the HSL (Hue, Saturation, and Lightness) of a frame.
- + HslAdjustment.Builder
A builder for HslAdjustment instances.
- + HttpDataSource
An HTTP DataSource.
- + HttpDataSource.BaseFactory
Base implementation of HttpDataSource.Factory that sets default request properties.
- + HttpDataSource.CleartextNotPermittedException
Thrown when cleartext HTTP traffic is not permitted.
- + HttpDataSource.Factory
A factory for HttpDataSource instances.
- + HttpDataSource.HttpDataSourceException
Thrown when an error is encountered when trying to read from a HttpDataSource.
- + HttpDataSource.HttpDataSourceException.Type
The type of operation that produced the error.
- + HttpDataSource.InvalidContentTypeException
Thrown when the content type is invalid.
- + HttpDataSource.InvalidResponseCodeException
Thrown when an attempt to open a connection results in a response code not in the 2xx range.
- + HttpDataSource.RequestProperties
Stores HTTP request properties (aka HTTP headers) and provides methods to modify the headers in @@ -4132,379 +4144,379 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); state.
- + HttpDataSourceTestEnv
A JUnit Rule that creates test resources for HttpDataSource contract tests.
- + HttpMediaDrmCallback
A MediaDrmCallback that makes requests using DataSource instances.
- + HttpUtil
Utility methods for HTTP.
- + IcyDecoder
Decodes ICY stream information.
- + IcyHeaders
ICY headers.
- + IcyInfo
ICY in-stream information.
- + Id3Decoder
Decodes ID3 tags.
- + Id3Decoder.FramePredicate
A predicate for determining whether individual frames should be decoded.
- + Id3Frame
Base class for ID3 frames.
- + Id3Peeker
Peeks data from the beginning of an ExtractorInput to determine if there is any ID3 tag.
- + Id3Reader
Parses ID3 data and extracts individual text information frames.
- + IllegalSeekPositionException
Thrown when an attempt is made to seek to a position that does not exist in the player's Timeline.
- + ImaAdsLoader
AdsLoader using the IMA SDK.
- + ImaAdsLoader.Builder
Builder for ImaAdsLoader.
- + ImaServerSideAdInsertionMediaSource
MediaSource for IMA server side inserted ad streams.
- + ImaServerSideAdInsertionMediaSource.AdsLoader
An ads loader for IMA server side ad insertion streams.
- + ImaServerSideAdInsertionMediaSource.AdsLoader.Builder
Builder for building an ImaServerSideAdInsertionMediaSource.AdsLoader.
- + ImaServerSideAdInsertionMediaSource.AdsLoader.State
The state of the ImaServerSideAdInsertionMediaSource.AdsLoader that can be used when resuming from the background.
- + ImaServerSideAdInsertionMediaSource.Factory
Factory for creating ImaServerSideAdInsertionMediaSources.
- + ImaServerSideAdInsertionUriBuilder
Builder for URI for IMA DAI streams.
- + IndexSeekMap
A SeekMap implementation based on a mapping between times and positions in the input stream.
- + InitializationChunk
A Chunk that uses an Extractor to decode initialization data for single track.
- + InputReaderAdapterV30
MediaParser.SeekableInputReader implementation wrapping a DataReader.
- + InternalFrame
Internal ID3 frame that is intended for use by the player.
- + JpegExtractor
Extracts JPEG image using the Exif format.
- + KeysExpiredException
Thrown when the drm keys loaded into an open session expire.
- + LanguageFeatureSpan
Marker interface for span classes that carry language features rather than style information.
- + LatmReader
Parses and extracts samples from an AAC/LATM elementary stream.
- + LeanbackPlayerAdapter
Leanback PlayerAdapter implementation for Player.
- + LeastRecentlyUsedCacheEvictor
Evicts least recently used cache files first.
- + LegacyMediaPlayerWrapper
A Player wrapper for the legacy Android platform MediaPlayer.
- + LibflacAudioRenderer
Decodes and renders audio using the native Flac decoder.
- + Libgav1VideoRenderer
Decodes and renders video using libgav1 decoder.
- + LibopusAudioRenderer
Decodes and renders audio using the native Opus decoder.
- + LibraryLoader
Configurable loader for native libraries.
- + LibvpxVideoRenderer
Decodes and renders video using the native VP9 decoder.
- + ListenerSet<T extends @NonNull Object>
A set of listeners.
- + ListenerSet.Event<T>
An event sent to a listener.
- + ListenerSet.IterationFinishedEvent<T>
An event sent to a listener when all other events sent during one Looper message queue iteration were handled by the listener.
- + LivePlaybackSpeedControl
Controls the playback speed while playing live content in order to maintain a steady target live offset.
- + LoadControl
Controls buffering of media.
- + Loader
Manages the background loading of Loader.Loadables.
- + Loader.Callback<T extends Loader.Loadable>
A callback to be notified of Loader events.
- + Loader.Loadable
An object that can be loaded using a Loader.
- + Loader.LoadErrorAction
Action that can be taken in response to Loader.Callback.onLoadError(Loadable, long, long, IOException, int).
- + Loader.ReleaseCallback
A callback to be notified when a Loader has finished being released.
- + Loader.UnexpectedLoaderException
Thrown when an unexpected exception or error is encountered during loading.
- + LoaderErrorThrower
Conditionally throws errors affecting a Loader.
- + LoaderErrorThrower.Dummy
A LoaderErrorThrower that never throws.
- + LoadErrorHandlingPolicy
A policy that defines how load errors are handled.
- + LoadErrorHandlingPolicy.FallbackOptions
Holds information about the available fallback options.
- + LoadErrorHandlingPolicy.FallbackSelection
A selected fallback option.
- + LoadErrorHandlingPolicy.FallbackType
Fallback type.
- + LoadErrorHandlingPolicy.LoadErrorInfo
Holds information about a load task error.
- + LoadEventInfo
MediaSource load event information.
- + LocalMediaDrmCallback
A MediaDrmCallback that provides a fixed response to key requests.
- + Log
Wrapper around Log which allows to set the log level and to specify a custom log output.
- + Log.Logger
Interface for a logger that can output messages with a tag.
- + Log.LogLevel
Log level for ExoPlayer logcat logging.
- + LongArray
An append-only, auto-growing long[].
- + LoopingMediaSource Deprecated.
To loop a MediaSource indefinitely, use Player.setRepeatMode(int) instead of this class.
- + MappingTrackSelector
Base class for TrackSelectors that first establish a mapping between TrackGroups @@ -4512,1184 +4524,1191 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); renderer.
- + MappingTrackSelector.MappedTrackInfo
Provides mapped track information for each renderer.
- + MappingTrackSelector.MappedTrackInfo.RendererSupport
Levels of renderer support.
- + MaskingMediaPeriod
Media period that defers calling MediaSource.createPeriod(MediaPeriodId, Allocator, long) on a given source until MaskingMediaPeriod.createPeriod(MediaPeriodId) has been called.
- + MaskingMediaPeriod.PrepareListener
Listener for preparation events.
- + MaskingMediaSource
A MediaSource that masks the Timeline with a placeholder until the actual media structure is known.
- + MaskingMediaSource.PlaceholderTimeline
A timeline with one dynamic window with a period of indeterminate duration.
- + MatrixTransformation
Specifies a 3x3 transformation Matrix to apply in the vertex shader for each frame.
- + MatroskaExtractor
Extracts data from the Matroska and WebM container formats.
- + MatroskaExtractor.Flags
Flags controlling the behavior of the extractor.
- + MatroskaExtractor.Track
Holds data corresponding to a single track.
- + MdtaMetadataEntry
Stores extensible metadata with handler type 'mdta'.
- + MediaChunk
An abstract base class for Chunks that contain media samples.
- + MediaChunkIterator
Iterator for media chunk sequences.
- + MediaClock
Tracks the progression of media time.
- + MediaCodecAdapter
Abstracts MediaCodec operations.
- + MediaCodecAdapter.Configuration
Configuration parameters for a MediaCodecAdapter.
- + MediaCodecAdapter.Factory
A factory for MediaCodecAdapter instances.
- + MediaCodecAdapter.OnFrameRenderedListener
Listener to be called when an output frame has rendered on the output surface.
- + MediaCodecAudioRenderer
Decodes and renders audio using MediaCodec and an AudioSink.
- + MediaCodecDecoderException
Thrown when a failure occurs in a MediaCodec decoder.
- + MediaCodecInfo
Information about a MediaCodec for a given mime type.
- + MediaCodecRenderer
An abstract renderer that uses MediaCodec to decode samples for rendering.
- + MediaCodecRenderer.DecoderInitializationException
Thrown when a failure occurs instantiating a decoder.
- + MediaCodecSelector
Selector of MediaCodec instances.
- + MediaCodecUtil
A utility class for querying the available codecs.
- + MediaCodecUtil.DecoderQueryException
Thrown when an error occurs querying the device for its underlying media capabilities.
- + MediaCodecVideoDecoderException
Thrown when a failure occurs in a MediaCodec video decoder.
- + MediaCodecVideoRenderer
Decodes and renders video using MediaCodec.
- + MediaCodecVideoRenderer.CodecMaxValues   - + MediaDrmCallback
Performs ExoMediaDrm key and provisioning requests.
- + MediaDrmCallbackException
Thrown when an error occurs while executing a DRM key or provisioning request.
- + MediaFormatUtil
Helper class containing utility methods for managing MediaFormat instances.
- + MediaItem
Representation of a media item.
- + MediaItem.AdsConfiguration
Configuration for playing back linear ads with a media item.
- + MediaItem.AdsConfiguration.Builder
Builder for MediaItem.AdsConfiguration instances.
- + MediaItem.Builder
A builder for MediaItem instances.
- + MediaItem.ClippingConfiguration
Optionally clips the media item to a custom start and end position.
- + MediaItem.ClippingConfiguration.Builder
Builder for MediaItem.ClippingConfiguration instances.
- + MediaItem.ClippingProperties Deprecated.
Use MediaItem.ClippingConfiguration instead.
- + MediaItem.DrmConfiguration
DRM configuration for a media item.
- + MediaItem.DrmConfiguration.Builder
Builder for MediaItem.DrmConfiguration.
- + MediaItem.LiveConfiguration
Live playback configuration.
- + MediaItem.LiveConfiguration.Builder
Builder for MediaItem.LiveConfiguration instances.
- + MediaItem.LocalConfiguration
Properties for local playback.
- + MediaItem.PlaybackProperties Deprecated.
Use MediaItem.LocalConfiguration.
- + MediaItem.RequestMetadata
Metadata that helps the player to understand a playback request represented by a MediaItem.
- + MediaItem.RequestMetadata.Builder
Builder for MediaItem.RequestMetadata instances.
- + MediaItem.Subtitle Deprecated.
Use MediaItem.SubtitleConfiguration instead
- + MediaItem.SubtitleConfiguration
Properties for a text track.
- + MediaItem.SubtitleConfiguration.Builder
Builder for MediaItem.SubtitleConfiguration instances.
- + MediaItemConverter
Converts between MediaItem and the Cast SDK's MediaQueueItem.
- + MediaItemConverter
Converts between Media2 MediaItem and ExoPlayer MediaItem.
- + MediaLoadData
Descriptor for data being loaded or selected by a MediaSource.
- + MediaMetadata
Metadata of a MediaItem, playlist, or a combination of multiple sources of Metadata.
- + MediaMetadata.Builder
A builder for MediaMetadata instances.
- + MediaMetadata.FolderType
The folder type of the media item.
- + +MediaMetadata.MediaType + +
The type of content described by the media item.
+ + + MediaMetadata.PictureType
The picture type of the artwork.
- + MediaMetricsListener
An AnalyticsListener that interacts with the Android MediaMetricsManager.
- + MediaParserChunkExtractor
ChunkExtractor implemented on top of the platform's MediaParser.
- + MediaParserExtractorAdapter
ProgressiveMediaExtractor implemented on top of the platform's MediaParser.
- + MediaParserHlsMediaChunkExtractor
HlsMediaChunkExtractor implemented on top of the platform's MediaParser.
- + MediaParserUtil
Miscellaneous constants and utility methods related to the MediaParser integration.
- + MediaPeriod
Loads media corresponding to a Timeline.Period, and allows that media to be read.
- + MediaPeriod.Callback
A callback to be notified of MediaPeriod events.
- + MediaPeriodAsserts
Assertion methods for MediaPeriod.
- + MediaPeriodAsserts.FilterableManifestMediaPeriodFactory<T extends FilterableManifest<T>>
Interface to create media periods for testing based on a FilterableManifest.
- + MediaPeriodId
Identifies a specific playback of a Timeline.Period.
- + MediaSessionConnector
Connects a MediaSessionCompat to a Player.
- + MediaSessionConnector.CaptionCallback
Handles requests for enabling or disabling captions.
- + MediaSessionConnector.CommandReceiver
Receiver of media commands sent by a media controller.
- + MediaSessionConnector.CustomActionProvider
Provides a PlaybackStateCompat.CustomAction to be published and handles the action when sent by a media controller.
- + MediaSessionConnector.DefaultMediaMetadataProvider
Provides a default MediaMetadataCompat with properties and extras taken from the MediaDescriptionCompat of the MediaSessionCompat.QueueItem of the active queue item.
- + MediaSessionConnector.MediaButtonEventHandler
Handles a media button event.
- + MediaSessionConnector.MediaMetadataProvider
Provides a MediaMetadataCompat for a given player state.
- + MediaSessionConnector.PlaybackActions
Playback actions supported by the connector.
- + MediaSessionConnector.PlaybackPreparer
Interface to which playback preparation and play actions are delegated.
- + MediaSessionConnector.QueueEditor
Handles media session queue edits.
- + MediaSessionConnector.QueueNavigator
Handles queue navigation actions, and updates the media session queue by calling MediaSessionCompat.setQueue().
- + MediaSessionConnector.RatingCallback
Callback receiving a user rating for the active media item.
- + MediaSource
Defines and provides media to be played by an ExoPlayer.
- + MediaSource.Factory
Factory for creating MediaSources from MediaItems.
- + MediaSource.MediaPeriodId
Identifier for a MediaPeriod.
- + MediaSource.MediaSourceCaller
A caller of media sources, which will be notified of source events.
- + MediaSourceEventListener
Interface for callbacks to be notified of MediaSource events.
- + MediaSourceEventListener.EventDispatcher
Dispatches events to MediaSourceEventListeners.
- + MediaSourceFactory Deprecated.
Use MediaSource.Factory.
- + MediaSourceTestRunner
A runner for MediaSource tests.
- + MergingMediaSource
Merges multiple MediaSources.
- + MergingMediaSource.IllegalMergeException
Thrown when a MergingMediaSource cannot merge its sources.
- + MergingMediaSource.IllegalMergeException.Reason
The reason the merge failed.
- + Metadata
A collection of metadata entries.
- + Metadata.Entry
A metadata entry.
- + MetadataDecoder
Decodes metadata from binary data.
- + MetadataDecoderFactory
A factory for MetadataDecoder instances.
- + MetadataInputBuffer
A DecoderInputBuffer for a MetadataDecoder.
- + MetadataOutput
Receives metadata output.
- + MetadataRenderer
A renderer for metadata.
- + MetadataRetriever
Retrieves the static metadata of MediaItems.
- + MimeTypes
Defines common MIME types and helper methods.
- + MlltFrame
MPEG location lookup table frame.
- + MotionPhotoMetadata
Metadata of a motion photo file.
- + Mp3Extractor
Extracts data from the MP3 container format.
- + Mp3Extractor.Flags
Flags controlling the behavior of the extractor.
- + Mp4Extractor
Extracts data from the MP4 container format.
- + Mp4Extractor.Flags
Flags controlling the behavior of the extractor.
- + Mp4WebvttDecoder
A SimpleSubtitleDecoder for Webvtt embedded in a Mp4 container file.
- + MpegAudioReader
Parses a continuous MPEG Audio byte stream and extracts individual frames.
- + MpegAudioUtil
Utility methods for handling MPEG audio streams.
- + MpegAudioUtil.Header
Stores the metadata for an MPEG audio frame.
- + Muxer
Abstracts media muxing operations.
- + Muxer.Factory
Factory for muxers.
- + Muxer.MuxerException
Thrown when a muxing failure occurs.
- + NalUnitUtil
Utility methods for handling H.264/AVC and H.265/HEVC NAL units.
- + NalUnitUtil.H265SpsData
Holds data parsed from a H.265 sequence parameter set NAL unit.
- + NalUnitUtil.PpsData
Holds data parsed from a picture parameter set NAL unit.
- + NalUnitUtil.SpsData
Holds data parsed from a H.264 sequence parameter set NAL unit.
- + NetworkTypeObserver
Observer for network type changes.
- + NetworkTypeObserver.Listener
A listener for network type changes.
- + NonNullApi
Annotation to declare all type usages in the annotated instance as Nonnull, unless explicitly marked with a nullable annotation.
- + NoOpCacheEvictor
Evictor that doesn't ever evict cache files.
- + NoSampleRenderer
A Renderer implementation whose track type is C.TRACK_TYPE_NONE and does not consume data from its SampleStream.
- + NotificationUtil
Utility methods for displaying Notifications.
- + NotificationUtil.Importance
Notification channel importance levels.
- + OfflineLicenseHelper
Helper class to download, renew and release offline licenses.
- + OggExtractor
Extracts data from the Ogg container format.
- + OkHttpDataSource
An HttpDataSource that delegates to Square's Call.Factory.
- + OkHttpDataSource.Factory
DataSource.Factory for OkHttpDataSource instances.
- + OkHttpDataSourceFactory Deprecated.
Use OkHttpDataSource.Factory instead.
- + OpusDecoder
Opus decoder.
- + OpusDecoderException
Thrown when an Opus decoder error occurs.
- + OpusLibrary
Configures and queries the underlying native library.
- + OpusUtil
Utility methods for handling Opus audio streams.
- + OutputConsumerAdapterV30
MediaParser.OutputConsumer implementation that redirects output to an ExtractorOutput.
- + ParsableBitArray
Wraps a byte array, providing methods that allow it to be read as a bitstream.
- + ParsableByteArray
Wraps a byte array, providing a set of methods for parsing data from it.
- + ParsableNalUnitBitArray
Wraps a byte array, providing methods that allow it to be read as a NAL unit bitstream.
- + ParserException
Thrown when an error occurs parsing media data and metadata.
- + ParsingLoadable<T>
A Loader.Loadable for objects that can be parsed from binary data using a ParsingLoadable.Parser.
- + ParsingLoadable.Parser<T>
Parses an object from loaded data.
- + PassthroughSectionPayloadReader
A SectionPayloadReader that directly outputs the section bytes as sample data.
- + PercentageRating
A rating expressed as a percentage.
- + Period
Encapsulates media content components over a contiguous period of time.
- + PesReader
Parses PES packet data and extracts samples.
- + PgsDecoder
A SimpleSubtitleDecoder for PGS subtitles.
- + PictureFrame
A picture parsed from a Vorbis Comment or a FLAC picture block.
- + PlaceholderDataSource
A DataSource which provides no data.
- + PlaceholderSurface
A placeholder Surface.
- + PlatformScheduler
A Scheduler that uses JobScheduler.
- + PlatformScheduler.PlatformSchedulerService
A JobService that starts the target service if the requirements are met.
- + PlaybackException
Thrown when a non locally recoverable playback failure occurs.
- + PlaybackException.ErrorCode
Codes that identify causes of player errors.
- + PlaybackOutput
Class to capture output from a playback test.
- + PlaybackParameters
Parameters that apply to playback, including speed setting.
- + PlaybackSessionManager
Manager for active playback sessions.
- + PlaybackSessionManager.Listener
A listener for session updates.
- + PlaybackStats
Statistics about playbacks.
- + PlaybackStats.EventTimeAndException
Stores an exception with the event time at which it occurred.
- + PlaybackStats.EventTimeAndFormat
Stores a format with the event time at which it started being used, or null to indicate that no format was used.
- + PlaybackStats.EventTimeAndPlaybackState
Stores a playback state with the event time at which it became active.
- + PlaybackStatsListener
AnalyticsListener to gather PlaybackStats from the player.
- + PlaybackStatsListener.Callback
A listener for PlaybackStats updates.
- + Player
A media player interface defining traditional high-level functionality, such as the ability to play, pause, seek and query properties of the currently playing media.
- + Player.Command -
Commands that can be executed on a Player.
+
Commands that indicate which method calls are currently permitted on a particular + Player instance.
- + Player.Commands -
A set of commands.
+
A set of commands.
- + Player.Commands.Builder
A builder for Player.Commands instances.
- + Player.DiscontinuityReason
Reasons for position discontinuities.
- + Player.Event
Events that can be reported via Player.Listener.onEvents(Player, Events).
- + Player.Events -
A set of events.
+
A set of events.
- + Player.Listener -
Listener of all changes in the Player.
+
Listener for changes in a Player.
- + Player.MediaItemTransitionReason
Reasons for media item transitions.
- + Player.PlaybackSuppressionReason
Reason why playback is suppressed even though Player.getPlayWhenReady() is true.
- + Player.PlayWhenReadyChangeReason
Reasons for playWhenReady changes.
- + Player.PositionInfo
Position info describing a playback position involved in a discontinuity.
- + Player.RepeatMode
Repeat modes for playback.
- + Player.State
Playback state.
- + Player.TimelineChangeReason
Reasons for timeline changes.
- + PlayerControlView
A view for controlling Player instances.
- + PlayerControlView.ProgressUpdateListener
Listener to be notified when progress has been updated.
- + PlayerControlView.VisibilityListener
Listener to be notified about changes of the visibility of the UI control.
- + PlayerEmsgHandler
Handles all emsg messages from all media tracks for the player.
- + PlayerEmsgHandler.PlayerEmsgCallback
Callbacks for player emsg events encountered during DASH live stream.
- + PlayerId
Identifier for a player instance.
- + PlayerMessage
Defines a player message which can be sent with a PlayerMessage.Sender and received by a PlayerMessage.Target.
- + PlayerMessage.Sender
A sender for messages.
- + PlayerMessage.Target
A target for messages.
- + PlayerNotificationManager
Starts, updates and cancels a media style notification reflecting the player state.
- + PlayerNotificationManager.Builder
A builder for PlayerNotificationManager instances.
- + PlayerNotificationManager.CustomActionReceiver
Defines and handles custom actions.
- + PlayerNotificationManager.MediaDescriptionAdapter
An adapter to provide content assets of the media currently playing.
- + PlayerNotificationManager.NotificationListener
A listener for changes to the notification.
- + PlayerNotificationManager.Priority
Priority of the notification (required for API 25 and lower).
- + PlayerNotificationManager.Visibility
Visibility of notification on the lock screen.
- + PlayerView Deprecated.
Use StyledPlayerView instead.
- + PlayerView.ShowBuffering
Determines when the buffering view is shown.
- + PositionHolder
Holds a position in the stream.
- + Presentation
Controls how a frame is presented with options to set the output resolution and choose how to map @@ -5697,646 +5716,646 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); match the specified output frame, or fitting the input frame using letterboxing).
- + Presentation.Layout
Strategies controlling the layout of input pixels in the output frame.
- + PriorityDataSource
A DataSource that can be used as part of a task registered with a PriorityTaskManager.
- + PriorityDataSource.Factory
DataSource.Factory for PriorityDataSource instances.
- + PriorityDataSourceFactory Deprecated.
Use PriorityDataSource.Factory.
- + PriorityTaskManager
Allows tasks with associated priorities to control how they proceed relative to one another.
- + PriorityTaskManager.PriorityTooLowException
Thrown when task attempts to proceed when another registered task has a higher priority.
- + PrivateCommand
Represents a private command as defined in SCTE35, Section 9.3.6.
- + PrivFrame
PRIV (Private) ID3 frame.
- + ProgramInformation
A parsed program information element.
- + ProgressHolder
Holds a progress percentage.
- + ProgressiveDownloader
A downloader for progressive media streams.
- + ProgressiveMediaExtractor
Extracts the contents of a container file from a progressive media stream.
- + ProgressiveMediaExtractor.Factory
Creates ProgressiveMediaExtractor instances.
- + ProgressiveMediaSource
Provides one period that loads data from a Uri and extracted using an Extractor.
- + ProgressiveMediaSource.Factory
Factory for ProgressiveMediaSources.
- + PsExtractor
Extracts data from the MPEG-2 PS container format.
- + PsshAtomUtil
Utility methods for handling PSSH atoms.
- + RandomizedMp3Decoder
Generates randomized, but correct amount of data on MP3 audio input.
- + RandomTrackSelection
An ExoTrackSelection whose selected track is updated randomly.
- + RandomTrackSelection.Factory
Factory for RandomTrackSelection instances.
- + RangedUri
Defines a range of data located at a reference uri.
- + Rating
A rating for media content.
- + RawResourceDataSource
A DataSource for reading a raw resource inside the APK.
- + RawResourceDataSource.RawResourceDataSourceException
Thrown when an IOException is encountered reading from a raw resource.
- + Renderer
Renders media read from a SampleStream.
- + Renderer.MessageType
Represents a type of message that can be passed to a renderer.
- + Renderer.State
The renderer states.
- + Renderer.WakeupListener
Some renderers can signal when Renderer.render(long, long) should be called.
- + RendererCapabilities
Defines the capabilities of a Renderer.
- + RendererCapabilities.AdaptiveSupport
Level of renderer support for adaptive format switches.
- + RendererCapabilities.Capabilities
Combined renderer capabilities.
- + RendererCapabilities.DecoderSupport
Level of decoder support.
- + RendererCapabilities.FormatSupport Deprecated.
Use C.FormatSupport instead.
- + RendererCapabilities.HardwareAccelerationSupport
Level of renderer support for hardware acceleration.
- + RendererCapabilities.TunnelingSupport
Level of renderer support for tunneling.
- + RendererConfiguration
The configuration of a Renderer.
- + RenderersFactory
Builds Renderer instances for use by an ExoPlayer.
- + RepeatModeActionProvider
Provides a custom action for toggling repeat modes.
- + RepeatModeUtil
Util class for repeat mode handling.
- + RepeatModeUtil.RepeatToggleModes
Set of repeat toggle modes.
- + Representation
A DASH representation.
- + Representation.MultiSegmentRepresentation
A DASH representation consisting of multiple segments.
- + Representation.SingleSegmentRepresentation
A DASH representation consisting of a single segment.
- + Requirements
Defines a set of device state requirements.
- + Requirements.RequirementFlags
Requirement flags.
- + RequirementsWatcher
Watches whether the Requirements are met and notifies the RequirementsWatcher.Listener on changes.
- + RequirementsWatcher.Listener
Notified when RequirementsWatcher instance first created and on changes whether the Requirements are met.
- + ResolvingDataSource
DataSource wrapper allowing just-in-time resolution of DataSpecs.
- + ResolvingDataSource.Factory
DataSource.Factory for ResolvingDataSource instances.
- + ResolvingDataSource.Resolver
Resolves DataSpecs.
- + RgbAdjustment
Scales the red, green, and blue color channels of a frame.
- + RgbAdjustment.Builder
A builder for RgbAdjustment instances.
- + RgbFilter
Provides common color filters.
- + RgbMatrix
Specifies a 4x4 RGB color transformation matrix to apply to each frame in the fragment shader.
- + RobolectricUtil
Utility methods for Robolectric-based tests.
- + RtmpDataSource
A Real-Time Messaging Protocol (RTMP) DataSource.
- + RtmpDataSource.Factory
DataSource.Factory for RtmpDataSource instances.
- + RtmpDataSourceFactory Deprecated.
Use RtmpDataSource.Factory instead.
- + RtpAc3Reader
Parses an AC3 byte stream carried on RTP packets, and extracts AC3 frames.
- + RtpPacket
Represents the header and the payload of an RTP packet.
- + RtpPacket.Builder
Builder class for an RtpPacket
- + RtpPayloadFormat
Represents the payload format used in RTP.
- + RtpPayloadReader
Extracts media samples from the payload of received RTP packets.
- + RtpPayloadReader.Factory
Factory of RtpPayloadReader instances.
- + RtpPcmReader
Parses byte stream carried on RTP packets, and extracts PCM frames.
- + RtpUtils
Utility methods for RTP.
- + RtspMediaSource
An Rtsp MediaSource
- + RtspMediaSource.Factory
Factory for RtspMediaSource
- + RtspMediaSource.RtspPlaybackException
Thrown when an exception or error is encountered during loading an RTSP stream.
- + RubySpan
A styling span for ruby text.
- + RunnableFutureTask<R,​E extends Exception>
A RunnableFuture that supports additional uninterruptible operations to query whether execution has started and finished.
- + SampleQueue
A queue of media samples.
- + SampleQueue.UpstreamFormatChangedListener
A listener for changes to the upstream format.
- + SampleQueueMappingException
Thrown when it is not possible to map a TrackGroup to a SampleQueue.
- + SampleStream
A stream of media samples (and associated format information).
- + SampleStream.ReadDataResult
Return values of SampleStream.readData(com.google.android.exoplayer2.FormatHolder, com.google.android.exoplayer2.decoder.DecoderInputBuffer, @com.google.android.exoplayer2.source.SampleStream.ReadFlags int).
- + SampleStream.ReadFlags
Flags that can be specified when calling SampleStream.readData(com.google.android.exoplayer2.FormatHolder, com.google.android.exoplayer2.decoder.DecoderInputBuffer, @com.google.android.exoplayer2.source.SampleStream.ReadFlags int).
- + ScaleToFitTransformation
Specifies a simple rotation and/or scale to apply in the vertex shader.
- + ScaleToFitTransformation.Builder
A builder for ScaleToFitTransformation instances.
- + Scheduler
Schedules a service to be started in the foreground when some Requirements are met.
- + SectionPayloadReader
Reads section data.
- + SectionReader
Reads section data packets and feeds the whole sections to a given SectionPayloadReader.
- + SeekMap
Maps seek positions (in microseconds) to corresponding positions (byte offsets) in the stream.
- + SeekMap.SeekPoints
Contains one or two SeekPoints.
- + SeekMap.Unseekable
A SeekMap that does not support seeking.
- + SeekParameters
Parameters that apply to seeking.
- + SeekPoint
Defines a seek point in a media stream.
- + SegmentBase
An approximate representation of a SegmentBase manifest element.
- + SegmentBase.MultiSegmentBase
A SegmentBase that consists of multiple segments.
- + SegmentBase.SegmentList
A SegmentBase.MultiSegmentBase that uses a SegmentList to define its segments.
- + SegmentBase.SegmentTemplate
A SegmentBase.MultiSegmentBase that uses a SegmentTemplate to define its segments.
- + SegmentBase.SegmentTimelineElement
Represents a timeline segment from the MPD's SegmentTimeline list.
- + SegmentBase.SingleSegmentBase
A SegmentBase that defines a single segment.
- + SegmentDownloader<M extends FilterableManifest<M>>
Base class for multi segment stream downloaders.
- + SegmentDownloader.Segment
Smallest unit of content to be downloaded.
- + SeiReader
Consumes SEI buffers, outputting contained CEA-608/708 messages to a TrackOutput.
- + SequenceableLoader
A loader that can proceed in approximate synchronization with other loaders.
- + SequenceableLoader.Callback<T extends SequenceableLoader>
A callback to be notified of SequenceableLoader events.
- + ServerSideAdInsertionMediaSource
A MediaSource for server-side inserted ad breaks.
- + ServerSideAdInsertionMediaSource.AdPlaybackStateUpdater
Receives ad playback state update requests when the Timeline of the content media source has changed.
- + ServerSideAdInsertionUtil
A static utility class with methods to work with server-side inserted ads.
- + ServiceDescriptionElement
Represents a service description element.
- + SessionAvailabilityListener
Listener of changes in the cast session availability.
- + SessionCallbackBuilder
Builds a MediaSession.SessionCallback with various collaborators.
- + SessionCallbackBuilder.AllowedCommandProvider
Provides allowed commands for MediaController.
- + SessionCallbackBuilder.CustomCommandProvider
Callbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.
- + SessionCallbackBuilder.DefaultAllowedCommandProvider
Default implementation of SessionCallbackBuilder.AllowedCommandProvider that behaves as follows: @@ -6347,906 +6366,938 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Controller is in the same package as the session.
- + SessionCallbackBuilder.DisconnectedCallback
Callback for handling controller disconnection.
- + SessionCallbackBuilder.MediaIdMediaItemProvider
A SessionCallbackBuilder.MediaItemProvider that creates media items containing only a media ID.
- + SessionCallbackBuilder.MediaItemProvider
Provides the MediaItem.
- + SessionCallbackBuilder.PostConnectCallback
Callback for handling extra initialization after the connection.
- + SessionCallbackBuilder.RatingCallback
Callback receiving a user rating for a specified media id.
- + SessionCallbackBuilder.SkipCallback
Callback receiving skip backward and skip forward.
- + SessionPlayerConnector
An implementation of SessionPlayer that wraps a given ExoPlayer Player instance.
- + ShadowMediaCodecConfig
A JUnit @Rule to configure Roboelectric's ShadowMediaCodec.
- + ShuffleOrder
Shuffled order of indices.
- + ShuffleOrder.DefaultShuffleOrder
The default ShuffleOrder implementation for random shuffle order.
- + ShuffleOrder.UnshuffledShuffleOrder
A ShuffleOrder implementation which does not shuffle.
- + SilenceMediaSource
Media source with a single period consisting of silent raw audio of a given duration.
- + SilenceMediaSource.Factory
Factory for SilenceMediaSources.
- + SilenceSkippingAudioProcessor
An AudioProcessor that skips silence in the input stream.
- + SimpleBasePlayer
A base implementation for Player that reduces the number of methods to implement to a minimum.
- + +SimpleBasePlayer.MediaItemData + +
An immutable description of an item in the playlist, containing both static setup information + like MediaItem and dynamic data that is generally read from the media like the + duration.
+ + + +SimpleBasePlayer.MediaItemData.Builder + +
A builder for SimpleBasePlayer.MediaItemData objects.
+ + + +SimpleBasePlayer.PeriodData + +
Data describing the properties of a period inside a SimpleBasePlayer.MediaItemData.
+ + + +SimpleBasePlayer.PeriodData.Builder + +
A builder for SimpleBasePlayer.PeriodData objects.
+ + + +SimpleBasePlayer.PositionSupplier + +
A supplier for a position.
+ + + SimpleBasePlayer.State
An immutable state description of the player.
- + SimpleBasePlayer.State.Builder
A builder for SimpleBasePlayer.State objects.
- + SimpleCache
A Cache implementation that maintains an in-memory representation.
- + SimpleDecoder<I extends DecoderInputBuffer,​O extends DecoderOutputBuffer,​E extends DecoderException>
Base class for Decoders that use their own decode thread and decode each input buffer immediately into a corresponding output buffer.
- + SimpleDecoderOutputBuffer
Buffer for SimpleDecoder output.
- + SimpleExoPlayer Deprecated.
Use ExoPlayer instead.
- + SimpleExoPlayer.Builder Deprecated.
Use ExoPlayer.Builder instead.
- + SimpleMetadataDecoder
A MetadataDecoder base class that validates input buffers and discards any for which Buffer.isDecodeOnly() is true.
- + SimpleSubtitleDecoder
Base class for subtitle parsers that use their own decode thread.
- + SingleColorLut
Transforms the colors of a frame by applying the same color lookup table to each frame.
- + SingleFrameGlTextureProcessor
Manages a GLSL shader program for processing a frame.
- + SinglePeriodAdTimeline
A Timeline for sources that have ads.
- + SinglePeriodTimeline
A Timeline consisting of a single period and static window.
- + SingleSampleMediaChunk
A BaseMediaChunk for chunks consisting of a single raw sample.
- + SingleSampleMediaSource
Loads data at a given Uri as a single sample belonging to a single MediaPeriod.
- + SingleSampleMediaSource.Factory
Factory for SingleSampleMediaSource.
- + Size
Immutable class for describing width and height dimensions in pixels.
- + SlidingPercentile
Calculate any percentile over a sliding window of weighted values.
- + SlowMotionData
Holds information about the segments of slow motion playback within a track.
- + SlowMotionData.Segment
Holds information about a single segment of slow motion playback within a track.
- + SmtaMetadataEntry
Stores metadata from the Samsung smta box.
- + SntpClient
Static utility to retrieve the device time offset using SNTP.
- + SntpClient.InitializationCallback
Callback for calls to SntpClient.initialize(Loader, InitializationCallback).
- + SonicAudioProcessor
An AudioProcessor that uses the Sonic library to modify audio speed/pitch/sample rate.
- + SpannedSubject
A Truth Subject for assertions on Spanned instances containing text styling.
- + SpannedSubject.AbsoluteSized
Allows assertions about the absolute size of a span.
- + SpannedSubject.Aligned
Allows assertions about the alignment of a span.
- + SpannedSubject.AndSpanFlags
Allows additional assertions to be made on the flags of matching spans.
- + SpannedSubject.Colored
Allows assertions about the color of a span.
- + SpannedSubject.EmphasizedText
Allows assertions about a span's text emphasis mark and its position.
- + SpannedSubject.RelativeSized
Allows assertions about the relative size of a span.
- + SpannedSubject.RubyText
Allows assertions about a span's ruby text and its position.
- + SpannedSubject.Typefaced
Allows assertions about the typeface of a span.
- + SpannedSubject.WithSpanFlags
Allows additional assertions to be made on the flags of matching spans.
- + SpanUtil
Utility methods for Android span styling.
- + SphericalGLSurfaceView
Renders a GL scene in a non-VR Activity that is affected by phone orientation and touch input.
- + SphericalGLSurfaceView.VideoSurfaceListener
Listener for the Surface to which video frames should be rendered.
- + SpliceCommand
Superclass for SCTE35 splice commands.
- + SpliceInfoDecoder
Decodes splice info sections and produces splice commands.
- + SpliceInsertCommand
Represents a splice insert command defined in SCTE35, Section 9.3.3.
- + SpliceInsertCommand.ComponentSplice
Holds splicing information for specific splice insert command components.
- + SpliceNullCommand
Represents a splice null command as defined in SCTE35, Section 9.3.1.
- + SpliceScheduleCommand
Represents a splice schedule command as defined in SCTE35, Section 9.3.2.
- + SpliceScheduleCommand.ComponentSplice
Holds splicing information for specific splice schedule command components.
- + SpliceScheduleCommand.Event
Represents a splice event as contained in a SpliceScheduleCommand.
- + SsaDecoder
A SimpleSubtitleDecoder for SSA/ASS.
- + SsChunkSource
A ChunkSource for SmoothStreaming.
- + SsChunkSource.Factory
Factory for SsChunkSources.
- + SsDownloader
A downloader for SmoothStreaming streams.
- + SsManifest
Represents a SmoothStreaming manifest.
- + SsManifest.ProtectionElement
Represents a protection element containing a single header.
- + SsManifest.StreamElement
Represents a StreamIndex element.
- + SsManifestParser
Parses SmoothStreaming client manifests.
- + SsManifestParser.MissingFieldException
Thrown if a required field is missing.
- + SsMediaSource
A SmoothStreaming MediaSource.
- + SsMediaSource.Factory
Factory for SsMediaSource.
- + StandaloneDatabaseProvider
An SQLiteOpenHelper that provides instances of a standalone database.
- + StandaloneMediaClock
A MediaClock whose position advances with real time based on the playback parameters when started.
- + StarRating
A rating expressed as a fractional number of stars.
- + StartOffsetExtractorOutput
An extractor output that wraps another extractor output and applies a give start byte offset to seek positions.
- + StatsDataSource
DataSource wrapper which keeps track of bytes transferred, redirected uris, and response headers.
- + StreamKey
A key for a subset of media that can be separately loaded (a "stream").
- + StubExoPlayer
An abstract ExoPlayer implementation that throws UnsupportedOperationException from every method.
- + StubPlayer
An abstract Player implementation that throws UnsupportedOperationException from every method.
- + StyledPlayerControlView
A view for controlling Player instances.
- + StyledPlayerControlView.OnFullScreenModeChangedListener Deprecated.
Register a StyledPlayerView.FullscreenButtonClickListener via StyledPlayerView.setFullscreenButtonClickListener(StyledPlayerView.FullscreenButtonClickListener) instead.
- + StyledPlayerControlView.ProgressUpdateListener
Listener to be notified when progress has been updated.
- + StyledPlayerControlView.VisibilityListener Deprecated.
Register a StyledPlayerView.ControllerVisibilityListener via StyledPlayerView.setControllerVisibilityListener(StyledPlayerView.ControllerVisibilityListener) instead.
- + StyledPlayerView
A high level view for Player media playbacks.
- + StyledPlayerView.ControllerVisibilityListener
Listener to be notified about changes of the visibility of the UI controls.
- + StyledPlayerView.FullscreenButtonClickListener
Listener invoked when the fullscreen button is clicked.
- + StyledPlayerView.ShowBuffering
Determines when the buffering view is shown.
- + SubripDecoder
A SimpleSubtitleDecoder for SubRip.
- + Subtitle
A subtitle consisting of timed Cues.
- + SubtitleDecoder
Decodes Subtitles from SubtitleInputBuffers.
- + SubtitleDecoderException
Thrown when an error occurs decoding subtitle data.
- + SubtitleDecoderFactory
A factory for SubtitleDecoder instances.
- + SubtitleExtractor
Generic extractor for extracting subtitles from various subtitle formats.
- + SubtitleInputBuffer
A DecoderInputBuffer for a SubtitleDecoder.
- + SubtitleOutputBuffer
Base class for SubtitleDecoder output buffers.
- + SubtitleView
A view for displaying subtitle Cues.
- + SubtitleView.ViewType
The type of View to use to display subtitles.
- + SurfaceInfo
Immutable value class for a Surface and supporting information.
- + SynchronousMediaCodecAdapter
A MediaCodecAdapter that operates the underlying MediaCodec in synchronous mode.
- + SynchronousMediaCodecAdapter.Factory
A factory for SynchronousMediaCodecAdapter instances.
- + SystemClock
The standard implementation of Clock, an instance of which is available via Clock.DEFAULT.
- + TeeAudioProcessor
Audio processor that outputs its input unmodified and also outputs its input to a given sink.
- + TeeAudioProcessor.AudioBufferSink
A sink for audio buffers handled by the audio processor.
- + TeeAudioProcessor.WavFileAudioBufferSink
A sink for audio buffers that writes output audio as .wav files with a given path prefix.
- + TeeDataSource
Tees data into a DataSink as the data is read.
- + TestDownloadManagerListener
Allows tests to block for, and assert properties of, calls from a DownloadManager to its DownloadManager.Listener.
- + TestExoPlayerBuilder
A builder of ExoPlayer instances for testing.
- + TestPlayerRunHelper
Helper methods to block the calling thread until the provided ExoPlayer instance reaches a particular state.
- + TestUtil
Utility methods for tests.
- + TextAnnotation
Properties of a text annotation (i.e.
- + TextAnnotation.Position
The possible positions of the annotation text relative to the base text.
- + TextEmphasisSpan
A styling span for text emphasis marks.
- + TextEmphasisSpan.MarkFill
The possible mark fills that can be used.
- + TextEmphasisSpan.MarkShape
The possible mark shapes that can be used.
- + TextInformationFrame
Text information ID3 frame.
- + TextOutput
Receives text output.
- + TextRenderer
A renderer for text.
- + TextureInfo
Contains information describing an OpenGL texture.
- + ThumbRating
A rating expressed as "thumbs up" or "thumbs down".
- + TimeBar
Interface for time bar views that can display a playback position, buffered position, duration and ad markers, and that have a listener for scrubbing (seeking) events.
- + TimeBar.OnScrubListener
Listener for scrubbing events.
- + TimedValueQueue<V>
A utility class to keep a queue of values with timestamps.
- + Timeline
A flexible representation of the structure of media.
- + Timeline.Period
Holds information about a period in a Timeline.
- + Timeline.RemotableTimeline
A concrete class of Timeline to restore a Timeline instance from a Bundle sent by another process via IBinder.
- + Timeline.Window
Holds information about a window in a Timeline.
- + TimelineAsserts
Assertion methods for Timeline.
- + TimelineQueueEditor
A MediaSessionConnector.QueueEditor implementation.
- + TimelineQueueEditor.MediaDescriptionConverter
Converts a MediaDescriptionCompat to a MediaItem.
- + TimelineQueueEditor.MediaIdEqualityChecker
Media description comparator comparing the media IDs.
- + TimelineQueueEditor.QueueDataAdapter
Adapter to get MediaDescriptionCompat of items in the queue and to notify the application about changes in the queue to sync the data structure backing the MediaSessionConnector.
- + TimelineQueueNavigator
An abstract implementation of the MediaSessionConnector.QueueNavigator that maps the windows of a Player's Timeline to the media session queue.
- + TimeSignalCommand
Represents a time signal command as defined in SCTE35, Section 9.3.4.
- + TimestampAdjuster
Adjusts and offsets sample timestamps.
- + TimestampAdjusterProvider
Provides TimestampAdjuster instances for use during HLS playbacks.
- + TimeToFirstByteEstimator
Provides an estimate of the time to first byte of a transfer.
- + TraceUtil
Calls through to Trace methods on supported API levels.
- + Track
Encapsulates information describing an MP4 track.
- + Track.Transformation
The transformation to apply to samples in the track, if any.
- + TrackEncryptionBox
Encapsulates information parsed from a track encryption (tenc) box or sample group description (sgpd) box in an MP4 stream.
- + TrackGroup
An immutable group of tracks available within a media stream.
- + TrackGroupArray
An immutable array of TrackGroups.
- + TrackNameProvider
Converts Formats to user readable track names.
- + TrackOutput
Receives track level data extracted by an Extractor.
- + TrackOutput.CryptoData
Holds data required to decrypt a sample.
- + TrackOutput.SampleDataPart
Defines the part of the sample data to which a call to TrackOutput.sampleData(com.google.android.exoplayer2.upstream.DataReader, int, boolean) corresponds.
- + Tracks
Information about groups of tracks.
- + Tracks.Group
Information about a single group of tracks, including the underlying TrackGroup, the @@ -7254,544 +7305,544 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); selected.
- + TrackSelection
A track selection consisting of a static subset of selected tracks belonging to a TrackGroup.
- + TrackSelection.Type
Represents a type track selection.
- + TrackSelectionArray
An array of TrackSelections.
- + TrackSelectionDialogBuilder
Builder for a dialog with a TrackSelectionView.
- + TrackSelectionDialogBuilder.DialogCallback
Callback which is invoked when a track selection has been made.
- + TrackSelectionOverride
A track selection override, consisting of a TrackGroup and the indices of the tracks within the group that should be selected.
- + TrackSelectionParameters
Parameters for controlling track selection.
- + TrackSelectionParameters.Builder
A builder for TrackSelectionParameters.
- + TrackSelectionUtil
Track selection related utility methods.
- + TrackSelectionUtil.AdaptiveTrackSelectionFactory
Functional interface to create a single adaptive track selection.
- + TrackSelectionView
A view for making track selections.
- + TrackSelectionView.TrackSelectionListener
Listener for changes to the selected tracks.
- + TrackSelector
The component of an ExoPlayer responsible for selecting tracks to be consumed by each of the player's Renderers.
- + TrackSelector.InvalidationListener
Notified when selections previously made by a TrackSelector are no longer valid.
- + TrackSelectorResult
The result of a TrackSelector operation.
- + TransferListener
A listener of data transfer events.
- + TransformationException
Thrown when a non-locally recoverable transformation failure occurs.
- + TransformationException.ErrorCode
Codes that identify causes of Transformer errors.
- + TransformationRequest
A media transformation request.
- + TransformationRequest.Builder
A builder for TransformationRequest instances.
- + TransformationResult
Information about the result of a successful transformation.
- + TransformationResult.Builder
A builder for TransformationResult instances.
- + Transformer
A transformer to transform media inputs.
- + Transformer.Builder
A builder for Transformer instances.
- + Transformer.Listener
A listener for the transformation events.
- + Transformer.ProgressState
Progress state.
- + TrueHdSampleRechunker
Rechunks TrueHD sample data into groups of Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT samples.
- + TsExtractor
Extracts data from the MPEG-2 TS container format.
- + TsExtractor.Mode
Modes for the extractor.
- + TsPayloadReader
Parses TS packet payload data.
- + TsPayloadReader.DvbSubtitleInfo
Holds information about a DVB subtitle, as defined in ETSI EN 300 468 V1.11.1 section 6.2.41.
- + TsPayloadReader.EsInfo
Holds information associated with a PMT entry.
- + TsPayloadReader.Factory
Factory of TsPayloadReader instances.
- + TsPayloadReader.Flags
Contextual flags indicating the presence of indicators in the TS packet or PES packet headers.
- + TsPayloadReader.TrackIdGenerator
Generates track ids for initializing TsPayloadReaders' TrackOutputs.
- + TsUtil
Utilities method for extracting MPEG-TS streams.
- + TtmlDecoder
A SimpleSubtitleDecoder for TTML supporting the DFXP presentation profile.
- + Tx3gDecoder
A SimpleSubtitleDecoder for tx3g.
- + UdpDataSource
A UDP DataSource.
- + UdpDataSource.UdpDataSourceException
Thrown when an error is encountered when trying to read from a UdpDataSource.
- + UnknownNull
Annotation for specifying unknown nullness.
- + UnrecognizedInputFormatException
Thrown if the input format was not recognized.
- + UnsupportedDrmException
Thrown when the requested DRM scheme is not supported.
- + UnsupportedDrmException.Reason
The reason for the exception.
- + UriUtil
Utility methods for manipulating URIs.
- + UrlLinkFrame
Url link ID3 frame.
- + UrlTemplate
A template from which URLs can be built.
- + UtcTimingElement
Represents a UTCTiming element.
- + Util
Miscellaneous utility methods.
- + VersionTable
Utility methods for accessing versions of media library database components.
- + VideoDecoderGLSurfaceView
GLSurfaceView implementing VideoDecoderOutputBufferRenderer for rendering VideoDecoderOutputBuffers.
- + VideoDecoderOutputBuffer
Video decoder output buffer containing video frame data.
- + VideoDecoderOutputBufferRenderer
Renders the VideoDecoderOutputBuffer.
- + VideoEncoderSettings
Represents the video encoder settings.
- + VideoEncoderSettings.BitrateMode
The allowed values for bitrateMode.
- + VideoEncoderSettings.Builder
Builds VideoEncoderSettings instances.
- + VideoFrameMetadataListener
A listener for metadata corresponding to video frames being rendered.
- + VideoFrameReleaseHelper
Helps a video Renderer release frames to a Surface.
- + VideoRendererEventListener
Listener of video Renderer events.
- + VideoRendererEventListener.EventDispatcher
Dispatches events to a VideoRendererEventListener.
- + VideoSize
Represents the video size.
- + VorbisBitArray
Wraps a byte array, providing methods that allow it to be read as a Vorbis bitstream.
- + VorbisComment Deprecated.
Use VorbisComment instead.
- + VorbisComment
A vorbis comment, extracted from a FLAC or Ogg file.
- + VorbisUtil
Utility methods for parsing Vorbis streams.
- + VorbisUtil.CommentHeader
Vorbis comment header.
- + VorbisUtil.Mode
Vorbis setup header modes.
- + VorbisUtil.VorbisIdHeader
Vorbis identification header.
- + VpxDecoder
Vpx decoder.
- + VpxDecoderException
Thrown when a libvpx decoder error occurs.
- + VpxLibrary
Configures and queries the underlying native library.
- + WavExtractor
Extracts data from WAV byte streams.
- + WavUtil
Utilities for handling WAVE files.
- + WebServerDispatcher
A Dispatcher for MockWebServer that allows per-path customisation of the static data served.
- + WebServerDispatcher.Resource
A resource served by WebServerDispatcher.
- + WebServerDispatcher.Resource.Builder
Builder for WebServerDispatcher.Resource.
- + WebvttCssStyle
Style object of a Css style block in a Webvtt file.
- + WebvttCssStyle.FontSizeUnit
Font size unit enum.
- + WebvttCssStyle.StyleFlags
Style flag enum.
- + WebvttCueInfo
A representation of a WebVTT cue.
- + WebvttCueParser
Parser for WebVTT cues.
- + WebvttDecoder
A SimpleSubtitleDecoder for WebVTT.
- + WebvttExtractor
A special purpose extractor for WebVTT content in HLS.
- + WebvttParserUtil
Utility methods for parsing WebVTT data.
- + WidevineUtil
Utility methods for Widevine.
- + WorkManagerScheduler
A Scheduler that uses WorkManager.
- + WorkManagerScheduler.SchedulerWorker
A Worker that starts the target service if the requirements are met.
- + WrappingMediaSource
An abstract MediaSource wrapping a single child MediaSource.
- + WritableDownloadIndex
A writable index of Downloads.
- + XmlPullParserUtil
XmlPullParser utility methods.
diff --git a/docs/doc/reference/allclasses.html b/docs/doc/reference/allclasses.html index e33a5d8aa3..55fdc38cb9 100644 --- a/docs/doc/reference/allclasses.html +++ b/docs/doc/reference/allclasses.html @@ -256,6 +256,8 @@
  • CompositeSequenceableLoader
  • CompositeSequenceableLoaderFactory
  • ConcatenatingMediaSource
  • +
  • ConcatenatingMediaSource2
  • +
  • ConcatenatingMediaSource2.Builder
  • ConditionVariable
  • ConstantBitrateSeekMap
  • Consumer
  • @@ -796,6 +798,7 @@
  • MediaMetadata
  • MediaMetadata.Builder
  • MediaMetadata.FolderType
  • +
  • MediaMetadata.MediaType
  • MediaMetadata.PictureType
  • MediaMetricsListener
  • MediaParserChunkExtractor
  • @@ -1058,6 +1061,11 @@
  • SilenceMediaSource.Factory
  • SilenceSkippingAudioProcessor
  • SimpleBasePlayer
  • +
  • SimpleBasePlayer.MediaItemData
  • +
  • SimpleBasePlayer.MediaItemData.Builder
  • +
  • SimpleBasePlayer.PeriodData
  • +
  • SimpleBasePlayer.PeriodData.Builder
  • +
  • SimpleBasePlayer.PositionSupplier
  • SimpleBasePlayer.State
  • SimpleBasePlayer.State.Builder
  • SimpleCache
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html index 6dfc96dea1..1a1f52797c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html @@ -380,7 +380,7 @@ extends T

    Methods inherited from class com.google.android.exoplayer2.Timeline

    -equals, getNextPeriodIndex, getPeriod, getPeriodCount, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, getWindowCount, hashCode, isEmpty, isLastPeriod, toBundle, toBundle +equals, getNextPeriodIndex, getPeriod, getPeriodCount, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, getWindowCount, hashCode, isEmpty, isLastPeriod, toBundle, toBundleWithOneWindowOnly @@ -734,7 +745,9 @@ implements public final void setMediaItem​(MediaItem mediaItem)
    Description copied from interface: Player
    Clears the playlist, adds the specified MediaItem and resets the position to the - default position.
    + default position. + +

    This method must only be called if Player.COMMAND_SET_MEDIA_ITEM is available.

    Specified by:
    setMediaItem in interface Player
    @@ -752,7 +765,9 @@ implements public final void setMediaItem​(MediaItem mediaItem, long startPositionMs)
    Description copied from interface: Player
    -
    Clears the playlist and adds the specified MediaItem.
    +
    Clears the playlist and adds the specified MediaItem. + +

    This method must only be called if Player.COMMAND_SET_MEDIA_ITEM is available.

    Specified by:
    setMediaItem in interface Player
    @@ -771,7 +786,9 @@ implements public final void setMediaItem​(MediaItem mediaItem, boolean resetPosition)
    Description copied from interface: Player
    -
    Clears the playlist and adds the specified MediaItem.
    +
    Clears the playlist and adds the specified MediaItem. + +

    This method must only be called if Player.COMMAND_SET_MEDIA_ITEM is available.

    Specified by:
    setMediaItem in interface Player
    @@ -791,13 +808,15 @@ implements public final void setMediaItems​(List<MediaItem> mediaItems)
    Description copied from interface: Player
    -
    Clears the playlist, adds the specified MediaItems and resets the position to - the default position.
    +
    Clears the playlist, adds the specified media items and resets the + position to the default position. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    setMediaItems in interface Player
    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    @@ -810,7 +829,9 @@ implements public final void addMediaItem​(int index, MediaItem mediaItem)
    Description copied from interface: Player
    -
    Adds a media item at the given index of the playlist.
    +
    Adds a media item at the given index of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    addMediaItem in interface Player
    @@ -829,7 +850,9 @@ implements public final void addMediaItem​(MediaItem mediaItem)
    Description copied from interface: Player
    -
    Adds a media item to the end of the playlist.
    +
    Adds a media item to the end of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    addMediaItem in interface Player
    @@ -846,12 +869,14 @@ implements public final void addMediaItems​(List<MediaItem> mediaItems)
    Description copied from interface: Player
    -
    Adds a list of media items to the end of the playlist.
    +
    Adds a list of media items to the end of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    addMediaItems in interface Player
    Parameters:
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -864,12 +889,15 @@ implements public final void moveMediaItem​(int currentIndex, int newIndex) -
    Moves the media item at the current index to the new index.
    +
    Moves the media item at the current index to the new index. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    moveMediaItem in interface Player
    Parameters:
    -
    currentIndex - The current index of the media item to move.
    +
    currentIndex - The current index of the media item to move. If the index is larger than + the size of the playlist, the request is ignored.
    newIndex - The new index of the media item. If the new index is larger than the size of the playlist the item is moved to the end of the playlist.
    @@ -883,12 +911,15 @@ implements public final void removeMediaItem​(int index) -
    Removes the media item at the given index of the playlist.
    +
    Removes the media item at the given index of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    removeMediaItem in interface Player
    Parameters:
    -
    index - The index at which to remove the media item.
    +
    index - The index at which to remove the media item. If the index is larger than the size + of the playlist, the request is ignored.
    @@ -900,7 +931,9 @@ implements public final void clearMediaItems() -
    Clears the playlist.
    +
    Clears the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    clearMediaItems in interface Player
    @@ -918,13 +951,7 @@ implements Description copied from interface: Player
    Returns whether the provided Player.Command is available. -

    This method does not execute the command. - -

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a Player.getPlayerError() player error}. - -

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem.

    +

    This method does not execute the command.

    Specified by:
    isCommandAvailable in interface Player
    @@ -962,7 +989,9 @@ implements public final void play()
    Resumes playback as soon as Player.getPlaybackState() == Player.STATE_READY. Equivalent to - setPlayWhenReady(true).
    + setPlayWhenReady(true). + +

    This method must only be called if Player.COMMAND_PLAY_PAUSE is available.

    Specified by:
    play in interface Player
    @@ -977,7 +1006,9 @@ implements public final void pause() -
    Pauses playback. Equivalent to setPlayWhenReady(false).
    +
    Pauses playback. Equivalent to setPlayWhenReady(false). + +

    This method must only be called if Player.COMMAND_PLAY_PAUSE is available.

    Specified by:
    pause in interface Player
    @@ -1021,7 +1052,9 @@ implements Description copied from interface: Player
    Seeks to the default position associated with the current MediaItem. The position can depend on the type of media being played. For live streams it will typically be the live edge. - For other streams it will typically be the start.
    + For other streams it will typically be the start. + +

    This method must only be called if Player.COMMAND_SEEK_TO_DEFAULT_POSITION is available.

    Specified by:
    seekToDefaultPosition in interface Player
    @@ -1038,31 +1071,16 @@ implements Description copied from interface: Player
    Seeks to the default position associated with the specified MediaItem. The position can depend on the type of media being played. For live streams it will typically be the live edge. - For other streams it will typically be the start.
    + For other streams it will typically be the start. + +

    This method must only be called if Player.COMMAND_SEEK_TO_MEDIA_ITEM is available.

    Specified by:
    seekToDefaultPosition in interface Player
    Parameters:
    mediaItemIndex - The index of the MediaItem whose associated default position - should be seeked to.
    -
    - - - - - -
      -
    • -

      seekTo

      -
      public final void seekTo​(long positionMs)
      -
      Description copied from interface: Player
      -
      Seeks to a position specified in milliseconds in the current MediaItem.
      -
      -
      Specified by:
      -
      seekTo in interface Player
      -
      Parameters:
      -
      positionMs - The seek position in the current MediaItem, or C.TIME_UNSET - to seek to the media item's default position.
      + should be seeked to. If the index is larger than the size of the playlist, the request is + ignored.
    @@ -1074,7 +1092,9 @@ implements public final void seekBack() -
    Seeks back in the current MediaItem by Player.getSeekBackIncrement() milliseconds.
    +
    Seeks back in the current MediaItem by Player.getSeekBackIncrement() milliseconds. + +

    This method must only be called if Player.COMMAND_SEEK_BACK is available.

    Specified by:
    seekBack in interface Player
    @@ -1090,7 +1110,9 @@ implements public final void seekForward()
    Seeks forward in the current MediaItem by Player.getSeekForwardIncrement() - milliseconds.
    + milliseconds. + +

    This method must only be called if Player.COMMAND_SEEK_FORWARD is available.

    Specified by:
    seekForward in interface Player
    @@ -1144,7 +1166,9 @@ public final boolean hasPreviousWindow()

    Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is Player.REPEAT_MODE_OFF. See Player.REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    hasPreviousMediaItem in interface Player
    @@ -1198,7 +1222,10 @@ public final void seekToPreviousWindow()

    Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is Player.REPEAT_MODE_OFF. See Player.REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM is + available.

    Specified by:
    seekToPreviousMediaItem in interface Player
    @@ -1227,7 +1254,9 @@ public final void seekToPreviousWindow()
  • Otherwise, if a previous media item exists and the current position is less than Player.getMaxSeekToPreviousPosition(), seeks to the default position of the previous MediaItem.
  • Otherwise, seeks to 0 in the current MediaItem. - + + +

    This method must only be called if Player.COMMAND_SEEK_TO_PREVIOUS is available.

    Specified by:
    seekToPrevious in interface Player
    @@ -1281,7 +1310,9 @@ public final boolean hasNextWindow()

    Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is Player.REPEAT_MODE_OFF. See Player.REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    hasNextMediaItem in interface Player
    @@ -1336,7 +1367,9 @@ public final void seekToNextWindow()

    Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is Player.REPEAT_MODE_OFF. See Player.REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is available.

    Specified by:
    seekToNextMediaItem in interface Player
    @@ -1361,13 +1394,81 @@ public final void seekToNextWindow()
  • Otherwise, if the current MediaItem is live and has not ended, seeks to the live edge of the current MediaItem.
  • Otherwise, does nothing. - + + +

    This method must only be called if Player.COMMAND_SEEK_TO_NEXT is available.

    Specified by:
    seekToNext in interface Player
  • + + + + + + + +
      +
    • +

      seekTo

      +
      public final void seekTo​(int mediaItemIndex,
      +                         long positionMs)
      +
      Description copied from interface: Player
      +
      Seeks to a position specified in milliseconds in the specified MediaItem. + +

      This method must only be called if Player.COMMAND_SEEK_TO_MEDIA_ITEM is available.

      +
      +
      Specified by:
      +
      seekTo in interface Player
      +
      Parameters:
      +
      mediaItemIndex - The index of the MediaItem. If the index is larger than the size + of the playlist, the request is ignored.
      +
      positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
      +
      +
    • +
    + + + +
      +
    • +

      seekTo

      +
      public abstract void seekTo​(int mediaItemIndex,
      +                            long positionMs,
      +                            @Command
      +                            @com.google.android.exoplayer2.Player.Command int seekCommand,
      +                            boolean isRepeatingCurrentItem)
      +
      Seeks to a position in the specified MediaItem.
      +
      +
      Parameters:
      +
      mediaItemIndex - The index of the MediaItem.
      +
      positionMs - The seek position in the specified MediaItem in milliseconds, or + C.TIME_UNSET to seek to the media item's default position.
      +
      seekCommand - The Player.Command used to trigger the seek.
      +
      isRepeatingCurrentItem - Whether this seeks repeats the current item.
      +
      +
    • +
    @@ -1379,13 +1480,15 @@ public final void seekToNextWindow()
    Changes the rate at which playback occurs. The pitch is not changed.

    This is equivalent to - setPlaybackParameters(getPlaybackParameters().withSpeed(speed)).

    + setPlaybackParameters(getPlaybackParameters().withSpeed(speed)). + +

    This method must only be called if Player.COMMAND_SET_SPEED_AND_PITCH is available.

    Specified by:
    setPlaybackSpeed in interface Player
    Parameters:
    speed - The linear factor by which playback will be sped up. Must be higher than 0. 1 is - normal speed, 2 is twice as fast, 0.5 is half normal speed...
    + normal speed, 2 is twice as fast, 0.5 is half normal speed.
  • @@ -1437,7 +1540,9 @@ public final int getNextWindowIndex()

    Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is Player.REPEAT_MODE_OFF. See Player.REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getNextMediaItemIndex in interface Player
    @@ -1475,7 +1580,9 @@ public final int getPreviousWindowIndex()

    Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is Player.REPEAT_MODE_OFF. See Player.REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getPreviousMediaItemIndex in interface Player
    @@ -1491,7 +1598,9 @@ public final int getPreviousWindowIndex()
    @Nullable
     public final MediaItem getCurrentMediaItem()
    Description copied from interface: Player
    -
    Returns the currently playing MediaItem. May be null if the timeline is empty.
    +
    Returns the currently playing MediaItem. May be null if the timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getCurrentMediaItem in interface Player
    @@ -1508,7 +1617,9 @@ public final public final int getMediaItemCount() -
    Returns the number of media items in the playlist.
    +
    Returns the number of media items in the playlist. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getMediaItemCount in interface Player
    @@ -1523,7 +1634,9 @@ public final public final MediaItem getMediaItemAt​(int index)
    Description copied from interface: Player
    -
    Returns the MediaItem at the given index.
    +
    Returns the MediaItem at the given index. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getMediaItemAt in interface Player
    @@ -1588,7 +1701,9 @@ public final boolean isCurrentWindowDynamic()
    public final boolean isCurrentMediaItemDynamic()
    Description copied from interface: Player
    Returns whether the current MediaItem is dynamic (may change when the Timeline - is updated), or false if the Timeline is empty.
    + is updated), or false if the Timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    isCurrentMediaItemDynamic in interface Player
    @@ -1623,7 +1738,9 @@ public final boolean isCurrentWindowLive()
    public final boolean isCurrentMediaItemLive()
    Description copied from interface: Player
    Returns whether the current MediaItem is live, or false if the Timeline - is empty.
    + is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    isCurrentMediaItemLive in interface Player
    @@ -1648,7 +1765,9 @@ public final boolean isCurrentWindowLive() positive.

    Note that this offset may rely on an accurate local time, so this method may return an - incorrect value if the difference between system clock and server clock is unknown. + incorrect value if the difference between system clock and server clock is unknown. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getCurrentLiveOffset in interface Player
    @@ -1680,7 +1799,9 @@ public final boolean isCurrentWindowSeekable()

    isCurrentMediaItemSeekable

    public final boolean isCurrentMediaItemSeekable()
    Description copied from interface: Player
    -
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty.
    +
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    isCurrentMediaItemSeekable in interface Player
    @@ -1692,34 +1813,22 @@ public final boolean isCurrentWindowSeekable() -
      + - - - -
        -
      • -

        repeatCurrentMediaItem

        -
        @ForOverride
        -protected void repeatCurrentMediaItem()
        -
        Repeat the current media item. - -

        The default implementation seeks to the default position in the current item, which can be - overridden for additional handling.

        -
      • -
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/C.Encoding.html b/docs/doc/reference/com/google/android/exoplayer2/C.Encoding.html index 955a149c7c..f8e43ba352 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/C.Encoding.html +++ b/docs/doc/reference/com/google/android/exoplayer2/C.Encoding.html @@ -120,7 +120,7 @@ public static @interface C.Encoding + C.ENCODING_DTS_HD, C.ENCODING_DOLBY_TRUEHD or C.ENCODING_OPUS. diff --git a/docs/doc/reference/com/google/android/exoplayer2/C.html b/docs/doc/reference/com/google/android/exoplayer2/C.html index 97d9c59ace..c394bbcb03 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/C.html +++ b/docs/doc/reference/com/google/android/exoplayer2/C.html @@ -880,46 +880,51 @@ extends static int -ENCODING_PCM_16BIT +ENCODING_OPUS   static int +ENCODING_PCM_16BIT +  + + +static int ENCODING_PCM_16BIT_BIG_ENDIAN
    Like ENCODING_PCM_16BIT, but with the bytes in big endian order.
    - + static int ENCODING_PCM_24BIT
    PCM encoding with 24 bits per sample.
    - + static int ENCODING_PCM_32BIT
    PCM encoding with 32 bits per sample.
    - + static int ENCODING_PCM_8BIT   - + static int ENCODING_PCM_FLOAT   - + static int FLAG_AUDIBILITY_ENFORCED   - + static int FORMAT_EXCEEDS_CAPABILITIES @@ -927,14 +932,14 @@ extends - + static int FORMAT_HANDLED
    The Renderer is capable of rendering the format.
    - + static int FORMAT_UNSUPPORTED_DRM @@ -942,7 +947,7 @@ extends - + static int FORMAT_UNSUPPORTED_SUBTYPE @@ -951,7 +956,7 @@ extends - + static int FORMAT_UNSUPPORTED_TYPE @@ -959,14 +964,14 @@ extends - + static int INDEX_UNSET
    Represents an unset or unknown index.
    - + static String ISO88591_NAME @@ -975,266 +980,266 @@ extends - + static String LANGUAGE_UNDETERMINED
    Represents an undetermined language as an ISO 639-2 language code.
    - + static int LENGTH_UNSET
    Represents an unset or unknown length.
    - + static long MICROS_PER_SECOND
    The number of microseconds in one second.
    - + static long MILLIS_PER_SECOND
    The number of milliseconds in one second.
    - + static long NANOS_PER_SECOND
    The number of nanoseconds in one second.
    - + static int NETWORK_TYPE_2G
    Network type for a 2G cellular connection.
    - + static int NETWORK_TYPE_3G
    Network type for a 3G cellular connection.
    - + static int NETWORK_TYPE_4G
    Network type for a 4G cellular connection.
    - + static int NETWORK_TYPE_5G_NSA
    Network type for a 5G non-stand-alone (NSA) cellular connection.
    - + static int NETWORK_TYPE_5G_SA
    Network type for a 5G stand-alone (SA) cellular connection.
    - + static int NETWORK_TYPE_CELLULAR_UNKNOWN
    Network type for cellular connections which cannot be mapped to one of NETWORK_TYPE_2G, NETWORK_TYPE_3G, or NETWORK_TYPE_4G.
    - + static int NETWORK_TYPE_ETHERNET
    Network type for an Ethernet connection.
    - + static int NETWORK_TYPE_OFFLINE
    No network connection.
    - + static int NETWORK_TYPE_OTHER
    Network type for other connections which are not Wifi or cellular (e.g.
    - + static int NETWORK_TYPE_UNKNOWN
    Unknown network type.
    - + static int NETWORK_TYPE_WIFI
    Network type for a Wifi connection.
    - + static int PERCENTAGE_UNSET
    Represents an unset or unknown percentage.
    - + static UUID PLAYREADY_UUID
    UUID for the PlayReady DRM scheme.
    - + static int POSITION_UNSET
    Represents an unset or unknown position.
    - + static int PRIORITY_DOWNLOAD
    Priority for media downloading.
    - + static int PRIORITY_PLAYBACK
    Priority for media playback.
    - + static int PROJECTION_CUBEMAP
    Cube map projection.
    - + static int PROJECTION_EQUIRECTANGULAR
    Equirectangular spherical projection.
    - + static int PROJECTION_MESH
    3-D mesh projection.
    - + static int PROJECTION_RECTANGULAR
    Conventional rectangular projection.
    - + static float RATE_UNSET
    Represents an unset or unknown rate.
    - + static int RATE_UNSET_INT
    Represents an unset or unknown integer rate.
    - + static int RESULT_BUFFER_READ
    A return value for methods where a buffer was read.
    - + static int RESULT_END_OF_INPUT
    A return value for methods where the end of an input was encountered.
    - + static int RESULT_FORMAT_READ
    A return value for methods where a format was read.
    - + static int RESULT_MAX_LENGTH_EXCEEDED
    A return value for methods where the length of parsed data exceeds the maximum length allowed.
    - + static int RESULT_NOTHING_READ
    A return value for methods where nothing was read.
    - + static int ROLE_FLAG_ALTERNATE
    Indicates an alternate track.
    - + static int ROLE_FLAG_CAPTION
    Indicates the track contains captions.
    - + static int ROLE_FLAG_COMMENTARY
    Indicates the track contains commentary, for example from the director.
    - + static int ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND
    Indicates the track contains a textual description of music and sound.
    - + static int ROLE_FLAG_DESCRIBES_VIDEO
    Indicates the track contains an audio or textual description of a video track.
    - + static int ROLE_FLAG_DUB @@ -1242,77 +1247,77 @@ extends - + static int ROLE_FLAG_EASY_TO_READ
    Indicates the track contains a text that has been edited for ease of reading.
    - + static int ROLE_FLAG_EMERGENCY
    Indicates the track contains information about a current emergency.
    - + static int ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY
    Indicates the track is designed for improved intelligibility of dialogue.
    - + static int ROLE_FLAG_MAIN
    Indicates a main track.
    - + static int ROLE_FLAG_SIGN
    Indicates the track contains a visual sign-language interpretation of an audio track.
    - + static int ROLE_FLAG_SUBTITLE
    Indicates the track contains subtitles.
    - + static int ROLE_FLAG_SUPPLEMENTARY
    Indicates a supplementary track, meaning the track has lower importance than the main track(s).
    - + static int ROLE_FLAG_TRANSCRIBES_DIALOG
    Indicates the track contains a transcription of spoken dialog.
    - + static int ROLE_FLAG_TRICK_PLAY
    Indicates the track is intended for trick play.
    - + static String SANS_SERIF_NAME
    The name of the sans-serif font family.
    - + static int SELECTION_FLAG_AUTOSELECT @@ -1320,14 +1325,14 @@ extends - + static int SELECTION_FLAG_DEFAULT
    Indicates that the track should be selected if user preferences do not state otherwise.
    - + static int SELECTION_FLAG_FORCED @@ -1335,14 +1340,14 @@ extends - + static int SELECTION_REASON_ADAPTIVE
    A selection reason constant for an adaptive track selection.
    - + static int SELECTION_REASON_CUSTOM_BASE @@ -1350,73 +1355,73 @@ extends - + static int SELECTION_REASON_INITIAL
    A selection reason constant for an initial track selection.
    - + static int SELECTION_REASON_MANUAL
    A selection reason constant for an manual (i.e.
    - + static int SELECTION_REASON_TRICK_PLAY
    A selection reason constant for a trick play track selection.
    - + static int SELECTION_REASON_UNKNOWN
    A selection reason constant for selections whose reasons are unknown or unspecified.
    - + static String SERIF_NAME
    The name of the serif font family.
    - + static int SPATIALIZATION_BEHAVIOR_AUTO   - + static int SPATIALIZATION_BEHAVIOR_NEVER   - + static String SSAI_SCHEME
    The URI scheme used for content with server side ad insertion.
    - + static int STEREO_MODE_LEFT_RIGHT
    Indicates Left-Right stereo layout, used with 360/3D/VR videos.
    - + static int STEREO_MODE_MONO
    Indicates Monoscopic stereo layout, used with 360/3D/VR videos.
    - + static int STEREO_MODE_STEREO_MESH @@ -1424,84 +1429,84 @@ extends - + static int STEREO_MODE_TOP_BOTTOM
    Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.
    - + static int STREAM_TYPE_ALARM   - + static int STREAM_TYPE_DEFAULT
    The default stream type used by audio renderers.
    - + static int STREAM_TYPE_DTMF   - + static int STREAM_TYPE_MUSIC   - + static int STREAM_TYPE_NOTIFICATION   - + static int STREAM_TYPE_RING   - + static int STREAM_TYPE_SYSTEM   - + static int STREAM_TYPE_VOICE_CALL   - + static long TIME_END_OF_SOURCE
    Special constant representing a time corresponding to the end of a source.
    - + static long TIME_UNSET
    Special constant representing an unset or unknown time or duration.
    - + static int TRACK_TYPE_AUDIO
    A type constant for audio tracks.
    - + static int TRACK_TYPE_CAMERA_MOTION
    A type constant for camera motion tracks.
    - + static int TRACK_TYPE_CUSTOM_BASE @@ -1509,56 +1514,56 @@ extends - + static int TRACK_TYPE_DEFAULT
    A type constant for tracks of some default type, where the type itself is unknown.
    - + static int TRACK_TYPE_IMAGE
    A type constant for image tracks.
    - + static int TRACK_TYPE_METADATA
    A type constant for metadata tracks.
    - + static int TRACK_TYPE_NONE
    A type constant for a fake or empty track.
    - + static int TRACK_TYPE_TEXT
    A type constant for text tracks.
    - + static int TRACK_TYPE_UNKNOWN
    A type constant for tracks of unknown type.
    - + static int TRACK_TYPE_VIDEO
    A type constant for video tracks.
    - + static int TYPE_DASH @@ -1567,7 +1572,7 @@ extends - + static int TYPE_HLS @@ -1576,7 +1581,7 @@ extends - + static int TYPE_OTHER @@ -1585,7 +1590,7 @@ extends - + static int TYPE_RTSP @@ -1594,7 +1599,7 @@ extends - + static int TYPE_SS @@ -1603,87 +1608,87 @@ extends - + static int USAGE_ALARM   - + static int USAGE_ASSISTANCE_ACCESSIBILITY   - + static int USAGE_ASSISTANCE_NAVIGATION_GUIDANCE   - + static int USAGE_ASSISTANCE_SONIFICATION   - + static int USAGE_ASSISTANT   - + static int USAGE_GAME   - + static int USAGE_MEDIA   - + static int USAGE_NOTIFICATION   - + static int USAGE_NOTIFICATION_COMMUNICATION_DELAYED   - + static int USAGE_NOTIFICATION_COMMUNICATION_INSTANT   - + static int USAGE_NOTIFICATION_COMMUNICATION_REQUEST   - + static int USAGE_NOTIFICATION_EVENT   - + static int USAGE_NOTIFICATION_RINGTONE   - + static int USAGE_UNKNOWN   - + static int USAGE_VOICE_COMMUNICATION   - + static int USAGE_VOICE_COMMUNICATION_SIGNALLING   - + static String UTF16_NAME @@ -1692,7 +1697,7 @@ extends - + static String UTF16LE_NAME @@ -1701,7 +1706,7 @@ extends - + static String UTF8_NAME @@ -1710,70 +1715,70 @@ extends - + static UUID UUID_NIL
    The Nil UUID as defined by RFC4122.
    - + static int VIDEO_CHANGE_FRAME_RATE_STRATEGY_OFF - + static int VIDEO_CHANGE_FRAME_RATE_STRATEGY_ONLY_IF_SEAMLESS
    Strategy to call Surface.setFrameRate(float, int, int) with Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS when the output frame rate is known.
    - + static int VIDEO_OUTPUT_MODE_NONE
    Video decoder output mode is not set.
    - + static int VIDEO_OUTPUT_MODE_SURFACE_YUV
    Video decoder output mode that renders 4:2:0 YUV planes directly to a surface.
    - + static int VIDEO_OUTPUT_MODE_YUV
    Video decoder output mode that outputs raw 4:2:0 YUV planes.
    - + static int VIDEO_SCALING_MODE_DEFAULT
    A default video scaling mode for MediaCodec-based renderers.
    - + static int VIDEO_SCALING_MODE_SCALE_TO_FIT - + static int VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING - + static int WAKE_MODE_LOCAL @@ -1781,7 +1786,7 @@ extends - + static int WAKE_MODE_NETWORK @@ -1789,14 +1794,14 @@ extends WifiManager.WifiLock during playback. - + static int WAKE_MODE_NONE
    A wake mode that will not cause the player to hold any locks.
    - + static UUID WIDEVINE_UUID @@ -2608,6 +2613,20 @@ public static final  + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/ExoPlaybackException.html b/docs/doc/reference/com/google/android/exoplayer2/ExoPlaybackException.html index a861cfbd9b..6dae3b33f8 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ExoPlaybackException.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ExoPlaybackException.html @@ -405,7 +405,7 @@ extends PlaybackException -getErrorCodeName, getErrorCodeName, keyForField +getErrorCodeName, getErrorCodeName
    Parameters:
    @@ -1112,6 +1120,28 @@ public  + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html index 5d97c95156..538b11869b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html @@ -181,15 +181,15 @@ extends @@ -1159,7 +1165,9 @@ extends

    getClock

    Clock getClock()
    -
    Returns the Clock used for playback.
    +
    Returns the Clock used for playback. + +

    This method can be called from any thread.

    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html index f2151164a7..3f46a06d3b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -402,6 +402,20 @@ extends Format.Builder +setTileCountHorizontal​(int tileCountHorizontal) + + + + + +Format.Builder +setTileCountVertical​(int tileCountVertical) + + + + + +Format.Builder setWidth​(int width) @@ -975,6 +989,40 @@ public  + + + + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/Format.html b/docs/doc/reference/com/google/android/exoplayer2/Format.html index d4ec34a903..fc4a88a526 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Format.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Format.html @@ -206,6 +206,13 @@ implements accessibilityChannel + + +

    Fields relevant to image formats

    + + @@ -497,6 +504,20 @@ implements int +tileCountHorizontal + +
    The number of horizontal tiles in an image, or NO_VALUE if not known or applicable.
    + + + +int +tileCountVertical + +
    The number of vertical tiles in an image, or NO_VALUE if not known or applicable.
    + + + +int width
    The width of the video in pixels, or NO_VALUE if unknown or not applicable.
    @@ -1193,6 +1214,26 @@ public final The Accessibility channel, or NO_VALUE if not known or applicable. + + + +
      +
    • +

      tileCountHorizontal

      +
      public final int tileCountHorizontal
      +
      The number of horizontal tiles in an image, or NO_VALUE if not known or applicable.
      +
    • +
    + + + +
      +
    • +

      tileCountVertical

      +
      public final int tileCountVertical
      +
      The number of vertical tiles in an image, or NO_VALUE if not known or applicable.
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ForwardingPlayer.html b/docs/doc/reference/com/google/android/exoplayer2/ForwardingPlayer.html index 44729c9e78..2f87a6f080 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ForwardingPlayer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ForwardingPlayer.html @@ -1221,7 +1221,7 @@ implements Specified by:
    setMediaItems in interface Player
    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    @@ -1238,7 +1238,7 @@ implements Specified by:
    setMediaItems in interface Player
    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -1259,7 +1259,7 @@ implements Specified by:
    setMediaItems in interface Player
    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In @@ -1369,7 +1369,7 @@ implements Specified by:
    addMediaItems in interface Player
    Parameters:
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -1388,7 +1388,7 @@ implements Parameters:
    index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -1405,7 +1405,8 @@ implements Specified by:
    moveMediaItem in interface Player
    Parameters:
    -
    currentIndex - The current index of the media item to move.
    +
    currentIndex - The current index of the media item to move. If the index is larger than + the size of the playlist, the request is ignored.
    newIndex - The new index of the media item. If the new index is larger than the size of the playlist the item is moved to the end of the playlist.
    @@ -1425,8 +1426,10 @@ implements Specified by:
    moveMediaItems in interface Player
    Parameters:
    -
    fromIndex - The start of the range to move.
    -
    toIndex - The first item not to be included in the range (exclusive).
    +
    fromIndex - The start of the range to move. If the index is larger than the size of the + playlist, the request is ignored.
    +
    toIndex - The first item not to be included in the range (exclusive). If the index is + larger than the size of the playlist, items up to the end of the playlist are moved.
    newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
    @@ -1445,7 +1448,8 @@ implements Specified by:
    removeMediaItem in interface Player
    Parameters:
    -
    index - The index at which to remove the media item.
    +
    index - The index at which to remove the media item. If the index is larger than the size + of the playlist, the request is ignored.
    @@ -1462,9 +1466,10 @@ implements Specified by:
    removeMediaItems in interface Player
    Parameters:
    -
    fromIndex - The index at which to start removing media items.
    +
    fromIndex - The index at which to start removing media items. If the index is larger than + the size of the playlist, the request is ignored.
    toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
    + the size of the playlist, media items up to the end of the playlist are removed.
    @@ -1561,7 +1566,7 @@ implements Specified by:
    getPlaybackState in interface Player
    Returns:
    -
    The current playback state.
    +
    The current playback state.
    See Also:
    Player.Listener.onPlaybackStateChanged(int)
    @@ -1579,7 +1584,7 @@ implements Specified by:
    getPlaybackSuppressionReason in interface Player
    Returns:
    -
    The current playback suppression reason.
    +
    The current Player.PlaybackSuppressionReason.
    See Also:
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -1796,7 +1801,8 @@ public seekToDefaultPosition in interface Player
    Parameters:
    mediaItemIndex - The index of the MediaItem whose associated default position - should be seeked to.
    + should be seeked to. If the index is larger than the size of the playlist, the request is + ignored.
    @@ -1830,7 +1836,8 @@ public Specified by:
    seekTo in interface Player
    Parameters:
    -
    mediaItemIndex - The index of the MediaItem.
    +
    mediaItemIndex - The index of the MediaItem. If the index is larger than the size + of the playlist, the request is ignored.
    positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET to seek to the media item's default position.
    @@ -2175,7 +2182,7 @@ public void seekToNextWindow()
    setPlaybackSpeed in interface Player
    Parameters:
    speed - The linear factor by which playback will be sped up. Must be higher than 0. 1 is - normal speed, 2 is twice as fast, 0.5 is half normal speed...
    + normal speed, 2 is twice as fast, 0.5 is half normal speed.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/LegacyMediaPlayerWrapper.html b/docs/doc/reference/com/google/android/exoplayer2/LegacyMediaPlayerWrapper.html index 97861af301..762054e1d6 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/LegacyMediaPlayerWrapper.html +++ b/docs/doc/reference/com/google/android/exoplayer2/LegacyMediaPlayerWrapper.html @@ -164,7 +164,7 @@ extends SimpleBasePlayer -SimpleBasePlayer.State +SimpleBasePlayer.MediaItemData, SimpleBasePlayer.PeriodData, SimpleBasePlayer.PositionSupplier, SimpleBasePlayer.State diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html index 24decbb470..ac8f3b8e0d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html @@ -158,7 +158,7 @@ extends Builder() -
    Constructs an instance.
    +
    Creates a new instance with default values.
    @@ -266,7 +266,7 @@ extends

    Builder

    public Builder()
    -
    Constructs an instance.
    +
    Creates a new instance with default values.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.LiveConfiguration.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.LiveConfiguration.Builder.html index b57ad07362..8c41325714 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.LiveConfiguration.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.LiveConfiguration.Builder.html @@ -158,7 +158,7 @@ extends
    Builder() -
    Constructs an instance.
    +
    Creates a new instance with default values.
    @@ -252,7 +252,7 @@ extends

    Builder

    public Builder()
    -
    Constructs an instance.
    +
    Creates a new instance with default values.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html index 7ab03cbc38..eeb1ba465b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":42,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":42}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":42,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":42}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -324,117 +324,131 @@ extends
    MediaMetadata.Builder +setIsBrowsable​(Boolean isBrowsable) + +
    Sets whether the media is a browsable folder.
    + + + +MediaMetadata.Builder setIsPlayable​(Boolean isPlayable)
    Sets whether the media is playable.
    - + +MediaMetadata.Builder +setMediaType​(@MediaType Integer mediaType) + + + + + MediaMetadata.Builder setOverallRating​(Rating overallRating)
    Sets the overall Rating.
    - + MediaMetadata.Builder setRecordingDay​(Integer recordingDay)
    Sets the day of the recording date.
    - + MediaMetadata.Builder setRecordingMonth​(Integer recordingMonth)
    Sets the month of the recording date.
    - + MediaMetadata.Builder setRecordingYear​(Integer recordingYear)
    Sets the year of the recording date.
    - + MediaMetadata.Builder setReleaseDay​(Integer releaseDay)
    Sets the day of the release date.
    - + MediaMetadata.Builder setReleaseMonth​(Integer releaseMonth)
    Sets the month of the release date.
    - + MediaMetadata.Builder setReleaseYear​(Integer releaseYear)
    Sets the year of the release date.
    - + MediaMetadata.Builder setStation​(CharSequence station)
    Sets the name of the station streaming the media.
    - + MediaMetadata.Builder setSubtitle​(CharSequence subtitle)
    Sets the subtitle.
    - + MediaMetadata.Builder setTitle​(CharSequence title)
    Sets the title.
    - + MediaMetadata.Builder setTotalDiscCount​(Integer totalDiscCount)
    Sets the total number of discs.
    - + MediaMetadata.Builder setTotalTrackCount​(Integer totalTrackCount)
    Sets the total number of tracks.
    - + MediaMetadata.Builder setTrackNumber​(Integer trackNumber)
    Sets the track number.
    - + MediaMetadata.Builder setUserRating​(Rating userRating)
    Sets the user Rating.
    - + MediaMetadata.Builder setWriter​(CharSequence writer)
    Sets the writer.
    - + MediaMetadata.Builder setYear​(Integer year) @@ -687,7 +701,22 @@ public @CanIgnoreReturnValue public MediaMetadata.Builder setFolderType​(@Nullable @FolderType @FolderType Integer folderType) - +
    Sets the MediaMetadata.FolderType. + +

    This method will be deprecated. Use setIsBrowsable(java.lang.Boolean) to indicate if an item is a + browsable folder and use setMediaType(java.lang.Integer) to indicate the type of the folder.

    + + + + + +
      +
    • +

      setIsBrowsable

      +
      @CanIgnoreReturnValue
      +public MediaMetadata.Builder setIsBrowsable​(@Nullable
      +                                            Boolean isBrowsable)
      +
      Sets whether the media is a browsable folder.
    @@ -893,6 +922,18 @@ public Sets the name of the station streaming the media. + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html index c555f2c606..c46d19187d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html @@ -120,7 +120,10 @@ public static @interface MediaMetadata.FolderType<
    The folder type of the media item.

    This can be used as the type of a browsable bluetooth folder (see section 6.10.2.2 of the Bluetooth - AVRCP 1.6.2).

    + AVRCP 1.6.2). + +

    One of MediaMetadata.FOLDER_TYPE_NONE, MediaMetadata.FOLDER_TYPE_MIXED, MediaMetadata.FOLDER_TYPE_TITLES, + MediaMetadata.FOLDER_TYPE_ALBUMS, MediaMetadata.FOLDER_TYPE_ARTISTS, MediaMetadata.FOLDER_TYPE_GENRES, MediaMetadata.FOLDER_TYPE_PLAYLISTS or MediaMetadata.FOLDER_TYPE_YEARS. diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.MediaType.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.MediaType.html new file mode 100644 index 0000000000..043ee27217 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.MediaType.html @@ -0,0 +1,189 @@ + + + + +MediaMetadata.MediaType (ExoPlayer library) + + + + + + + + + + + + +

    JavaScript is disabled on your browser.
    + +
    + +
    + +
    +
    + +

    Annotation Type MediaMetadata.MediaType

    +
    +
    +
    + +
    +
    +
    + +
    + +
    + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html index 06dab22929..c1f86afb1b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html @@ -120,7 +120,11 @@ public static @interface MediaMetadata.PictureType
    The picture type of the artwork.

    Values sourced from the ID3 v2.4 specification (See section 4.14 of - https://id3.org/id3v2.4.0-frames).

    + https://id3.org/id3v2.4.0-frames). + +

    One of MediaMetadata.PICTURE_TYPE_OTHER, MediaMetadata.PICTURE_TYPE_FILE_ICON, MediaMetadata.PICTURE_TYPE_FILE_ICON_OTHER, MediaMetadata.PICTURE_TYPE_FRONT_COVER, MediaMetadata.PICTURE_TYPE_BACK_COVER, MediaMetadata.PICTURE_TYPE_LEAFLET_PAGE, MediaMetadata.PICTURE_TYPE_MEDIA, + MediaMetadata.PICTURE_TYPE_LEAD_ARTIST_PERFORMER, MediaMetadata.PICTURE_TYPE_ARTIST_PERFORMER, MediaMetadata.PICTURE_TYPE_CONDUCTOR, MediaMetadata.PICTURE_TYPE_BAND_ORCHESTRA, MediaMetadata.PICTURE_TYPE_COMPOSER, + MediaMetadata.PICTURE_TYPE_LYRICIST, MediaMetadata.PICTURE_TYPE_RECORDING_LOCATION, MediaMetadata.PICTURE_TYPE_DURING_RECORDING, MediaMetadata.PICTURE_TYPE_DURING_PERFORMANCE, MediaMetadata.PICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTURE, MediaMetadata.PICTURE_TYPE_A_BRIGHT_COLORED_FISH, MediaMetadata.PICTURE_TYPE_ILLUSTRATION, MediaMetadata.PICTURE_TYPE_BAND_ARTIST_LOGO or MediaMetadata.PICTURE_TYPE_PUBLISHER_STUDIO_LOGO. diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html index 4b7789a4a9..f9204bb3bd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html @@ -173,6 +173,13 @@ implements static interface  +MediaMetadata.MediaType + +

    The type of content described by the media item.
    + + + +static interface  MediaMetadata.PictureType
    The picture type of the artwork.
    @@ -380,9 +387,281 @@ implements Boolean +isBrowsable + +
    Optional boolean to indicate that the media is a browsable folder.
    + + + +Boolean isPlayable -
    Optional boolean for media playability.
    +
    Optional boolean to indicate that the media is playable.
    + + + +static int +MEDIA_TYPE_ALBUM + +
    MediaMetadata.MediaType for a group of items (e.g., music) belonging to an + album.
    + + + +static int +MEDIA_TYPE_ARTIST + +
    MediaMetadata.MediaType for a group of items (e.g., music) from the same + artist.
    + + + +static int +MEDIA_TYPE_AUDIO_BOOK + +
    MediaMetadata.MediaType for a group of items forming an audio book.
    + + + +static int +MEDIA_TYPE_AUDIO_BOOK_CHAPTER + +
    MediaMetadata.MediaType for an audio book chapter.
    + + + +static int +MEDIA_TYPE_FOLDER_ALBUMS + +
    MediaMetadata.MediaType for a folder containing albums.
    + + + +static int +MEDIA_TYPE_FOLDER_ARTISTS + +
    MediaMetadata.MediaType for a folder containing artists.
    + + + +static int +MEDIA_TYPE_FOLDER_AUDIO_BOOKS + +
    MediaMetadata.MediaType for a folder containing audio books.
    + + + +static int +MEDIA_TYPE_FOLDER_GENRES + +
    MediaMetadata.MediaType for a folder containing genres.
    + + + +static int +MEDIA_TYPE_FOLDER_MIXED + +
    MediaMetadata.MediaType for a folder with mixed or undetermined content.
    + + + +static int +MEDIA_TYPE_FOLDER_MOVIES + +
    MediaMetadata.MediaType for a folder containing movies.
    + + + +static int +MEDIA_TYPE_FOLDER_NEWS + +
    MediaMetadata.MediaType for a folder containing news.
    + + + +static int +MEDIA_TYPE_FOLDER_PLAYLISTS + +
    MediaMetadata.MediaType for a folder containing playlists.
    + + + +static int +MEDIA_TYPE_FOLDER_PODCASTS + +
    MediaMetadata.MediaType for a folder containing podcasts.
    + + + +static int +MEDIA_TYPE_FOLDER_RADIO_STATIONS + +
    MediaMetadata.MediaType for a folder containing radio + stations.
    + + + +static int +MEDIA_TYPE_FOLDER_TRAILERS + +
    MediaMetadata.MediaType for a folder containing movie trailers.
    + + + +static int +MEDIA_TYPE_FOLDER_TV_CHANNELS + +
    MediaMetadata.MediaType for a folder containing TV channels.
    + + + +static int +MEDIA_TYPE_FOLDER_TV_SERIES + +
    MediaMetadata.MediaType for a folder containing TV series.
    + + + +static int +MEDIA_TYPE_FOLDER_TV_SHOWS + +
    MediaMetadata.MediaType for a folder containing TV shows.
    + + + +static int +MEDIA_TYPE_FOLDER_VIDEOS + +
    MediaMetadata.MediaType for a folder containing videos.
    + + + +static int +MEDIA_TYPE_FOLDER_YEARS + +
    MediaMetadata.MediaType for a folder containing years.
    + + + +static int +MEDIA_TYPE_GENRE + +
    MediaMetadata.MediaType for a group of items (e.g., music) of the same + genre.
    + + + +static int +MEDIA_TYPE_MIXED + +
    Media of undetermined type or a mix of multiple media types.
    + + + +static int +MEDIA_TYPE_MOVIE + + + + + +static int +MEDIA_TYPE_MUSIC + + + + + +static int +MEDIA_TYPE_NEWS + + + + + +static int +MEDIA_TYPE_PLAYLIST + +
    MediaMetadata.MediaType for a group of items (e.g., music) forming a + playlist.
    + + + +static int +MEDIA_TYPE_PODCAST + +
    MediaMetadata.MediaType for a group of items belonging to a podcast.
    + + + +static int +MEDIA_TYPE_PODCAST_EPISODE + +
    MediaMetadata.MediaType for a podcast episode.
    + + + +static int +MEDIA_TYPE_RADIO_STATION + +
    MediaMetadata.MediaType for a radio station.
    + + + +static int +MEDIA_TYPE_TRAILER + +
    MediaMetadata.MediaType for a movie trailer.
    + + + +static int +MEDIA_TYPE_TV_CHANNEL + +
    MediaMetadata.MediaType for a group of items that are part of a TV channel.
    + + + +static int +MEDIA_TYPE_TV_SEASON + +
    MediaMetadata.MediaType for a group of items that are part of a TV series.
    + + + +static int +MEDIA_TYPE_TV_SERIES + +
    MediaMetadata.MediaType for a group of items that are part of a TV series.
    + + + +static int +MEDIA_TYPE_TV_SHOW + + + + + +static int +MEDIA_TYPE_VIDEO + + + + + +static int +MEDIA_TYPE_YEAR + +
    MediaMetadata.MediaType for a group of items (e.g., music) from the same + year.
    + + + +@MediaType Integer +mediaType + + @@ -670,6 +949,521 @@ implements + + +
      +
    • +

      MEDIA_TYPE_MIXED

      +
      public static final int MEDIA_TYPE_MIXED
      +
      Media of undetermined type or a mix of multiple media types.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1231,7 +2025,21 @@ public final @FolderType public final @FolderType Integer folderType - +
    Optional MediaMetadata.FolderType. + +

    This field will be deprecated. Use isBrowsable to indicate if an item is a + browsable folder and use mediaType to indicate the type of the folder.

    + + + + + +
      +
    • +

      isBrowsable

      +
      @Nullable
      +public final Boolean isBrowsable
      +
      Optional boolean to indicate that the media is a browsable folder.
    @@ -1242,7 +2050,7 @@ public final Boolean isPlayable -
    Optional boolean for media playability.
    +
    Optional boolean to indicate that the media is playable.
    @@ -1421,6 +2229,17 @@ public final Optional name of the station streaming the media. + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/PlaybackException.html b/docs/doc/reference/com/google/android/exoplayer2/PlaybackException.html index 7b1b28921d..29a823975f 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/PlaybackException.html +++ b/docs/doc/reference/com/google/android/exoplayer2/PlaybackException.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":10}; +var data = {"i0":10,"i1":10,"i2":9,"i3":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -570,14 +570,6 @@ implements -protected static String -keyForField​(int field) - -
    Converts the given field number to a string which can be used as a field key when implementing - toBundle() and Bundleable.Creator.
    - - - Bundle toBundle() @@ -1166,7 +1158,7 @@ public final @com.google.android.exoplayer2.PlaybackException.ErrorCode int and Bundleable.Creator.

    Subclasses should obtain their Bundle's field keys by applying a non-negative - offset on this constant and passing the result to keyForField(int). + offset on this constant and passing the result to Util.intToStringMaxRadix(int).

    See Also:
    Constant Field Values
    @@ -1289,7 +1281,7 @@ public boolean errorInfoEquals​(@Nullable - diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html index 95785e88e1..926399528c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html @@ -190,7 +190,7 @@ extends Player.Commands.Builder addAll​(@com.google.android.exoplayer2.Player.Command int... commands) -
    Adds commands.
    +
    Adds commands.
    @@ -204,7 +204,7 @@ extends Player.Commands.Builder addAllCommands() -
    Adds all existing commands.
    +
    Adds all existing commands.
    @@ -233,7 +233,7 @@ extends Player.Commands.Builder removeAll​(@com.google.android.exoplayer2.Player.Command int... commands) -
    Removes commands.
    +
    Removes commands.
    @@ -339,10 +339,10 @@ public @CanIgnoreReturnValue public Player.Commands.Builder addAll​(@Command @com.google.android.exoplayer2.Player.Command int... commands) -
    Adds commands.
    +
    Adds commands.
    Parameters:
    -
    commands - The commands to add.
    +
    commands - The commands to add.
    Returns:
    This builder.
    Throws:
    @@ -361,7 +361,7 @@ public Adds Player.Commands.
    Parameters:
    -
    commands - The set of commands to add.
    +
    commands - The set of commands to add.
    Returns:
    This builder.
    Throws:
    @@ -377,7 +377,7 @@ public @CanIgnoreReturnValue public Player.Commands.Builder addAllCommands() -
    Adds all existing commands.
    +
    Adds all existing commands.
    Returns:
    This builder.
    @@ -437,10 +437,10 @@ public @CanIgnoreReturnValue public Player.Commands.Builder removeAll​(@Command @com.google.android.exoplayer2.Player.Command int... commands) -
    Removes commands.
    +
    Removes commands.
    Parameters:
    -
    commands - The commands to remove.
    +
    commands - The commands to remove.
    Returns:
    This builder.
    Throws:
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html index 4a740da08a..e7bd996928 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html @@ -140,7 +140,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public static final class Player.Commands
     extends Object
     implements Bundleable
    -
    A set of commands. +
    A set of commands.

    Instances are immutable.

    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Events.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Events.html index cbca9d7e72..4bd5727082 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Events.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Events.html @@ -135,7 +135,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public static final class Player.Events
     extends Object
    -
    A set of events.
    +
    A set of events.
    @@ -190,7 +190,7 @@ extends boolean containsAny​(@com.google.android.exoplayer2.Player.Event int... events) -
    Returns whether any of the given events occurred.
    +
    Returns whether any of the given events occurred.
    @@ -251,7 +251,7 @@ extends Creates an instance.
    Parameters:
    -
    flags - The FlagSet containing the events.
    +
    flags - The FlagSet containing the events.
    @@ -290,12 +290,12 @@ extends containsAny
    public boolean containsAny​(@Event
                                @com.google.android.exoplayer2.Player.Event int... events)
    -
    Returns whether any of the given events occurred.
    +
    Returns whether any of the given events occurred.
    Parameters:
    -
    events - The events.
    +
    events - The events.
    Returns:
    -
    Whether any of the events occurred.
    +
    Whether any of the events occurred.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Listener.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Listener.html index d0471f4c52..a42186549a 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Listener.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Listener.html @@ -134,9 +134,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    public static interface Player.Listener
    -
    Listener of all changes in the Player. +
    Listener for changes in a Player. -

    All methods have no-op default implementations to allow selective overrides.

    +

    All methods have no-op default implementations to allow selective overrides. + +

    If the return value of a Player getter changes due to a change in command availability, the corresponding listener + method(s) will be invoked. If the return value of a Player getter does not change + because the corresponding command is not + available, the corresponding listener method will not be invoked.

    @@ -161,7 +166,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default void onAudioAttributesChanged​(AudioAttributes audioAttributes) -
    Called when the audio attributes change.
    +
    Called when the value of Player.getAudioAttributes() changes.
    @@ -183,7 +188,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default void onCues​(CueGroup cueGroup) -
    Called when there is a change in the CueGroup.
    +
    Called when the value of Player.getCurrentCues() changes.
    @@ -207,7 +212,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); onDeviceVolumeChanged​(int volume, boolean muted) -
    Called when the device volume or mute state changes.
    +
    Called when the value of Player.getDeviceVolume() or Player.isDeviceMuted() changes.
    @@ -261,7 +266,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default void onMediaMetadataChanged​(MediaMetadata mediaMetadata) -
    Called when the combined MediaMetadata changes.
    +
    Called when the value of Player.getMediaMetadata() changes.
    @@ -275,7 +280,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default void onPlaybackParametersChanged​(PlaybackParameters playbackParameters) -
    Called when the current playback parameters change.
    +
    Called when the value of Player.getPlaybackParameters() changes.
    @@ -320,7 +325,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default void onPlaylistMetadataChanged​(MediaMetadata mediaMetadata) -
    Called when the playlist MediaMetadata changes.
    +
    Called when the value of Player.getPlaylistMetadata() changes.
    @@ -415,14 +420,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); onTimelineChanged​(Timeline timeline, @com.google.android.exoplayer2.Player.TimelineChangeReason int reason) -
    Called when the timeline has been refreshed.
    +
    Called when the value of Player.getCurrentTimeline() changes.
    default void onTracksChanged​(Tracks tracks) -
    Called when the tracks change.
    +
    Called when the value of Player.getCurrentTracks() changes.
    @@ -443,7 +448,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default void onVolumeChanged​(float volume) -
    Called when the volume changes.
    +
    Called when the value of Player.getVolume() changes.
    @@ -476,8 +481,6 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    State changes and events that happen within one Looper message queue iteration are reported together and only after all individual callbacks were triggered. -

    Only state changes represented by events are reported through this method. -

    Listeners should prefer this method over individual callbacks in the following cases:

      @@ -510,7 +513,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      default void onTimelineChanged​(Timeline timeline,
                                      @TimelineChangeReason
                                      @com.google.android.exoplayer2.Player.TimelineChangeReason int reason)
      -
      Called when the timeline has been refreshed. +
      Called when the value of Player.getCurrentTimeline() changes.

      Note that the current MediaItem or playback position may change as a result of a timeline change. If playback can't continue smoothly because of this timeline change, a @@ -539,8 +542,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

      Called when playback transitions to a media item or starts repeating a media item according to the current repeat mode. -

      Note that this callback is also called when the playlist becomes non-empty or empty as a - consequence of a playlist change. +

      Note that this callback is also called when the value of Player.getCurrentTimeline() + becomes non-empty or empty.

      onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

      @@ -558,7 +561,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • onTracksChanged

      default void onTracksChanged​(Tracks tracks)
      -
      Called when the tracks change. +
      Called when the value of Player.getCurrentTracks() changes.

      onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

      @@ -575,11 +578,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • onMediaMetadataChanged

      default void onMediaMetadataChanged​(MediaMetadata mediaMetadata)
      -
      Called when the combined MediaMetadata changes. - -

      The provided MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and - any timed metadata that has been parsed from the media and output via onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, it will be prioritised above the same field coming from static or - timed metadata. +

      Called when the value of Player.getMediaMetadata() changes.

      This method may be called multiple times in quick succession. @@ -598,7 +597,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    • onPlaylistMetadataChanged

      default void onPlaylistMetadataChanged​(MediaMetadata mediaMetadata)
      -
      Called when the playlist MediaMetadata changes. +
      Called when the value of Player.getPlaylistMetadata() changes.

      onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

      @@ -698,7 +697,7 @@ default void onPlayerStateChanged​(boolean playWhenReady, other events that happen in the same Looper message queue iteration.
      Parameters:
      -
      playbackState - The new playback state.
      +
      playbackState - The new playback Player.State.
    @@ -718,7 +717,7 @@ default void onPlayerStateChanged​(boolean playWhenReady,
    Parameters:
    playWhenReady - Whether playback will proceed when ready.
    -
    reason - The reason for the change.
    +
    reason - The Player.PlayWhenReadyChangeReason for the change.
    @@ -788,7 +787,7 @@ default void onPlayerStateChanged​(boolean playWhenReady, other events that happen in the same Looper message queue iteration.
    Parameters:
    -
    shuffleModeEnabled - Whether shuffling of media items is enabled.
    +
    shuffleModeEnabled - Whether shuffling of media items is enabled.
    @@ -881,10 +880,10 @@ default void onPositionDiscontinuity​(

    onPlaybackParametersChanged

    default void onPlaybackParametersChanged​(PlaybackParameters playbackParameters)
    -
    Called when the current playback parameters change. The playback parameters may change due to - a call to Player.setPlaybackParameters(PlaybackParameters), or the player itself may change - them (for example, if audio playback switches to passthrough or offload mode, where speed - adjustment is no longer possible). +
    Called when the value of Player.getPlaybackParameters() changes. The playback parameters + may change due to a call to Player.setPlaybackParameters(PlaybackParameters), or the player + itself may change them (for example, if audio playback switches to passthrough or offload + mode, where speed adjustment is no longer possible).

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -983,7 +982,7 @@ default void onSeekProcessed()
  • onAudioAttributesChanged

    default void onAudioAttributesChanged​(AudioAttributes audioAttributes)
    -
    Called when the audio attributes change. +
    Called when the value of Player.getAudioAttributes() changes.

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -1000,7 +999,7 @@ default void onSeekProcessed()
  • onVolumeChanged

    default void onVolumeChanged​(float volume)
    -
    Called when the volume changes. +
    Called when the value of Player.getVolume() changes.

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -1052,7 +1051,7 @@ default void onSeekProcessed()

    onDeviceVolumeChanged

    default void onDeviceVolumeChanged​(int volume,
                                        boolean muted)
    -
    Called when the device volume or mute state changes. +
    Called when the value of Player.getDeviceVolume() or Player.isDeviceMuted() changes.

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -1127,10 +1126,10 @@ default void onCues​(Deprecated.
    -
    Called when there is a change in the Cues. +
    Called when the value of Player.getCurrentCues() changes. -

    Both onCues(List) and onCues(CueGroup) are called when there is a change - in the cues. You should only implement one or the other. +

    Both this method and onCues(CueGroup) are called when there is a change in the + cues. You should only implement one or the other.

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -1143,10 +1142,10 @@ default void onCues​(

    onCues

    default void onCues​(CueGroup cueGroup)
    -
    Called when there is a change in the CueGroup. +
    Called when the value of Player.getCurrentCues() changes. -

    Both onCues(List) and onCues(CueGroup) are called when there is a change - in the cues. You should only implement one or the other. +

    Both this method and onCues(List) are called when there is a change in the cues. + You should only implement one or the other.

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html b/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html index 14ab0b9589..52221c6526 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -339,6 +339,15 @@ implements Returns a Bundle representing the information stored in this object.
    + +Bundle +toBundle​(boolean canAccessCurrentMediaItem, + boolean canAccessTimeline) + +
    Returns a Bundle representing the information stored in this object, filtered by + available commands.
    + +
  • + + + +
      +
    • +

      toBundle

      +
      public Bundle toBundle​(boolean canAccessCurrentMediaItem,
      +                       boolean canAccessTimeline)
      +
      Returns a Bundle representing the information stored in this object, filtered by + available commands.
      +
      +
      Parameters:
      +
      canAccessCurrentMediaItem - Whether the Bundle should contain information + accessbile with Player.COMMAND_GET_CURRENT_MEDIA_ITEM.
      +
      canAccessTimeline - Whether the Bundle should contain information accessbile + with Player.COMMAND_GET_TIMELINE.
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.html b/docs/doc/reference/com/google/android/exoplayer2/Player.html index eaca85fcb0..3e52a33c9a 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.html @@ -133,6 +133,10 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    A media player interface defining traditional high-level functionality, such as the ability to play, pause, seek and query properties of the currently playing media. +

    All methods must be called from a single application + thread unless indicated otherwise. Callbacks in registered listeners are called on the same + thread. +

    This interface includes some convenience methods that can be implemented by calling other methods in the interface. BasePlayer implements these convenience methods so inheriting BasePlayer is recommended when implementing the interface so that only the minimal set of @@ -170,14 +174,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static interface  Player.Command -

    Commands that can be executed on a Player.
    +
    Commands that indicate which method calls are currently permitted on a particular + Player instance.
    static class  Player.Commands -
    A set of commands.
    +
    A set of commands.
    @@ -198,14 +203,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static class  Player.Events -
    A set of events.
    +
    A set of events.
    static interface  Player.Listener -
    Listener of all changes in the Player.
    +
    Listener for changes in a Player.
    @@ -286,7 +291,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_CHANGE_MEDIA_ITEMS -
    Command to change the MediaItems in the playlist.
    +
    Command to change the media items in the playlist.
    @@ -300,7 +305,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_GET_CURRENT_MEDIA_ITEM -
    Command to get the currently playing MediaItem.
    +
    Command to get information about the currently playing MediaItem.
    @@ -314,7 +319,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_GET_MEDIA_ITEMS_METADATA -
    Command to get the MediaItems metadata.
    +
    Command to get metadata related to the playlist and current MediaItem.
    @@ -370,21 +375,21 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_SEEK_BACK -
    Command to seek back by a fixed increment into the current MediaItem.
    +
    Command to seek back by a fixed increment inside the current MediaItem.
    static int COMMAND_SEEK_FORWARD -
    Command to seek forward by a fixed increment into the current MediaItem.
    +
    Command to seek forward by a fixed increment inside the current MediaItem.
    static int COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM -
    Command to seek anywhere into the current MediaItem.
    +
    Command to seek anywhere inside the current MediaItem.
    @@ -414,7 +419,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_SEEK_TO_NEXT -
    Command to seek to a later position in the current or next MediaItem.
    +
    Command to seek to a later position in the current MediaItem or the default position of + the next MediaItem.
    @@ -437,7 +443,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_SEEK_TO_PREVIOUS -
    Command to seek to an earlier position in the current or previous MediaItem.
    +
    Command to seek to an earlier position in the current MediaItem or the default position + of the previous MediaItem.
    @@ -469,7 +476,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_SET_DEVICE_VOLUME -
    Command to set the device volume and mute it.
    +
    Command to set the device volume.
    @@ -483,7 +490,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_SET_MEDIA_ITEMS_METADATA -
    Command to set the MediaItems metadata.
    +
    Command to set the playlist metadata.
    @@ -532,7 +539,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_STOP -
    Command to stop playback or release the player.
    +
    Command to stop playback.
    @@ -1243,7 +1250,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); int getMediaItemCount() -
    Returns the number of media items in the playlist.
    +
    Returns the number of media items in the playlist.
    @@ -1282,7 +1289,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); @com.google.android.exoplayer2.Player.State int getPlaybackState() -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    @@ -1757,8 +1764,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); void setMediaItems​(List<MediaItem> mediaItems) -
    Clears the playlist, adds the specified MediaItems and resets the position to - the default position.
    +
    Clears the playlist, adds the specified media items and resets the + position to the default position.
    @@ -1766,7 +1773,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition) -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items.
    @@ -1775,7 +1782,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); int startIndex, long startPositionMs) -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items.
    @@ -2729,7 +2736,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • COMMAND_PLAY_PAUSE

    static final int COMMAND_PLAY_PAUSE
    -
    Command to start, pause or resume playback.
    +
    Command to start, pause or resume playback. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -2743,7 +2758,9 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • COMMAND_PREPARE

    static final int COMMAND_PREPARE
    -
    Command to prepare the player.
    +
    Command to prepare the player. + +

    The prepare() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2757,7 +2774,9 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • COMMAND_STOP

    static final int COMMAND_STOP
    -
    Command to stop playback or release the player.
    +
    Command to stop playback. + +

    The stop() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2771,7 +2790,10 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • COMMAND_SEEK_TO_DEFAULT_POSITION

    static final int COMMAND_SEEK_TO_DEFAULT_POSITION
    -
    Command to seek to the default position of the current MediaItem.
    +
    Command to seek to the default position of the current MediaItem. + +

    The seekToDefaultPosition() method must only be called if this command is + available.

    See Also:
    Constant Field Values
    @@ -2785,7 +2807,9 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM

    static final int COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM
    -
    Command to seek anywhere into the current MediaItem.
    +
    Command to seek anywhere inside the current MediaItem. + +

    The seekTo(long) method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2816,7 +2840,10 @@ static final int COMMAND_SEEK_IN_CURRENT_WINDOW
  • COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM

    static final int COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM
    -
    Command to seek to the default position of the previous MediaItem.
    +
    Command to seek to the default position of the previous MediaItem. + +

    The seekToPreviousMediaItem() method must only be called if this command is + available.

    See Also:
    Constant Field Values
    @@ -2847,7 +2874,10 @@ static final int COMMAND_SEEK_TO_PREVIOUS_WINDOW
  • COMMAND_SEEK_TO_PREVIOUS

    static final int COMMAND_SEEK_TO_PREVIOUS
    -
    Command to seek to an earlier position in the current or previous MediaItem.
    +
    Command to seek to an earlier position in the current MediaItem or the default position + of the previous MediaItem. + +

    The seekToPrevious() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2861,7 +2891,9 @@ static final int COMMAND_SEEK_TO_PREVIOUS_WINDOW
  • COMMAND_SEEK_TO_NEXT_MEDIA_ITEM

    static final int COMMAND_SEEK_TO_NEXT_MEDIA_ITEM
    -
    Command to seek to the default position of the next MediaItem.
    +
    Command to seek to the default position of the next MediaItem. + +

    The seekToNextMediaItem() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2892,7 +2924,10 @@ static final int COMMAND_SEEK_TO_NEXT_WINDOW
  • COMMAND_SEEK_TO_NEXT

    static final int COMMAND_SEEK_TO_NEXT
    -
    Command to seek to a later position in the current or next MediaItem.
    +
    Command to seek to a later position in the current MediaItem or the default position of + the next MediaItem. + +

    The seekToNext() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2906,7 +2941,14 @@ static final int COMMAND_SEEK_TO_NEXT_WINDOW
  • COMMAND_SEEK_TO_MEDIA_ITEM

    static final int COMMAND_SEEK_TO_MEDIA_ITEM
    -
    Command to seek anywhere in any MediaItem.
    +
    Command to seek anywhere in any MediaItem. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -2937,7 +2979,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SEEK_BACK

    static final int COMMAND_SEEK_BACK
    -
    Command to seek back by a fixed increment into the current MediaItem.
    +
    Command to seek back by a fixed increment inside the current MediaItem. + +

    The seekBack() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2951,7 +2995,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SEEK_FORWARD

    static final int COMMAND_SEEK_FORWARD
    -
    Command to seek forward by a fixed increment into the current MediaItem.
    +
    Command to seek forward by a fixed increment inside the current MediaItem. + +

    The seekForward() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -2965,7 +3011,14 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_SPEED_AND_PITCH

    static final int COMMAND_SET_SPEED_AND_PITCH
    -
    Command to set the playback speed and pitch.
    +
    Command to set the playback speed and pitch. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -2979,7 +3032,10 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_SHUFFLE_MODE

    static final int COMMAND_SET_SHUFFLE_MODE
    -
    Command to enable shuffling.
    +
    Command to enable shuffling. + +

    The setShuffleModeEnabled(boolean) method must only be called if this command is + available.

    See Also:
    Constant Field Values
    @@ -2993,7 +3049,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_REPEAT_MODE

    static final int COMMAND_SET_REPEAT_MODE
    -
    Command to set the repeat mode.
    +
    Command to set the repeat mode. + +

    The setRepeatMode(int) method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3007,7 +3065,27 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_CURRENT_MEDIA_ITEM

    static final int COMMAND_GET_CURRENT_MEDIA_ITEM
    -
    Command to get the currently playing MediaItem.
    +
    See Also:
    Constant Field Values
    @@ -3021,7 +3099,21 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_TIMELINE

    static final int COMMAND_GET_TIMELINE
    -
    Command to get the information about the current timeline.
    +
    Command to get the information about the current timeline. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -3035,7 +3127,14 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_MEDIA_ITEMS_METADATA

    static final int COMMAND_GET_MEDIA_ITEMS_METADATA
    -
    Command to get the MediaItems metadata.
    +
    Command to get metadata related to the playlist and current MediaItem. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -3049,7 +3148,10 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_MEDIA_ITEMS_METADATA

    static final int COMMAND_SET_MEDIA_ITEMS_METADATA
    -
    Command to set the MediaItems metadata.
    +
    Command to set the playlist metadata. + +

    The setPlaylistMetadata(MediaMetadata) method must only be called if this command + is available.

    See Also:
    Constant Field Values
    @@ -3063,7 +3165,15 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_MEDIA_ITEM

    static final int COMMAND_SET_MEDIA_ITEM
    -
    Command to set a MediaItem.
    +
    Command to set a MediaItem. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -3077,7 +3187,24 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_CHANGE_MEDIA_ITEMS

    static final int COMMAND_CHANGE_MEDIA_ITEMS
    -
    Command to change the MediaItems in the playlist.
    +
    See Also:
    Constant Field Values
    @@ -3091,7 +3218,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_AUDIO_ATTRIBUTES

    static final int COMMAND_GET_AUDIO_ATTRIBUTES
    -
    Command to get the player current AudioAttributes.
    +
    Command to get the player current AudioAttributes. + +

    The getAudioAttributes() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3105,7 +3234,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_VOLUME

    static final int COMMAND_GET_VOLUME
    -
    Command to get the player volume.
    +
    Command to get the player volume. + +

    The getVolume() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3119,7 +3250,14 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_DEVICE_VOLUME

    static final int COMMAND_GET_DEVICE_VOLUME
    -
    Command to get the device volume and whether it is muted.
    +
    Command to get the device volume and whether it is muted. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -3133,7 +3271,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_VOLUME

    static final int COMMAND_SET_VOLUME
    -
    Command to set the player volume.
    +
    Command to set the player volume. + +

    The setVolume(float) method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3147,7 +3287,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_DEVICE_VOLUME

    static final int COMMAND_SET_DEVICE_VOLUME
    -
    Command to set the device volume and mute it.
    +
    Command to set the device volume. + +

    The setDeviceVolume(int) method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3161,7 +3303,15 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_ADJUST_DEVICE_VOLUME

    static final int COMMAND_ADJUST_DEVICE_VOLUME
    -
    Command to increase and decrease the device volume and mute it.
    +
    Command to increase and decrease the device volume and mute it. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -3175,7 +3325,19 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_VIDEO_SURFACE

    static final int COMMAND_SET_VIDEO_SURFACE
    -
    Command to set and clear the surface on which to render the video.
    +
    Command to set and clear the surface on which to render the video. + +

    The following methods must only be called if this command is available: + +

    See Also:
    Constant Field Values
    @@ -3189,7 +3351,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_TEXT

    static final int COMMAND_GET_TEXT
    -
    Command to get the text that should currently be displayed by the player.
    +
    Command to get the text that should currently be displayed by the player. + +

    The getCurrentCues() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3203,7 +3367,10 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_SET_TRACK_SELECTION_PARAMETERS

    static final int COMMAND_SET_TRACK_SELECTION_PARAMETERS
    -
    Command to set the player's track selection parameters.
    +
    Command to set the player's track selection parameters. + +

    The setTrackSelectionParameters(TrackSelectionParameters) method must only be + called if this command is available.

    See Also:
    Constant Field Values
    @@ -3217,7 +3384,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • COMMAND_GET_TRACKS

    static final int COMMAND_GET_TRACKS
    -
    Command to get details of the current track selection.
    +
    Command to get details of the current track selection. + +

    The getCurrentTracks() method must only be called if this command is available.

    See Also:
    Constant Field Values
    @@ -3256,7 +3425,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    getApplicationLooper

    Looper getApplicationLooper()
    Returns the Looper associated with the application thread that's used to access the - player and on which player events are received.
    + player and on which player events are received. + +

    This method can be called from any thread.

  • @@ -3268,7 +3439,9 @@ static final int COMMAND_SEEK_TO_WINDOW
    void addListener​(Player.Listener listener)
    Registers a listener to receive all events from the player. -

    The listener's methods will be called on the thread associated with getApplicationLooper().

    +

    The listener's methods will be called on the thread associated with getApplicationLooper(). + +

    This method can be called from any thread.

    Parameters:
    listener - The listener to register.
    @@ -3297,11 +3470,13 @@ static final int COMMAND_SEEK_TO_WINDOW
  • setMediaItems

    void setMediaItems​(List<MediaItem> mediaItems)
    -
    Clears the playlist, adds the specified MediaItems and resets the position to - the default position.
    +
    Clears the playlist, adds the specified media items and resets the + position to the default position. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
  • @@ -3313,10 +3488,12 @@ static final int COMMAND_SEEK_TO_WINDOW

    setMediaItems

    void setMediaItems​(List<MediaItem> mediaItems,
                        boolean resetPosition)
    -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by getCurrentMediaItemIndex() and getCurrentPosition().
    @@ -3332,10 +3509,12 @@ static final int COMMAND_SEEK_TO_WINDOW
    void setMediaItems​(List<MediaItem> mediaItems,
                        int startIndex,
                        long startPositionMs)
    -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In @@ -3355,7 +3534,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    setMediaItem

    void setMediaItem​(MediaItem mediaItem)
    Clears the playlist, adds the specified MediaItem and resets the position to the - default position.
    + default position. + +

    This method must only be called if COMMAND_SET_MEDIA_ITEM is available.

    Parameters:
    mediaItem - The new MediaItem.
    @@ -3370,7 +3551,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    setMediaItem

    void setMediaItem​(MediaItem mediaItem,
                       long startPositionMs)
    -
    Clears the playlist and adds the specified MediaItem.
    +
    Clears the playlist and adds the specified MediaItem. + +

    This method must only be called if COMMAND_SET_MEDIA_ITEM is available.

    Parameters:
    mediaItem - The new MediaItem.
    @@ -3386,7 +3569,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    setMediaItem

    void setMediaItem​(MediaItem mediaItem,
                       boolean resetPosition)
    -
    Clears the playlist and adds the specified MediaItem.
    +
    Clears the playlist and adds the specified MediaItem. + +

    This method must only be called if COMMAND_SET_MEDIA_ITEM is available.

    Parameters:
    mediaItem - The new MediaItem.
    @@ -3403,7 +3588,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • addMediaItem

    void addMediaItem​(MediaItem mediaItem)
    -
    Adds a media item to the end of the playlist.
    +
    Adds a media item to the end of the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    mediaItem - The MediaItem to add.
    @@ -3418,7 +3605,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    addMediaItem

    void addMediaItem​(int index,
                       MediaItem mediaItem)
    -
    Adds a media item at the given index of the playlist.
    +
    Adds a media item at the given index of the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    index - The index at which to add the media item. If the index is larger than the size of @@ -3434,10 +3623,12 @@ static final int COMMAND_SEEK_TO_WINDOW
  • addMediaItems

    void addMediaItems​(List<MediaItem> mediaItems)
    -
    Adds a list of media items to the end of the playlist.
    +
    Adds a list of media items to the end of the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
  • @@ -3449,12 +3640,14 @@ static final int COMMAND_SEEK_TO_WINDOW

    addMediaItems

    void addMediaItems​(int index,
                        List<MediaItem> mediaItems)
    -
    Adds a list of media items at the given index of the playlist.
    +
    Adds a list of media items at the given index of the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
  • @@ -3466,10 +3659,13 @@ static final int COMMAND_SEEK_TO_WINDOW

    moveMediaItem

    void moveMediaItem​(int currentIndex,
                        int newIndex)
    -
    Moves the media item at the current index to the new index.
    +
    Moves the media item at the current index to the new index. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    currentIndex - The current index of the media item to move.
    +
    currentIndex - The current index of the media item to move. If the index is larger than + the size of the playlist, the request is ignored.
    newIndex - The new index of the media item. If the new index is larger than the size of the playlist the item is moved to the end of the playlist.
    @@ -3484,11 +3680,15 @@ static final int COMMAND_SEEK_TO_WINDOW
    void moveMediaItems​(int fromIndex,
                         int toIndex,
                         int newIndex)
    -
    Moves the media item range to the new index.
    +
    Moves the media item range to the new index. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The start of the range to move.
    -
    toIndex - The first item not to be included in the range (exclusive).
    +
    fromIndex - The start of the range to move. If the index is larger than the size of the + playlist, the request is ignored.
    +
    toIndex - The first item not to be included in the range (exclusive). If the index is + larger than the size of the playlist, items up to the end of the playlist are moved.
    newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
    @@ -3502,10 +3702,13 @@ static final int COMMAND_SEEK_TO_WINDOW
  • removeMediaItem

    void removeMediaItem​(int index)
    -
    Removes the media item at the given index of the playlist.
    +
    Removes the media item at the given index of the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    index - The index at which to remove the media item.
    +
    index - The index at which to remove the media item. If the index is larger than the size + of the playlist, the request is ignored.
  • @@ -3517,12 +3720,15 @@ static final int COMMAND_SEEK_TO_WINDOW

    removeMediaItems

    void removeMediaItems​(int fromIndex,
                           int toIndex)
    -
    Removes a range of media items from the playlist.
    +
    Removes a range of media items from the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The index at which to start removing media items.
    +
    fromIndex - The index at which to start removing media items. If the index is larger than + the size of the playlist, the request is ignored.
    toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
    + the size of the playlist, media items up to the end of the playlist are removed.
    @@ -3533,7 +3739,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • clearMediaItems

    void clearMediaItems()
    -
    Clears the playlist.
    +
    Clears the playlist. + +

    This method must only be called if COMMAND_CHANGE_MEDIA_ITEMS is available.

  • @@ -3546,13 +3754,7 @@ static final int COMMAND_SEEK_TO_WINDOW @com.google.android.exoplayer2.Player.Command int command)
    Returns whether the provided Player.Command is available. -

    This method does not execute the command. - -

    Executing a command that is not available (for example, calling seekToNextMediaItem() if COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a getPlayerError() player error}. - -

    COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem.

    +

    This method does not execute the command.

    Parameters:
    command - A Player.Command.
    @@ -3583,13 +3785,7 @@ static final int COMMAND_SEEK_TO_WINDOW
    Returns the player's currently available Player.Commands.

    The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands - change. - -

    Executing a command that is not available (for example, calling seekToNextMediaItem() if COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a getPlayerError() player error}. - -

    COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem.

    + change.
    Returns:
    The currently available Player.Commands.
    @@ -3607,6 +3803,8 @@ static final int COMMAND_SEEK_TO_WINDOW
    void prepare()
    Prepares the player. +

    This method must only be called if COMMAND_PREPARE is available. +

    This will move the player out of idle state and the player will start loading media and acquire resources needed for playback.

    @@ -3619,10 +3817,10 @@ static final int COMMAND_SEEK_TO_WINDOW

    getPlaybackState

    @State
     @com.google.android.exoplayer2.Player.State int getPlaybackState()
    -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    Returns:
    -
    The current playback state.
    +
    The current playback state.
    See Also:
    Player.Listener.onPlaybackStateChanged(int)
    @@ -3640,7 +3838,7 @@ static final int COMMAND_SEEK_TO_WINDOW true, or PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    Returns:
    -
    The current playback suppression reason.
    +
    The current Player.PlaybackSuppressionReason.
    See Also:
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -3700,7 +3898,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    play

    void play()
    Resumes playback as soon as getPlaybackState() == STATE_READY. Equivalent to - setPlayWhenReady(true).
    + setPlayWhenReady(true). + +

    This method must only be called if COMMAND_PLAY_PAUSE is available. @@ -3710,7 +3910,9 @@ static final int COMMAND_SEEK_TO_WINDOW

  • pause

    void pause()
    -
    Pauses playback. Equivalent to setPlayWhenReady(false).
    +
  • @@ -3722,7 +3924,9 @@ static final int COMMAND_SEEK_TO_WINDOW
    void setPlayWhenReady​(boolean playWhenReady)
    Sets whether playback should proceed when getPlaybackState() == STATE_READY. -

    If the player is already in the ready state then this method pauses and resumes playback.

    +

    If the player is already in the ready state then this method pauses and resumes playback. + +

    This method must only be called if COMMAND_PLAY_PAUSE is available.

    Parameters:
    playWhenReady - Whether playback should proceed when ready.
    @@ -3753,7 +3957,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    setRepeatMode

    void setRepeatMode​(@RepeatMode
                        @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    -
    Sets the Player.RepeatMode to be used for playback.
    +
    Sets the Player.RepeatMode to be used for playback. + +

    This method must only be called if COMMAND_SET_REPEAT_MODE is available.

    Parameters:
    repeatMode - The repeat mode.
    @@ -3784,7 +3990,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • setShuffleModeEnabled

    void setShuffleModeEnabled​(boolean shuffleModeEnabled)
    -
    Sets whether shuffling of media items is enabled.
    +
    Sets whether shuffling of media items is enabled. + +

    This method must only be called if COMMAND_SET_SHUFFLE_MODE is available.

    Parameters:
    shuffleModeEnabled - Whether shuffling is enabled.
    @@ -3830,7 +4038,9 @@ static final int COMMAND_SEEK_TO_WINDOW
    void seekToDefaultPosition()
    Seeks to the default position associated with the current MediaItem. The position can depend on the type of media being played. For live streams it will typically be the live edge. - For other streams it will typically be the start.
    + For other streams it will typically be the start. + +

    This method must only be called if COMMAND_SEEK_TO_DEFAULT_POSITION is available.

  • @@ -3842,14 +4052,14 @@ static final int COMMAND_SEEK_TO_WINDOW
    void seekToDefaultPosition​(int mediaItemIndex)
    Seeks to the default position associated with the specified MediaItem. The position can depend on the type of media being played. For live streams it will typically be the live edge. - For other streams it will typically be the start.
    + For other streams it will typically be the start. + +

    This method must only be called if COMMAND_SEEK_TO_MEDIA_ITEM is available.

    Parameters:
    mediaItemIndex - The index of the MediaItem whose associated default position - should be seeked to.
    -
    Throws:
    -
    IllegalSeekPositionException - If the player has a non-empty timeline and the provided - mediaItemIndex is not within the bounds of the current timeline.
    + should be seeked to. If the index is larger than the size of the playlist, the request is + ignored.
    @@ -3860,7 +4070,10 @@ static final int COMMAND_SEEK_TO_WINDOW
  • seekTo

    void seekTo​(long positionMs)
    -
    Seeks to a position specified in milliseconds in the current MediaItem.
    +
    Seeks to a position specified in milliseconds in the current MediaItem. + +

    This method must only be called if COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM is + available.

    Parameters:
    positionMs - The seek position in the current MediaItem, or C.TIME_UNSET @@ -3876,15 +4089,15 @@ static final int COMMAND_SEEK_TO_WINDOW

    seekTo

    void seekTo​(int mediaItemIndex,
                 long positionMs)
    -
    Seeks to a position specified in milliseconds in the specified MediaItem.
    +
    Seeks to a position specified in milliseconds in the specified MediaItem. + +

    This method must only be called if COMMAND_SEEK_TO_MEDIA_ITEM is available.

    Parameters:
    -
    mediaItemIndex - The index of the MediaItem.
    +
    mediaItemIndex - The index of the MediaItem. If the index is larger than the size + of the playlist, the request is ignored.
    positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET to seek to the media item's default position.
    -
    Throws:
    -
    IllegalSeekPositionException - If the player has a non-empty timeline and the provided - mediaItemIndex is not within the bounds of the current timeline.
  • @@ -3911,7 +4124,9 @@ static final int COMMAND_SEEK_TO_WINDOW
  • seekBack

    void seekBack()
    -
    Seeks back in the current MediaItem by getSeekBackIncrement() milliseconds.
    +
    Seeks back in the current MediaItem by getSeekBackIncrement() milliseconds. + +

    This method must only be called if COMMAND_SEEK_BACK is available.

  • @@ -3938,7 +4153,9 @@ static final int COMMAND_SEEK_TO_WINDOW

    seekForward

    void seekForward()
    + milliseconds. + +

    This method must only be called if COMMAND_SEEK_FORWARD is available. @@ -3979,7 +4196,9 @@ boolean hasPreviousWindow()

    Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is REPEAT_MODE_OFF. See REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if COMMAND_GET_TIMELINE is available. @@ -4020,7 +4239,10 @@ void seekToPreviousWindow()

    Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is REPEAT_MODE_OFF. See REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM is + available. @@ -4060,7 +4282,9 @@ void seekToPreviousWindow()

  • Otherwise, if a previous media item exists and the current position is less than getMaxSeekToPreviousPosition(), seeks to the default position of the previous MediaItem.
  • Otherwise, seeks to 0 in the current MediaItem. - + + +

    This method must only be called if COMMAND_SEEK_TO_PREVIOUS is available.

  • @@ -4101,7 +4325,9 @@ boolean hasNextWindow()

    Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is REPEAT_MODE_OFF. See REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if COMMAND_GET_TIMELINE is available. @@ -4143,7 +4369,9 @@ void seekToNextWindow()

    Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is REPEAT_MODE_OFF. See REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is available. @@ -4163,7 +4391,9 @@ void seekToNextWindow()

  • Otherwise, if the current MediaItem is live and has not ended, seeks to the live edge of the current MediaItem.
  • Otherwise, does nothing. - + + +

    This method must only be called if COMMAND_SEEK_TO_NEXT is available.

  • @@ -4177,7 +4407,9 @@ void seekToNextWindow() player to the default, which means there is no speed or pitch adjustment.

    Playback parameters changes may cause the player to buffer. Player.Listener.onPlaybackParametersChanged(PlaybackParameters) will be called whenever the currently - active playback parameters change. + active playback parameters change. + +

    This method must only be called if COMMAND_SET_SPEED_AND_PITCH is available.

    Parameters:
    playbackParameters - The playback parameters.
    @@ -4195,11 +4427,13 @@ void seekToNextWindow()
    Changes the rate at which playback occurs. The pitch is not changed.

    This is equivalent to - setPlaybackParameters(getPlaybackParameters().withSpeed(speed)).

    + setPlaybackParameters(getPlaybackParameters().withSpeed(speed)). + +

    This method must only be called if COMMAND_SET_SPEED_AND_PITCH is available.

    Parameters:
    speed - The linear factor by which playback will be sped up. Must be higher than 0. 1 is - normal speed, 2 is twice as fast, 0.5 is half normal speed...
    + normal speed, 2 is twice as fast, 0.5 is half normal speed.
    @@ -4233,7 +4467,9 @@ void seekToNextWindow() still be called on the player if it's no longer required.

    Calling this method does not clear the playlist, reset the playback position or the playback - error. + error. + +

    This method must only be called if COMMAND_STOP is available. @@ -4269,7 +4505,9 @@ void stop​(boolean reset)

  • getCurrentTracks

    Tracks getCurrentTracks()
    -
    Returns the current tracks.
    +
    Returns the current tracks. + +

    This method must only be called if COMMAND_GET_TRACKS is available.

    See Also:
    Player.Listener.onTracksChanged(Tracks)
    @@ -4311,7 +4549,10 @@ void stop​(boolean reset) .buildUpon() .setMaxVideoSizeSd() .build()) - + + +

    This method must only be called if COMMAND_SET_TRACK_SELECTION_PARAMETERS is + available.

  • @@ -4327,7 +4568,9 @@ void stop​(boolean reset)

    This MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and any timed metadata that has been parsed from the media and output via Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, - it will be prioritised above the same field coming from static or timed metadata. + it will be prioritised above the same field coming from static or timed metadata. + +

    This method must only be called if COMMAND_GET_MEDIA_ITEMS_METADATA is available. @@ -4337,7 +4580,9 @@ void stop​(boolean reset)

  • getPlaylistMetadata

    MediaMetadata getPlaylistMetadata()
    -
    Returns the playlist MediaMetadata, as set by setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    +
    Returns the playlist MediaMetadata, as set by setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported. + +

    This method must only be called if COMMAND_GET_MEDIA_ITEMS_METADATA is available.

  • @@ -4347,7 +4592,9 @@ void stop​(boolean reset)
  • setPlaylistMetadata

    void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    -
    Sets the playlist MediaMetadata.
    +
    Sets the playlist MediaMetadata. + +

    This method must only be called if COMMAND_SET_MEDIA_ITEMS_METADATA is available.

  • @@ -4368,7 +4615,9 @@ void stop​(boolean reset)
  • getCurrentTimeline

    Timeline getCurrentTimeline()
    -
    Returns the current Timeline. Never null, but may be empty.
    +
    Returns the current Timeline. Never null, but may be empty. + +

    This method must only be called if COMMAND_GET_TIMELINE is available.

    See Also:
    Player.Listener.onTimelineChanged(Timeline, int)
    @@ -4382,7 +4631,9 @@ void stop​(boolean reset)
  • getCurrentPeriodIndex

    int getCurrentPeriodIndex()
    -
    Returns the index of the period currently being played.
    +
    Returns the index of the period currently being played. + +

    This method must only be called if COMMAND_GET_TIMELINE is available.

  • @@ -4406,7 +4657,9 @@ int getCurrentWindowIndex()

    getCurrentMediaItemIndex

    int getCurrentMediaItemIndex()
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is - empty.
    + empty. + +

    This method must only be called if COMMAND_GET_TIMELINE is available.

  • @@ -4435,7 +4688,9 @@ int getNextWindowIndex()

    Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is REPEAT_MODE_OFF. See REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if COMMAND_GET_TIMELINE is available. @@ -4464,7 +4719,9 @@ int getPreviousWindowIndex()

    Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when the current repeat mode is REPEAT_MODE_OFF. See REPEAT_MODE_ONE for more - details. + details. + +

    This method must only be called if COMMAND_GET_TIMELINE is available. @@ -4475,7 +4732,9 @@ int getPreviousWindowIndex()

    getCurrentMediaItem

    @Nullable
     MediaItem getCurrentMediaItem()
    -
    Returns the currently playing MediaItem. May be null if the timeline is empty.
    +
    Returns the currently playing MediaItem. May be null if the timeline is empty. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    See Also:
    Player.Listener.onMediaItemTransition(MediaItem, int)
    @@ -4489,7 +4748,9 @@ int getPreviousWindowIndex()
  • getMediaItemCount

    int getMediaItemCount()
    -
    Returns the number of media items in the playlist.
    +
    Returns the number of media items in the playlist. + +

    This method must only be called if COMMAND_GET_TIMELINE is available.

  • @@ -4499,7 +4760,9 @@ int getPreviousWindowIndex()
  • getMediaItemAt

    MediaItem getMediaItemAt​(int index)
    -
    Returns the MediaItem at the given index.
    +
    Returns the MediaItem at the given index. + +

    This method must only be called if COMMAND_GET_TIMELINE is available.

  • @@ -4510,7 +4773,9 @@ int getPreviousWindowIndex()

    getDuration

    long getDuration()
    + the duration is not known. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4521,7 +4786,9 @@ int getPreviousWindowIndex()

    getCurrentPosition

    long getCurrentPosition()
    + position in milliseconds if the current timeline is empty. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4532,7 +4799,9 @@ int getPreviousWindowIndex()

    getBufferedPosition

    long getBufferedPosition()
    Returns an estimate of the position in the current content or ad up to which data is buffered, - in milliseconds.
    + in milliseconds. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4556,7 +4825,9 @@ int getBufferedPercentage()

    getTotalBufferedDuration

    long getTotalBufferedDuration()
    + This includes pre-buffered data for subsequent ads and media items. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4580,7 +4851,9 @@ boolean isCurrentWindowDynamic()

    isCurrentMediaItemDynamic

    boolean isCurrentMediaItemDynamic()
    Returns whether the current MediaItem is dynamic (may change when the Timeline - is updated), or false if the Timeline is empty.
    + is updated), or false if the Timeline is empty. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    See Also:
    Timeline.Window.isDynamic
    @@ -4608,7 +4881,9 @@ boolean isCurrentWindowLive()

    isCurrentMediaItemLive

    boolean isCurrentMediaItemLive()
    Returns whether the current MediaItem is live, or false if the Timeline - is empty.
    + is empty. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    See Also:
    Timeline.Window.isLive()
    @@ -4630,7 +4905,9 @@ boolean isCurrentWindowLive() positive.

    Note that this offset may rely on an accurate local time, so this method may return an - incorrect value if the difference between system clock and server clock is unknown. + incorrect value if the difference between system clock and server clock is unknown. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4653,7 +4930,9 @@ boolean isCurrentWindowSeekable()

  • isCurrentMediaItemSeekable

    boolean isCurrentMediaItemSeekable()
    -
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty.
    +
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    See Also:
    Timeline.Window.isSeekable
    @@ -4667,7 +4946,9 @@ boolean isCurrentWindowSeekable()
  • isPlayingAd

    boolean isPlayingAd()
    -
    Returns whether the player is currently playing an ad.
    +
    Returns whether the player is currently playing an ad. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available.

  • @@ -4678,7 +4959,9 @@ boolean isCurrentWindowSeekable()

    getCurrentAdGroupIndex

    int getCurrentAdGroupIndex()
    If isPlayingAd() returns true, returns the index of the ad group in the period - currently being played. Returns C.INDEX_UNSET otherwise.
    + currently being played. Returns C.INDEX_UNSET otherwise. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available.

  • @@ -4689,7 +4972,9 @@ boolean isCurrentWindowSeekable()

    getCurrentAdIndexInAdGroup

    int getCurrentAdIndexInAdGroup()
    If isPlayingAd() returns true, returns the index of the ad in its ad group. Returns - C.INDEX_UNSET otherwise.
    + C.INDEX_UNSET otherwise. + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4701,7 +4986,9 @@ boolean isCurrentWindowSeekable()

    long getContentDuration()
    If isPlayingAd() returns true, returns the duration of the current content in milliseconds, or C.TIME_UNSET if the duration is not known. If there is no ad playing, - the returned duration is the same as that returned by getDuration().
    + the returned duration is the same as that returned by getDuration(). + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4713,7 +5000,9 @@ boolean isCurrentWindowSeekable()

    long getContentPosition()
    If isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by getCurrentPosition().
    + playing, the returned position is the same as that returned by getCurrentPosition(). + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4725,7 +5014,9 @@ boolean isCurrentWindowSeekable()

    long getContentBufferedPosition()
    If isPlayingAd() returns true, returns an estimate of the content position in the current content up to which data is buffered, in milliseconds. If there is no ad playing, - the returned position is the same as that returned by getBufferedPosition().
    + the returned position is the same as that returned by getBufferedPosition(). + +

    This method must only be called if COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -4735,7 +5026,9 @@ boolean isCurrentWindowSeekable()

  • getAudioAttributes

    AudioAttributes getAudioAttributes()
    -
    Returns the attributes for audio playback.
    +
    Returns the attributes for audio playback. + +

    This method must only be called if COMMAND_GET_AUDIO_ATTRIBUTES is available.

  • @@ -4747,7 +5040,9 @@ boolean isCurrentWindowSeekable()
    void setVolume​(@FloatRange(from=0.0,to=1.0)
                    float volume)
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal - unchanged), inclusive.
    + unchanged), inclusive. + +

    This method must only be called if COMMAND_SET_VOLUME is available.

    Parameters:
    volume - Linear output gain to apply to all audio channels.
    @@ -4763,7 +5058,9 @@ boolean isCurrentWindowSeekable()
    @FloatRange(from=0.0,
                 to=1.0)
     float getVolume()
    -
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged). + +

    This method must only be called if COMMAND_GET_VOLUME is available.

    Returns:
    The linear gain applied to all audio channels.
    @@ -4778,7 +5075,9 @@ float getVolume()

    clearVideoSurface

    void clearVideoSurface()
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView - currently set on the player.
    + currently set on the player. + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available. @@ -4790,7 +5089,9 @@ float getVolume()

    void clearVideoSurface​(@Nullable
                            Surface surface)
    Clears the Surface onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surface - The surface to clear.
    @@ -4811,7 +5112,9 @@ float getVolume()

    If the surface is held by a SurfaceView, TextureView or SurfaceHolder then it's recommended to use setVideoSurfaceView(SurfaceView), setVideoTextureView(TextureView) or setVideoSurfaceHolder(SurfaceHolder) rather than this method, since passing the holder allows the player to track the lifecycle of the surface - automatically. + automatically. + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surface - The Surface.
    @@ -4830,7 +5133,9 @@ float getVolume() rendered. The player will track the lifecycle of the surface automatically.

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with getApplicationLooper(). + associated with getApplicationLooper(). + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceHolder - The surface holder.
    @@ -4846,7 +5151,9 @@ float getVolume()
    void clearVideoSurfaceHolder​(@Nullable
                                  SurfaceHolder surfaceHolder)
    Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed. Else does nothing.
    + rendered if it matches the one passed. Else does nothing. + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceHolder - The surface holder to clear.
    @@ -4865,7 +5172,9 @@ float getVolume() lifecycle of the surface automatically.

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with getApplicationLooper(). + associated with getApplicationLooper(). + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceView - The surface view.
    @@ -4881,7 +5190,9 @@ float getVolume()
    void clearVideoSurfaceView​(@Nullable
                                SurfaceView surfaceView)
    Clears the SurfaceView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceView - The texture view to clear.
    @@ -4900,7 +5211,9 @@ float getVolume() lifecycle of the surface automatically.

    The thread that calls the TextureView.SurfaceTextureListener methods must be the - thread associated with getApplicationLooper(). + thread associated with getApplicationLooper(). + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    textureView - The texture view.
    @@ -4916,7 +5229,9 @@ float getVolume()
    void clearVideoTextureView​(@Nullable
                                TextureView textureView)
    Clears the TextureView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    textureView - The texture view to clear.
    @@ -4961,7 +5276,9 @@ float getVolume()
  • getCurrentCues

    CueGroup getCurrentCues()
    -
    Returns the current CueGroup.
    +
    Returns the current CueGroup. + +

    This method must only be called if COMMAND_GET_TEXT is available.

  • @@ -4990,7 +5307,9 @@ int getDeviceVolume() Util.getStreamTypeForAudioUsage(int).

    For devices with remote playback, the volume of the - remote device is returned. + remote device is returned. + +

    This method must only be called if COMMAND_GET_DEVICE_VOLUME is available. @@ -5000,7 +5319,9 @@ int getDeviceVolume()

  • isDeviceMuted

    boolean isDeviceMuted()
    -
    Gets whether the device is muted or not.
    +
  • @@ -5011,7 +5332,9 @@ int getDeviceVolume()

    setDeviceVolume

    void setDeviceVolume​(@IntRange(from=0L)
                          int volume)
    -
    Sets the volume of the device.
    +
    Parameters:
    volume - The volume to set.
    @@ -5025,7 +5348,9 @@ int getDeviceVolume()
  • increaseDeviceVolume

    void increaseDeviceVolume()
    -
    Increases the volume of the device.
    +
    Increases the volume of the device. + +

    This method must only be called if COMMAND_ADJUST_DEVICE_VOLUME is available.

  • @@ -5035,7 +5360,9 @@ int getDeviceVolume()
  • decreaseDeviceVolume

    void decreaseDeviceVolume()
    -
    Decreases the volume of the device.
    +
  • @@ -5045,7 +5372,9 @@ int getDeviceVolume()
  • setDeviceMuted

    void setDeviceMuted​(boolean muted)
    -
    Sets the mute state of the device.
    +
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/RendererCapabilities.html b/docs/doc/reference/com/google/android/exoplayer2/RendererCapabilities.html index 6169dca9ca..9fa2e0be7c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/RendererCapabilities.html +++ b/docs/doc/reference/com/google/android/exoplayer2/RendererCapabilities.html @@ -242,15 +242,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int DECODER_SUPPORT_FALLBACK -
    The renderer will use a fallback decoder.
    +
    The format exceeds the primary decoder's capabilities but is supported by fallback decoder
    static int DECODER_SUPPORT_FALLBACK_MIMETYPE -
    The renderer will use a decoder for fallback mimetype if possible as format's MIME type is - unsupported
    +
    The format's MIME type is unsupported and the renderer may use a decoder for a fallback MIME + type.
    @@ -748,8 +748,8 @@ static final int FORMAT_UNSUPPORTED_TYPE
  • DECODER_SUPPORT_FALLBACK_MIMETYPE

    static final int DECODER_SUPPORT_FALLBACK_MIMETYPE
    -
    The renderer will use a decoder for fallback mimetype if possible as format's MIME type is - unsupported
    +
    The format's MIME type is unsupported and the renderer may use a decoder for a fallback MIME + type.
    See Also:
    Constant Field Values
    @@ -777,7 +777,7 @@ static final int FORMAT_UNSUPPORTED_TYPE
  • DECODER_SUPPORT_FALLBACK

    static final int DECODER_SUPPORT_FALLBACK
    -
    The renderer will use a fallback decoder.
    +
    The format exceeds the primary decoder's capabilities but is supported by fallback decoder
    See Also:
    Constant Field Values
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.Builder.html new file mode 100644 index 0000000000..dd886cc7b0 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.Builder.html @@ -0,0 +1,752 @@ + + + + +SimpleBasePlayer.MediaItemData.Builder (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class SimpleBasePlayer.MediaItemData.Builder

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.SimpleBasePlayer.MediaItemData.Builder
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Builder

          +
          public Builder​(Object uid)
          +
          Creates the builder.
          +
          +
          Parameters:
          +
          uid - The unique identifier of the media item within a playlist. This value will be + set as Timeline.Window.uid for this item.
          +
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          setUid

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setUid​(Object uid)
          +
          Sets the unique identifier of this media item within a playlist. + +

          This value will be set as Timeline.Window.uid for this item.

          +
          +
          Parameters:
          +
          uid - The unique identifier of this media item within a playlist.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + + + + + + + + + +
          +
        • +

          setMediaMetadata

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setMediaMetadata​(@Nullable
          +                                                               MediaMetadata mediaMetadata)
          +
          Sets the MediaMetadata. + +

          This data includes static data from the MediaItem and + the media's Format, as well any dynamic metadata that has been + parsed from the media. If null, the metadata is assumed to be the simple combination of the + MediaItem metadata and the metadata of the selected Formats.

          +
          +
          Parameters:
          +
          mediaMetadata - The MediaMetadata, or null to assume that the metadata is the + simple combination of the MediaItem metadata and the + metadata of the selected Formats.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setManifest

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setManifest​(@Nullable
          +                                                          Object manifest)
          +
          Sets the manifest of the media item.
          +
          +
          Parameters:
          +
          manifest - The manifest of the media item, or null if not applicable.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          setPresentationStartTimeMs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setPresentationStartTimeMs​(long presentationStartTimeMs)
          +
          Sets the start time of the live presentation. + +

          This value can only be set to anything other than C.TIME_UNSET if the stream is + live.

          +
          +
          Parameters:
          +
          presentationStartTimeMs - The start time of the live presentation, in milliseconds + since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setWindowStartTimeMs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setWindowStartTimeMs​(long windowStartTimeMs)
          +
          Sets the start time of the live window. + +

          This value can only be set to anything other than C.TIME_UNSET if the stream is + live. The value should also be greater or equal than the + presentation start time, if set.

          +
          +
          Parameters:
          +
          windowStartTimeMs - The start time of the live window, in milliseconds since the Unix + epoch, or C.TIME_UNSET if unknown or not applicable.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setElapsedRealtimeEpochOffsetMs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setElapsedRealtimeEpochOffsetMs​(long elapsedRealtimeEpochOffsetMs)
          +
          Sets the offset between SystemClock.elapsedRealtime() and the time since the Unix + epoch according to the clock of the media origin server. + +

          This value can only be set to anything other than C.TIME_UNSET if the stream is + live.

          +
          +
          Parameters:
          +
          elapsedRealtimeEpochOffsetMs - The offset between SystemClock.elapsedRealtime() and the time since the Unix epoch according to the clock + of the media origin server, or C.TIME_UNSET if unknown or not applicable.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setIsSeekable

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setIsSeekable​(boolean isSeekable)
          +
          Sets whether it's possible to seek within this media item.
          +
          +
          Parameters:
          +
          isSeekable - Whether it's possible to seek within this media item.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setIsDynamic

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setIsDynamic​(boolean isDynamic)
          +
          Sets whether this media item may change over time, for example a moving live window.
          +
          +
          Parameters:
          +
          isDynamic - Whether this media item may change over time, for example a moving live + window.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setDefaultPositionUs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setDefaultPositionUs​(long defaultPositionUs)
          +
          Sets the default position relative to the start of the media item at which to begin + playback, in microseconds. + +

          The default position must be less or equal to the duration, + is set.

          +
          +
          Parameters:
          +
          defaultPositionUs - The default position relative to the start of the media item at + which to begin playback, in microseconds.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setDurationUs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setDurationUs​(long durationUs)
          +
          Sets the duration of the media item, in microseconds. + +

          If both this duration and all period durations are set, the sum + of this duration and the offset in the first + period must match the total duration of all periods.

          +
          +
          Parameters:
          +
          durationUs - The duration of the media item, in microseconds, or C.TIME_UNSET + if unknown.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setPositionInFirstPeriodUs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setPositionInFirstPeriodUs​(long positionInFirstPeriodUs)
          +
          Sets the position of the start of this media item relative to the start of the first period + belonging to it, in microseconds.
          +
          +
          Parameters:
          +
          positionInFirstPeriodUs - The position of the start of this media item relative to the + start of the first period belonging to it, in microseconds.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setIsPlaceholder

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setIsPlaceholder​(boolean isPlaceholder)
          +
          Sets whether this media item contains placeholder information because the real information + has yet to be loaded.
          +
          +
          Parameters:
          +
          isPlaceholder - Whether this media item contains placeholder information because the + real information has yet to be loaded.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setPeriods

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.MediaItemData.Builder setPeriods​(List<SimpleBasePlayer.PeriodData> periods)
          +
          Sets the list of periods in this media item. + +

          All periods must have unique UIDs and only the + last period is allowed to have an unset duration.

          +
          +
          Parameters:
          +
          periods - The list of periods in this media item, or an empty + list to assume a single period without ads and the same duration as the media item.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + + +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.html new file mode 100644 index 0000000000..ed29421df5 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.html @@ -0,0 +1,653 @@ + + + + +SimpleBasePlayer.MediaItemData (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class SimpleBasePlayer.MediaItemData

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.SimpleBasePlayer.MediaItemData
      • +
      +
    • +
    +
    +
      +
    • +
      +
      Enclosing class:
      +
      SimpleBasePlayer
      +
      +
      +
      protected static final class SimpleBasePlayer.MediaItemData
      +extends Object
      +
      An immutable description of an item in the playlist, containing both static setup information + like MediaItem and dynamic data that is generally read from the media like the + duration.
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          uid

          +
          public final Object uid
          +
          The unique identifier of this media item.
          +
        • +
        + + + +
          +
        • +

          tracks

          +
          public final Tracks tracks
          +
          The Tracks of this media item.
          +
        • +
        + + + + + + + +
          +
        • +

          mediaMetadata

          +
          @Nullable
          +public final MediaMetadata mediaMetadata
          +
          The MediaMetadata, including static data from the MediaItem and the media's Format, as well any dynamic metadata that + has been parsed from the media. If null, the metadata is assumed to be the simple combination + of the MediaItem metadata and the metadata of the selected + Formats.
          +
        • +
        + + + +
          +
        • +

          manifest

          +
          @Nullable
          +public final Object manifest
          +
          The manifest of the media item, or null if not applicable.
          +
        • +
        + + + + + + + +
          +
        • +

          presentationStartTimeMs

          +
          public final long presentationStartTimeMs
          +
          The start time of the live presentation, in milliseconds since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
          +
        • +
        + + + +
          +
        • +

          windowStartTimeMs

          +
          public final long windowStartTimeMs
          +
          The start time of the live window, in milliseconds since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
          +
        • +
        + + + +
          +
        • +

          elapsedRealtimeEpochOffsetMs

          +
          public final long elapsedRealtimeEpochOffsetMs
          +
          The offset between SystemClock.elapsedRealtime() and the time since the Unix epoch + according to the clock of the media origin server, or C.TIME_UNSET if unknown or not + applicable.
          +
        • +
        + + + +
          +
        • +

          isSeekable

          +
          public final boolean isSeekable
          +
          Whether it's possible to seek within this media item.
          +
        • +
        + + + +
          +
        • +

          isDynamic

          +
          public final boolean isDynamic
          +
          Whether this media item may change over time, for example a moving live window.
          +
        • +
        + + + +
          +
        • +

          defaultPositionUs

          +
          public final long defaultPositionUs
          +
          The default position relative to the start of the media item at which to begin playback, in + microseconds.
          +
        • +
        + + + +
          +
        • +

          durationUs

          +
          public final long durationUs
          +
          The duration of the media item, in microseconds, or C.TIME_UNSET if unknown.
          +
        • +
        + + + +
          +
        • +

          positionInFirstPeriodUs

          +
          public final long positionInFirstPeriodUs
          +
          The position of the start of this media item relative to the start of the first period + belonging to it, in microseconds.
          +
        • +
        + + + +
          +
        • +

          isPlaceholder

          +
          public final boolean isPlaceholder
          +
          Whether this media item contains placeholder information because the real information has yet + to be loaded.
          +
        • +
        + + + + +
      • +
      +
      + +
      + +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.Builder.html new file mode 100644 index 0000000000..482b9ecc39 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.Builder.html @@ -0,0 +1,419 @@ + + + + +SimpleBasePlayer.PeriodData.Builder (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class SimpleBasePlayer.PeriodData.Builder

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.SimpleBasePlayer.PeriodData.Builder
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Builder

          +
          public Builder​(Object uid)
          +
          Creates the builder.
          +
          +
          Parameters:
          +
          uid - The unique identifier of the period within its media item.
          +
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          setUid

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.PeriodData.Builder setUid​(Object uid)
          +
          Sets the unique identifier of the period within its media item.
          +
          +
          Parameters:
          +
          uid - The unique identifier of the period within its media item.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + +
          +
        • +

          setDurationUs

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.PeriodData.Builder setDurationUs​(long durationUs)
          +
          Sets the total duration of the period, in microseconds, or C.TIME_UNSET if unknown. + +

          Only the last period in a media item can have an unknown duration.

          +
          +
          Parameters:
          +
          durationUs - The total duration of the period, in microseconds, or C.TIME_UNSET if unknown.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          setIsPlaceholder

          +
          @CanIgnoreReturnValue
          +public SimpleBasePlayer.PeriodData.Builder setIsPlaceholder​(boolean isPlaceholder)
          +
          Sets whether this period contains placeholder information because the real information has + yet to be loaded
          +
          +
          Parameters:
          +
          isPlaceholder - Whether this period contains placeholder information because the real + information has yet to be loaded.
          +
          Returns:
          +
          This builder.
          +
          +
        • +
        + + + + +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.html new file mode 100644 index 0000000000..2135123bac --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.html @@ -0,0 +1,433 @@ + + + + +SimpleBasePlayer.PeriodData (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class SimpleBasePlayer.PeriodData

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.SimpleBasePlayer.PeriodData
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          uid

          +
          public final Object uid
          +
          The unique identifier of the period within its media item.
          +
        • +
        + + + +
          +
        • +

          durationUs

          +
          public final long durationUs
          +
          The total duration of the period, in microseconds, or C.TIME_UNSET if unknown. Only + the last period in a media item can have an unknown duration.
          +
        • +
        + + + + + + + +
          +
        • +

          isPlaceholder

          +
          public final boolean isPlaceholder
          +
          Whether this period contains placeholder information because the real information has yet to + be loaded.
          +
        • +
        +
      • +
      +
      + +
      + +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PositionSupplier.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PositionSupplier.html new file mode 100644 index 0000000000..4a5177366f --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PositionSupplier.html @@ -0,0 +1,344 @@ + + + + +SimpleBasePlayer.PositionSupplier (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Interface SimpleBasePlayer.PositionSupplier

    +
    +
    +
    +
      +
    • +
      +
      Enclosing class:
      +
      SimpleBasePlayer
      +
      +
      +
      protected static interface SimpleBasePlayer.PositionSupplier
      +
      A supplier for a position.
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          getConstant

          +
          static SimpleBasePlayer.PositionSupplier getConstant​(long positionMs)
          +
          Returns an instance that returns a constant value.
          +
          +
          Parameters:
          +
          positionMs - The constant position to return, in milliseconds.
          +
          +
        • +
        + + + +
          +
        • +

          getExtrapolating

          +
          static SimpleBasePlayer.PositionSupplier getExtrapolating​(long currentPositionMs,
          +                                                          float playbackSpeed)
          +
          Returns an instance that extrapolates the provided position into the future.
          +
          +
          Parameters:
          +
          currentPositionMs - The current position in milliseconds.
          +
          playbackSpeed - The playback speed with which the position is assumed to increase.
          +
          +
        • +
        + + + +
          +
        • +

          get

          +
          long get()
          +
          Returns the position.
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.State.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.State.Builder.html index 3b802f0a26..4ce001a524 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.State.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.State.Builder.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -188,12 +188,179 @@ extends SimpleBasePlayer.State.Builder +clearPositionDiscontinuity() + +
    Clears a previously set position discontinuity signal.
    + + + +SimpleBasePlayer.State.Builder +setAdBufferedPositionMs​(SimpleBasePlayer.PositionSupplier adBufferedPositionMsSupplier) + +
    Sets the SimpleBasePlayer.PositionSupplier for the estimated position up to which the currently + playing ad is buffered, in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setAdPositionMs​(long positionMs) + +
    Sets the current ad playback position in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setAdPositionMs​(SimpleBasePlayer.PositionSupplier adPositionMsSupplier) + +
    Sets the SimpleBasePlayer.PositionSupplier for the current ad playback position in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setAudioAttributes​(AudioAttributes audioAttributes) + +
    Sets the current AudioAttributes.
    + + + +SimpleBasePlayer.State.Builder setAvailableCommands​(Player.Commands availableCommands)
    Sets the available Player.Commands.
    - + +SimpleBasePlayer.State.Builder +setContentBufferedPositionMs​(SimpleBasePlayer.PositionSupplier contentBufferedPositionMsSupplier) + +
    Sets the SimpleBasePlayer.PositionSupplier for the estimated position up to which the currently + playing content is buffered, in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setContentPositionMs​(long positionMs) + +
    Sets the current content playback position in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setContentPositionMs​(SimpleBasePlayer.PositionSupplier contentPositionMsSupplier) + +
    Sets the SimpleBasePlayer.PositionSupplier for the current content playback position in + milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setCurrentAd​(int adGroupIndex, + int adIndexInAdGroup) + +
    Sets the current ad indices, or C.INDEX_UNSET if no ad is playing.
    + + + +SimpleBasePlayer.State.Builder +setCurrentCues​(CueGroup currentCues) + +
    Sets the current cues.
    + + + +SimpleBasePlayer.State.Builder +setCurrentMediaItemIndex​(int currentMediaItemIndex) + +
    Sets the current media item index.
    + + + +SimpleBasePlayer.State.Builder +setDeviceInfo​(DeviceInfo deviceInfo) + +
    Sets the DeviceInfo.
    + + + +SimpleBasePlayer.State.Builder +setDeviceVolume​(int deviceVolume) + +
    Sets the current device volume.
    + + + +SimpleBasePlayer.State.Builder +setIsDeviceMuted​(boolean isDeviceMuted) + +
    Sets whether the device is muted.
    + + + +SimpleBasePlayer.State.Builder +setIsLoading​(boolean isLoading) + +
    Sets whether the player is currently loading its source.
    + + + +SimpleBasePlayer.State.Builder +setMaxSeekToPreviousPositionMs​(long maxSeekToPreviousPositionMs) + +
    Sets the maximum position for which BasePlayer.seekToPrevious() seeks to the previous item, + in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setNewlyRenderedFirstFrame​(boolean newlyRenderedFirstFrame) + +
    Sets whether a frame has been rendered for the first time since setting the surface, a + rendering reset, or since the stream being rendered was changed.
    + + + +SimpleBasePlayer.State.Builder +setPlaybackParameters​(PlaybackParameters playbackParameters) + +
    Sets the currently active PlaybackParameters.
    + + + +SimpleBasePlayer.State.Builder +setPlaybackState​(@com.google.android.exoplayer2.Player.State int playbackState) + +
    Sets the state of the player.
    + + + +SimpleBasePlayer.State.Builder +setPlaybackSuppressionReason​(@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int playbackSuppressionReason) + +
    Sets the reason why playback is suppressed even if SimpleBasePlayer.getPlayWhenReady() is true.
    + + + +SimpleBasePlayer.State.Builder +setPlayerError​(PlaybackException playerError) + +
    Sets last error that caused playback to fail, or null if there was no error.
    + + + +SimpleBasePlayer.State.Builder +setPlaylist​(List<SimpleBasePlayer.MediaItemData> playlist) + +
    Sets the list of media items in the playlist.
    + + + +SimpleBasePlayer.State.Builder +setPlaylistMetadata​(MediaMetadata playlistMetadata) + +
    Sets the playlist MediaMetadata.
    + + + SimpleBasePlayer.State.Builder setPlayWhenReady​(boolean playWhenReady, @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason int playWhenReadyChangeReason) @@ -201,6 +368,87 @@ extends Sets whether playback should proceed when ready and not suppressed. + +SimpleBasePlayer.State.Builder +setPositionDiscontinuity​(@com.google.android.exoplayer2.Player.DiscontinuityReason int positionDiscontinuityReason, + long discontinuityPositionMs) + +
    Signals that a position discontinuity happened since the last player update and sets the + reason for it.
    + + + +SimpleBasePlayer.State.Builder +setRepeatMode​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode) + +
    Sets the Player.RepeatMode used for playback.
    + + + +SimpleBasePlayer.State.Builder +setSeekBackIncrementMs​(long seekBackIncrementMs) + +
    Sets the Player.seekBack() increment in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setSeekForwardIncrementMs​(long seekForwardIncrementMs) + +
    Sets the Player.seekForward() increment in milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setShuffleModeEnabled​(boolean shuffleModeEnabled) + +
    Sets whether shuffling of media items is enabled.
    + + + +SimpleBasePlayer.State.Builder +setSurfaceSize​(Size surfaceSize) + +
    Sets the size of the surface onto which the video is being rendered.
    + + + +SimpleBasePlayer.State.Builder +setTimedMetadata​(Metadata timedMetadata) + +
    Sets the most recent timed Metadata.
    + + + +SimpleBasePlayer.State.Builder +setTotalBufferedDurationMs​(SimpleBasePlayer.PositionSupplier totalBufferedDurationMsSupplier) + +
    Sets the SimpleBasePlayer.PositionSupplier for the estimated total buffered duration in + milliseconds.
    + + + +SimpleBasePlayer.State.Builder +setTrackSelectionParameters​(TrackSelectionParameters trackSelectionParameters) + +
    Sets the currently active TrackSelectionParameters.
    + + + +SimpleBasePlayer.State.Builder +setVideoSize​(VideoSize videoSize) + +
    Sets the current video size.
    + + + +SimpleBasePlayer.State.Builder +setVolume​(float volume) + +
    Sets the current audio volume, with 0 being silence and 1 being unity gain (signal + unchanged).
    + + @@ -284,7 +537,7 @@ extends -
      +
      • playWhenReadyChangeReason

        @PlayWhenReadyChangeReason
        @@ -292,6 +545,375 @@ public final @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReaso
         
        The last reason for changing playWhenReady.
      + + + +
        +
      • +

        playbackState

        +
        @State
        +public final @com.google.android.exoplayer2.Player.State int playbackState
        +
        The state of the player.
        +
      • +
      + + + + + + + +
        +
      • +

        playerError

        +
        @Nullable
        +public final PlaybackException playerError
        +
        The last error that caused playback to fail, or null if there was no error.
        +
      • +
      + + + +
        +
      • +

        repeatMode

        +
        @RepeatMode
        +public final @com.google.android.exoplayer2.Player.RepeatMode int repeatMode
        +
        The Player.RepeatMode used for playback.
        +
      • +
      + + + +
        +
      • +

        shuffleModeEnabled

        +
        public final boolean shuffleModeEnabled
        +
        Whether shuffling of media items is enabled.
        +
      • +
      + + + +
        +
      • +

        isLoading

        +
        public final boolean isLoading
        +
        Whether the player is currently loading its source.
        +
      • +
      + + + +
        +
      • +

        seekBackIncrementMs

        +
        public final long seekBackIncrementMs
        +
        The Player.seekBack() increment in milliseconds.
        +
      • +
      + + + +
        +
      • +

        seekForwardIncrementMs

        +
        public final long seekForwardIncrementMs
        +
        The Player.seekForward() increment in milliseconds.
        +
      • +
      + + + +
        +
      • +

        maxSeekToPreviousPositionMs

        +
        public final long maxSeekToPreviousPositionMs
        +
        The maximum position for which BasePlayer.seekToPrevious() seeks to the previous item, in + milliseconds.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        volume

        +
        @FloatRange(from=0.0,
        +            to=1.0)
        +public final float volume
        +
        The current audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
        +
      • +
      + + + +
        +
      • +

        videoSize

        +
        public final VideoSize videoSize
        +
        The current video size.
        +
      • +
      + + + +
        +
      • +

        currentCues

        +
        public final CueGroup currentCues
        +
        The current cues.
        +
      • +
      + + + + + + + +
        +
      • +

        deviceVolume

        +
        @IntRange(from=0L)
        +public final int deviceVolume
        +
        The current device volume.
        +
      • +
      + + + +
        +
      • +

        isDeviceMuted

        +
        public final boolean isDeviceMuted
        +
        Whether the device is muted.
        +
      • +
      + + + +
        +
      • +

        surfaceSize

        +
        public final Size surfaceSize
        +
        The size of the surface onto which the video is being rendered.
        +
      • +
      + + + +
        +
      • +

        newlyRenderedFirstFrame

        +
        public final boolean newlyRenderedFirstFrame
        +
        Whether a frame has been rendered for the first time since setting the surface, a rendering + reset, or since the stream being rendered was changed.
        +
      • +
      + + + +
        +
      • +

        timedMetadata

        +
        public final Metadata timedMetadata
        +
        The most recent timed metadata.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        currentMediaItemIndex

        +
        public final int currentMediaItemIndex
        +
        The current media item index, or C.INDEX_UNSET to assume the default first item of + the playlist is played.
        +
      • +
      + + + +
        +
      • +

        currentAdGroupIndex

        +
        public final int currentAdGroupIndex
        +
        The current ad group index, or C.INDEX_UNSET if no ad is playing.
        +
      • +
      + + + +
        +
      • +

        currentAdIndexInAdGroup

        +
        public final int currentAdIndexInAdGroup
        +
        The current ad index in the ad group, or C.INDEX_UNSET if no ad is playing.
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        hasPositionDiscontinuity

        +
        public final boolean hasPositionDiscontinuity
        +
        Signals that a position discontinuity happened since the last update to the player.
        +
      • +
      + + + +
        +
      • +

        positionDiscontinuityReason

        +
        @DiscontinuityReason
        +public final @com.google.android.exoplayer2.Player.DiscontinuityReason int positionDiscontinuityReason
        +
        The reason for the last position discontinuity. The + value is unused if hasPositionDiscontinuity is false.
        +
      • +
      + + + +
        +
      • +

        discontinuityPositionMs

        +
        public final long discontinuityPositionMs
        +
        The position, in milliseconds, in the current content or ad from which playback continued + after the discontinuity. The value is unused if hasPositionDiscontinuity is + false.
        +
      • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.html index f3c093bf29..f4f42c3f7c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":6,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":6,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10,"i90":10,"i91":10,"i92":10,"i93":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -198,6 +198,29 @@ extends protected static class  +SimpleBasePlayer.MediaItemData + +
    An immutable description of an item in the playlist, containing both static setup information + like MediaItem and dynamic data that is generally read from the media like the + duration.
    + + + +protected static class  +SimpleBasePlayer.PeriodData + +
    Data describing the properties of a period inside a SimpleBasePlayer.MediaItemData.
    + + + +protected static interface  +SimpleBasePlayer.PositionSupplier + +
    A supplier for a position.
    + + + +protected static class  SimpleBasePlayer.State
    An immutable state description of the player.
    @@ -487,27 +510,35 @@ extends +protected SimpleBasePlayer.MediaItemData +getPlaceholderMediaItemData​(MediaItem mediaItem) + +
    Returns the placeholder SimpleBasePlayer.MediaItemData used for a new MediaItem added to the + playlist.
    + + + protected SimpleBasePlayer.State getPlaceholderState​(SimpleBasePlayer.State suggestedPlaceholderState)
    Returns the placeholder state used while a player method is handled asynchronously.
    - + PlaybackParameters getPlaybackParameters()
    Returns the currently active playback parameters.
    - -int + +@com.google.android.exoplayer2.Player.State int getPlaybackState() -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    - + int getPlaybackSuppressionReason() @@ -515,140 +546,288 @@ extends , or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed. - + PlaybackException getPlayerError()
    Returns the error that caused playback to fail.
    - + MediaMetadata getPlaylistMetadata()
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    - + boolean getPlayWhenReady()
    Whether playback will proceed when Player.getPlaybackState() == Player.STATE_READY.
    - -int + +@com.google.android.exoplayer2.Player.RepeatMode int getRepeatMode()
    Returns the current Player.RepeatMode used for playback.
    - + long getSeekBackIncrement()
    Returns the Player.seekBack() increment.
    - + long getSeekForwardIncrement()
    Returns the Player.seekForward() increment.
    - + boolean getShuffleModeEnabled()
    Returns whether shuffling of media items is enabled.
    - + protected abstract SimpleBasePlayer.State getState()
    Returns the current SimpleBasePlayer.State of the player.
    - + Size getSurfaceSize()
    Gets the size of the surface on which the video is rendered.
    - + long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds.
    - + TrackSelectionParameters getTrackSelectionParameters()
    Returns the parameters constraining the track selection.
    - + VideoSize getVideoSize()
    Gets the size of the video.
    - + float getVolume()
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    - + +protected ListenableFuture<?> +handleAddMediaItems​(int index, + List<MediaItem> mediaItems) + + + + + +protected ListenableFuture<?> +handleClearVideoOutput​(Object videoOutput) + +
    Handles calls to clear the video output.
    + + + +protected ListenableFuture<?> +handleDecreaseDeviceVolume() + + + + + +protected ListenableFuture<?> +handleIncreaseDeviceVolume() + + + + + +protected ListenableFuture<?> +handleMoveMediaItems​(int fromIndex, + int toIndex, + int newIndex) + + + + + +protected ListenableFuture<?> +handlePrepare() + +
    Handles calls to Player.prepare().
    + + + +protected ListenableFuture<?> +handleRelease() + +
    Handles calls to Player.release().
    + + + +protected ListenableFuture<?> +handleRemoveMediaItems​(int fromIndex, + int toIndex) + + + + + +protected ListenableFuture<?> +handleSeek​(int mediaItemIndex, + long positionMs, + @com.google.android.exoplayer2.Player.Command int seekCommand) + +
    Handles calls to Player.seekTo(long) and other seek operations (for example, Player.seekToNext()).
    + + + +protected ListenableFuture<?> +handleSetDeviceMuted​(boolean muted) + + + + + +protected ListenableFuture<?> +handleSetDeviceVolume​(int deviceVolume) + +
    Handles calls to Player.setDeviceVolume(int).
    + + + +protected ListenableFuture<?> +handleSetMediaItems​(List<MediaItem> mediaItems, + int startIndex, + long startPositionMs) + + + + + +protected ListenableFuture<?> +handleSetPlaybackParameters​(PlaybackParameters playbackParameters) + + + + + +protected ListenableFuture<?> +handleSetPlaylistMetadata​(MediaMetadata playlistMetadata) + + + + + protected ListenableFuture<?> handleSetPlayWhenReady​(boolean playWhenReady) - + - + +protected ListenableFuture<?> +handleSetRepeatMode​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode) + + + + + +protected ListenableFuture<?> +handleSetShuffleModeEnabled​(boolean shuffleModeEnabled) + + + + + +protected ListenableFuture<?> +handleSetTrackSelectionParameters​(TrackSelectionParameters trackSelectionParameters) + + + + + +protected ListenableFuture<?> +handleSetVideoOutput​(Object videoOutput) + +
    Handles calls to set the video output.
    + + + +protected ListenableFuture<?> +handleSetVolume​(float volume) + +
    Handles calls to Player.setVolume(float).
    + + + +protected ListenableFuture<?> +handleStop() + +
    Handles calls to Player.stop().
    + + + void increaseDeviceVolume()
    Increases the volume of the device.
    - + protected void invalidateState()
    Invalidates the current state.
    - + boolean isDeviceMuted()
    Gets whether the device is muted or not.
    - + boolean isLoading()
    Whether the player is currently loading the source.
    - + boolean isPlayingAd()
    Returns whether the player is currently playing an ad.
    - + void moveMediaItems​(int fromIndex, int toIndex, @@ -657,28 +836,28 @@ extends Moves the media item range to the new index. - + void prepare()
    Prepares the player.
    - + void release()
    Releases the player.
    - + void removeListener​(Player.Listener listener)
    Unregister a listener registered through Player.addListener(Listener).
    - + void removeMediaItems​(int fromIndex, int toIndex) @@ -686,95 +865,97 @@ extends Removes a range of media items from the playlist. - + void -seekTo​(int mediaItemIndex, - long positionMs) +seekTo​(int mediaItemIndex, + long positionMs, + @com.google.android.exoplayer2.Player.Command int seekCommand, + boolean isRepeatingCurrentItem) -
    Seeks to a position specified in milliseconds in the specified MediaItem.
    +
    Seeks to a position in the specified MediaItem.
    - + void setDeviceMuted​(boolean muted)
    Sets the mute state of the device.
    - + void setDeviceVolume​(int volume)
    Sets the volume of the device.
    - + void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition) -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items.
    - + void setMediaItems​(List<MediaItem> mediaItems, int startIndex, long startPositionMs) -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items.
    - + void setPlaybackParameters​(PlaybackParameters playbackParameters)
    Attempts to set the playback parameters.
    - + void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    Sets the playlist MediaMetadata.
    - + void setPlayWhenReady​(boolean playWhenReady)
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY.
    - + void -setRepeatMode​(int repeatMode) +setRepeatMode​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Sets the Player.RepeatMode to be used for playback.
    - + void setShuffleModeEnabled​(boolean shuffleModeEnabled)
    Sets whether shuffling of media items is enabled.
    - + void setTrackSelectionParameters​(TrackSelectionParameters parameters)
    Sets the parameters constraining the track selection.
    - + void setVideoSurface​(Surface surface)
    Sets the Surface onto which video will be rendered.
    - + void setVideoSurfaceHolder​(SurfaceHolder surfaceHolder) @@ -782,21 +963,21 @@ extends - + void setVideoSurfaceView​(SurfaceView surfaceView)
    Sets the SurfaceView onto which video will be rendered.
    - + void setVideoTextureView​(TextureView textureView)
    Sets the TextureView onto which video will be rendered.
    - + void setVolume​(float volume) @@ -804,14 +985,14 @@ extends - + void stop()
    Stops playback without resetting the playlist.
    - + void stop​(boolean reset)   @@ -822,7 +1003,7 @@ extends

    Methods inherited from class com.google.android.exoplayer2.BasePlayer

    -addMediaItem, addMediaItem, addMediaItems, canAdvertiseSession, clearMediaItems, getBufferedPercentage, getContentDuration, getCurrentLiveOffset, getCurrentManifest, getCurrentMediaItem, getCurrentWindowIndex, getMediaItemAt, getMediaItemCount, getNextMediaItemIndex, getNextWindowIndex, getPreviousMediaItemIndex, getPreviousWindowIndex, hasNext, hasNextMediaItem, hasNextWindow, hasPrevious, hasPreviousMediaItem, hasPreviousWindow, isCommandAvailable, isCurrentMediaItemDynamic, isCurrentMediaItemLive, isCurrentMediaItemSeekable, isCurrentWindowDynamic, isCurrentWindowLive, isCurrentWindowSeekable, isPlaying, moveMediaItem, next, pause, play, previous, removeMediaItem, repeatCurrentMediaItem, seekBack, seekForward, seekTo, seekToDefaultPosition, seekToDefaultPosition, seekToNext, seekToNextMediaItem, seekToNextWindow, seekToPrevious, seekToPreviousMediaItem, seekToPreviousWindow, setMediaItem, setMediaItem, setMediaItem, setMediaItems, setPlaybackSpeed
  • +addMediaItem, addMediaItem, addMediaItems, canAdvertiseSession, clearMediaItems, getBufferedPercentage, getContentDuration, getCurrentLiveOffset, getCurrentManifest, getCurrentMediaItem, getCurrentWindowIndex, getMediaItemAt, getMediaItemCount, getNextMediaItemIndex, getNextWindowIndex, getPreviousMediaItemIndex, getPreviousWindowIndex, hasNext, hasNextMediaItem, hasNextWindow, hasPrevious, hasPreviousMediaItem, hasPreviousWindow, isCommandAvailable, isCurrentMediaItemDynamic, isCurrentMediaItemLive, isCurrentMediaItemSeekable, isCurrentWindowDynamic, isCurrentWindowLive, isCurrentWindowSeekable, isPlaying, moveMediaItem, next, pause, play, previous, removeMediaItem, seekBack, seekForward, seekTo, seekTo, seekToDefaultPosition, seekToDefaultPosition, seekToNext, seekToNextMediaItem, seekToNextWindow, seekToPrevious, seekToPreviousMediaItem, seekToPreviousWindow, setMediaItem, setMediaItem, setMediaItem, setMediaItems, setPlaybackSpeed
  • @@ -945,13 +1130,7 @@ extends Returns the player's currently available Player.Commands.

    The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands - change. - -

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a Player.getPlayerError() player error}. - -

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem. + change.

    Returns:
    The currently available Player.Commands.
    @@ -970,7 +1149,9 @@ extends Description copied from interface: Player
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. -

    If the player is already in the ready state then this method pauses and resumes playback.

    +

    If the player is already in the ready state then this method pauses and resumes playback. + +

    This method must only be called if Player.COMMAND_PLAY_PAUSE is available.

    Parameters:
    playWhenReady - Whether playback should proceed when ready.
    @@ -1003,10 +1184,12 @@ extends public final void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition)
    Description copied from interface: Player
    -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -1023,10 +1206,12 @@ extends -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In @@ -1044,12 +1229,14 @@ extends public final void addMediaItems​(int index, List<MediaItem> mediaItems)
    Description copied from interface: Player
    -
    Adds a list of media items at the given index of the playlist.
    +
    Adds a list of media items at the given index of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -1063,11 +1250,15 @@ extends -
    Moves the media item range to the new index.
    +
    Moves the media item range to the new index. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The start of the range to move.
    -
    toIndex - The first item not to be included in the range (exclusive).
    +
    fromIndex - The start of the range to move. If the index is larger than the size of the + playlist, the request is ignored.
    +
    toIndex - The first item not to be included in the range (exclusive). If the index is + larger than the size of the playlist, items up to the end of the playlist are moved.
    newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
    @@ -1083,12 +1274,15 @@ extends public final void removeMediaItems​(int fromIndex, int toIndex) -
    Removes a range of media items from the playlist.
    +
    Removes a range of media items from the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The index at which to start removing media items.
    +
    fromIndex - The index at which to start removing media items. If the index is larger than + the size of the playlist, the request is ignored.
    toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
    + the size of the playlist, media items up to the end of the playlist are removed.
    @@ -1102,6 +1296,8 @@ extends Description copied from interface: Player
    Prepares the player. +

    This method must only be called if Player.COMMAND_PREPARE is available. +

    This will move the player out of idle state and the player will start loading media and acquire resources needed for playback.

    @@ -1112,12 +1308,13 @@ extends
  • getPlaybackState

    -
    public final int getPlaybackState()
    +
    @State
    +public final @com.google.android.exoplayer2.Player.State int getPlaybackState()
    Description copied from interface: Player
    -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    Returns:
    -
    The current playback state.
    +
    The current playback state.
    See Also:
    Player.Listener.onPlaybackStateChanged(int)
    @@ -1135,7 +1332,7 @@ extends , or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    Returns:
    -
    The current playback suppression reason.
    +
    The current Player.PlaybackSuppressionReason.
    See Also:
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -1164,15 +1361,18 @@ public final  + @@ -1395,7 +1609,9 @@ public final public final Tracks getCurrentTracks()
    Description copied from interface: Player
    -
    Returns the current tracks.
    +
    Returns the current tracks. + +

    This method must only be called if Player.COMMAND_GET_TRACKS is available.

    See Also:
    Player.Listener.onTracksChanged(Tracks)
    @@ -1439,7 +1655,10 @@ public final Player.COMMAND_SET_TRACK_SELECTION_PARAMETERS is + available.
  • @@ -1456,7 +1675,9 @@ public final MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and any timed metadata that has been parsed from the media and output via Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, - it will be prioritised above the same field coming from static or timed metadata. + it will be prioritised above the same field coming from static or timed metadata. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available. @@ -1467,7 +1688,9 @@ public final public final MediaMetadata getPlaylistMetadata()

    Description copied from interface: Player
    -
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    +
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available.

    @@ -1478,7 +1701,9 @@ public final public final void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    Description copied from interface: Player
    -
    Sets the playlist MediaMetadata.
    +
    Sets the playlist MediaMetadata. + +

    This method must only be called if Player.COMMAND_SET_MEDIA_ITEMS_METADATA is available.

    @@ -1489,7 +1714,9 @@ public final public final Timeline getCurrentTimeline()
    Description copied from interface: Player
    -
    Returns the current Timeline. Never null, but may be empty.
    +
    Returns the current Timeline. Never null, but may be empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    See Also:
    Player.Listener.onTimelineChanged(Timeline, int)
    @@ -1504,7 +1731,9 @@ public final public final int getCurrentPeriodIndex() -
    Returns the index of the period currently being played.
    +
    Returns the index of the period currently being played. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    @@ -1516,7 +1745,9 @@ public final public final int getCurrentMediaItemIndex()
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is - empty.
    + empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available. @@ -1528,7 +1759,9 @@ public final public final long getDuration()

    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if - the duration is not known.
    + the duration is not known. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1540,7 +1773,9 @@ public final public final long getCurrentPosition()

    Returns the playback position in the current content or ad, in milliseconds, or the prospective - position in milliseconds if the current timeline is empty.
    + position in milliseconds if the current timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1552,7 +1787,9 @@ public final public final long getBufferedPosition()

    Returns an estimate of the position in the current content or ad up to which data is buffered, - in milliseconds.
    + in milliseconds. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1564,7 +1801,9 @@ public final public final long getTotalBufferedDuration()

    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and media items.
    + This includes pre-buffered data for subsequent ads and media items. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1575,7 +1814,9 @@ public final public final boolean isPlayingAd()

    -
    Returns whether the player is currently playing an ad.
    +
    Returns whether the player is currently playing an ad. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    @@ -1587,7 +1828,9 @@ public final public final int getCurrentAdGroupIndex()
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period - currently being played. Returns C.INDEX_UNSET otherwise.
    + currently being played. Returns C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1599,7 +1842,9 @@ public final public final int getCurrentAdIndexInAdGroup()

    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group. Returns - C.INDEX_UNSET otherwise.
    + C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1612,7 +1857,9 @@ public final Description copied from interface: Player

    If Player.isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getCurrentPosition().
    + playing, the returned position is the same as that returned by Player.getCurrentPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1625,7 +1872,9 @@ public final Description copied from interface: Player

    If Player.isPlayingAd() returns true, returns an estimate of the content position in the current content up to which data is buffered, in milliseconds. If there is no ad playing, - the returned position is the same as that returned by Player.getBufferedPosition().
    + the returned position is the same as that returned by Player.getBufferedPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1636,7 +1885,9 @@ public final public final AudioAttributes getAudioAttributes()

    Description copied from interface: Player
    -
    Returns the attributes for audio playback.
    +
    Returns the attributes for audio playback. + +

    This method must only be called if Player.COMMAND_GET_AUDIO_ATTRIBUTES is available.

    @@ -1648,7 +1899,9 @@ public final public final void setVolume​(float volume)
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal - unchanged), inclusive.
    + unchanged), inclusive. + +

    This method must only be called if Player.COMMAND_SET_VOLUME is available.

    Parameters:
    volume - Linear output gain to apply to all audio channels.
    @@ -1663,42 +1916,15 @@ public final public final float getVolume() -
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged). + +

    This method must only be called if Player.COMMAND_GET_VOLUME is available.

    Returns:
    The linear gain applied to all audio channels.
    - - - - - - - -
      -
    • -

      clearVideoSurface

      -
      public final void clearVideoSurface​(@Nullable
      -                                    Surface surface)
      -
      Description copied from interface: Player
      -
      Clears the Surface onto which video is being rendered if it matches the one passed. - Else does nothing.
      -
      -
      Parameters:
      -
      surface - The surface to clear.
      -
      -
    • -
    @@ -1714,7 +1940,9 @@ public final SurfaceView, TextureView or SurfaceHolder then it's recommended to use Player.setVideoSurfaceView(SurfaceView), Player.setVideoTextureView(TextureView) or Player.setVideoSurfaceHolder(SurfaceHolder) rather than this method, since passing the holder allows the player to track the lifecycle of the surface - automatically. + automatically. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surface - The Surface.
    @@ -1734,30 +1962,15 @@ public final SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper(). + associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceHolder - The surface holder.
    - - - -
      -
    • -

      clearVideoSurfaceHolder

      -
      public final void clearVideoSurfaceHolder​(@Nullable
      -                                          SurfaceHolder surfaceHolder)
      -
      Description copied from interface: Player
      -
      Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed. Else does nothing.
      -
      -
      Parameters:
      -
      surfaceHolder - The surface holder to clear.
      -
      -
    • -
    @@ -1771,30 +1984,15 @@ public final SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper(). + associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceView - The surface view.
    - - - -
      -
    • -

      clearVideoSurfaceView

      -
      public final void clearVideoSurfaceView​(@Nullable
      -                                        SurfaceView surfaceView)
      -
      Description copied from interface: Player
      -
      Clears the SurfaceView onto which video is being rendered if it matches the one passed. - Else does nothing.
      -
      -
      Parameters:
      -
      surfaceView - The texture view to clear.
      -
      -
    • -
    @@ -1808,13 +2006,86 @@ public final TextureView.SurfaceTextureListener methods must be the - thread associated with Player.getApplicationLooper(). + thread associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    textureView - The texture view.
    + + + + + + + +
      +
    • +

      clearVideoSurface

      +
      public final void clearVideoSurface​(@Nullable
      +                                    Surface surface)
      +
      Description copied from interface: Player
      +
      Clears the Surface onto which video is being rendered if it matches the one passed. + Else does nothing. + +

      This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

      +
      +
      Parameters:
      +
      surface - The surface to clear.
      +
      +
    • +
    + + + +
      +
    • +

      clearVideoSurfaceHolder

      +
      public final void clearVideoSurfaceHolder​(@Nullable
      +                                          SurfaceHolder surfaceHolder)
      +
      Description copied from interface: Player
      +
      Clears the SurfaceHolder that holds the Surface onto which video is being + rendered if it matches the one passed. Else does nothing. + +

      This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

      +
      +
      Parameters:
      +
      surfaceHolder - The surface holder to clear.
      +
      +
    • +
    + + + +
      +
    • +

      clearVideoSurfaceView

      +
      public final void clearVideoSurfaceView​(@Nullable
      +                                        SurfaceView surfaceView)
      +
      Description copied from interface: Player
      +
      Clears the SurfaceView onto which video is being rendered if it matches the one passed. + Else does nothing. + +

      This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

      +
      +
      Parameters:
      +
      surfaceView - The texture view to clear.
      +
      +
    • +
    @@ -1825,7 +2096,9 @@ public final TextureView textureView)
    Description copied from interface: Player
    Clears the TextureView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    textureView - The texture view to clear.
    @@ -1873,7 +2146,9 @@ public final public final CueGroup getCurrentCues()
    Description copied from interface: Player
    -
    Returns the current CueGroup.
    +
    Returns the current CueGroup. + +

    This method must only be called if Player.COMMAND_GET_TEXT is available.

    @@ -1903,7 +2178,9 @@ public final Util.getStreamTypeForAudioUsage(int).

    For devices with remote playback, the volume of the - remote device is returned. + remote device is returned. + +

    This method must only be called if Player.COMMAND_GET_DEVICE_VOLUME is available. @@ -1914,7 +2191,9 @@ public final public final boolean isDeviceMuted()

    -
    Gets whether the device is muted or not.
    +
    Gets whether the device is muted or not. + +

    This method must only be called if Player.COMMAND_GET_DEVICE_VOLUME is available.

    @@ -1925,7 +2204,9 @@ public final public final void setDeviceVolume​(int volume) -
    Sets the volume of the device.
    +
    Sets the volume of the device. + +

    This method must only be called if Player.COMMAND_SET_DEVICE_VOLUME is available.

    Parameters:
    volume - The volume to set.
    @@ -1940,7 +2221,9 @@ public final public final void increaseDeviceVolume() -
    Increases the volume of the device.
    +
    Increases the volume of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    @@ -1951,7 +2234,9 @@ public final public final void decreaseDeviceVolume() -
    Decreases the volume of the device.
    +
    Decreases the volume of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    @@ -1962,7 +2247,9 @@ public final public final void setDeviceMuted​(boolean muted) -
    Sets the mute state of the device.
    +
    Sets the mute state of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    @@ -2024,15 +2311,37 @@ protected  + + + - @@ -1766,7 +1768,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    Deprecated.
    Description copied from interface: Player
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView - currently set on the player.
    + currently set on the player. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    clearVideoSurface in interface ExoPlayer.VideoComponent
    @@ -1786,7 +1790,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    Deprecated.
    Description copied from interface: Player
    Clears the Surface onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    clearVideoSurface in interface ExoPlayer.VideoComponent
    @@ -1813,7 +1819,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb

    If the surface is held by a SurfaceView, TextureView or SurfaceHolder then it's recommended to use Player.setVideoSurfaceView(SurfaceView), Player.setVideoTextureView(TextureView) or Player.setVideoSurfaceHolder(SurfaceHolder) rather than this method, since passing the holder allows the player to track the lifecycle of the surface - automatically. + automatically. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    setVideoSurface in interface ExoPlayer.VideoComponent
    @@ -1838,7 +1846,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb rendered. The player will track the lifecycle of the surface automatically.

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper(). + associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    setVideoSurfaceHolder in interface ExoPlayer.VideoComponent
    @@ -1860,7 +1870,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    Deprecated.
    Description copied from interface: Player
    Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed. Else does nothing.
    + rendered if it matches the one passed. Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    clearVideoSurfaceHolder in interface ExoPlayer.VideoComponent
    @@ -1885,7 +1897,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb lifecycle of the surface automatically.

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper(). + associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    setVideoSurfaceView in interface ExoPlayer.VideoComponent
    @@ -1907,7 +1921,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    Deprecated.
    Description copied from interface: Player
    Clears the SurfaceView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    clearVideoSurfaceView in interface ExoPlayer.VideoComponent
    @@ -1932,7 +1948,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb lifecycle of the surface automatically.

    The thread that calls the TextureView.SurfaceTextureListener methods must be the - thread associated with Player.getApplicationLooper(). + thread associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    setVideoTextureView in interface ExoPlayer.VideoComponent
    @@ -1954,7 +1972,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    Deprecated.
    Description copied from interface: Player
    Clears the TextureView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Specified by:
    clearVideoTextureView in interface ExoPlayer.VideoComponent
    @@ -1974,7 +1994,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    public void addAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    Deprecated.
    Description copied from interface: ExoPlayer
    -
    Adds a listener to receive audio offload events.
    +
    Adds a listener to receive audio offload events. + +

    This method can be called from any thread.

    Specified by:
    addAudioOffloadListener in interface ExoPlayer
    @@ -2045,7 +2067,9 @@ public @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int&nb
    public AudioAttributes getAudioAttributes()
    Deprecated.
    Description copied from interface: Player
    -
    Returns the attributes for audio playback.
    +
    Returns the attributes for audio playback. + +

    This method must only be called if Player.COMMAND_GET_AUDIO_ATTRIBUTES is available.

    Specified by:
    getAudioAttributes in interface ExoPlayer.AudioComponent
    @@ -2163,7 +2187,9 @@ public void setPreferredAudioDevice​(@Nullable
    Deprecated.
    Description copied from interface: Player
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal - unchanged), inclusive.
    + unchanged), inclusive. + +

    This method must only be called if Player.COMMAND_SET_VOLUME is available.

    Specified by:
    setVolume in interface ExoPlayer.AudioComponent
    @@ -2183,7 +2209,9 @@ public void setPreferredAudioDevice​(@Nullable
    public float getVolume()
    Deprecated.
    Description copied from interface: Player
    -
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged). + +

    This method must only be called if Player.COMMAND_GET_VOLUME is available.

    Specified by:
    getVolume in interface ExoPlayer.AudioComponent
    @@ -2257,7 +2285,9 @@ public void setPreferredAudioDevice​(@Nullable
    public void addAnalyticsListener​(AnalyticsListener listener)
    Deprecated.
    Description copied from interface: ExoPlayer
    -
    Adds an AnalyticsListener to receive analytics events.
    +
    Adds an AnalyticsListener to receive analytics events. + +

    This method can be called from any thread.

    Specified by:
    addAnalyticsListener in interface ExoPlayer
    @@ -2490,7 +2520,9 @@ public public CueGroup getCurrentCues()
    Deprecated.
    Description copied from interface: Player
    -
    Returns the current CueGroup.
    +
    Returns the current CueGroup. + +

    This method must only be called if Player.COMMAND_GET_TEXT is available.

    Specified by:
    getCurrentCues in interface ExoPlayer.TextComponent
    @@ -2508,7 +2540,9 @@ public public Looper getPlaybackLooper()
    Deprecated.
    Description copied from interface: ExoPlayer
    -
    Returns the Looper associated with the playback thread.
    +
    Returns the Looper associated with the playback thread. + +

    This method may be called from any thread.

    Specified by:
    getPlaybackLooper in interface ExoPlayer
    @@ -2525,7 +2559,9 @@ public Deprecated.
    Returns the Looper associated with the application thread that's used to access the - player and on which player events are received.
    + player and on which player events are received. + +

    This method can be called from any thread.

    Specified by:
    getApplicationLooper in interface Player
    @@ -2541,7 +2577,9 @@ public public Clock getClock()
    Deprecated.
    Description copied from interface: ExoPlayer
    -
    Returns the Clock used for playback.
    +
    Returns the Clock used for playback. + +

    This method can be called from any thread.

    Specified by:
    getClock in interface ExoPlayer
    @@ -2559,7 +2597,9 @@ public Description copied from interface: Player
    Registers a listener to receive all events from the player. -

    The listener's methods will be called on the thread associated with Player.getApplicationLooper().

    +

    The listener's methods will be called on the thread associated with Player.getApplicationLooper(). + +

    This method can be called from any thread.

    Specified by:
    addListener in interface Player
    @@ -2597,12 +2637,12 @@ public Deprecated. -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    Specified by:
    getPlaybackState in interface Player
    Returns:
    -
    The current playback state.
    +
    The current playback state.
    See Also:
    Player.Listener.onPlaybackStateChanged(int)
    @@ -2624,7 +2664,7 @@ public @com.google.android.exoplayer2.Player.PlaybackSuppressionReason int&
    Specified by:
    getPlaybackSuppressionReason in interface Player
    Returns:
    -
    The current playback suppression reason.
    +
    The current Player.PlaybackSuppressionReason.
    See Also:
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -2683,13 +2723,7 @@ public void retry()
    Returns the player's currently available Player.Commands.

    The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands - change. - -

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a Player.getPlayerError() player error}. - -

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem.

    + change.
    Specified by:
    getAvailableCommands in interface Player
    @@ -2711,6 +2745,8 @@ public void retry()
    Description copied from interface: Player
    Prepares the player. +

    This method must only be called if Player.COMMAND_PREPARE is available. +

    This will move the player out of idle state and the player will start loading media and acquire resources needed for playback.

    @@ -2766,12 +2802,14 @@ public void prepare​(Deprecated. -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    setMediaItems in interface Player
    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -2789,12 +2827,14 @@ public void prepare​(Deprecated. -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    setMediaItems in interface Player
    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In @@ -2939,14 +2979,16 @@ public void prepare​(List<MediaItem> mediaItems)
    Deprecated.
    Description copied from interface: Player
    -
    Adds a list of media items at the given index of the playlist.
    +
    Adds a list of media items at the given index of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    addMediaItems in interface Player
    Parameters:
    index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -3037,13 +3079,17 @@ public void prepare​(Deprecated. -
    Moves the media item range to the new index.
    +
    Moves the media item range to the new index. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    moveMediaItems in interface Player
    Parameters:
    -
    fromIndex - The start of the range to move.
    -
    toIndex - The first item not to be included in the range (exclusive).
    +
    fromIndex - The start of the range to move. If the index is larger than the size of the + playlist, the request is ignored.
    +
    toIndex - The first item not to be included in the range (exclusive). If the index is + larger than the size of the playlist, items up to the end of the playlist are moved.
    newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
    @@ -3060,14 +3106,17 @@ public void prepare​(Deprecated. -
    Removes a range of media items from the playlist.
    +
    Removes a range of media items from the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Specified by:
    removeMediaItems in interface Player
    Parameters:
    -
    fromIndex - The index at which to start removing media items.
    +
    fromIndex - The index at which to start removing media items. If the index is larger than + the size of the playlist, the request is ignored.
    toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
    + the size of the playlist, media items up to the end of the playlist are removed.
    @@ -3100,7 +3149,9 @@ public void prepare​(Description copied from interface: Player
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. -

    If the player is already in the ready state then this method pauses and resumes playback.

    +

    If the player is already in the ready state then this method pauses and resumes playback. + +

    This method must only be called if Player.COMMAND_PLAY_PAUSE is available.

    Specified by:
    setPlayWhenReady in interface Player
    @@ -3198,7 +3249,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Deprecated.
    Description copied from interface: Player
    -
    Sets the Player.RepeatMode to be used for playback.
    +
    Sets the Player.RepeatMode to be used for playback. + +

    This method must only be called if Player.COMMAND_SET_REPEAT_MODE is available.

    Specified by:
    setRepeatMode in interface Player
    @@ -3216,7 +3269,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM
    public void setShuffleModeEnabled​(boolean shuffleModeEnabled)
    Deprecated.
    Description copied from interface: Player
    -
    Sets whether shuffling of media items is enabled.
    +
    Sets whether shuffling of media items is enabled. + +

    This method must only be called if Player.COMMAND_SET_SHUFFLE_MODE is available.

    Specified by:
    setShuffleModeEnabled in interface Player
    @@ -3263,24 +3318,29 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM
    - +
    • seekTo

      public void seekTo​(int mediaItemIndex,
      -                   long positionMs)
      + long positionMs, + @Command + @com.google.android.exoplayer2.Player.Command int seekCommand, + boolean isRepeatingCurrentItem)
      Deprecated.
      -
      Description copied from interface: Player
      -
      Seeks to a position specified in milliseconds in the specified MediaItem.
      +
      Description copied from class: BasePlayer
      +
      Seeks to a position in the specified MediaItem.
      Specified by:
      -
      seekTo in interface Player
      +
      seekTo in class BasePlayer
      Parameters:
      mediaItemIndex - The index of the MediaItem.
      -
      positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET - to seek to the media item's default position.
      +
      positionMs - The seek position in the specified MediaItem in milliseconds, or + C.TIME_UNSET to seek to the media item's default position.
      +
      seekCommand - The Player.Command used to trigger the seek.
      +
      isRepeatingCurrentItem - Whether this seeks repeats the current item.
    @@ -3357,7 +3417,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM player to the default, which means there is no speed or pitch adjustment.

    Playback parameters changes may cause the player to buffer. Player.Listener.onPlaybackParametersChanged(PlaybackParameters) will be called whenever the currently - active playback parameters change. + active playback parameters change. + +

    This method must only be called if Player.COMMAND_SET_SPEED_AND_PITCH is available.

    Specified by:
    setPlaybackParameters in interface Player
    @@ -3478,7 +3540,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM still be called on the player if it's no longer required.

    Calling this method does not clear the playlist, reset the playback position or the playback - error. + error. + +

    This method must only be called if Player.COMMAND_STOP is available.

    Specified by:
    stop in interface Player
    @@ -3668,7 +3732,9 @@ public public Tracks getCurrentTracks()
    Deprecated.
    Description copied from interface: Player
    -
    Returns the current tracks.
    +
    Returns the current tracks. + +

    This method must only be called if Player.COMMAND_GET_TRACKS is available.

    Specified by:
    getCurrentTracks in interface Player
    @@ -3718,7 +3784,10 @@ public Player.COMMAND_SET_TRACK_SELECTION_PARAMETERS is + available.
    Specified by:
    setTrackSelectionParameters in interface Player
    @@ -3740,7 +3809,9 @@ public MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and any timed metadata that has been parsed from the media and output via Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, - it will be prioritised above the same field coming from static or timed metadata. + it will be prioritised above the same field coming from static or timed metadata. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available.

    Specified by:
    getMediaMetadata in interface Player
    @@ -3756,7 +3827,9 @@ public public MediaMetadata getPlaylistMetadata()
    Deprecated.
    Description copied from interface: Player
    -
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    +
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available.

    Specified by:
    getPlaylistMetadata in interface Player
    @@ -3772,7 +3845,9 @@ public public void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    Deprecated.
    Description copied from interface: Player
    -
    Sets the playlist MediaMetadata.
    +
    Sets the playlist MediaMetadata. + +

    This method must only be called if Player.COMMAND_SET_MEDIA_ITEMS_METADATA is available.

    Specified by:
    setPlaylistMetadata in interface Player
    @@ -3788,7 +3863,9 @@ public public Timeline getCurrentTimeline()
    Deprecated.
    Description copied from interface: Player
    -
    Returns the current Timeline. Never null, but may be empty.
    +
    Returns the current Timeline. Never null, but may be empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getCurrentTimeline in interface Player
    @@ -3806,7 +3883,9 @@ public public int getCurrentPeriodIndex()
    Deprecated.
    -
    Returns the index of the period currently being played.
    +
    Returns the index of the period currently being played. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getCurrentPeriodIndex in interface Player
    @@ -3823,7 +3902,9 @@ public Deprecated.
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is - empty.
    + empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    Specified by:
    getCurrentMediaItemIndex in interface Player
    @@ -3840,7 +3921,9 @@ public Deprecated.
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if - the duration is not known.
    + the duration is not known. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getDuration in interface Player
    @@ -3857,7 +3940,9 @@ public Deprecated.
    Returns the playback position in the current content or ad, in milliseconds, or the prospective - position in milliseconds if the current timeline is empty.
    + position in milliseconds if the current timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getCurrentPosition in interface Player
    @@ -3874,7 +3959,9 @@ public Deprecated.
    Returns an estimate of the position in the current content or ad up to which data is buffered, - in milliseconds.
    + in milliseconds. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getBufferedPosition in interface Player
    @@ -3891,7 +3978,9 @@ public Deprecated.
    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and media items.
    + This includes pre-buffered data for subsequent ads and media items. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getTotalBufferedDuration in interface Player
    @@ -3907,7 +3996,9 @@ public public boolean isPlayingAd()
    Deprecated.
    -
    Returns whether the player is currently playing an ad.
    +
    Returns whether the player is currently playing an ad. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    isPlayingAd in interface Player
    @@ -3924,7 +4015,9 @@ public Deprecated.
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period - currently being played. Returns C.INDEX_UNSET otherwise.
    + currently being played. Returns C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getCurrentAdGroupIndex in interface Player
    @@ -3941,7 +4034,9 @@ public Deprecated.
    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group. Returns - C.INDEX_UNSET otherwise.
    + C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getCurrentAdIndexInAdGroup in interface Player
    @@ -3959,7 +4054,9 @@ public Description copied from interface: Player
    If Player.isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getCurrentPosition().
    + playing, the returned position is the same as that returned by Player.getCurrentPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getContentPosition in interface Player
    @@ -3977,7 +4074,9 @@ public Description copied from interface: Player
    If Player.isPlayingAd() returns true, returns an estimate of the content position in the current content up to which data is buffered, in milliseconds. If there is no ad playing, - the returned position is the same as that returned by Player.getBufferedPosition().
    + the returned position is the same as that returned by Player.getBufferedPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    Specified by:
    getContentBufferedPosition in interface Player
    @@ -4063,7 +4162,9 @@ public void setHandleWakeLock​(boolean handleWakeLock)Util.getStreamTypeForAudioUsage(int).

    For devices with remote playback, the volume of the - remote device is returned. + remote device is returned. + +

    This method must only be called if Player.COMMAND_GET_DEVICE_VOLUME is available.

    Specified by:
    getDeviceVolume in interface ExoPlayer.DeviceComponent
    @@ -4081,7 +4182,9 @@ public void setHandleWakeLock​(boolean handleWakeLock)public boolean isDeviceMuted()
    Deprecated.
    Description copied from interface: Player
    -
    Gets whether the device is muted or not.
    +
    Gets whether the device is muted or not. + +

    This method must only be called if Player.COMMAND_GET_DEVICE_VOLUME is available.

    Specified by:
    isDeviceMuted in interface ExoPlayer.DeviceComponent
    @@ -4099,7 +4202,9 @@ public void setHandleWakeLock​(boolean handleWakeLock)public void setDeviceVolume​(int volume)
    Deprecated.
    Description copied from interface: Player
    -
    Sets the volume of the device.
    +
    Sets the volume of the device. + +

    This method must only be called if Player.COMMAND_SET_DEVICE_VOLUME is available.

    Specified by:
    setDeviceVolume in interface ExoPlayer.DeviceComponent
    @@ -4119,7 +4224,9 @@ public void setHandleWakeLock​(boolean handleWakeLock)public void increaseDeviceVolume()
    Deprecated.
    Description copied from interface: Player
    -
    Increases the volume of the device.
    +
    Increases the volume of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    Specified by:
    increaseDeviceVolume in interface ExoPlayer.DeviceComponent
    @@ -4137,7 +4244,9 @@ public void setHandleWakeLock​(boolean handleWakeLock)public void decreaseDeviceVolume()
    Deprecated.
    Description copied from interface: Player
    -
    Decreases the volume of the device.
    +
    Decreases the volume of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    Specified by:
    decreaseDeviceVolume in interface ExoPlayer.DeviceComponent
    @@ -4155,7 +4264,9 @@ public void setHandleWakeLock​(boolean handleWakeLock)public void setDeviceMuted​(boolean muted)
    Deprecated.
    Description copied from interface: Player
    -
    Sets the mute state of the device.
    +
    Sets the mute state of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    Specified by:
    setDeviceMuted in interface ExoPlayer.DeviceComponent
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Timeline.RemotableTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/Timeline.RemotableTimeline.html index ec5f5723de..c256d1f57b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Timeline.RemotableTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Timeline.RemotableTimeline.html @@ -317,7 +317,7 @@ extends T

    Methods inherited from class com.google.android.exoplayer2.Timeline

    -equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle +equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundleWithOneWindowOnly
    @@ -1746,7 +1775,7 @@ public void release()
    onPlayWhenReadyChanged in interface Player.Listener
    Parameters:
    playWhenReady - Whether playback will proceed when ready.
    -
    reason - The reason for the change.
    +
    reason - The Player.PlayWhenReadyChangeReason for the change.
    @@ -1828,7 +1857,7 @@ public void release()
    Specified by:
    onShuffleModeEnabledChanged in interface Player.Listener
    Parameters:
    -
    shuffleModeEnabled - Whether shuffling of media items is enabled.
    +
    shuffleModeEnabled - Whether shuffling of media items is enabled.
    @@ -1931,10 +1960,10 @@ public void release()

    onPlaybackParametersChanged

    public final void onPlaybackParametersChanged​(PlaybackParameters playbackParameters)
    Description copied from interface: Player.Listener
    -
    Called when the current playback parameters change. The playback parameters may change due to - a call to Player.setPlaybackParameters(PlaybackParameters), or the player itself may change - them (for example, if audio playback switches to passthrough or offload mode, where speed - adjustment is no longer possible). +
    Called when the value of Player.getPlaybackParameters() changes. The playback parameters + may change due to a call to Player.setPlaybackParameters(PlaybackParameters), or the player + itself may change them (for example, if audio playback switches to passthrough or offload + mode, where speed adjustment is no longer possible).

    Player.Listener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -2015,11 +2044,7 @@ public void release()

    onMediaMetadataChanged

    public void onMediaMetadataChanged​(MediaMetadata mediaMetadata)
    Description copied from interface: Player.Listener
    -
    Called when the combined MediaMetadata changes. - -

    The provided MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and - any timed metadata that has been parsed from the media and output via Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, it will be prioritised above the same field coming from static or - timed metadata. +

    Called when the value of Player.getMediaMetadata() changes.

    This method may be called multiple times in quick succession. @@ -2041,7 +2066,7 @@ public void release()

    onPlaylistMetadataChanged

    public void onPlaylistMetadataChanged​(MediaMetadata playlistMetadata)
    Description copied from interface: Player.Listener
    -
    Called when the playlist MediaMetadata changes. +
    Called when the value of Player.getPlaylistMetadata() changes.

    Player.Listener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -2079,10 +2104,10 @@ public void release()

    onCues

    public void onCues​(List<Cue> cues)
    Description copied from interface: Player.Listener
    -
    Called when there is a change in the Cues. +
    Called when the value of Player.getCurrentCues() changes. -

    Both Player.Listener.onCues(List) and Player.Listener.onCues(CueGroup) are called when there is a change - in the cues. You should only implement one or the other. +

    Both this method and Player.Listener.onCues(CueGroup) are called when there is a change in the + cues. You should only implement one or the other.

    Player.Listener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -2100,10 +2125,10 @@ public void release()

    onCues

    public void onCues​(CueGroup cueGroup)
    Description copied from interface: Player.Listener
    -
    Called when there is a change in the CueGroup. +
    Called when the value of Player.getCurrentCues() changes. -

    Both Player.Listener.onCues(List) and Player.Listener.onCues(CueGroup) are called when there is a change - in the cues. You should only implement one or the other. +

    Both this method and Player.Listener.onCues(List) are called when there is a change in the cues. + You should only implement one or the other.

    Player.Listener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -2174,7 +2199,7 @@ public void release()

    onAudioAttributesChanged

    public final void onAudioAttributesChanged​(AudioAttributes audioAttributes)
    Description copied from interface: Player.Listener
    -
    Called when the audio attributes change. +
    Called when the value of Player.getAudioAttributes() changes.

    Player.Listener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -2255,7 +2280,7 @@ public void release()
    public void onDeviceVolumeChanged​(int volume,
                                       boolean muted)
    Description copied from interface: Player.Listener
    -
    Called when the device volume or mute state changes. +
    Called when the value of Player.getDeviceVolume() or Player.isDeviceMuted() changes.

    Player.Listener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

    @@ -2301,8 +2326,6 @@ public void release()

    State changes and events that happen within one Looper message queue iteration are reported together and only after all individual callbacks were triggered. -

    Only state changes represented by events are reported through this method. -

    Listeners should prefer this method over individual callbacks in the following cases:

      diff --git a/docs/doc/reference/com/google/android/exoplayer2/audio/Ac3Util.SyncFrameInfo.html b/docs/doc/reference/com/google/android/exoplayer2/audio/Ac3Util.SyncFrameInfo.html index d5e74d67f6..bbdfa5b227 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/audio/Ac3Util.SyncFrameInfo.html +++ b/docs/doc/reference/com/google/android/exoplayer2/audio/Ac3Util.SyncFrameInfo.html @@ -177,68 +177,75 @@ extends int +bitrate + +
      The bitrate of audio samples.
      + + + +int channelCount
      The number of audio channels
      - + int frameSize
      The size of the frame.
      - + String mimeType
      The sample mime type of the bitstream.
      - + int sampleCount
      Number of audio samples in the frame.
      - + int sampleRate
      The audio sampling rate in Hz.
      - + static int STREAM_TYPE_TYPE0
      Type 0 AC3 stream type.
      - + static int STREAM_TYPE_TYPE1
      Type 1 AC3 stream type.
      - + static int STREAM_TYPE_TYPE2
      Type 2 AC3 stream type.
      - + static int STREAM_TYPE_UNDEFINED
      Undefined AC3 stream type.
      - + @com.google.android.exoplayer2.audio.Ac3Util.SyncFrameInfo.StreamType int streamType @@ -389,13 +396,23 @@ public final  -
        +
        • sampleCount

          public final int sampleCount
          Number of audio samples in the frame.
        + + + +
          +
        • +

          bitrate

          +
          public final int bitrate
          +
          The bitrate of audio samples.
          +
        • +
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/audio/DefaultAudioSink.AudioTrackBufferSizeProvider.html b/docs/doc/reference/com/google/android/exoplayer2/audio/DefaultAudioSink.AudioTrackBufferSizeProvider.html index 72387deb5d..89c8cc4c93 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/audio/DefaultAudioSink.AudioTrackBufferSizeProvider.html +++ b/docs/doc/reference/com/google/android/exoplayer2/audio/DefaultAudioSink.AudioTrackBufferSizeProvider.html @@ -178,11 +178,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); int -getBufferSizeInBytes​(int minBufferSizeInBytes, +getBufferSizeInBytes​(int minBufferSizeInBytes, @com.google.android.exoplayer2.C.Encoding int encoding, @com.google.android.exoplayer2.audio.DefaultAudioSink.OutputMode int outputMode, int pcmFrameSize, int sampleRate, + int bitrate, double maxAudioTrackPlaybackSpeed)
      Returns the buffer size to use when creating an AudioTrack for a specific format and @@ -226,7 +227,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

      Method Detail

      - +
    @@ -507,13 +513,14 @@ implements Returns the buffer size for PCM playback.
    - +
    • getPassthroughBufferSizeInBytes

      -
      protected int getPassthroughBufferSizeInBytes​(@com.google.android.exoplayer2.C.Encoding int encoding)
      +
      protected int getPassthroughBufferSizeInBytes​(@com.google.android.exoplayer2.C.Encoding int encoding,
      +                                              int bitrate)
      Returns the buffer size for passthrough playback.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/audio/OpusUtil.html b/docs/doc/reference/com/google/android/exoplayer2/audio/OpusUtil.html index a194e04330..39a0292b8c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/audio/OpusUtil.html +++ b/docs/doc/reference/com/google/android/exoplayer2/audio/OpusUtil.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9}; +var data = {"i0":9,"i1":9,"i2":9,"i3":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -154,6 +154,13 @@ extends static int +MAX_BYTES_PER_SECOND + +
    Maximum achievable Opus bitrate.
    + + + +static int SAMPLE_RATE
    Opus streams are always 48000 Hz.
    @@ -191,6 +198,20 @@ extends Parses the channel count from an Opus Identification Header.
    + +static long +getPacketDurationUs​(byte[] buffer) + +
    Returns the duration of the given audio packet.
    + + + +static int +parsePacketAudioSampleCount​(ByteBuffer buffer) + +
    Returns the number of audio samples in the given audio packet.
    + +
    @@ -1025,7 +1029,9 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    Registers a listener to receive all events from the player. -

    The listener's methods will be called on the thread associated with Player.getApplicationLooper().

    +

    The listener's methods will be called on the thread associated with Player.getApplicationLooper(). + +

    This method can be called from any thread.

    Parameters:
    listener - The listener to register.
    @@ -1057,10 +1063,12 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    public void setMediaItems​(List<MediaItem> mediaItems,
                               boolean resetPosition)
    Description copied from interface: Player
    -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -1077,10 +1085,12 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n int startIndex, long startPositionMs)
    Description copied from interface: Player
    -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In @@ -1098,12 +1108,14 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    public void addMediaItems​(int index,
                               List<MediaItem> mediaItems)
    Description copied from interface: Player
    -
    Adds a list of media items at the given index of the playlist.
    +
    Adds a list of media items at the given index of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -1117,11 +1129,15 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n int toIndex, int newIndex)
    Description copied from interface: Player
    -
    Moves the media item range to the new index.
    +
    Moves the media item range to the new index. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The start of the range to move.
    -
    toIndex - The first item not to be included in the range (exclusive).
    +
    fromIndex - The start of the range to move. If the index is larger than the size of the + playlist, the request is ignored.
    +
    toIndex - The first item not to be included in the range (exclusive). If the index is + larger than the size of the playlist, items up to the end of the playlist are moved.
    newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
    @@ -1137,12 +1153,15 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    public void removeMediaItems​(int fromIndex,
                                  int toIndex)
    Description copied from interface: Player
    -
    Removes a range of media items from the playlist.
    +
    Removes a range of media items from the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The index at which to start removing media items.
    +
    fromIndex - The index at which to start removing media items. If the index is larger than + the size of the playlist, the request is ignored.
    toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
    + the size of the playlist, media items up to the end of the playlist are removed.
    @@ -1157,13 +1176,7 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    Returns the player's currently available Player.Commands.

    The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands - change. - -

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a Player.getPlayerError() player error}. - -

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem.

    + change.
    Returns:
    The currently available Player.Commands.
    @@ -1182,6 +1195,8 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    Description copied from interface: Player
    Prepares the player. +

    This method must only be called if Player.COMMAND_PREPARE is available. +

    This will move the player out of idle state and the player will start loading media and acquire resources needed for playback.

    @@ -1195,10 +1210,10 @@ public com.google.android.gms.cast.MediaQueueItem getItem​(int&n
    @State
     public @com.google.android.exoplayer2.Player.State int getPlaybackState()
    Description copied from interface: Player
    -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    Returns:
    -
    The current playback state.
    +
    The current playback state.
    See Also:
    Player.Listener.onPlaybackStateChanged(int)
    @@ -1217,7 +1232,7 @@ public @com.google.android.exoplayer2.Player.PlaybackSuppressionReason int& true
    , or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    Returns:
    -
    The current playback suppression reason.
    +
    The current Player.PlaybackSuppressionReason.
    See Also:
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -1256,7 +1271,9 @@ public Description copied from interface: Player
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. -

    If the player is already in the ready state then this method pauses and resumes playback.

    +

    If the player is already in the ready state then this method pauses and resumes playback. + +

    This method must only be called if Player.COMMAND_PLAY_PAUSE is available.

    Parameters:
    playWhenReady - Whether playback should proceed when ready.
    @@ -1280,21 +1297,28 @@ public  +
    • seekTo

      public void seekTo​(int mediaItemIndex,
      -                   long positionMs)
      -
      Description copied from interface: Player
      -
      Seeks to a position specified in milliseconds in the specified MediaItem.
      + long positionMs, + @Command + @com.google.android.exoplayer2.Player.Command int seekCommand, + boolean isRepeatingCurrentItem) +
      Description copied from class: BasePlayer
      +
      Seeks to a position in the specified MediaItem.
      +
      Specified by:
      +
      seekTo in class BasePlayer
      Parameters:
      mediaItemIndex - The index of the MediaItem.
      -
      positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET - to seek to the media item's default position.
      +
      positionMs - The seek position in the specified MediaItem in milliseconds, or + C.TIME_UNSET to seek to the media item's default position.
      +
      seekCommand - The Player.Command used to trigger the seek.
      +
      isRepeatingCurrentItem - Whether this seeks repeats the current item.
    @@ -1381,7 +1405,9 @@ public Player.COMMAND_STOP is available. @@ -1423,7 +1449,9 @@ public void stop​(boolean reset) player to the default, which means there is no speed or pitch adjustment.

    Playback parameters changes may cause the player to buffer. Player.Listener.onPlaybackParametersChanged(PlaybackParameters) will be called whenever the currently - active playback parameters change. + active playback parameters change. + +

    This method must only be called if Player.COMMAND_SET_SPEED_AND_PITCH is available.

    Parameters:
    playbackParameters - The playback parameters.
    @@ -1439,7 +1467,9 @@ public void stop​(boolean reset)
    public void setRepeatMode​(@RepeatMode
                               @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Description copied from interface: Player
    -
    Sets the Player.RepeatMode to be used for playback.
    +
    Sets the Player.RepeatMode to be used for playback. + +

    This method must only be called if Player.COMMAND_SET_REPEAT_MODE is available.

    Parameters:
    repeatMode - The repeat mode.
    @@ -1472,7 +1502,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    setShuffleModeEnabled

    public void setShuffleModeEnabled​(boolean shuffleModeEnabled)
    Description copied from interface: Player
    -
    Sets whether shuffling of media items is enabled.
    +
    Sets whether shuffling of media items is enabled. + +

    This method must only be called if Player.COMMAND_SET_SHUFFLE_MODE is available.

    Parameters:
    shuffleModeEnabled - Whether shuffling is enabled.
    @@ -1502,7 +1534,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    getCurrentTracks

    public Tracks getCurrentTracks()
    Description copied from interface: Player
    -
    Returns the current tracks.
    +
    Returns the current tracks. + +

    This method must only be called if Player.COMMAND_GET_TRACKS is available.

    See Also:
    Player.Listener.onTracksChanged(Tracks)
    @@ -1546,7 +1580,10 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM .buildUpon() .setMaxVideoSizeSd() .build()) -
    + + +

    This method must only be called if Player.COMMAND_SET_TRACK_SELECTION_PARAMETERS is + available. @@ -1563,7 +1600,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    This MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and any timed metadata that has been parsed from the media and output via Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, - it will be prioritised above the same field coming from static or timed metadata. + it will be prioritised above the same field coming from static or timed metadata. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available. @@ -1583,7 +1622,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    getPlaylistMetadata

    public MediaMetadata getPlaylistMetadata()
    Description copied from interface: Player
    -
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    +
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available.

    @@ -1604,7 +1645,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    getCurrentTimeline

    public Timeline getCurrentTimeline()
    Description copied from interface: Player
    -
    Returns the current Timeline. Never null, but may be empty.
    +
    Returns the current Timeline. Never null, but may be empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    See Also:
    Player.Listener.onTimelineChanged(Timeline, int)
    @@ -1619,7 +1662,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    getCurrentPeriodIndex

    public int getCurrentPeriodIndex()
    Description copied from interface: Player
    -
    Returns the index of the period currently being played.
    +
    Returns the index of the period currently being played. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    @@ -1631,7 +1676,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM
    public int getCurrentMediaItemIndex()
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is - empty.
    + empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available. @@ -1643,7 +1690,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    public long getDuration()
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if - the duration is not known.
    + the duration is not known. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1655,7 +1704,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    public long getCurrentPosition()
    Returns the playback position in the current content or ad, in milliseconds, or the prospective - position in milliseconds if the current timeline is empty.
    + position in milliseconds if the current timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1667,7 +1718,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    public long getBufferedPosition()
    Returns an estimate of the position in the current content or ad up to which data is buffered, - in milliseconds.
    + in milliseconds. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1679,7 +1732,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    public long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and media items.
    + This includes pre-buffered data for subsequent ads and media items. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1690,7 +1745,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    isPlayingAd

    public boolean isPlayingAd()
    -
    Returns whether the player is currently playing an ad.
    +
    Returns whether the player is currently playing an ad. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    @@ -1702,7 +1759,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM
    public int getCurrentAdGroupIndex()
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period - currently being played. Returns C.INDEX_UNSET otherwise.
    + currently being played. Returns C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1714,7 +1773,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    public int getCurrentAdIndexInAdGroup()
    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group. Returns - C.INDEX_UNSET otherwise.
    + C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1744,7 +1805,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    If Player.isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getCurrentPosition().
    + playing, the returned position is the same as that returned by Player.getCurrentPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1757,7 +1820,9 @@ public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatM

    If Player.isPlayingAd() returns true, returns an estimate of the content position in the current content up to which data is buffered, in milliseconds. If there is no ad playing, - the returned position is the same as that returned by Player.getBufferedPosition().
    + the returned position is the same as that returned by Player.getBufferedPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.Builder.html index 2f89d4eebe..4bf95e9279 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.Builder.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -217,6 +217,13 @@ extends ImaServerSideAdInsertionMediaSource.AdsLoader.Builder +setFocusSkipButtonWhenAvailable​(boolean focusSkipButtonWhenAvailable) + +

    Sets whether to focus the skip button (when available) on Android TV devices.
    + + + +ImaServerSideAdInsertionMediaSource.AdsLoader.Builder setImaSdkSettings​(com.google.ads.interactivemedia.v3.api.ImaSdkSettings imaSdkSettings)
    Sets the IMA SDK settings.
    @@ -282,7 +289,7 @@ extends ImaServerSideAdInsertionMediaSource.AdsLoader.Builder setImaSdkSettings​(com.google.ads.interactivemedia.v3.api.ImaSdkSettings imaSdkSettings)
    Sets the IMA SDK settings. -

    If this method is not called the default settings will be used.

    +

    If this method is not called, the default settings will be used with the language set to the preferred system language.

    Parameters:
    imaSdkSettings - The ImaSdkSettings.
    @@ -363,6 +370,27 @@ public  + + + +
      +
    • +

      setFocusSkipButtonWhenAvailable

      +
      @CanIgnoreReturnValue
      +public ImaServerSideAdInsertionMediaSource.AdsLoader.Builder setFocusSkipButtonWhenAvailable​(boolean focusSkipButtonWhenAvailable)
      +
      Sets whether to focus the skip button (when available) on Android TV devices. The default + setting is true.
      +
      +
      Parameters:
      +
      focusSkipButtonWhenAvailable - Whether to focus the skip button (when available) on + Android TV devices.
      +
      Returns:
      +
      This builder, for convenience.
      +
      See Also:
      +
      AdsRenderingSettings.setFocusSkipButtonWhenAvailable(boolean)
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.html b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.html index f9b4798b6f..c8618578df 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaServerSideAdInsertionMediaSource.AdsLoader.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10}; +var data = {"i0":10,"i1":10,"i2":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -189,13 +189,20 @@ extends Description +void +focusSkipButton() + +
    Puts the focus on the skip button, if a skip button is present and an ad is playing.
    + + + ImaServerSideAdInsertionMediaSource.AdsLoader.State release()
    Releases resources.
    - + void setPlayer​(Player player) @@ -239,6 +246,20 @@ extends + + + +
      +
    • +

      focusSkipButton

      +
      public void focusSkipButton()
      +
      Puts the focus on the skip button, if a skip button is present and an ad is playing.
      +
      +
      See Also:
      +
      BaseManager.focus()
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/leanback/LeanbackPlayerAdapter.html b/docs/doc/reference/com/google/android/exoplayer2/ext/leanback/LeanbackPlayerAdapter.html index f2bbfacf97..1b9de85028 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/leanback/LeanbackPlayerAdapter.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/leanback/LeanbackPlayerAdapter.html @@ -256,7 +256,7 @@ implements void -seekTo​(long positionMs) +seekTo​(long positionInMs)   @@ -268,7 +268,7 @@ implements void -setProgressUpdatingEnabled​(boolean enabled) +setProgressUpdatingEnabled​(boolean enable)   @@ -379,7 +379,7 @@ implements
  • setProgressUpdatingEnabled

    -
    public void setProgressUpdatingEnabled​(boolean enabled)
    +
    public void setProgressUpdatingEnabled​(boolean enable)
    Overrides:
    setProgressUpdatingEnabled in class androidx.leanback.media.PlayerAdapter
    @@ -457,7 +457,7 @@ implements
  • seekTo

    -
    public void seekTo​(long positionMs)
    +
    public void seekTo​(long positionInMs)
    Overrides:
    seekTo in class androidx.leanback.media.PlayerAdapter
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html b/docs/doc/reference/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html index f8ba2d6d9e..df95e64bed 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -326,6 +326,14 @@ implements
    +DefaultExtractorsFactory +setTsSubtitleFormats​(List<Format> subtitleFormats) + +
    Sets a list of subtitle formats to pass to the DefaultTsPayloadReaderFactory used by + TsExtractor instances created by the factory.
    + +
    • @@ -594,6 +602,26 @@ public  + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html index a374c74e8f..b503cd1e93 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html +++ b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":42,"i10":10,"i11":9,"i12":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":42,"i11":10,"i12":9,"i13":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -302,19 +302,27 @@ extends boolean -isFormatSupported​(Format format) +isFormatFunctionallySupported​(Format format) -
      Returns whether the decoder may support decoding the given format.
      +
      Returns whether the decoder may functionally support decoding the given format.
      boolean +isFormatSupported​(Format format) + +
      Returns whether the decoder may support decoding the given format both functionally and + performantly.
      + + + +boolean isHdr10PlusOutOfBandMetadataSupported()
      Whether the codec handles HDR10+ out-of-band metadata.
      - + boolean isSeamlessAdaptationSupported​(Format format) @@ -322,7 +330,7 @@ extends format. - + boolean isSeamlessAdaptationSupported​(Format oldFormat, Format newFormat, @@ -333,7 +341,7 @@ extends - + boolean isVideoSizeAndRateSupportedV21​(int width, int height, @@ -342,7 +350,7 @@ extends Whether the decoder supports video with a given width, height and frame rate. - + static MediaCodecInfo newInstance​(String name, String mimeType, @@ -357,7 +365,7 @@ extends Creates an instance. - + String toString()   @@ -647,7 +655,8 @@ public final public boolean isFormatSupported​(Format format) throws MediaCodecUtil.DecoderQueryException -
      Returns whether the decoder may support decoding the given format.
      +
      Returns whether the decoder may support decoding the given format both functionally and + performantly.
      Parameters:
      format - The input media format.
      @@ -658,6 +667,22 @@ public final  + + +
        +
      • +

        isFormatFunctionallySupported

        +
        public boolean isFormatFunctionallySupported​(Format format)
        +
        Returns whether the decoder may functionally support decoding the given format.
        +
        +
        Parameters:
        +
        format - The input media format.
        +
        Returns:
        +
        Whether the decoder may functionally support decoding the given format.
        +
        +
      • +
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html index e3a63d8a21..3f5cc43057 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html +++ b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html @@ -221,8 +221,8 @@ extends getDecoderInfosSortedByFormatSupport​(List<MediaCodecInfo> decoderInfos, Format format) -
      Returns a copy of the provided decoder list sorted such that decoders with format support are - listed first.
      +
      Returns a copy of the provided decoder list sorted such that decoders with functional format + support are listed first.
      @@ -383,8 +383,8 @@ public static @CheckResult public static List<MediaCodecInfo> getDecoderInfosSortedByFormatSupport​(List<MediaCodecInfo> decoderInfos, Format format) -
      Returns a copy of the provided decoder list sorted such that decoders with format support are - listed first. The returned list is modifiable for convenience.
      +
      Returns a copy of the provided decoder list sorted such that decoders with functional format + support are listed first. The returned list is modifiable for convenience.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html index 2ede7c4667..4dab123364 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html @@ -209,7 +209,8 @@ extends default void populateMediaMetadata​(MediaMetadata.Builder builder) -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry.
    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    @@ -266,10 +267,8 @@ default byte[] getWrappedMetadataBytes()
  • populateMediaMetadata

    default void populateMediaMetadata​(MediaMetadata.Builder builder)
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    Parameters:
    builder - The builder to be updated.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/PictureFrame.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/PictureFrame.html index bcd47cffc6..749def51f2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/PictureFrame.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/PictureFrame.html @@ -314,7 +314,8 @@ implements void populateMediaMetadata​(MediaMetadata.Builder builder) -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry.
    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    @@ -492,10 +493,8 @@ implements public void populateMediaMetadata​(MediaMetadata.Builder builder)
    Description copied from interface: Metadata.Entry
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    Specified by:
    populateMediaMetadata in interface Metadata.Entry
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/VorbisComment.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/VorbisComment.html index a1c7e1bb86..d61f46d926 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/VorbisComment.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/flac/VorbisComment.html @@ -288,7 +288,8 @@ implements populateMediaMetadata​(MediaMetadata.Builder builder)
    Deprecated.
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry.
    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    @@ -424,10 +425,8 @@ implements public void populateMediaMetadata​(MediaMetadata.Builder builder)
    Deprecated.
    Description copied from interface: Metadata.Entry
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    Specified by:
    populateMediaMetadata in interface Metadata.Entry
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyHeaders.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyHeaders.html index 2318611071..6a379855f4 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyHeaders.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyHeaders.html @@ -311,7 +311,8 @@ implements void populateMediaMetadata​(MediaMetadata.Builder builder) -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry.
    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    @@ -528,10 +529,8 @@ public static public void populateMediaMetadata​(MediaMetadata.Builder builder)
    Description copied from interface: Metadata.Entry
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    Specified by:
    populateMediaMetadata in interface Metadata.Entry
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyInfo.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyInfo.html index 1ed9c27b0d..51bc7e8928 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyInfo.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/icy/IcyInfo.html @@ -270,7 +270,8 @@ implements void populateMediaMetadata​(MediaMetadata.Builder builder) -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry.
    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    @@ -405,10 +406,8 @@ public final public void populateMediaMetadata​(MediaMetadata.Builder builder)
    Description copied from interface: Metadata.Entry
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    Specified by:
    populateMediaMetadata in interface Metadata.Entry
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/ApicFrame.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/ApicFrame.html index 2edfa165fe..7d14e3d8a0 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/ApicFrame.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/ApicFrame.html @@ -278,7 +278,8 @@ extends void populateMediaMetadata​(MediaMetadata.Builder builder) -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry.
    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    @@ -430,10 +431,8 @@ public final public void populateMediaMetadata​(MediaMetadata.Builder builder)
    Description copied from interface: Metadata.Entry
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Updates the MediaMetadata.Builder with the type-specific values stored in this + Entry.
    Parameters:
    builder - The builder to be updated.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html index 8976cbe5e8..6fcc9f1adf 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html @@ -191,7 +191,18 @@ extends String value -  + +
    Deprecated. +
    Use the first element of values instead.
    +
    + + + +ImmutableList<String> +values + +
    The text values of this frame.
    + + + + +
      +
    • +

      values

      +
      public final ImmutableList<String> values
      +
      The text values of this frame. Will always have at least one element.
    @@ -352,16 +389,35 @@ public final  + + +
      +
    • +

      TextInformationFrame

      +
      public TextInformationFrame​(String id,
      +                            @Nullable
      +                            String description,
      +                            List<String> values)
      +
    • +
    • TextInformationFrame

      -
      public TextInformationFrame​(String id,
      +
      @Deprecated
      +@InlineMe(replacement="this(id, description, ImmutableList.of(value))",
      +          imports="com.google.common.collect.ImmutableList")
      +public TextInformationFrame​(String id,
                                   @Nullable
                                   String description,
                                   String value)
      +
      Deprecated. +
      Use TextInformationFrame(String id, String description, String[] values + instead
      +
  • @@ -381,11 +437,8 @@ public final 

    populateMediaMetadata

    public void populateMediaMetadata​(MediaMetadata.Builder builder)
    -
    Description copied from interface: Metadata.Entry
    -
    Updates the MediaMetadata.Builder with the type specific values stored in this Entry. - -

    The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in - the list is used.

    +
    Uses the first element in values to set the relevant field in MediaMetadata + (as determined by Id3Frame.id).
    Parameters:
    builder - The builder to be updated.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/offline/DownloadService.html b/docs/doc/reference/com/google/android/exoplayer2/offline/DownloadService.html index 9ee6559c24..49bbe372cc 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/offline/DownloadService.html +++ b/docs/doc/reference/com/google/android/exoplayer2/offline/DownloadService.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":6,"i9":6,"i10":6,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9}; +var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":6,"i10":6,"i11":6,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -150,7 +150,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public abstract class DownloadService
     extends Service
    -
    A Service for downloading media.
    +
    A Service for downloading media. + +

    Apps with target SDK 33 and greater need to add the + android.permission.POST_NOTIFICATIONS permission to the manifest and request the permission at + runtime before starting downloads. Without that permission granted by the user, notifications + posted by this service are not displayed. See the + official UI guide for more detailed information.

  • @@ -453,13 +459,21 @@ extends +static void +clearDownloadManagerHelpers() + +
    Clear all download manager helpers before restarting the + service.
    + + + protected abstract DownloadManager getDownloadManager()
    Returns a DownloadManager to be used to downloaded content.
    - + protected abstract Notification getForegroundNotification​(List<Download> downloads, @com.google.android.exoplayer2.scheduler.Requirements.RequirementFlags int notMetRequirements) @@ -467,7 +481,7 @@ extends Returns a notification to be displayed when this service running in the foreground. - + protected abstract Scheduler getScheduler() @@ -475,43 +489,43 @@ extends + protected void invalidateForegroundNotification()
    Invalidates the current foreground notification and causes getForegroundNotification(List, int) to be invoked again if the service isn't stopped.
    - + IBinder onBind​(Intent intent)
    Throws UnsupportedOperationException because this service is not designed to be bound.
    - + void onCreate()   - + void onDestroy()   - + int onStartCommand​(Intent intent, int flags, int startId)   - + void onTaskRemoved​(Intent rootIntent)   - + static void sendAddDownload​(Context context, Class<? extends DownloadService> clazz, @@ -521,7 +535,7 @@ extends Starts the service if not started already and adds a new download. - + static void sendAddDownload​(Context context, Class<? extends DownloadService> clazz, @@ -532,7 +546,7 @@ extends Starts the service if not started already and adds a new download. - + static void sendPauseDownloads​(Context context, Class<? extends DownloadService> clazz, @@ -541,7 +555,7 @@ extends Starts the service if not started already and pauses all downloads. - + static void sendRemoveAllDownloads​(Context context, Class<? extends DownloadService> clazz, @@ -550,7 +564,7 @@ extends Starts the service if not started already and removes all downloads. - + static void sendRemoveDownload​(Context context, Class<? extends DownloadService> clazz, @@ -560,7 +574,7 @@ extends Starts the service if not started already and removes a download. - + static void sendResumeDownloads​(Context context, Class<? extends DownloadService> clazz, @@ -569,7 +583,7 @@ extends Starts the service if not started already and resumes all downloads. - + static void sendSetRequirements​(Context context, Class<? extends DownloadService> clazz, @@ -580,7 +594,7 @@ extends + static void sendSetStopReason​(Context context, Class<? extends DownloadService> clazz, @@ -591,7 +605,7 @@ extends Starts the service if not started already and sets the stop reason for one or all downloads. - + static void start​(Context context, Class<? extends DownloadService> clazz) @@ -599,7 +613,7 @@ extends Starts a download service to resume any ongoing downloads. - + static void startForeground​(Context context, Class<? extends DownloadService> clazz) @@ -1395,6 +1409,20 @@ protected DownloadService​(int foregroundNotificationId,
  • + + + +
      +
    • +

      clearDownloadManagerHelpers

      +
      public static void clearDownloadManagerHelpers()
      +
      Clear all download manager helpers before restarting the + service. + +

      Calling this method is normally only required if an app supports downloading content for + multiple users for which different download directories should be used.

      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/package-summary.html b/docs/doc/reference/com/google/android/exoplayer2/package-summary.html index 7625ae100a..0eb80365ff 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/package-summary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/package-summary.html @@ -180,7 +180,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Player.Listener -
    Listener of all changes in the Player.
    +
    Listener for changes in a Player.
    @@ -219,6 +219,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Builds Renderer instances for use by an ExoPlayer.
    + +SimpleBasePlayer.PositionSupplier + +
    A supplier for a position.
    + + @@ -494,7 +500,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Player.Commands -
    A set of commands.
    +
    A set of commands.
    @@ -506,7 +512,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Player.Events -
    A set of events.
    +
    A set of events.
    @@ -547,6 +553,32 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +SimpleBasePlayer.MediaItemData + +
    An immutable description of an item in the playlist, containing both static setup information + like MediaItem and dynamic data that is generally read from the media like the + duration.
    + + + +SimpleBasePlayer.MediaItemData.Builder + +
    A builder for SimpleBasePlayer.MediaItemData objects.
    + + + +SimpleBasePlayer.PeriodData + +
    Data describing the properties of a period inside a SimpleBasePlayer.MediaItemData.
    + + + +SimpleBasePlayer.PeriodData.Builder + +
    A builder for SimpleBasePlayer.PeriodData objects.
    + + + SimpleBasePlayer.State
    An immutable state description of the player.
    @@ -871,114 +903,121 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +MediaMetadata.MediaType + +
    The type of content described by the media item.
    + + + MediaMetadata.PictureType
    The picture type of the artwork.
    - + PlaybackException.ErrorCode
    Codes that identify causes of player errors.
    - + Player.Command -
    Commands that can be executed on a Player.
    +
    Commands that indicate which method calls are currently permitted on a particular + Player instance.
    - + Player.DiscontinuityReason
    Reasons for position discontinuities.
    - + Player.Event
    Events that can be reported via Player.Listener.onEvents(Player, Events).
    - + Player.MediaItemTransitionReason
    Reasons for media item transitions.
    - + Player.PlaybackSuppressionReason
    Reason why playback is suppressed even though Player.getPlayWhenReady() is true.
    - + Player.PlayWhenReadyChangeReason
    Reasons for playWhenReady changes.
    - + Player.RepeatMode
    Repeat modes for playback.
    - + Player.State
    Playback state.
    - + Player.TimelineChangeReason
    Reasons for timeline changes.
    - + Renderer.MessageType
    Represents a type of message that can be passed to a renderer.
    - + Renderer.State
    The renderer states.
    - + RendererCapabilities.AdaptiveSupport
    Level of renderer support for adaptive format switches.
    - + RendererCapabilities.Capabilities
    Combined renderer capabilities.
    - + RendererCapabilities.DecoderSupport
    Level of decoder support.
    - + RendererCapabilities.FormatSupport Deprecated.
    Use C.FormatSupport instead.
    - + RendererCapabilities.HardwareAccelerationSupport
    Level of renderer support for hardware acceleration.
    - + RendererCapabilities.TunnelingSupport
    Level of renderer support for tunneling.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/package-tree.html index d7a6f55a64..0c662ff3d8 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/package-tree.html +++ b/docs/doc/reference/com/google/android/exoplayer2/package-tree.html @@ -179,6 +179,10 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.RendererConfiguration
  • com.google.android.exoplayer2.SeekParameters
  • +
  • com.google.android.exoplayer2.SimpleBasePlayer.MediaItemData
  • +
  • com.google.android.exoplayer2.SimpleBasePlayer.MediaItemData.Builder
  • +
  • com.google.android.exoplayer2.SimpleBasePlayer.PeriodData
  • +
  • com.google.android.exoplayer2.SimpleBasePlayer.PeriodData.Builder
  • com.google.android.exoplayer2.SimpleBasePlayer.State
  • com.google.android.exoplayer2.SimpleBasePlayer.State.Builder
  • com.google.android.exoplayer2.SimpleExoPlayer.Builder
  • @@ -251,6 +255,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.Renderer.WakeupListener
  • com.google.android.exoplayer2.RendererCapabilities
  • com.google.android.exoplayer2.RenderersFactory
  • +
  • com.google.android.exoplayer2.SimpleBasePlayer.PositionSupplier
  • @@ -289,6 +294,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.ExoPlaybackException.Type (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.ExoTimeoutException.TimeoutOperation (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.MediaMetadata.FolderType (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.MediaMetadata.MediaType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.MediaMetadata.PictureType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.PlaybackException.ErrorCode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.Player.Command (implements java.lang.annotation.Annotation)
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html b/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html index c88da58678..d1685c9695 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html +++ b/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9}; +var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -182,13 +182,22 @@ extends static void +runUntilIsLoading​(Player player, + boolean expectedIsLoading) + +
    Runs tasks of the main Looper until Player.isLoading() matches the expected + value or a playback error occurs.
    + + + +static void runUntilPendingCommandsAreFullyHandled​(ExoPlayer player)
    Runs tasks of the main Looper until the player completely handled all previously issued commands on the internal playback thread.
    - + static void runUntilPlaybackState​(Player player, @com.google.android.exoplayer2.Player.State int expectedState) @@ -197,7 +206,7 @@ extends - + static void runUntilPlayWhenReady​(Player player, boolean expectedPlayWhenReady) @@ -206,7 +215,7 @@ extends - + static void runUntilPositionDiscontinuity​(Player player, @com.google.android.exoplayer2.Player.DiscontinuityReason int expectedReason) @@ -215,7 +224,7 @@ extends Player.DiscontinuityReason or a playback error occurs. - + static void runUntilRenderedFirstFrame​(ExoPlayer player) @@ -223,7 +232,7 @@ extends - + static void runUntilSleepingForOffload​(ExoPlayer player, boolean expectedSleepForOffload) @@ -232,14 +241,14 @@ extends - + static Timeline runUntilTimelineChanged​(Player player)
    Runs tasks of the main Looper until a timeline change or a playback error occurs.
    - + static void runUntilTimelineChanged​(Player player, Timeline expectedTimeline) @@ -319,6 +328,29 @@ extends + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/CompositeMediaSource.html b/docs/doc/reference/com/google/android/exoplayer2/source/CompositeMediaSource.html index d01ceed690..b4141f8f50 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/CompositeMediaSource.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/CompositeMediaSource.html @@ -143,7 +143,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Direct Known Subclasses:
    -
    AdsMediaSource, ConcatenatingMediaSource, ImaServerSideAdInsertionMediaSource, MergingMediaSource, WrappingMediaSource
    +
    AdsMediaSource, ConcatenatingMediaSource, ConcatenatingMediaSource2, ImaServerSideAdInsertionMediaSource, MergingMediaSource, WrappingMediaSource

    public abstract class CompositeMediaSource<T>
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource2.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource2.Builder.html
    new file mode 100644
    index 0000000000..4b97bab3a2
    --- /dev/null
    +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource2.Builder.html
    @@ -0,0 +1,522 @@
    +
    +
    +
    +
    +ConcatenatingMediaSource2.Builder (ExoPlayer library)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    + +

    Class ConcatenatingMediaSource2.Builder

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.source.ConcatenatingMediaSource2.Builder
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource2.html b/docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource2.html new file mode 100644 index 0000000000..00ed6a03b4 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource2.html @@ -0,0 +1,597 @@ + + + + +ConcatenatingMediaSource2 (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ConcatenatingMediaSource2

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      MediaSource
      +
      +
      +
      public final class ConcatenatingMediaSource2
      +extends CompositeMediaSource<Integer>
      +
      Concatenates multiple MediaSources, combining everything in one single Timeline.Window. + +

      This class can only be used under the following conditions: + +

        +
      • All sources must be non-empty. +
      • All Windows defined by the sources, except the first, must have an + period offset of zero. This excludes, + for example, live streams or ClippingMediaSource with a non-zero start position. +
      +
    • +
    +
    +
    + +
    +
    + +
    +
    +
    + +
    + +
    + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html index fb9ee7976c..43d998e574 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html @@ -328,7 +328,7 @@ extends Timeline -equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle +equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundleWithOneWindowOnly
    + + + +
      +
    • +

      parseTileCountFromProperties

      +
      @Nullable
      +protected Pair<Integer,​Integer> parseTileCountFromProperties​(List<Descriptor> essentialProperties)
      +
      Parses given descriptors for thumbnail tile information.
      +
      +
      Parameters:
      +
      essentialProperties - List of descriptors that contain thumbnail tile information.
      +
      Returns:
      +
      A pair of Integer values, where the first is the count of horizontal tiles and the + second is the count of vertical tiles, or null if no thumbnail tile information is found.
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html b/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html index 592cc66411..087727cc88 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html @@ -262,6 +262,18 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +ConcatenatingMediaSource2 + +
    Concatenates multiple MediaSources, combining everything in one single Timeline.Window.
    + + + +ConcatenatingMediaSource2.Builder + +
    A builder for ConcatenatingMediaSource2 instances.
    + + + DefaultCompositeSequenceableLoaderFactory
    Default implementation of CompositeSequenceableLoaderFactory.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html index cb4089cfe6..61ec428758 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html @@ -108,6 +108,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.source.CompositeMediaSource<T>
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeAudioRenderer.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeAudioRenderer.html index 7c91fb3957..23129f6cc8 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeAudioRenderer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeAudioRenderer.html @@ -221,7 +221,7 @@ extends Description -FakeAudioRenderer​(Handler handler, +FakeAudioRenderer​(HandlerWrapper handler, AudioRendererEventListener eventListener)   @@ -318,13 +318,13 @@ extends + diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaSource.InitialTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaSource.InitialTimeline.html index af516be795..d120d7663f 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaSource.InitialTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaSource.InitialTimeline.html @@ -261,7 +261,7 @@ extends Timeline -equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle +equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundleWithOneWindowOnly
    • @@ -795,7 +797,9 @@ extends public Looper getApplicationLooper()
      Description copied from interface: Player
      Returns the Looper associated with the application thread that's used to access the - player and on which player events are received.
      + player and on which player events are received. + +

      This method can be called from any thread.

    @@ -808,7 +812,9 @@ extends Description copied from interface: Player
    Registers a listener to receive all events from the player. -

    The listener's methods will be called on the thread associated with Player.getApplicationLooper().

    +

    The listener's methods will be called on the thread associated with Player.getApplicationLooper(). + +

    This method can be called from any thread.

    Parameters:
    listener - The listener to register.
    @@ -840,10 +846,10 @@ extends @State public @com.google.android.exoplayer2.Player.State int getPlaybackState()
    Description copied from interface: Player
    -
    Returns the current playback state of the player.
    +
    Returns the current playback state of the player.
    Returns:
    -
    The current playback state.
    +
    The current playback state.
    See Also:
    Player.Listener.onPlaybackStateChanged(int)
    @@ -862,7 +868,7 @@ public @com.google.android.exoplayer2.Player.PlaybackSuppressionReason int& true
    , or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    Returns:
    -
    The current playback suppression reason.
    +
    The current Player.PlaybackSuppressionReason.
    See Also:
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -901,6 +907,8 @@ public Description copied from interface: Player
    Prepares the player. +

    This method must only be called if Player.COMMAND_PREPARE is available. +

    This will move the player out of idle state and the player will start loading media and acquire resources needed for playback.

    @@ -914,10 +922,12 @@ public public void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition)
    Description copied from interface: Player
    -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -934,10 +944,12 @@ public Description copied from interface: Player -
    Clears the playlist and adds the specified MediaItems.
    +
    Clears the playlist and adds the specified media items. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    mediaItems - The new MediaItems.
    +
    mediaItems - The new media items.
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In @@ -955,12 +967,14 @@ public public void addMediaItems​(int index, List<MediaItem> mediaItems)
    Description copied from interface: Player
    -
    Adds a list of media items at the given index of the playlist.
    +
    Adds a list of media items at the given index of the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.
    -
    mediaItems - The MediaItems to add.
    +
    mediaItems - The media items to add.
    @@ -974,11 +988,15 @@ public Description copied from interface: Player -
    Moves the media item range to the new index.
    +
    Moves the media item range to the new index. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The start of the range to move.
    -
    toIndex - The first item not to be included in the range (exclusive).
    +
    fromIndex - The start of the range to move. If the index is larger than the size of the + playlist, the request is ignored.
    +
    toIndex - The first item not to be included in the range (exclusive). If the index is + larger than the size of the playlist, items up to the end of the playlist are moved.
    newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
    @@ -994,12 +1012,15 @@ public public void removeMediaItems​(int fromIndex, int toIndex) -
    Removes a range of media items from the playlist.
    +
    Removes a range of media items from the playlist. + +

    This method must only be called if Player.COMMAND_CHANGE_MEDIA_ITEMS is available.

    Parameters:
    -
    fromIndex - The index at which to start removing media items.
    +
    fromIndex - The index at which to start removing media items. If the index is larger than + the size of the playlist, the request is ignored.
    toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
    + the size of the playlist, media items up to the end of the playlist are removed.
    @@ -1014,13 +1035,7 @@ public Returns the player's currently available Player.Commands.

    The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands - change. - -

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will - neither throw an exception nor generate a Player.getPlayerError() player error}. - -

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM - are unavailable if there is no such MediaItem. + change.

    Returns:
    The currently available Player.Commands.
    @@ -1039,7 +1054,9 @@ public Description copied from interface: Player
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. -

    If the player is already in the ready state then this method pauses and resumes playback.

    +

    If the player is already in the ready state then this method pauses and resumes playback. + +

    This method must only be called if Player.COMMAND_PLAY_PAUSE is available.

    Parameters:
    playWhenReady - Whether playback should proceed when ready.
    @@ -1072,7 +1089,9 @@ public public void setRepeatMode​(@RepeatMode @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Description copied from interface: Player
    -
    Sets the Player.RepeatMode to be used for playback.
    +
    Sets the Player.RepeatMode to be used for playback. + +

    This method must only be called if Player.COMMAND_SET_REPEAT_MODE is available.

    Parameters:
    repeatMode - The repeat mode.
    @@ -1104,7 +1123,9 @@ public public void setShuffleModeEnabled​(boolean shuffleModeEnabled) -
    Sets whether shuffling of media items is enabled.
    +
    Sets whether shuffling of media items is enabled. + +

    This method must only be called if Player.COMMAND_SET_SHUFFLE_MODE is available.

    Parameters:
    shuffleModeEnabled - Whether shuffling is enabled.
    @@ -1143,21 +1164,28 @@ public  +
    • seekTo

      public void seekTo​(int mediaItemIndex,
      -                   long positionMs)
      -
      Description copied from interface: Player
      -
      Seeks to a position specified in milliseconds in the specified MediaItem.
      + long positionMs, + @Command + @com.google.android.exoplayer2.Player.Command int seekCommand, + boolean isRepeatingCurrentItem) +
      Description copied from class: BasePlayer
      +
      Seeks to a position in the specified MediaItem.
      +
      Specified by:
      +
      seekTo in class BasePlayer
      Parameters:
      mediaItemIndex - The index of the MediaItem.
      -
      positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET - to seek to the media item's default position.
      +
      positionMs - The seek position in the specified MediaItem in milliseconds, or + C.TIME_UNSET to seek to the media item's default position.
      +
      seekCommand - The Player.Command used to trigger the seek.
      +
      isRepeatingCurrentItem - Whether this seeks repeats the current item.
    @@ -1224,7 +1252,9 @@ public Player.Listener.onPlaybackParametersChanged(PlaybackParameters) will be called whenever the currently - active playback parameters change. + active playback parameters change. + +

    This method must only be called if Player.COMMAND_SET_SPEED_AND_PITCH is available.

    Parameters:
    playbackParameters - The playback parameters.
    @@ -1263,7 +1293,9 @@ public Player.COMMAND_STOP is available. @@ -1301,7 +1333,9 @@ public void stop​(boolean reset)

    getCurrentTracks

    public Tracks getCurrentTracks()
    Description copied from interface: Player
    -
    Returns the current tracks.
    +
    Returns the current tracks. + +

    This method must only be called if Player.COMMAND_GET_TRACKS is available.

    See Also:
    Player.Listener.onTracksChanged(Tracks)
    @@ -1345,7 +1379,10 @@ public void stop​(boolean reset) .buildUpon() .setMaxVideoSizeSd() .build()) - +
    + +

    This method must only be called if Player.COMMAND_SET_TRACK_SELECTION_PARAMETERS is + available. @@ -1362,7 +1399,9 @@ public void stop​(boolean reset)

    This MediaMetadata is a combination of the MediaItem metadata, the static metadata in the media's Format, and any timed metadata that has been parsed from the media and output via Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, - it will be prioritised above the same field coming from static or timed metadata. + it will be prioritised above the same field coming from static or timed metadata. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available. @@ -1373,7 +1412,9 @@ public void stop​(boolean reset)

    getPlaylistMetadata

    public MediaMetadata getPlaylistMetadata()
    Description copied from interface: Player
    -
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    +
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported. + +

    This method must only be called if Player.COMMAND_GET_MEDIA_ITEMS_METADATA is available.

    @@ -1384,7 +1425,9 @@ public void stop​(boolean reset)

    setPlaylistMetadata

    public void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    Description copied from interface: Player
    -
    Sets the playlist MediaMetadata.
    +
    Sets the playlist MediaMetadata. + +

    This method must only be called if Player.COMMAND_SET_MEDIA_ITEMS_METADATA is available.

    @@ -1395,7 +1438,9 @@ public void stop​(boolean reset)

    getCurrentTimeline

    public Timeline getCurrentTimeline()
    Description copied from interface: Player
    -
    Returns the current Timeline. Never null, but may be empty.
    +
    Returns the current Timeline. Never null, but may be empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    See Also:
    Player.Listener.onTimelineChanged(Timeline, int)
    @@ -1410,7 +1455,9 @@ public void stop​(boolean reset)

    getCurrentPeriodIndex

    public int getCurrentPeriodIndex()
    Description copied from interface: Player
    -
    Returns the index of the period currently being played.
    +
    Returns the index of the period currently being played. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available.

    @@ -1422,7 +1469,9 @@ public void stop​(boolean reset)
    public int getCurrentMediaItemIndex()
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is - empty.
    + empty. + +

    This method must only be called if Player.COMMAND_GET_TIMELINE is available. @@ -1434,7 +1483,9 @@ public void stop​(boolean reset)

    public long getDuration()
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if - the duration is not known.
    + the duration is not known. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1446,7 +1497,9 @@ public void stop​(boolean reset)

    public long getCurrentPosition()
    Returns the playback position in the current content or ad, in milliseconds, or the prospective - position in milliseconds if the current timeline is empty.
    + position in milliseconds if the current timeline is empty. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1458,7 +1511,9 @@ public void stop​(boolean reset)

    public long getBufferedPosition()
    Returns an estimate of the position in the current content or ad up to which data is buffered, - in milliseconds.
    + in milliseconds. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1470,7 +1525,9 @@ public void stop​(boolean reset)

    public long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and media items.
    + This includes pre-buffered data for subsequent ads and media items. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1481,7 +1538,9 @@ public void stop​(boolean reset)

    isPlayingAd

    public boolean isPlayingAd()
    -
    Returns whether the player is currently playing an ad.
    +
    Returns whether the player is currently playing an ad. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available.

    @@ -1493,7 +1552,9 @@ public void stop​(boolean reset)
    public int getCurrentAdGroupIndex()
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period - currently being played. Returns C.INDEX_UNSET otherwise.
    + currently being played. Returns C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1505,7 +1566,9 @@ public void stop​(boolean reset)

    public int getCurrentAdIndexInAdGroup()
    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group. Returns - C.INDEX_UNSET otherwise.
    + C.INDEX_UNSET otherwise. + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1518,7 +1581,9 @@ public void stop​(boolean reset)

    If Player.isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getCurrentPosition().
    + playing, the returned position is the same as that returned by Player.getCurrentPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1531,7 +1596,9 @@ public void stop​(boolean reset)

    If Player.isPlayingAd() returns true, returns an estimate of the content position in the current content up to which data is buffered, in milliseconds. If there is no ad playing, - the returned position is the same as that returned by Player.getBufferedPosition().
    + the returned position is the same as that returned by Player.getBufferedPosition(). + +

    This method must only be called if Player.COMMAND_GET_CURRENT_MEDIA_ITEM is available. @@ -1542,7 +1609,9 @@ public void stop​(boolean reset)

    getAudioAttributes

    public AudioAttributes getAudioAttributes()
    Description copied from interface: Player
    -
    Returns the attributes for audio playback.
    +
    Returns the attributes for audio playback. + +

    This method must only be called if Player.COMMAND_GET_AUDIO_ATTRIBUTES is available.

    @@ -1554,7 +1623,9 @@ public void stop​(boolean reset)
    public void setVolume​(float volume)
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal - unchanged), inclusive.
    + unchanged), inclusive. + +

    This method must only be called if Player.COMMAND_SET_VOLUME is available.

    Parameters:
    volume - Linear output gain to apply to all audio channels.
    @@ -1569,7 +1640,9 @@ public void stop​(boolean reset)

    getVolume

    public float getVolume()
    Description copied from interface: Player
    -
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged). + +

    This method must only be called if Player.COMMAND_GET_VOLUME is available.

    Returns:
    The linear gain applied to all audio channels.
    @@ -1585,7 +1658,9 @@ public void stop​(boolean reset)
    public void clearVideoSurface()
    Description copied from interface: Player
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView - currently set on the player.
    + currently set on the player. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available. @@ -1598,7 +1673,9 @@ public void stop​(boolean reset) Surface surface)

    Description copied from interface: Player
    Clears the Surface onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surface - The surface to clear.
    @@ -1620,7 +1697,9 @@ public void stop​(boolean reset)

    If the surface is held by a SurfaceView, TextureView or SurfaceHolder then it's recommended to use Player.setVideoSurfaceView(SurfaceView), Player.setVideoTextureView(TextureView) or Player.setVideoSurfaceHolder(SurfaceHolder) rather than this method, since passing the holder allows the player to track the lifecycle of the surface - automatically. + automatically. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surface - The Surface.
    @@ -1640,7 +1719,9 @@ public void stop​(boolean reset) rendered. The player will track the lifecycle of the surface automatically.

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper(). + associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceHolder - The surface holder.
    @@ -1657,7 +1738,9 @@ public void stop​(boolean reset) SurfaceHolder surfaceHolder)
    Description copied from interface: Player
    Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed. Else does nothing.
    + rendered if it matches the one passed. Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceHolder - The surface holder to clear.
    @@ -1677,7 +1760,9 @@ public void stop​(boolean reset) lifecycle of the surface automatically.

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper(). + associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceView - The surface view.
    @@ -1694,7 +1779,9 @@ public void stop​(boolean reset) SurfaceView surfaceView)
    Description copied from interface: Player
    Clears the SurfaceView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    surfaceView - The texture view to clear.
    @@ -1714,7 +1801,9 @@ public void stop​(boolean reset) lifecycle of the surface automatically.

    The thread that calls the TextureView.SurfaceTextureListener methods must be the - thread associated with Player.getApplicationLooper(). + thread associated with Player.getApplicationLooper(). + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    textureView - The texture view.
    @@ -1731,7 +1820,9 @@ public void stop​(boolean reset) TextureView textureView)
    Description copied from interface: Player
    Clears the TextureView onto which video is being rendered if it matches the one passed. - Else does nothing.
    + Else does nothing. + +

    This method must only be called if Player.COMMAND_SET_VIDEO_SURFACE is available.

    Parameters:
    textureView - The texture view to clear.
    @@ -1779,7 +1870,9 @@ public void stop​(boolean reset)

    getCurrentCues

    public CueGroup getCurrentCues()
    Description copied from interface: Player
    -
    Returns the current CueGroup.
    +
    Returns the current CueGroup. + +

    This method must only be called if Player.COMMAND_GET_TEXT is available.

    @@ -1809,7 +1902,9 @@ public void stop​(boolean reset) Util.getStreamTypeForAudioUsage(int).

    For devices with remote playback, the volume of the - remote device is returned. + remote device is returned. + +

    This method must only be called if Player.COMMAND_GET_DEVICE_VOLUME is available. @@ -1820,7 +1915,9 @@ public void stop​(boolean reset)

    isDeviceMuted

    public boolean isDeviceMuted()
    -
    Gets whether the device is muted or not.
    +
    Gets whether the device is muted or not. + +

    This method must only be called if Player.COMMAND_GET_DEVICE_VOLUME is available.

    @@ -1831,7 +1928,9 @@ public void stop​(boolean reset)

    setDeviceVolume

    public void setDeviceVolume​(int volume)
    -
    Sets the volume of the device.
    +
    Sets the volume of the device. + +

    This method must only be called if Player.COMMAND_SET_DEVICE_VOLUME is available.

    Parameters:
    volume - The volume to set.
    @@ -1846,7 +1945,9 @@ public void stop​(boolean reset)

    increaseDeviceVolume

    public void increaseDeviceVolume()
    Description copied from interface: Player
    -
    Increases the volume of the device.
    +
    Increases the volume of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    @@ -1857,7 +1958,9 @@ public void stop​(boolean reset)

    decreaseDeviceVolume

    public void decreaseDeviceVolume()
    -
    Decreases the volume of the device.
    +
    Decreases the volume of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    @@ -1868,7 +1971,9 @@ public void stop​(boolean reset)

    setDeviceMuted

    public void setDeviceMuted​(boolean muted)
    -
    Sets the mute state of the device.
    +
    Sets the mute state of the device. + +

    This method must only be called if Player.COMMAND_ADJUST_DEVICE_VOLUME is available.

    diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html index 51beacedb2..f5919cb238 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html @@ -403,7 +403,7 @@ implements TrackSelectionParameters -fromBundle, keyForField +fromBundle diff --git a/docs/doc/reference/com/google/android/exoplayer2/util/ListenerSet.html b/docs/doc/reference/com/google/android/exoplayer2/util/ListenerSet.html index 687a3faa3f..3a24a49f91 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/util/ListenerSet.html +++ b/docs/doc/reference/com/google/android/exoplayer2/util/ListenerSet.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":42,"i10":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -141,7 +141,10 @@ extends Events are also guaranteed to be only sent to the listeners registered at the time the event - was enqueued and haven't been removed since. + was enqueued and haven't been removed since. + +

    All methods must be called on the Looper passed to the constructor unless indicated + otherwise. @@ -214,7 +217,7 @@ extends

    Method Summary

    - + @@ -289,6 +292,15 @@ extends + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -419,70 +426,77 @@ extends Reads the next length bytes as characters in the specified Charset. - + - + - + - + - + - + - + - + - + - + + + + + + - + @@ -498,28 +512,28 @@ extends Updates the instance to wrap data, and resets the position to zero. - + - + - + - + + + + + +
    All Methods Instance Methods Concrete Methods All Methods Instance Methods Concrete Methods Deprecated Methods 
    Modifier and Type Method
    voidsetThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread) +
    Deprecated. +
    Do not use this method and ensure all calls are made from the correct thread.
    +
    +
    int size() @@ -332,7 +344,7 @@ extends
    Parameters:
    looper - A Looper used to call listeners on. The same Looper must be used - to call all other methods of this class.
    + to call all other methods of this class unless indicated otherwise.
    clock - A Clock.
    iterationFinishedEvent - An ListenerSet.IterationFinishedEvent sent when all other events sent during one Looper message queue iteration were handled by the listeners.
    @@ -358,7 +370,9 @@ extends @CheckResult public ListenerSet<T> copy​(Looper looper, ListenerSet.IterationFinishedEvent<T> iterationFinishedEvent) -
    Copies the listener set.
    +
    Copies the listener set. + +

    This method can be called from any thread.

    Parameters:
    looper - The new Looper for the copied listener set.
    @@ -379,7 +393,9 @@ public ListenerSet<T> copy​(Looper looper, Clock clock, ListenerSet.IterationFinishedEvent<T> iterationFinishedEvent) -
    Copies the listener set.
    +
    Copies the listener set. + +

    This method can be called from any thread.

    Parameters:
    looper - The new Looper for the copied listener set.
    @@ -402,7 +418,9 @@ public public void add​(T listener)
    Adds a listener to the set. -

    If a listener is already present, it will not be added again.

    +

    If a listener is already present, it will not be added again. + +

    This method can be called from any thread.

    Parameters:
    listener - The listener to be added.
    @@ -494,7 +512,7 @@ public  -
      +
      • release

        public void release()
        @@ -503,6 +521,26 @@ public  + + +
          +
        • +

          setThrowsWhenUsingWrongThread

          +
          @Deprecated
          +public void setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread)
          +
          Deprecated. +
          Do not use this method and ensure all calls are made from the correct thread.
          +
          +
          Sets whether methods throw when using the wrong thread. + +

          Do not use this method unless to support legacy use cases.

          +
          +
          Parameters:
          +
          throwsWhenUsingWrongThread - Whether to throw when using the wrong thread.
          +
          +
        • +
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/util/ParsableByteArray.html b/docs/doc/reference/com/google/android/exoplayer2/util/ParsableByteArray.html index 175bce0496..f7e9c391fe 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/util/ParsableByteArray.html +++ b/docs/doc/reference/com/google/android/exoplayer2/util/ParsableByteArray.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -316,52 +316,59 @@ extends String
    readLine() -
    Reads a line of text.
    +
    Reads a line of text in UTF-8.
    StringreadLine​(Charset charset) +
    Reads a line of text in charset.
    +
    int readLittleEndianInt()
    Reads the next four bytes as a signed value in little endian order.
    int readLittleEndianInt24()
    Reads the next three bytes as a signed value in little endian order.
    long readLittleEndianLong()
    Reads the next eight bytes as a signed value in little endian order.
    short readLittleEndianShort()
    Reads the next two bytes as a signed value.
    long readLittleEndianUnsignedInt()
    Reads the next four bytes as an unsigned value in little endian order.
    int readLittleEndianUnsignedInt24()
    Reads the next three bytes as an unsigned value in little endian order.
    int readLittleEndianUnsignedIntToInt() @@ -369,49 +376,49 @@ extends
    int readLittleEndianUnsignedShort()
    Reads the next two bytes as an unsigned value.
    long readLong()
    Reads the next eight bytes as a signed value.
    String readNullTerminatedString()
    Reads up to the next NUL byte (or the limit) as UTF-8 characters.
    String readNullTerminatedString​(int length)
    Reads the next length bytes as UTF-8 characters.
    short readShort()
    Reads the next two bytes as a signed value.
    String readString​(int length)
    Reads the next length bytes as UTF-8 characters.
    String readString​(int length, Charset charset)
    int readSynchSafeInt()
    Reads a Synchsafe integer.
    int readUnsignedByte()
    Reads the next byte as an unsigned value.
    int readUnsignedFixedPoint1616()
    Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.
    long readUnsignedInt()
    Reads the next four bytes as an unsigned value.
    int readUnsignedInt24()
    Reads the next three bytes as an unsigned value.
    int readUnsignedIntToInt()
    Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.
    long readUnsignedLongToLong()
    Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.
    int readUnsignedShort()
    Reads the next two bytes as an unsigned value.
    long readUtf8EncodedLong()
    Reads a long value encoded by UTF-8 encoding
    CharsetreadUtfCharsetFromBom() +
    Reads a UTF byte order mark (BOM) and returns the UTF Charset it represents.
    +
    void reset​(byte[] data) @@ -490,7 +504,7 @@ extends data.length.
    void reset​(byte[] data, int limit)
    void reset​(int limit)
    Resets the position to zero and the limit to the specified value.
    void setLimit​(int limit)
    Sets the limit.
    void setPosition​(int position)
    Sets the reading offset in the array.
    void skipBytes​(int bytes) @@ -1184,22 +1198,43 @@ public @Nullable public String readLine() -
    Reads a line of text. +
    Reads a line of text in UTF-8. + +

    Equivalent to passing Charsets.UTF_8 to readLine(Charset).

    + + + + + +
      +
    • +

      readLine

      +
      @Nullable
      +public String readLine​(Charset charset)
      +
      Reads a line of text in charset.

      A line is considered to be terminated by any one of a carriage return ('\r'), a line feed - ('\n'), or a carriage return followed immediately by a line feed ('\r\n'). The UTF-8 charset is - used. This method discards leading UTF-8 byte order marks, if present.

      + ('\n'), or a carriage return followed immediately by a line feed ('\r\n'). This method discards + leading UTF byte order marks (BOM), if present. + +

      The position is advanced to start of the next line (i.e. any + line terminators are skipped).

    +
    Parameters:
    +
    charset - The charset used to interpret the bytes as a String.
    Returns:
    The line not including any line-termination characters, or null if the end of the data has already been reached.
    +
    Throws:
    +
    IllegalArgumentException - if charset is not supported. Only US_ASCII, UTF-8, UTF-16, + UTF-16BE, and UTF-16LE are supported.
    -
      +
      • readUtf8EncodedLong

        public long readUtf8EncodedLong()
        @@ -1212,6 +1247,18 @@ public  + + +
          +
        • +

          readUtfCharsetFromBom

          +
          @Nullable
          +public Charset readUtfCharsetFromBom()
          +
          Reads a UTF byte order mark (BOM) and returns the UTF Charset it represents. Returns + null without advancing position if no BOM is found.
          +
        • +
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/util/Size.html b/docs/doc/reference/com/google/android/exoplayer2/util/Size.html index ba739bbd55..e6033bd237 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/util/Size.html +++ b/docs/doc/reference/com/google/android/exoplayer2/util/Size.html @@ -159,6 +159,11 @@ extends A static instance to represent an unknown size value.
    static SizeZERO 
    @@ -257,13 +262,22 @@ extends -
      +
      • UNKNOWN

        public static final Size UNKNOWN
        A static instance to represent an unknown size value.
      + + + +
        +
      • +

        ZERO

        +
        public static final Size ZERO
        +
      • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/util/Util.html b/docs/doc/reference/com/google/android/exoplayer2/util/Util.html index 923701ff1d..9a88254b66 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/util/Util.html +++ b/docs/doc/reference/com/google/android/exoplayer2/util/Util.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":41,"i72":41,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9,"i88":9,"i89":9,"i90":9,"i91":9,"i92":9,"i93":9,"i94":9,"i95":9,"i96":9,"i97":9,"i98":9,"i99":9,"i100":9,"i101":9,"i102":9,"i103":9,"i104":9,"i105":9,"i106":9,"i107":9,"i108":9,"i109":9,"i110":9,"i111":9,"i112":9,"i113":9,"i114":9,"i115":9,"i116":9,"i117":9,"i118":9,"i119":9,"i120":9,"i121":9,"i122":9,"i123":9,"i124":9,"i125":9}; +var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":41,"i73":41,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9,"i88":9,"i89":9,"i90":9,"i91":9,"i92":9,"i93":9,"i94":9,"i95":9,"i96":9,"i97":9,"i98":9,"i99":9,"i100":9,"i101":9,"i102":9,"i103":9,"i104":9,"i105":9,"i106":9,"i107":9,"i108":9,"i109":9,"i110":9,"i111":9,"i112":9,"i113":9,"i114":9,"i115":9,"i116":9,"i117":9,"i118":9,"i119":9,"i120":9,"i121":9,"i122":9,"i123":9,"i124":9,"i125":9,"i126":9,"i127":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -645,34 +645,43 @@ extends +static Drawable +getDrawable​(Context context, + Resources resources, + int drawableRes) + +
    Returns a Drawable for the given resource or throws a Resources.NotFoundException if not found.
    + + + static UUID getDrmUuid​(String drmScheme)
    Derives a DRM UUID from drmScheme.
    - + static @com.google.android.exoplayer2.PlaybackException.ErrorCode int getErrorCodeForMediaDrmErrorCode​(int mediaDrmErrorCode)
    Returns a PlaybackException.ErrorCode value that corresponds to the provided MediaDrm.ErrorCodes value.
    - + static int getErrorCodeFromPlatformDiagnosticsInfo​(String diagnosticsInfo)
    Attempts to parse an error code from a diagnostic string found in framework media exceptions.
    - + static String getFormatSupportString​(@com.google.android.exoplayer2.C.FormatSupport int formatSupport)
    Returns string representation of a C.FormatSupport flag.
    - + static int getIntegerCodeForString​(String string) @@ -680,14 +689,14 @@ extends - + static String getLocaleLanguageTag​(Locale locale)
    Returns the language tag for a Locale.
    - + static long getMediaDurationForPlayoutDuration​(long playoutDuration, float speed) @@ -695,21 +704,21 @@ extends Returns the duration of media that will elapse in playoutDuration. - + static long getNowUnixTimeMs​(long elapsedRealtimeEpochOffsetMs)
    Returns the current time in milliseconds since the epoch.
    - + static @com.google.android.exoplayer2.C.PcmEncoding int getPcmEncoding​(int bitDepth)
    Converts a sample bit depth to a corresponding PCM encoding constant.
    - + static Format getPcmFormat​(@com.google.android.exoplayer2.C.PcmEncoding int pcmEncoding, int channels, @@ -718,7 +727,7 @@ extends Gets a PCM Format with the specified parameters. - + static int getPcmFrameSize​(@com.google.android.exoplayer2.C.PcmEncoding int pcmEncoding, int channelCount) @@ -726,7 +735,7 @@ extends Returns the frame size for audio with channelCount channels in the specified encoding. - + static long getPlayoutDurationForMediaDuration​(long mediaDuration, float speed) @@ -734,14 +743,14 @@ extends Returns the playout duration of mediaDuration of media. - + static @com.google.android.exoplayer2.C.StreamType int getStreamTypeForAudioUsage​(@com.google.android.exoplayer2.C.AudioUsage int usage)
    Returns the C.StreamType corresponding to the specified C.AudioUsage.
    - + static String getStringForTime​(StringBuilder builder, Formatter formatter, @@ -750,7 +759,7 @@ extends Returns the specified millisecond time formatted as a string. - + static String[] getSystemLanguageCodes() @@ -758,14 +767,14 @@ extends - + static String getTrackTypeString​(@com.google.android.exoplayer2.C.TrackType int trackType)
    Returns a string representation of a C.TrackType.
    - + static String getUserAgent​(Context context, String applicationName) @@ -773,28 +782,28 @@ extends Returns a user agent string based on the given application name and the library version. - + static byte[] getUtf8Bytes​(String value)
    Returns a new byte array containing the code points of a String encoded using UTF-8.
    - + static byte[] gzip​(byte[] input)
    Compresses input using gzip and returns the result in a newly allocated byte array.
    - + static @com.google.android.exoplayer2.C.ContentType int inferContentType​(Uri uri)
    Makes a best guess to infer the C.ContentType from a Uri.
    - + static @com.google.android.exoplayer2.C.ContentType int inferContentType​(Uri uri, String overrideExtension) @@ -805,7 +814,7 @@ extends - + static @com.google.android.exoplayer2.C.ContentType int inferContentType​(String fileName) @@ -815,14 +824,14 @@ extends - + static @com.google.android.exoplayer2.C.ContentType int inferContentTypeForExtension​(String fileExtension)
    Makes a best guess to infer the C.ContentType from a file extension.
    - + static @com.google.android.exoplayer2.C.ContentType int inferContentTypeForUriAndMimeType​(Uri uri, String mimeType) @@ -830,7 +839,7 @@ extends Makes a best guess to infer the C.ContentType from a Uri and optional MIME type. - + static boolean inflate​(ParsableByteArray input, ParsableByteArray output, @@ -839,49 +848,56 @@ extends Uncompresses the data in input. - + +static String +intToStringMaxRadix​(int i) + +
    Returns a string representation of the integer using radix value Character.MAX_RADIX.
    + + + static boolean isAutomotive​(Context context)
    Returns whether the app is running on an automotive device.
    - + static boolean isEncodingHighResolutionPcm​(@com.google.android.exoplayer2.C.PcmEncoding int encoding)
    Returns whether encoding is high resolution (> 16-bit) PCM.
    - + static boolean isEncodingLinearPcm​(@com.google.android.exoplayer2.C.Encoding int encoding)
    Returns whether encoding is one of the linear PCM encodings.
    - + static boolean isLinebreak​(int c)
    Returns whether the given character is a carriage return ('\r') or a line feed ('\n').
    - + static boolean isLocalFileUri​(Uri uri)
    Returns true if the URI is a path to a local file or a reference to a local file.
    - + static boolean isTv​(Context context)
    Returns whether the app is running on a TV device.
    - + static int linearSearch​(int[] array, int value) @@ -889,7 +905,7 @@ extends Returns the index of the first occurrence of value in array, or C.INDEX_UNSET if value is not contained in array. - + static int linearSearch​(long[] array, long value) @@ -897,14 +913,14 @@ extends Returns the index of the first occurrence of value in array, or C.INDEX_UNSET if value is not contained in array. - + static long maxValue​(SparseLongArray sparseLongArray)
    Returns the maximum value in the given SparseLongArray.
    - + static boolean maybeRequestReadExternalStoragePermission​(Activity activity, Uri... uris) @@ -913,7 +929,7 @@ extends Uris, requesting the permission if necessary. - + static boolean maybeRequestReadExternalStoragePermission​(Activity activity, MediaItem... mediaItems) @@ -923,14 +939,14 @@ extends - + static long minValue​(SparseLongArray sparseLongArray)
    Returns the minimum value in the given SparseLongArray.
    - + static <T> void moveItems​(List<T> items, int fromIndex, @@ -940,28 +956,28 @@ extends Moves the elements starting at fromIndex to newFromIndex. - + static long msToUs​(long timeMs)
    Converts a time in milliseconds to the corresponding time in microseconds, preserving C.TIME_UNSET values and C.TIME_END_OF_SOURCE values.
    - + static ExecutorService newSingleThreadExecutor​(String threadName)
    Instantiates a new single threaded executor whose thread has the specified name.
    - + static @PolyNull String normalizeLanguageCode​(@PolyNull String language)
    Returns a normalized IETF BCP 47 language tag for language.
    - + static <T> T[] nullSafeArrayAppend​(T[] original, T newElement) @@ -969,7 +985,7 @@ extends Creates a new array containing original with newElement appended. - + static <T> T[] nullSafeArrayConcatenation​(T[] first, T[] second) @@ -977,7 +993,7 @@ extends Creates a new array containing the concatenation of two non-null type arrays. - + static <T> T[] nullSafeArrayCopy​(T[] input, int length) @@ -985,7 +1001,7 @@ extends Copies and optionally truncates an array. - + static <T> T[] nullSafeArrayCopyOfRange​(T[] input, int from, @@ -994,7 +1010,7 @@ extends Copies a subset of an array. - + static <T> void nullSafeListToArray​(List<T> list, T[] array) @@ -1002,7 +1018,7 @@ extends Copies the contents of list into array. - + static long parseXsDateTime​(String value) @@ -1010,14 +1026,14 @@ extends - + static long parseXsDuration​(String value)
    Parses an xs:duration attribute value, returning the parsed duration in milliseconds.
    - + static boolean postOrRun​(Handler handler, Runnable runnable) @@ -1025,7 +1041,7 @@ extends Posts the Runnable if the calling thread differs with the Looper of the Handler. - + static <T> ListenableFuture<T> postOrRunWithCompletion​(Handler handler, Runnable runnable, @@ -1034,7 +1050,7 @@ extends Posts the Runnable if the calling thread differs with the Looper of the Handler. - + static boolean readBoolean​(Parcel parcel) @@ -1042,14 +1058,14 @@ extends - + static void recursiveDelete​(File fileOrDirectory)
    Recursively deletes a directory and its content.
    - + static Intent registerReceiverNotExported​(Context context, BroadcastReceiver receiver, @@ -1059,7 +1075,7 @@ extends - + static Intent registerReceiverNotExported​(Context context, BroadcastReceiver receiver, @@ -1070,7 +1086,7 @@ extends - + static <T> void removeRange​(List<T> list, int fromIndex, @@ -1079,7 +1095,7 @@ extends Removes an indexed range from a List. - + static long scaleLargeTimestamp​(long timestamp, long multiplier, @@ -1088,7 +1104,7 @@ extends Scales a large timestamp. - + static long[] scaleLargeTimestamps​(List<Long> timestamps, long multiplier, @@ -1097,7 +1113,7 @@ extends Applies scaleLargeTimestamp(long, long, long) to a list of unscaled timestamps. - + static void scaleLargeTimestampsInPlace​(long[] timestamps, long multiplier, @@ -1106,7 +1122,7 @@ extends Applies scaleLargeTimestamp(long, long, long) to an array of unscaled timestamps. - + static void sneakyThrow​(Throwable t) @@ -1114,7 +1130,7 @@ extends - + static String[] split​(String value, String regex) @@ -1122,7 +1138,7 @@ extends Splits a string using value.split(regex, -1). - + static String[] splitAtFirst​(String value, String regex) @@ -1130,14 +1146,14 @@ extends Splits the string at the first occurrence of the delimiter regex. - + static String[] splitCodecs​(String codecs)
    Splits a codecs sequence string, as defined in RFC 6381, into individual codec strings.
    - + static ComponentName startForegroundService​(Context context, Intent intent) @@ -1146,7 +1162,7 @@ extends Context.startService(Intent) otherwise. - + static long subtractWithOverflowDefault​(long x, long y, @@ -1155,14 +1171,14 @@ extends Returns the difference between two arguments, or a third argument if the result overflows. - + static long sum​(long... summands)
    Returns the sum of all summands of the given array.
    - + static boolean tableExists​(SQLiteDatabase database, String tableName) @@ -1170,21 +1186,21 @@ extends Returns whether the table exists in the database. - + static byte[] toByteArray​(InputStream inputStream)
    Converts the entirety of an InputStream to a byte array.
    - + static String toHexString​(byte[] bytes)
    Returns a string containing a lower-case hex representation of the bytes provided.
    - + static long toLong​(int mostSignificantBits, int leastSignificantBits) @@ -1192,14 +1208,14 @@ extends Returns the long that is composed of the bits of the 2 specified integers. - + static long toUnsignedLong​(int x)
    Converts an integer to a long by unsigned conversion.
    - + static <T,​U>
    ListenableFuture<T>
    transformFutureAsync​(ListenableFuture<U> future, AsyncFunction<U,​T> transformFunction) @@ -1207,7 +1223,7 @@ extends Asynchronously transforms the result of a ListenableFuture. - + static CharSequence truncateAscii​(CharSequence sequence, int maxLength) @@ -1215,21 +1231,21 @@ extends Truncates a sequence of ASCII characters to a maximum length. - + static String unescapeFileName​(String fileName)
    Unescapes an escaped file or directory name back to its original value.
    - + static long usToMs​(long timeUs)
    Converts a time in microseconds to the corresponding time in milliseconds, preserving C.TIME_UNSET and C.TIME_END_OF_SOURCE values.
    - + static void writeBoolean​(Parcel parcel, boolean value) @@ -3670,7 +3686,7 @@ public static  -
    -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 
    All Classes All Packages + + + +

    Z

    +
    +
    ZERO - Static variable in interface com.google.android.exoplayer2.SimpleBasePlayer.PositionSupplier
    +
    +
    An instance returning a constant position of zero.
    +
    +
    ZERO - Static variable in class com.google.android.exoplayer2.util.Size
    +
     
    +
    +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 
    All Classes All Packages