From 7a08f73ee4b0a38f1ac78442c3aa64be5f3fbc48 Mon Sep 17 00:00:00 2001 From: ibaker Date: Fri, 1 Apr 2022 14:43:41 +0100 Subject: [PATCH] Add @OptIn annotations to dev guide snippets These cover developer journeys that we don't plan to stabilise in 1.0.0 PiperOrigin-RevId: 438812300 --- docs/listening-to-player-events.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/listening-to-player-events.md b/docs/listening-to-player-events.md index d46bb9fc91..4b1215ba36 100644 --- a/docs/listening-to-player-events.md +++ b/docs/listening-to-player-events.md @@ -88,8 +88,6 @@ public void onPlayerError(PlaybackException error) { if (cause instanceof HttpDataSourceException) { // An HTTP error occurred. HttpDataSourceException httpError = (HttpDataSourceException) cause; - // This is the request for which the error occurred. - DataSpec requestDataSpec = httpError.dataSpec; // It's possible to find out more about the error both by casting and by // querying the cause. if (httpError instanceof HttpDataSource.InvalidResponseCodeException) {