MediaPlayer.html 65.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Tue Aug 09 21:50:22 CST 2011 -->
<TITLE>
MediaPlayer
</TITLE>

<META NAME="date" CONTENT="2011-08-09">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="MediaPlayer";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MediaPlayer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../io/vov/vitamio/MediaPlayer.OnBufferingUpdateListener.html" title="interface in io.vov.vitamio"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?io/vov/vitamio/MediaPlayer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="MediaPlayer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
io.vov.vitamio</FONT>
<BR>
Class MediaPlayer</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>io.vov.vitamio.MediaPlayer</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>MediaPlayer</B><DT>extends java.lang.Object</DL>
</PRE>

<P>
MediaPlayer class can be used to control playback of audio/video files and
 streams. An example on how to use the methods in this class can be found in
 <A HREF="../../../io/vov/vitamio/widget/VideoView.html" title="class in io.vov.vitamio.widget"><CODE>VideoView</CODE></A>. This class will function the same as
 android.media.MediaPlayer in most cases. Please see <a
 href="http://developer.android.com/guide/topics/media/index.html">Audio and
 Video</a> for additional help using MediaPlayer.
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnBufferingUpdateListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnBufferingUpdateListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnCompletionListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnCompletionListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnErrorListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnErrorListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnInfoListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnInfoListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnPreparedListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnPreparedListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnSeekCompleteListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnSeekCompleteListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnSubtitleUpdateListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnSubtitleUpdateListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.OnVideoSizeChangedListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnVideoSizeChangedListener</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK">MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MEDIA_ERROR_UNKNOWN">MEDIA_ERROR_UNKNOWN</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MEDIA_INFO_BUFFERING_END">MEDIA_INFO_BUFFERING_END</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MediaPlayer is resuming playback after filling buffers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MEDIA_INFO_BUFFERING_START">MEDIA_INFO_BUFFERING_START</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MediaPlayer is temporarily pausing playback internally in order to buffer
 more data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MEDIA_INFO_NOT_SEEKABLE">MEDIA_INFO_NOT_SEEKABLE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The media cannot be seeked (e.g live stream)</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MEDIA_INFO_VIDEO_TRACK_LAGGING">MEDIA_INFO_VIDEO_TRACK_LAGGING</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The video is too complex for the decoder: it can't decode frames fast
 enough.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#SUB_TYPES">SUB_TYPES</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The external subtitle types which Vitamio supports.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#SUBTITLE_EXTERNAL">SUBTITLE_EXTERNAL</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The subtitle displayed is an external file</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#SUBTITLE_INTERNAL">SUBTITLE_INTERNAL</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The subtitle displayed is embeded in the movie</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#VIDEOQUALITY_HIGH">VIDEOQUALITY_HIGH</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#VIDEOQUALITY_LOW">VIDEOQUALITY_LOW</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#VIDEOQUALITY_MEDIUM">VIDEOQUALITY_MEDIUM</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#MediaPlayer(Context)">MediaPlayer</A></B>(Context&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getAudioTrack()">getAudioTrack</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the audio track number in playback</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.HashMap&lt;java.lang.String,java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getAudioTrackMap(java.lang.String)">getAudioTrackMap</A></B>(java.lang.String&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the audio tracks embeded in the movie (e.g.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getBufferProgress()">getBufferProgress</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getCurrentPosition()">getCurrentPosition</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current playback position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getDuration()">getDuration</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the duration of the file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getMetaEncoding()">getMetaEncoding</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the encoding if haven't set with <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setMetaEncoding(java.lang.String)"><CODE>setMetaEncoding(String)</CODE></A></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getSubLocation()">getSubLocation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getSubPath()">getSubPath</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You can get the file-path of the external subtitle in use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getSubTrack()">getSubTrack</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the subtitle track number in playback</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.HashMap&lt;java.lang.String,java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getSubTrackMap(java.lang.String)">getSubTrackMap</A></B>(java.lang.String&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the subtitles embeded in the movie (e.g.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getVideoAspectRatio()">getVideoAspectRatio</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the aspect ratio of the video.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getVideoHeight()">getVideoHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the height of the video.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#getVideoWidth()">getVideoWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the video.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#isBuffering()">isBuffering</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the buffer is filled</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#isPlaying()">isPlaying</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the MediaPlayer is playing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#pause()">pause</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pauses playback.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#prepare()">prepare</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prepares the player for playback, synchronously.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#prepareAsync()">prepareAsync</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prepares the player for playback, asynchronously.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#release()">release</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Releases resources associated with this MediaPlayer object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#releaseDisplay()">releaseDisplay</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calling this result in only the audio track being played.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#reset()">reset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the MediaPlayer to its uninitialized state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#seekTo(long)">seekTo</A></B>(long&nbsp;msec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Seeks to specified time position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setAudioTrack(int)">setAudioTrack</A></B>(int&nbsp;audioIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the audio track to play, must be in the result of
 <A HREF="../../../io/vov/vitamio/MediaPlayer.html#getAudioTrackMap(java.lang.String)"><CODE>getAudioTrackMap(String)</CODE></A></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setBufferSize(int)">setBufferSize</A></B>(int&nbsp;bufSize)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The buffer to fill before playback, default is 1024KB</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setDataSource(Context, Uri)">setDataSource</A></B>(Context&nbsp;context,
              Uri&nbsp;uri)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data source as a content Uri.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setDataSource(java.io.FileDescriptor)">setDataSource</A></B>(java.io.FileDescriptor&nbsp;fd)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data source (FileDescriptor) to use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setDataSource(java.lang.String)">setDataSource</A></B>(java.lang.String&nbsp;path)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data source (file-path or http/rtsp/mms URL) to use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setDisplay(SurfaceHolder)">setDisplay</A></B>(SurfaceHolder&nbsp;sh)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the SurfaceHolder to use for displaying the video portion of the
 media.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setMetaEncoding(java.lang.String)">setMetaEncoding</A></B>(java.lang.String&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the encoding MediaPlayer will use to determine the metadata</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnBufferingUpdateListener(io.vov.vitamio.MediaPlayer.OnBufferingUpdateListener)">setOnBufferingUpdateListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnBufferingUpdateListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnBufferingUpdateListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when the status of a network stream's
 buffer has changed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnCompletionListener(io.vov.vitamio.MediaPlayer.OnCompletionListener)">setOnCompletionListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnCompletionListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnCompletionListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when the end of a media source has been
 reached during playback.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnErrorListener(io.vov.vitamio.MediaPlayer.OnErrorListener)">setOnErrorListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnErrorListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnErrorListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when an error has happened during an
 asynchronous operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnInfoListener(io.vov.vitamio.MediaPlayer.OnInfoListener)">setOnInfoListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnInfoListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnInfoListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnPreparedListener(io.vov.vitamio.MediaPlayer.OnPreparedListener)">setOnPreparedListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnPreparedListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnPreparedListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when the media source is ready for
 playback.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnSeekCompleteListener(io.vov.vitamio.MediaPlayer.OnSeekCompleteListener)">setOnSeekCompleteListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnSeekCompleteListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnSeekCompleteListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when a seek operation has been
 completed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnSubtitleUpdateListener(io.vov.vitamio.MediaPlayer.OnSubtitleUpdateListener)">setOnSubtitleUpdateListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnSubtitleUpdateListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnSubtitleUpdateListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when a subtitle need to display.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnVideoSizeChangedListener(io.vov.vitamio.MediaPlayer.OnVideoSizeChangedListener)">setOnVideoSizeChangedListener</A></B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnVideoSizeChangedListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnVideoSizeChangedListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a callback to be invoked when the video size is known or
 updated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setScreenOnWhilePlaying(boolean)">setScreenOnWhilePlaying</A></B>(boolean&nbsp;screenOn)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control whether we should use the attached SurfaceHolder to keep the
 screen on while video playback is occurring.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setSubEncoding(java.lang.String)">setSubEncoding</A></B>(java.lang.String&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the encoding to display text subtitle.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setSubPath(java.lang.String)">setSubPath</A></B>(java.lang.String&nbsp;subPath)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the file-path of an external subtitle.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setSubShown(boolean)">setSubShown</A></B>(boolean&nbsp;shown)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell the MediaPlayer whether to show subtitle</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setSubTrack(int)">setSubTrack</A></B>(int&nbsp;trackId)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the subtitle track to display, must be in the result of
 <A HREF="../../../io/vov/vitamio/MediaPlayer.html#getSubTrackMap(java.lang.String)"><CODE>getSubTrackMap(String)</CODE></A></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setVideoQuality(int)">setVideoQuality</A></B>(int&nbsp;quality)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the quality when play video, if the video is too lag, you may try
 VIDEOQUALITY_LOW, default is VIDEOQUALITY_LOW.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setVolume(float, float)">setVolume</A></B>(float&nbsp;leftVolume,
          float&nbsp;rightVolume)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#setWakeMode(Context, int)">setWakeMode</A></B>(Context&nbsp;context,
            int&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the low-level power management behavior for this MediaPlayer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#start()">start</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts or resumes playback.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../io/vov/vitamio/MediaPlayer.html#stop()">stop</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The same as <A HREF="../../../io/vov/vitamio/MediaPlayer.html#pause()"><CODE>pause()</CODE></A></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="MEDIA_ERROR_UNKNOWN"><!-- --></A><H3>
