Widevine sample player

For bug 4245169

Change-Id: Ie110d5603f19cd54878d2c4506e8ffad11207f10
This commit is contained in:
Gloria Wang
2011-04-06 10:28:00 -07:00
parent 1445a4288d
commit fc6f6134e9
46 changed files with 2011 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
/*
* (c)Copyright 2011 Widevine Technologies, Inc
*/
package com.widevine.demo;
import java.util.ArrayList;
public class AssetsPage {
public static final int MAX_ITEMS = 6;
private ArrayList<AssetItem> assets;
public AssetsPage() {
assets = new ArrayList<AssetItem>();
}
public void addPage(String assetPath, String imagePath, String title) {
assets.add(new AssetItem(assetPath, imagePath, title));
}
public AssetItem getPage(int pageNumber) {
return assets.get(pageNumber);
}
public int getPageCount() {
return assets.size();
}
}