running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
public class AndroidImageAdapter extends PagerAdapter { | |
Context mContext; | |
AndroidImageAdapter(Context context) { | |
this.mContext = context; | |
} | |
@Override | |
public int getCount() { | |
return sliderImagesId.length; |
/** | |
* Example AsyncStorage React Native | |
* https://github.com/pradeep1991singh | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, |
//+------------------------------------------------------------------+ | |
//| Signal2Channel.mq4 | | |
//| steven england | | |
//| https://Telegram4MQL.steven-england.info | | |
//+------------------------------------------------------------------+ | |
//+------------------------------------------------------------------+ | |
//| !!! Please note that there is a successor project. !!! | | |
//| Visit https://mmm.steven-england.info or | | |
//| https://github.com/stevenengland/MMM for more information | |
var request = URLRequest(url:URL(string:"http://localhost:8888/login")!) | |
request.httpMethod = "POST" | |
let params = ["email":"[email protected]", "password":"password"] | |
request.httpBody = try? JSONSerialization.data(withJSONObject: params, options: []) | |
request.addValue("application/json", forHTTPHeaderField: "Content-Type") | |
URLSession.shared.dataTask(with: request) { (data:Data?, response:URLResponse?, error:Error?) in | |
if let safeData = data{ | |
print("response: \(String(data:safeData, encoding:.utf8))") |
public class NewsDetailActivity extends AppCompatActivity implements View.OnClickListener { | |
Activity activity; | |
Toolbar toolbar; | |
File TEMP_FILE_SAVE_PATH = Environment.getExternalStorageDirectory(); | |
String TEMP_FILE_NAME = "news_"; | |
String URL=""; | |
private DownloadManager downloadManager; | |
@Override |
var accounts = [ | |
{ name: 'James Brown', msgCount: 123 }, | |
{ name: 'Stevie Wonder', msgCount: 22 }, | |
{ name: 'Sly Stone', msgCount: 16 }, | |
{ name: 'Otis Redding', msgCount: 300 } // Otis has the most messages | |
]; | |
// get sum of msgCount prop across all objects in array | |
var msgTotal = accounts.reduce(function(prev, cur) { | |
return prev + cur.msgCount; |
package com.almabay.filterlistdemo; | |
/** | |
* Created by deepakr on 3/29/2016. | |
*/ | |
public class Bean { | |
String name, age; | |
public Bean(String name, String age) { | |
this.name = name; |