MEDIA_ERROR_UNKNOWN</H3>
<PRE>
public static final int <B>MEDIA_ERROR_UNKNOWN</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.MEDIA_ERROR_UNKNOWN">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK"><!-- --></A><H3>
MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK</H3>
<PRE>
public static final int <B>MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MEDIA_INFO_VIDEO_TRACK_LAGGING"><!-- --></A><H3>
MEDIA_INFO_VIDEO_TRACK_LAGGING</H3>
<PRE>
public static final int <B>MEDIA_INFO_VIDEO_TRACK_LAGGING</B></PRE>
<DL>
<DD>The video is too complex for the decoder: it can't decode frames fast
 enough. Possibly only the audio plays fine at this stage.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../io/vov/vitamio/MediaPlayer.OnInfoListener.html" title="interface in io.vov.vitamio"><CODE>MediaPlayer.OnInfoListener</CODE></A>, 
<A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.MEDIA_INFO_VIDEO_TRACK_LAGGING">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MEDIA_INFO_BUFFERING_START"><!-- --></A><H3>
MEDIA_INFO_BUFFERING_START</H3>
<PRE>
public static final int <B>MEDIA_INFO_BUFFERING_START</B></PRE>
<DL>
<DD>MediaPlayer is temporarily pausing playback internally in order to buffer
 more data.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.MEDIA_INFO_BUFFERING_START">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MEDIA_INFO_BUFFERING_END"><!-- --></A><H3>
