Add More Logging to Sample Player
Because the Widevine Sample Play is frequently used to report bugs, it is helpful to have users' actions logged. This change prints to the android log whenever the user changes settings, clicks play, full screen, acquire rights, etc. This code does not change the build and is not delivered to customers. It is delivered to vendors. Change-Id: I62c34c2f1683af881a3c326a48f039b463ca3e8e
This commit is contained in:
@@ -12,6 +12,7 @@ import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.util.Log;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
@@ -23,6 +24,8 @@ public class SettingsActivity extends Activity {
|
||||
private Button updateButton;
|
||||
private EditText drmServer, portalName, deviceId, contentPage;
|
||||
|
||||
public static final String TAG = "WVM Player Settings";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
|
||||
@@ -37,6 +40,7 @@ public class SettingsActivity extends Activity {
|
||||
View.OnClickListener clickListener = new View.OnClickListener() {
|
||||
|
||||
public void onClick(View v) {
|
||||
Log.d(TAG, "Click update settings");
|
||||
WidevineDrm.Settings.DRM_SERVER_URI = drmServer.getText().toString();
|
||||
WidevineDrm.Settings.DEVICE_ID = deviceId.getText().toString();
|
||||
WidevineDrm.Settings.PORTAL_NAME = portalName.getText().toString();
|
||||
@@ -46,6 +50,7 @@ public class SettingsActivity extends Activity {
|
||||
builder.setMessage("DRM Settings Updated").setCancelable(false)
|
||||
.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
Log.d(TAG, "Click DRM Settings OK.");
|
||||
dialog.cancel();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user