mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Note that it's not possible for the library to enforce that the flag is adhered to, since it's possible for applications to inject custom implementations of DataSource (there's no requirement they even extend HttpDataSource for network requesting implementations). It's possible for applications to replace pretty much anything in the library, so there's no other place we could put the flag where we could make this guarantee. Hence this is a best-effort that will work when using HttpDataSource implementations that we provide. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136500947
32 lines
1.1 KiB
Java
32 lines
1.1 KiB
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;
|
|
|
|
/**
|
|
* Global configuration flags. Applications may toggle these flags, but should do so prior to any
|
|
* other use of the library.
|
|
*/
|
|
public final class ExoPlayerFlags {
|
|
|
|
/**
|
|
* If set, indicates to {@link com.google.android.exoplayer2.upstream.HttpDataSource}
|
|
* implementations that they should reject non-HTTPS requests.
|
|
*/
|
|
public static boolean REQUIRE_HTTPS = false;
|
|
|
|
private ExoPlayerFlags() {}
|
|
|
|
}
|