MEDIA_INFO_BUFFERING_END</H3>
<PRE>
public static final int <B>MEDIA_INFO_BUFFERING_END</B></PRE>
<DL>
<DD>MediaPlayer is resuming playback after filling buffers.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.MEDIA_INFO_BUFFERING_END">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MEDIA_INFO_NOT_SEEKABLE"><!-- --></A><H3>
MEDIA_INFO_NOT_SEEKABLE</H3>
<PRE>
public static final int <B>MEDIA_INFO_NOT_SEEKABLE</B></PRE>
<DL>
<DD>The media cannot be seeked (e.g live stream)
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../io/vov/vitamio/MediaPlayer.OnInfoListener.html" title="interface in io.vov.vitamio"><CODE>MediaPlayer.OnInfoListener</CODE></A>, 
<A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.MEDIA_INFO_NOT_SEEKABLE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VIDEOQUALITY_LOW"><!-- --></A><H3>
VIDEOQUALITY_LOW</H3>
<PRE>
public static final int <B>VIDEOQUALITY_LOW</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.VIDEOQUALITY_LOW">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VIDEOQUALITY_MEDIUM"><!-- --></A><H3>
VIDEOQUALITY_MEDIUM</H3>
<PRE>
public static final int <B>VIDEOQUALITY_MEDIUM</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.VIDEOQUALITY_MEDIUM">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VIDEOQUALITY_HIGH"><!-- --></A><H3>
VIDEOQUALITY_HIGH</H3>
<PRE>
public static final int <B>VIDEOQUALITY_HIGH</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.VIDEOQUALITY_HIGH">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="SUBTITLE_INTERNAL"><!-- --></A><H3>
SUBTITLE_INTERNAL</H3>
<PRE>
public static final int <B>SUBTITLE_INTERNAL</B></PRE>
<DL>
<DD>The subtitle displayed is embeded in the movie
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.SUBTITLE_INTERNAL">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="SUBTITLE_EXTERNAL"><!-- --></A><H3>
SUBTITLE_EXTERNAL</H3>
<PRE>
public static final int <B>SUBTITLE_EXTERNAL</B></PRE>
<DL>
<DD>The subtitle displayed is an external file
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#io.vov.vitamio.MediaPlayer.SUBTITLE_EXTERNAL">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="SUB_TYPES"><!-- --></A><H3>
SUB_TYPES</H3>
<PRE>
public static final java.lang.String[] <B>SUB_TYPES</B></PRE>
<DL>
<DD>The external subtitle types which Vitamio supports.
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="MediaPlayer(Context)"><!-- --></A><H3>
MediaPlayer</H3>
<PRE>
public <B>MediaPlayer</B>(Context&nbsp;ctx)
            throws <A HREF="../../../io/vov/vitamio/VitamioInstaller.VitamioNotCompatibleException.html" title="class in io.vov.vitamio">VitamioInstaller.VitamioNotCompatibleException</A>,
                   <A HREF="../../../io/vov/vitamio/VitamioInstaller.VitamioNotFoundException.html" title="class in io.vov.vitamio">VitamioInstaller.VitamioNotFoundException</A></PRE>
