Skip to content

Instantly share code, notes, and snippets.

View lucky-c's full-sized avatar
👋
Hello there.

Lucky Christiawan lucky-c

👋
Hello there.
View GitHub Profile
@lucky-c
lucky-c / APIService.cs
Created February 21, 2018 15:23
Basic API Call for Xamarin.Forms
public class APIService
{
HttpClient client;
public APIService()
{
client = new HttpClient();
client.MaxResponseContentBufferSize = 256000;
}
@lucky-c
lucky-c / app.js
Last active August 27, 2024 17:59
React Native: Expo video HLS streaming sample
import React from 'react';
import { StyleSheet, Text, View, Dimensions } from 'react-native';
import { Video } from 'expo';
export default class App extends React.Component {
render() {
// Set video dimension based on its width, so the video doesn't stretched on any devices.
// The video dimension ratio is 11 : 9 for width and height
let videoWidth = Dimensions.get('window').width;