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
This commit is contained in:
parent
9fca474027
commit
7a08f73ee4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user