<DL>
<DD>Default constructor. The same as Android's, except that it will throw
 <A HREF="../../../io/vov/vitamio/VitamioInstaller.VitamioNotCompatibleException.html" title="class in io.vov.vitamio"><CODE>VitamioInstaller.VitamioNotCompatibleException</CODE></A> if
 Vitamio not compatible with user's device,
 <A HREF="../../../io/vov/vitamio/VitamioInstaller.VitamioNotFoundException.html" title="class in io.vov.vitamio"><CODE>VitamioInstaller.VitamioNotFoundException</CODE></A> if
 Vitamio not installed in the device.
 <p>
 When done with the MediaPlayer, you should call <A HREF="../../../io/vov/vitamio/MediaPlayer.html#release()"><CODE>release()</CODE></A>, to
 free the resources. If not released, too many MediaPlayer instances may
 result in an exception.
 </p>
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../io/vov/vitamio/VitamioInstaller.VitamioNotCompatibleException.html" title="class in io.vov.vitamio">VitamioInstaller.VitamioNotCompatibleException</A></CODE>
<DD><CODE><A HREF="../../../io/vov/vitamio/VitamioInstaller.VitamioNotFoundException.html" title="class in io.vov.vitamio">VitamioInstaller.VitamioNotFoundException</A></CODE></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="setDisplay(SurfaceHolder)"><!-- --></A><H3>
setDisplay</H3>
<PRE>
public void <B>setDisplay</B>(SurfaceHolder&nbsp;sh)</PRE>
<DL>
<DD>Sets the SurfaceHolder to use for displaying the video portion of the
 media. This call is optional. Not calling it when playing back a video
 will result in only the audio track being played.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sh</CODE> - the SurfaceHolder to use for video display</DL>
</DD>
</DL>
<HR>

<A NAME="setDataSource(Context, Uri)"><!-- --></A><H3>
setDataSource</H3>
<PRE>
public void <B>setDataSource</B>(Context&nbsp;context,
                          Uri&nbsp;uri)
                   throws java.io.IOException,
                          java.lang.IllegalArgumentException,
                          java.lang.SecurityException,
                          java.lang.IllegalStateException</PRE>
<DL>
<DD>Sets the data source as a content Uri.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the Context to use when resolving the Uri<DD><CODE>uri</CODE> - the Content URI of the data you want to play
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if it is called in an invalid state
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>java.lang.IllegalArgumentException</CODE>
<DD><CODE>java.lang.SecurityException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setDataSource(java.lang.String)"><!-- --></A><H3>
setDataSource</H3>
<PRE>
public void <B>setDataSource</B>(java.lang.String&nbsp;path)
                   throws java.io.IOException,
                          java.lang.IllegalArgumentException,
                          java.lang.IllegalStateException</PRE>
<DL>
<DD>Sets the data source (file-path or http/rtsp/mms URL) to use.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - the path of the file, or the http/rtsp/mms URL of the stream
 you want to play
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if it is called in an invalid state
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>java.lang.IllegalArgumentException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setDataSource(java.io.FileDescriptor)"><!-- --></A><H3>
setDataSource</H3>
<PRE>
public void <B>setDataSource</B>(java.io.FileDescriptor&nbsp;fd)
                   throws java.io.IOException,
                          java.lang.IllegalArgumentException,
                          java.lang.IllegalStateException</PRE>
<DL>
<DD>Sets the data source (FileDescriptor) to use. It is the caller's
 responsibility to close the file descriptor. It is safe to do so as soon
 as this call returns.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fd</CODE> - the FileDescriptor for the file you want to play
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if it is called in an invalid state
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>java.lang.IllegalArgumentException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="prepare()"><!-- --></A><H3>
prepare</H3>
<PRE>
public void <B>prepare</B>()
             throws java.io.IOException,
                    java.lang.IllegalStateException</PRE>
<DL>
<DD>Prepares the player for playback, synchronously.
 
 After setting the datasource and the display surface, you need to either
 call prepare() or prepareAsync(). For files, it is OK to call prepare(),
 which blocks until MediaPlayer is ready for playback.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if it is called in an invalid state
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="prepareAsync()"><!-- --></A><H3>
prepareAsync</H3>
<PRE>
public void <B>prepareAsync</B>()
                  throws java.lang.IllegalStateException</PRE>
