/FileExtraction/Java_unseen/PowerExplorer_PowerFileExplorer/PowerFileExplorer/src/main/java/com/google/android/exoplayer2/demo/DemoApplication.java
///*
// * Copyright (C) 2016 The Android Open Source Project
// *
// * Licensed under the Apache License, Version 2.0 (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// *
// *      http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or agreed to in writing, software
// * distributed under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//package com.google.android.exoplayer2.demo;
//
//import android.app.Application;
//import com.google.android.exoplayer2.upstream.DataSource;
//import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter;
//import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
//import com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory;
//import com.google.android.exoplayer2.upstream.HttpDataSource;
//import com.google.android.exoplayer2.util.Util;
//
///**
// * Placeholder application to facilitate overriding Application methods for debugging and testing.
// */
//public class DemoApplication extends Application {
//
//  protected String userAgent;
//
//  @Override
//  public void onCreate() {
//    super.onCreate();
//    userAgent = Util.getUserAgent(this, "ExoPlayerDemo");
//  }
//
//  public DataSource.Factory buildDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {
//    return new DefaultDataSourceFactory(this, bandwidthMeter,
//        buildHttpDataSourceFactory(bandwidthMeter));
//  }
//
//  public HttpDataSource.Factory buildHttpDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {
//    return new DefaultHttpDataSourceFactory(userAgent, bandwidthMeter);
//  }
//
//  public boolean useExtensionRenderers() {
//    return BuildConfig.FLAVOR.equals("withExtensions");
//  }
//
//}
