Widevine sample player
For bug 4245169 Change-Id: Ie110d5603f19cd54878d2c4506e8ffad11207f10
BIN
proprietary/samplePlayer/res/drawable-hdpi/background3.png
Normal file
|
After Width: | Height: | Size: 662 KiB |
BIN
proprietary/samplePlayer/res/drawable-hdpi/download_clip.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
proprietary/samplePlayer/res/drawable-hdpi/empty.png
Normal file
|
After Width: | Height: | Size: 313 B |
BIN
proprietary/samplePlayer/res/drawable-hdpi/icon.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
proprietary/samplePlayer/res/drawable-hdpi/play_shield.png
Normal file
|
After Width: | Height: | Size: 376 KiB |
BIN
proprietary/samplePlayer/res/drawable-hdpi/selection_circle.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
proprietary/samplePlayer/res/drawable-hdpi/streaming_clip.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
proprietary/samplePlayer/res/drawable-ldpi/background3.png
Normal file
|
After Width: | Height: | Size: 662 KiB |
BIN
proprietary/samplePlayer/res/drawable-ldpi/download_clip.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
proprietary/samplePlayer/res/drawable-ldpi/empty.png
Normal file
|
After Width: | Height: | Size: 313 B |
BIN
proprietary/samplePlayer/res/drawable-ldpi/icon.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
proprietary/samplePlayer/res/drawable-ldpi/play_shield.png
Normal file
|
After Width: | Height: | Size: 376 KiB |
BIN
proprietary/samplePlayer/res/drawable-ldpi/selection_circle.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
proprietary/samplePlayer/res/drawable-ldpi/streaming_clip.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
proprietary/samplePlayer/res/drawable-mdpi/background3.png
Normal file
|
After Width: | Height: | Size: 662 KiB |
BIN
proprietary/samplePlayer/res/drawable-mdpi/download_clip.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
proprietary/samplePlayer/res/drawable-mdpi/empty.png
Normal file
|
After Width: | Height: | Size: 313 B |
BIN
proprietary/samplePlayer/res/drawable-mdpi/icon.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
proprietary/samplePlayer/res/drawable-mdpi/play_shield.png
Normal file
|
After Width: | Height: | Size: 376 KiB |
BIN
proprietary/samplePlayer/res/drawable-mdpi/selection_circle.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
proprietary/samplePlayer/res/drawable-mdpi/streaming_clip.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
7
proprietary/samplePlayer/res/layout/empty.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<TextView android:id="@+id/textView1" android:text="@string/no_content" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="40pt" android:background="@drawable/background3" android:gravity="center"></TextView>
|
||||
</LinearLayout>
|
||||
21
proprietary/samplePlayer/res/layout/main.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/tabhost"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="5dp">
|
||||
<TabWidget
|
||||
android:id="@android:id/tabs"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<FrameLayout
|
||||
android:id="@android:id/tabcontent"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</TabHost>
|
||||
88
proprietary/samplePlayer/res/layout/settings.xml
Normal file
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:stretchColumns="1"
|
||||
android:background="@drawable/background3">
|
||||
|
||||
<TableRow android:paddingTop="50dip" >
|
||||
<TextView
|
||||
android:layout_width="200dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:typeface="serif"
|
||||
android:textSize="30sp"
|
||||
android:paddingLeft="100dip"
|
||||
android:text="@string/drm_server"/>
|
||||
<EditText
|
||||
android:layout_width="600dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/drm_server"
|
||||
/>
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
<TextView
|
||||
android:layout_width="200dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:typeface="serif"
|
||||
android:textSize="30sp"
|
||||
android:paddingLeft="100dip"
|
||||
android:text="@string/device_id"/>
|
||||
<EditText
|
||||
android:layout_width="600dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/device_id"
|
||||
/>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="200dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:typeface="serif"
|
||||
android:textSize="30sp"
|
||||
android:paddingLeft="100dip"
|
||||
android:text="@string/portal_id"/>
|
||||
<EditText
|
||||
android:layout_width="600dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/portal_id"
|
||||
/>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="200dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:typeface="serif"
|
||||
android:textSize="30sp"
|
||||
android:paddingLeft="100dip"
|
||||
android:text="@string/content_page"/>
|
||||
<EditText
|
||||
android:layout_width="600dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/content_page"
|
||||
/>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center"
|
||||
>
|
||||
<Button
|
||||
android:text="@string/update_button"
|
||||
android:id="@+id/update_button"
|
||||
/>
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
19
proprietary/samplePlayer/res/values/strings.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Widevine Demo</string>
|
||||
<string name="no_content">No Content Found</string>
|
||||
<string name="play">Play</string>
|
||||
<string name="stop">Stop</string>
|
||||
<string name="constraints">Constraints</string>
|
||||
<string name="acquire_rights">Acquire Rights</string>
|
||||
<string name="remove_rights">Remove Rights</string>
|
||||
<string name="show_rights">Show Rights</string>
|
||||
<string name="streaming">Streaming</string>
|
||||
<string name="downloads">Downloads</string>
|
||||
|
||||
<string name="content_page">Content Page</string>
|
||||
<string name="device_id">Device Id</string>
|
||||
<string name="drm_server">Drm Server</string>
|
||||
<string name="portal_id">Portal Name</string>
|
||||
<string name="update_button">Update Button</string>
|
||||
</resources>
|
||||