<DL>
<DD>Prepares the player for playback, asynchronously.
 
 After setting the datasource and the display surface, you need to either
 call prepare() or prepareAsync(). For streams, you should call
 prepareAsync(), which returns immediately, rather than blocking until
 enough data has been buffered.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if it is called in an invalid state</DL>
</DD>
</DL>
<HR>

<A NAME="start()"><!-- --></A><H3>
start</H3>
<PRE>
public void <B>start</B>()
           throws java.lang.IllegalStateException</PRE>
<DL>
<DD>Starts or resumes playback. If playback had previously been paused,
 playback will continue from where it was paused. If playback had been
 stopped, or never started before, playback will start at the beginning.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if it is called in an invalid state</DL>
</DD>
</DL>
<HR>

<A NAME="stop()"><!-- --></A><H3>
stop</H3>
<PRE>
public void <B>stop</B>()
          throws java.lang.IllegalStateException</PRE>
<DL>
<DD>The same as <A HREF="../../../io/vov/vitamio/MediaPlayer.html#pause()"><CODE>pause()</CODE></A>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if the internal player engine has not been
 initialized.</DL>
</DD>
</DL>
<HR>

<A NAME="pause()"><!-- --></A><H3>
pause</H3>
<PRE>
public void <B>pause</B>()
           throws java.lang.IllegalStateException</PRE>
<DL>
<DD>Pauses playback. Call start() to resume.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if the internal player engine has not been
 initialized.</DL>
</DD>
</DL>
<HR>

<A NAME="setWakeMode(Context, int)"><!-- --></A><H3>
setWakeMode</H3>
<PRE>
public void <B>setWakeMode</B>(Context&nbsp;context,
                        int&nbsp;mode)</PRE>
<DL>
<DD>Set the low-level power management behavior for this MediaPlayer. This
 can be used when the MediaPlayer is not playing through a SurfaceHolder
 set with <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setDisplay(SurfaceHolder)"><CODE>setDisplay(SurfaceHolder)</CODE></A> and thus can use the
 high-level <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setScreenOnWhilePlaying(boolean)"><CODE>setScreenOnWhilePlaying(boolean)</CODE></A> feature.
 
 This function has the MediaPlayer access the low-level power manager
 service to control the device's power usage while playing is occurring.
 The parameter is a combination of <CODE>android.os.PowerManager</CODE> wake
 flags. Use of this method requires
 <CODE>android.Manifest.permission#WAKE_LOCK</CODE> permission. By default, no
 attempt is made to keep the device awake during playback.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the Context to use<DD><CODE>mode</CODE> - the power/wake mode to set<DT><B>See Also:</B><DD><CODE>android.os.PowerManager</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setScreenOnWhilePlaying(boolean)"><!-- --></A><H3>
setScreenOnWhilePlaying</H3>
<PRE>
public void <B>setScreenOnWhilePlaying</B>(boolean&nbsp;screenOn)</PRE>
<DL>
<DD>Control whether we should use the attached SurfaceHolder to keep the
 screen on while video playback is occurring. This is the preferred method
 over <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setWakeMode(Context, int)"><CODE>setWakeMode(Context, int)</CODE></A> where possible, since it doesn't require that
 the application have permission for low-level wake lock access.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>screenOn</CODE> - Supply true to keep the screen on, false to allow it to
 turn off.</DL>
</DD>
</DL>
<HR>

<A NAME="getVideoWidth()"><!-- --></A><H3>
getVideoWidth</H3>
<PRE>
public int <B>getVideoWidth</B>()</PRE>
<DL>
<DD>Returns the width of the video.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the width of the video, or 0 if there is no video, or the width
 has not been determined yet. The OnVideoSizeChangedListener can be
 registered via
 <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnVideoSizeChangedListener(io.vov.vitamio.MediaPlayer.OnVideoSizeChangedListener)"><CODE>setOnVideoSizeChangedListener(OnVideoSizeChangedListener)</CODE></A> to
 provide a notification when the width is available.</DL>
</DD>
</DL>
<HR>

<A NAME="getVideoHeight()"><!-- --></A><H3>
getVideoHeight</H3>
<PRE>
public int <B>getVideoHeight</B>()</PRE>
<DL>
<DD>Returns the height of the video.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the height of the video, or 0 if there is no video, or the height
 has not been determined yet. The OnVideoSizeChangedListener can be
 registered via
 <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setOnVideoSizeChangedListener(io.vov.vitamio.MediaPlayer.OnVideoSizeChangedListener)"><CODE>setOnVideoSizeChangedListener(OnVideoSizeChangedListener)</CODE></A> to
 provide a notification when the height is available.</DL>
</DD>
</DL>
<HR>

