Widevine sample player
For bug 4245169 Change-Id: Ie110d5603f19cd54878d2c4506e8ffad11207f10
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user