no commit message

This commit is contained in:
niandeng
2020-09-17 18:40:01 +08:00
parent 4382915d09
commit d957abceaa
283 changed files with 86935 additions and 63 deletions
@@ -0,0 +1,18 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.hls.constant {
/** Identifiers for the different stream types. **/
public class HLSLoaderTypes {
// manifest loader
public static const MANIFEST : int = 0;
// playlist / level loader
public static const LEVEL_MAIN : int = 1;
// playlist / level loader
public static const LEVEL_ALTAUDIO : int = 2;
// main fragment loader
public static const FRAGMENT_MAIN : int = 3;
// alt audio fragment loader
public static const FRAGMENT_ALTAUDIO : int = 4;
}
}
@@ -0,0 +1,17 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.hls.constant {
/** Max Level Capping Modes **/
public class HLSMaxLevelCappingMode {
/**
* max capped level should be the one with the dimensions equal or greater than the stage dimensions (so the video will be downscaled)
*/
public static const DOWNSCALE : String = "downscale";
/**
* max capped level should be the one with the dimensions equal or lower than the stage dimensions (so the video will be upscaled)
*/
public static const UPSCALE : String = "upscale";
}
}
@@ -0,0 +1,18 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.hls.constant {
/** Identifiers for the different playback states. **/
public class HLSPlayStates {
/** idle state. **/
public static const IDLE : String = "IDLE";
/** playing state. **/
public static const PLAYING : String = "PLAYING";
/** paused state. **/
public static const PAUSED : String = "PAUSED";
/** playing/buffering state (playback is paused and will restart automatically as soon as buffer will contain enough data) **/
public static const PLAYING_BUFFERING : String = "PLAYING_BUFFERING";
/** paused/buffering state (playback is paused, and buffer is in low condition) **/
public static const PAUSED_BUFFERING : String = "PAUSED_BUFFERING";
}
}
@@ -0,0 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.hls.constant {
/** HLS Seek mode configuration **/
public class HLSSeekMode {
/** seek on keyframe boundary **/
public static const KEYFRAME_SEEK : String = "KEYFRAME";
/** accurate seeking **/
public static const ACCURATE_SEEK : String = "ACCURATE";
}
}
@@ -0,0 +1,14 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.hls.constant {
/** Identifiers for the different seeking states. **/
public class HLSSeekStates {
/** idle state. **/
public static const IDLE : String = "IDLE";
/** seeking in progress state. **/
public static const SEEKING : String = "SEEKING";
/** seeked state. **/
public static const SEEKED : String = "SEEKED";
}
}
@@ -0,0 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.hls.constant {
/** Identifiers for the different stream types. **/
public class HLSTypes {
/** Identifier for live events. **/
public static const LIVE : String = "LIVE";
/** Identifier for on demand clips. **/
public static const VOD : String = "VOD";
}
}