<A NAME="isPlaying()"><!-- --></A><H3>
isPlaying</H3>
<PRE>
public boolean <B>isPlaying</B>()</PRE>
<DL>
<DD>Checks whether the MediaPlayer is playing.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>true if currently playing, false otherwise</DL>
</DD>
</DL>
<HR>

<A NAME="seekTo(long)"><!-- --></A><H3>
seekTo</H3>
<PRE>
public void <B>seekTo</B>(long&nbsp;msec)
            throws java.lang.IllegalStateException</PRE>
<DL>
<DD>Seeks to specified time position.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msec</CODE> - the offset in milliseconds from the start to seek to
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if the internal player engine has not been
 initialized</DL>
</DD>
</DL>
<HR>

<A NAME="getCurrentPosition()"><!-- --></A><H3>
getCurrentPosition</H3>
<PRE>
public long <B>getCurrentPosition</B>()</PRE>
<DL>
<DD>Gets the current playback position.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the current position in milliseconds</DL>
</DD>
</DL>
<HR>

<A NAME="getDuration()"><!-- --></A><H3>
getDuration</H3>
<PRE>
public long <B>getDuration</B>()</PRE>
<DL>
<DD>Gets the duration of the file.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the duration in milliseconds</DL>
</DD>
</DL>
<HR>

<A NAME="release()"><!-- --></A><H3>
release</H3>
<PRE>
public void <B>release</B>()</PRE>
<DL>
<DD>Releases resources associated with this MediaPlayer object. It is
 considered good practice to call this method when you're done using the
 MediaPlayer.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public void <B>reset</B>()</PRE>
<DL>
<DD>Resets the MediaPlayer to its uninitialized state. After calling this
 method, you will have to initialize it again by setting the data source
 and calling prepare().
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setVolume(float, float)"><!-- --></A><H3>
setVolume</H3>
<PRE>
public void <B>setVolume</B>(float&nbsp;leftVolume,
                      float&nbsp;rightVolume)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setOnPreparedListener(io.vov.vitamio.MediaPlayer.OnPreparedListener)"><!-- --></A><H3>
setOnPreparedListener</H3>
<PRE>
public void <B>setOnPreparedListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnPreparedListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnPreparedListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when the media source is ready for
 playback.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run</DL>
</DD>
</DL>
<HR>

<A NAME="setOnCompletionListener(io.vov.vitamio.MediaPlayer.OnCompletionListener)"><!-- --></A><H3>
setOnCompletionListener</H3>
<PRE>
public void <B>setOnCompletionListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnCompletionListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnCompletionListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when the end of a media source has been
 reached during playback.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run</DL>
</DD>
</DL>
<HR>

<A NAME="setOnBufferingUpdateListener(io.vov.vitamio.MediaPlayer.OnBufferingUpdateListener)"><!-- --></A><H3>
setOnBufferingUpdateListener</H3>
<PRE>
public void <B>setOnBufferingUpdateListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnBufferingUpdateListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnBufferingUpdateListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when the status of a network stream's
 buffer has changed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run.</DL>
</DD>
</DL>
<HR>

<A NAME="setOnSeekCompleteListener(io.vov.vitamio.MediaPlayer.OnSeekCompleteListener)"><!-- --></A><H3>
setOnSeekCompleteListener</H3>
<PRE>
public void <B>setOnSeekCompleteListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnSeekCompleteListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnSeekCompleteListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when a seek operation has been
 completed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run</DL>
</DD>
</DL>
<HR>

<A NAME="setOnVideoSizeChangedListener(io.vov.vitamio.MediaPlayer.OnVideoSizeChangedListener)"><!-- --></A><H3>
setOnVideoSizeChangedListener</H3>
<PRE>
public void <B>setOnVideoSizeChangedListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnVideoSizeChangedListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnVideoSizeChangedListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when the video size is known or
 updated.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run</DL>
</DD>
</DL>
<HR>

<A NAME="setOnErrorListener(io.vov.vitamio.MediaPlayer.OnErrorListener)"><!-- --></A><H3>
setOnErrorListener</H3>
<PRE>
public void <B>setOnErrorListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnErrorListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnErrorListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when an error has happened during an
 asynchronous operation.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run</DL>
</DD>
</DL>
<HR>

