diff --git a/proprietary/samplePlayer/Android.mk b/proprietary/samplePlayer/Android.mk new file mode 100644 index 00000000..36b9ad8a --- /dev/null +++ b/proprietary/samplePlayer/Android.mk @@ -0,0 +1,15 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +LOCAL_PACKAGE_NAME := WidevineSamplePlayer + +LOCAL_SDK_VERSION := current + +include $(BUILD_PACKAGE) + +# Use the following include to make our test apk. +include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/proprietary/samplePlayer/AndroidManifest.xml b/proprietary/samplePlayer/AndroidManifest.xml new file mode 100644 index 00000000..69083fea --- /dev/null +++ b/proprietary/samplePlayer/AndroidManifest.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/samplePlayer/default.properties b/proprietary/samplePlayer/default.properties new file mode 100644 index 00000000..5ce9e933 --- /dev/null +++ b/proprietary/samplePlayer/default.properties @@ -0,0 +1,2 @@ +# Project target. +target=android-12 diff --git a/proprietary/samplePlayer/readme b/proprietary/samplePlayer/readme new file mode 100644 index 00000000..f059df6e --- /dev/null +++ b/proprietary/samplePlayer/readme @@ -0,0 +1,45 @@ +README: WidevineSamplePlayer.apk + +[Install application:] + +Attach a device +In a terminal window: +change directory to vendor/widevine/proprietary/samplePlayer +type the following commands: +mm +adb root +adb remount +adb sync +adb reboot + +demo is installed to out/target/product/stingray/system/app/WidevineSamplePlayer.apk + + +[Download content for offline testing:] + +View http://seawwws001.shibboleth.tv/android/oem.html source for asset names. + +For example: + +curl -sL "http://seawwws001.cdn.shibboleth.tv/videos/content/starz_demo_ffmpeg_hc_single_720p.wvm" -O +adb shell mkdir -p /sdcard/Widevine +adb push starz_demo_ffmpeg_hc_single_720p.wvm /sdcard/Widevine/ + + +[Running the application:] + +On your device, open WidevineDemo. +The Streaming tab should be highlighted, with content available in 480p and 720p encodings. +Select an asset to play. +You should see a player page. To successfully play back content: +-Select Acquire Rights +-Select Play (or click the player window to start playback) + +Selecting Show Rights will provide the license time left for playback in the log screen next to the player. +Selecting Remove Rights will stop further attempts to play back from succeeding for more than 10 seconds. You will need to then select Acquire Rights to allow playback again. + +Stop video, and go back one screen to the video list. +Select the Downloads tab. +You should see the video we pushed to the device (starz_demo_ffmpeg_hc_single_720p.wvm). +Behavior on this page should be the same as for the Streaming page, with the exception that once you Acquire Rights, you should be able to continue playback of the Downloaded asset offline as long as the rights are valid. You can check the status of your rights with the Show Rights button. + diff --git a/proprietary/samplePlayer/res/drawable-hdpi/background3.png b/proprietary/samplePlayer/res/drawable-hdpi/background3.png new file mode 100644 index 00000000..e2d9b1a2 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/background3.png differ diff --git a/proprietary/samplePlayer/res/drawable-hdpi/download_clip.jpg b/proprietary/samplePlayer/res/drawable-hdpi/download_clip.jpg new file mode 100644 index 00000000..a9dc42cf Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/download_clip.jpg differ diff --git a/proprietary/samplePlayer/res/drawable-hdpi/empty.png b/proprietary/samplePlayer/res/drawable-hdpi/empty.png new file mode 100644 index 00000000..5acef52c Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/empty.png differ diff --git a/proprietary/samplePlayer/res/drawable-hdpi/icon.png b/proprietary/samplePlayer/res/drawable-hdpi/icon.png new file mode 100644 index 00000000..8074c4c5 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/icon.png differ diff --git a/proprietary/samplePlayer/res/drawable-hdpi/play_shield.png b/proprietary/samplePlayer/res/drawable-hdpi/play_shield.png new file mode 100644 index 00000000..32b9ea7b Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/play_shield.png differ diff --git a/proprietary/samplePlayer/res/drawable-hdpi/selection_circle.png b/proprietary/samplePlayer/res/drawable-hdpi/selection_circle.png new file mode 100644 index 00000000..2d045ff4 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/selection_circle.png differ diff --git a/proprietary/samplePlayer/res/drawable-hdpi/streaming_clip.png b/proprietary/samplePlayer/res/drawable-hdpi/streaming_clip.png new file mode 100644 index 00000000..d8d95c86 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-hdpi/streaming_clip.png differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/background3.png b/proprietary/samplePlayer/res/drawable-ldpi/background3.png new file mode 100644 index 00000000..e2d9b1a2 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/background3.png differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/download_clip.jpg b/proprietary/samplePlayer/res/drawable-ldpi/download_clip.jpg new file mode 100644 index 00000000..a9dc42cf Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/download_clip.jpg differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/empty.png b/proprietary/samplePlayer/res/drawable-ldpi/empty.png new file mode 100644 index 00000000..5acef52c Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/empty.png differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/icon.png b/proprietary/samplePlayer/res/drawable-ldpi/icon.png new file mode 100644 index 00000000..1095584e Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/icon.png differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/play_shield.png b/proprietary/samplePlayer/res/drawable-ldpi/play_shield.png new file mode 100644 index 00000000..32b9ea7b Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/play_shield.png differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/selection_circle.png b/proprietary/samplePlayer/res/drawable-ldpi/selection_circle.png new file mode 100644 index 00000000..2d045ff4 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/selection_circle.png differ diff --git a/proprietary/samplePlayer/res/drawable-ldpi/streaming_clip.png b/proprietary/samplePlayer/res/drawable-ldpi/streaming_clip.png new file mode 100644 index 00000000..d8d95c86 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-ldpi/streaming_clip.png differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/background3.png b/proprietary/samplePlayer/res/drawable-mdpi/background3.png new file mode 100644 index 00000000..e2d9b1a2 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/background3.png differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/download_clip.jpg b/proprietary/samplePlayer/res/drawable-mdpi/download_clip.jpg new file mode 100644 index 00000000..a9dc42cf Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/download_clip.jpg differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/empty.png b/proprietary/samplePlayer/res/drawable-mdpi/empty.png new file mode 100644 index 00000000..5acef52c Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/empty.png differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/icon.png b/proprietary/samplePlayer/res/drawable-mdpi/icon.png new file mode 100644 index 00000000..a07c69fa Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/icon.png differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/play_shield.png b/proprietary/samplePlayer/res/drawable-mdpi/play_shield.png new file mode 100644 index 00000000..32b9ea7b Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/play_shield.png differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/selection_circle.png b/proprietary/samplePlayer/res/drawable-mdpi/selection_circle.png new file mode 100644 index 00000000..2d045ff4 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/selection_circle.png differ diff --git a/proprietary/samplePlayer/res/drawable-mdpi/streaming_clip.png b/proprietary/samplePlayer/res/drawable-mdpi/streaming_clip.png new file mode 100644 index 00000000..d8d95c86 Binary files /dev/null and b/proprietary/samplePlayer/res/drawable-mdpi/streaming_clip.png differ diff --git a/proprietary/samplePlayer/res/layout/empty.xml b/proprietary/samplePlayer/res/layout/empty.xml new file mode 100644 index 00000000..81ab487a --- /dev/null +++ b/proprietary/samplePlayer/res/layout/empty.xml @@ -0,0 +1,7 @@ + + + + diff --git a/proprietary/samplePlayer/res/layout/main.xml b/proprietary/samplePlayer/res/layout/main.xml new file mode 100644 index 00000000..825d2c18 --- /dev/null +++ b/proprietary/samplePlayer/res/layout/main.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/proprietary/samplePlayer/res/layout/settings.xml b/proprietary/samplePlayer/res/layout/settings.xml new file mode 100644 index 00000000..46bf10b1 --- /dev/null +++ b/proprietary/samplePlayer/res/layout/settings.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + +