Skip to content

Commit

Permalink
Fix spelling of Received
Browse files Browse the repository at this point in the history
  • Loading branch information
lental committed Mar 12, 2015
1 parent 02698b6 commit 130b5a0
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void update(Observable arg0, Object arg1) {
if (arg1 == OoyalaPlayer.TIME_CHANGED_NOTIFICATION) {
return;
}
Log.d(TAG, "Notification Recieved: " + arg1 + " - state: " + player.getState());
Log.d(TAG, "Notification Received: " + arg1 + " - state: " + player.getState());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void update(Observable arg0, Object arg1) {
if (arg1 == OoyalaPlayer.TIME_CHANGED_NOTIFICATION) {
return;
}
Log.d(TAG, "Notification Recieved: " + arg1 + " - state: " + player.getState());
Log.d(TAG, "Notification Received: " + arg1 + " - state: " + player.getState());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public void onCreate(Bundle savedInstanceState) {
if (player.setEmbedCode(EMBED)) {
player.play();
}
else {
Log.e(TAG, "Asset Failure");
}
}

@Override
Expand All @@ -73,10 +76,26 @@ protected void onRestart() {
*/
@Override
public void update(Observable arg0, Object arg1) {
if (arg0 != player) {
return;
}

if (arg1 == OoyalaPlayer.TIME_CHANGED_NOTIFICATION) {
return;
}
Log.d(TAG, "Notification Recieved: " + arg1 + " - state: " + player.getState());

if (arg1 == OoyalaPlayer.ERROR_NOTIFICATION) {
final String msg = "Error Event Received";
if (player != null && player.getError() != null) {
Log.e(TAG, msg, player.getError());
}
else {
Log.e(TAG, msg);
}
return;
}

Log.d(TAG, "Notification Received: " + arg1 + " - state: " + player.getState());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void update(Observable arg0, Object arg1) {
if (arg1 == OoyalaPlayer.TIME_CHANGED_NOTIFICATION) {
return;
}
Log.d(TAG, "Notification Recieved: " + arg1 + " - state: " + player.getState());
Log.d(TAG, "Notification Received: " + arg1 + " - state: " + player.getState());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void update(Observable arg0, Object arg1) {
if (arg1 == OoyalaPlayer.TIME_CHANGED_NOTIFICATION) {
return;
}
Log.d(TAG, "Notification Recieved: " + arg1 + " - state: " + player.getState());
Log.d(TAG, "Notification Received: " + arg1 + " - state: " + player.getState());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ public void update(Observable arg0, Object arg1) {
return;
}
Log.d(TAG,
"Notification Recieved: " + arg1 + " - state: " + player.getState());
"Notification Received: " + arg1 + " - state: " + player.getState());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ public void update(Observable arg0, Object arg1) {
return;
}
Log.d(TAG,
"Notification Recieved: " + arg1 + " - state: " + player.getState());
"Notification Received: " + arg1 + " - state: " + player.getState());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public void onCreate(Bundle savedInstanceState) {
if (player.setEmbedCode(EMBED)) {
player.play();
}
else {
Log.e(TAG, "Asset Failure");
}
}

@Override
Expand All @@ -73,10 +76,26 @@ protected void onRestart() {
*/
@Override
public void update(Observable arg0, Object arg1) {
if (arg0 != player) {
return;
}

if (arg1 == OoyalaPlayer.TIME_CHANGED_NOTIFICATION) {
return;
}
Log.d(TAG, "Notification Recieved: " + arg1 + " - state: " + player.getState());

if (arg1 == OoyalaPlayer.ERROR_NOTIFICATION) {
final String msg = "Error Event Received";
if (player != null && player.getError() != null) {
Log.e(TAG, msg, player.getError());
}
else {
Log.e(TAG, msg);
}
return;
}

Log.d(TAG, "Notification Received: " + arg1 + " - state: " + player.getState());
}

}

0 comments on commit 130b5a0

Please sign in to comment.