<A NAME="setOnInfoListener(io.vov.vitamio.MediaPlayer.OnInfoListener)"><!-- --></A><H3>
setOnInfoListener</H3>
<PRE>
public void <B>setOnInfoListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnInfoListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnInfoListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setOnSubtitleUpdateListener(io.vov.vitamio.MediaPlayer.OnSubtitleUpdateListener)"><!-- --></A><H3>
setOnSubtitleUpdateListener</H3>
<PRE>
public void <B>setOnSubtitleUpdateListener</B>(<A HREF="../../../io/vov/vitamio/MediaPlayer.OnSubtitleUpdateListener.html" title="interface in io.vov.vitamio">MediaPlayer.OnSubtitleUpdateListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Register a callback to be invoked when a subtitle need to display.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the callback that will be run</DL>
</DD>
</DL>
<HR>

<A NAME="releaseDisplay()"><!-- --></A><H3>
releaseDisplay</H3>
<PRE>
public void <B>releaseDisplay</B>()</PRE>
<DL>
<DD>Calling this result in only the audio track being played.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getVideoAspectRatio()"><!-- --></A><H3>
getVideoAspectRatio</H3>
<PRE>
public float <B>getVideoAspectRatio</B>()</PRE>
<DL>
<DD>Returns the aspect ratio of the video.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the aspect ratio of the video, or 0 if there is no video, or the
 width and height is not available. <CODE>io.vov.vitamio.VideoView#setVideoLayout(int, float)</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setVideoQuality(int)"><!-- --></A><H3>
setVideoQuality</H3>
<PRE>
public void <B>setVideoQuality</B>(int&nbsp;quality)</PRE>
<DL>
<DD>Set the quality when play video, if the video is too lag, you may try
 VIDEOQUALITY_LOW, default is VIDEOQUALITY_LOW.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>quality</CODE> - <ul>
 <li><A HREF="../../../io/vov/vitamio/MediaPlayer.html#VIDEOQUALITY_HIGH"><CODE>VIDEOQUALITY_HIGH</CODE></A>
 <li><A HREF="../../../io/vov/vitamio/MediaPlayer.html#VIDEOQUALITY_MEDIUM"><CODE>VIDEOQUALITY_MEDIUM</CODE></A>
 <li><A HREF="../../../io/vov/vitamio/MediaPlayer.html#VIDEOQUALITY_LOW"><CODE>VIDEOQUALITY_LOW</CODE></A>
 </ul></DL>
</DD>
</DL>
<HR>

<A NAME="setBufferSize(int)"><!-- --></A><H3>
setBufferSize</H3>
<PRE>
public void <B>setBufferSize</B>(int&nbsp;bufSize)</PRE>
<DL>
<DD>The buffer to fill before playback, default is 1024KB
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bufSize</CODE> - buffer size in Byte</DL>
</DD>
</DL>
<HR>

<A NAME="isBuffering()"><!-- --></A><H3>
isBuffering</H3>
<PRE>
public boolean <B>isBuffering</B>()</PRE>
<DL>
<DD>Checks whether the buffer is filled
<P>
<DD><DL>

<DT><B>Returns:</B><DD>false if buffer is filled</DL>
</DD>
</DL>
<HR>

<A NAME="getBufferProgress()"><!-- --></A><H3>
getBufferProgress</H3>
<PRE>
public int <B>getBufferProgress</B>()</PRE>
<DL>
<DD><DL>

<DT><B>Returns:</B><DD>the percent<DT><B>See Also:</B><DD><A HREF="../../../io/vov/vitamio/MediaPlayer.OnBufferingUpdateListener.html" title="interface in io.vov.vitamio"><CODE>MediaPlayer.OnBufferingUpdateListener</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setMetaEncoding(java.lang.String)"><!-- --></A><H3>
setMetaEncoding</H3>
<PRE>
public void <B>setMetaEncoding</B>(java.lang.String&nbsp;encoding)</PRE>
<DL>
<DD>Set the encoding MediaPlayer will use to determine the metadata
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - e.g. "UTF-8"</DL>
</DD>
</DL>
<HR>

<A NAME="getMetaEncoding()"><!-- --></A><H3>
getMetaEncoding</H3>
<PRE>
public java.lang.String <B>getMetaEncoding</B>()</PRE>
<DL>
<DD>Get the encoding if haven't set with <A HREF="../../../io/vov/vitamio/MediaPlayer.html#setMetaEncoding(java.lang.String)"><CODE>setMetaEncoding(String)</CODE></A>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the encoding</DL>
</DD>
</DL>
<HR>

<A NAME="getAudioTrackMap(java.lang.String)"><!-- --></A><H3>
getAudioTrackMap</H3>
<PRE>
public java.util.HashMap&lt;java.lang.String,java.lang.Integer&gt; <B>getAudioTrackMap</B>(java.lang.String&nbsp;encoding)</PRE>
<DL>
<DD>Get the audio tracks embeded in the movie (e.g. "English", 3).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the encoding to format String, will detect it if null
<DT><B>Returns:</B><DD>Map of track name and track number</DL>
</DD>
</DL>
<HR>

<A NAME="getAudioTrack()"><!-- --></A><H3>
getAudioTrack</H3>
<PRE>
public int <B>getAudioTrack</B>()</PRE>
<DL>
<DD>Get the audio track number in playback
<P>
<DD><DL>

<DT><B>Returns:</B><DD>track number</DL>
</DD>
</DL>
<HR>

<A NAME="setAudioTrack(int)"><!-- --></A><H3>
setAudioTrack</H3>
<PRE>
public void <B>setAudioTrack</B>(int&nbsp;audioIndex)</PRE>
<DL>
<DD>Set the audio track to play, must be in the result of
 <A HREF="../../../io/vov/vitamio/MediaPlayer.html#getAudioTrackMap(java.lang.String)"><CODE>getAudioTrackMap(String)</CODE></A>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>audioIndex</CODE> - the track number</DL>
</DD>
</DL>
<HR>

<A NAME="setSubShown(boolean)"><!-- --></A><H3>
setSubShown</H3>
<PRE>
public void <B>setSubShown</B>(boolean&nbsp;shown)</PRE>
<DL>
<DD>Tell the MediaPlayer whether to show subtitle
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>shown</CODE> - true if wanna show</DL>
</DD>
</DL>
<HR>

<A NAME="setSubEncoding(java.lang.String)"><!-- --></A><H3>
setSubEncoding</H3>
<PRE>
public void <B>setSubEncoding</B>(java.lang.String&nbsp;encoding)</PRE>
<DL>
<DD>Set the encoding to display text subtitle.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - MediaPlayer will detet it if null</DL>
</DD>
</DL>
<HR>

<A NAME="getSubLocation()"><!-- --></A><H3>
getSubLocation</H3>
<PRE>
public int <B>getSubLocation</B>()</PRE>
<DL>
<DD><DL>

<DT><B>Returns:</B><DD><ul>
 <li><A HREF="../../../io/vov/vitamio/MediaPlayer.html#SUBTITLE_EXTERNAL"><CODE>SUBTITLE_EXTERNAL</CODE></A>
 <li><A HREF="../../../io/vov/vitamio/MediaPlayer.html#SUBTITLE_INTERNAL"><CODE>SUBTITLE_INTERNAL</CODE></A>
 </ul></DL>
</DD>
</DL>
<HR>

<A NAME="setSubPath(java.lang.String)"><!-- --></A><H3>
setSubPath</H3>
<PRE>
public void <B>setSubPath</B>(java.lang.String&nbsp;subPath)</PRE>
<DL>
<DD>Set the file-path of an external subtitle.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>subPath</CODE> - must be a local file</DL>
</DD>
</DL>
<HR>

<A NAME="getSubPath()"><!-- --></A><H3>
getSubPath</H3>
<PRE>
public java.lang.String <B>getSubPath</B>()</PRE>
<DL>
<DD>You can get the file-path of the external subtitle in use.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>null if no external subtitle</DL>
</DD>
</DL>
<HR>

<A NAME="setSubTrack(int)"><!-- --></A><H3>
setSubTrack</H3>
<PRE>
public void <B>setSubTrack</B>(int&nbsp;trackId)</PRE>
<DL>
<DD>Set the subtitle track to display, must be in the result of
 <A HREF="../../../io/vov/vitamio/MediaPlayer.html#getSubTrackMap(java.lang.String)"><CODE>getSubTrackMap(String)</CODE></A>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>audioIndex</CODE> - the track number</DL>
</DD>
</DL>
<HR>

<A NAME="getSubTrack()"><!-- --></A><H3>
getSubTrack</H3>
<PRE>
public int <B>getSubTrack</B>()</PRE>
<DL>
<DD>Get the subtitle track number in playback
<P>
<DD><DL>

<DT><B>Returns:</B><DD>track number</DL>
</DD>
</DL>
<HR>

<A NAME="getSubTrackMap(java.lang.String)"><!-- --></A><H3>
getSubTrackMap</H3>
<PRE>
public java.util.HashMap&lt;java.lang.String,java.lang.Integer&gt; <B>getSubTrackMap</B>(java.lang.String&nbsp;encoding)</PRE>
<DL>
<DD>Get the subtitles embeded in the movie (e.g. "English", 3).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the encoding to format String, will detect it if null
<DT><B>Returns:</B><DD>Map of track name and track number</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MediaPlayer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../io/vov/vitamio/MediaPlayer.OnBufferingUpdateListener.html" title="interface in io.vov.vitamio"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?io/vov/vitamio/MediaPlayer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="MediaPlayer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>