Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| private fun getClient(): WebViewClient { | |
| return object : WebViewClient() { | |
| override fun shouldInterceptRequest( | |
| view: WebView?, | |
| request: WebResourceRequest? | |
| ): WebResourceResponse? { | |
| return super.shouldInterceptRequest(view, request) | |
| } | |
| override fun shouldInterceptRequest(view: WebView?, url: String?): WebResourceResponse? { |
| import React, { | |
| forwardRef, | |
| PropsWithChildren, | |
| useImperativeHandle, | |
| memo, | |
| useMemo, | |
| useCallback, | |
| } from 'react'; | |
| import { | |
| Gesture, |
| struct ScreenSize { | |
| static let width = UIScreen.main.bounds.size.width | |
| static let height = UIScreen.main.bounds.size.height | |
| static let maxLength = max(ScreenSize.width, ScreenSize.height) //Gets the Height | |
| static let minLength = min(ScreenSize.width, ScreenSize.height) //Gets the Width | |
| } | |
| //Contains the dimensions of the devices | |
| fileprivate struct KeybDimensions{ | |
| //iPod touch(7), iPhone 5, iPhone 5s, iPhone 5C, iPhone SE |
| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
| import { createContext, forwardRef, useCallback, useMemo } from "react"; | |
| import { FlatList, FlatListProps, ViewToken } from "react-native"; | |
| import Animated, { useSharedValue } from "react-native-reanimated"; | |
| const MAX_VIEWABLE_ITEMS = 4; | |
| type ViewabilityItemsContextType = string[]; | |
| export const ViewabilityItemsContext = createContext< | |
| Animated.SharedValue<ViewabilityItemsContextType> |
| /* Copyright 2019 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 | |
| * | |
| * https://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, |
| Flow Type | Purpose | Key Features | Use Case |
|---|---|---|---|
flow {} |
Creates a cold flow that emits values lazily. | Emits values only when collected. Supports suspending functions. |
Creating custom flows to emit data on demand. |
flowOf() |
Creates a flow from a fixed set of values. | Emits provided values sequentially. Cold by nature. |
Emit predefined values (e.g., configuration settings). |
asFlow() |
Converts collections, sequences, arrays, or ranges to flows. | Supports many standard types. Cold by nature. |
Convert lists or arrays into flows for processing. |
| `c |
| public class MapViewHolder extends RecyclerView.ViewHolder { | |
| private MapViewListItemView mMapViewListItemView; | |
| public MapViewHolder(MapViewListItemView mapViewListItemView) { | |
| super(mapViewListItemView); | |
| mMapViewListItemView = mapViewListItemView; | |
| } | |
| public void mapViewListItemViewOnCreate(Bundle savedInstanceState) { |