This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep -v '^#' playlist.m3u8 > tmp | |
| mv tmp playlist.m3u8 | |
| git add playlist.m3u8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Parse Vimeo M3U8 URLs to negate relative redirect issues with JW Player (See issue #1510) | |
| * | |
| * @return string | |
| */ | |
| public function parseHLSUrl($url) | |
| { | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); //set url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Usage example | |
| // | |
| // http_location_of_php_file?surl=http_location_of_page_containing_m3u8_link | |
| // | |
| // valid examples: | |
| // http://main.xfiddle.com/50a77b49/parser.php?surl=http://stream.anluong.info/xemlivetv/starmovies_ntv.php | |
| // http://main.xfiddle.com/50a77b49/parser.php?surl=https://www.arconaitv.me/cn/ | |
| // http://main.xfiddle.com/50a77b49/parser.php?surl=https://www.youtube.com/watch?v=y60wDzZt8yg | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var xhr = new XMLHttpRequest(); | |
| xhr.upload.addEventListener('progress', function(e) { | |
| var percent = parseInt(e.loaded / e.total * 100, 10)+'%'; | |
| console.log('progress', percent); | |
| }, false); | |
| xhr.onreadystatechange = function(e) { | |
| if (xhr.readyState === 4 && xhr.status === 200) { | |
| console.log('done!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| Image, | |
| Component, | |
| StyleSheet, | |
| Text, | |
| View, | |
| TouchableHighlight, | |
| } from 'react-native'; | |
| var ImagePickerManager = require('NativeModules').ImagePickerManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @flow | |
| */ | |
| import React, { Component } from "react"; | |
| import { | |
| View, | |
| Image, | |
| Easing, | |
| Platform, | |
| TouchableHighlight, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Exponent from 'exponent'; | |
| import React from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| } from 'react-native'; | |
| import MapView from 'react-native-maps'; | |
| import NavigationBar from 'react-native-navbar'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * @flow | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| View, | |
| Dimensions, | |
| } from 'react-native'; | |
| var {height, width} = Dimensions.get('window'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var React = require('react-native'); | |
| var { | |
| PanResponder, | |
| StyleSheet, | |
| View, | |
| processColor, | |
| Text, | |
| Image, |