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 / app.js
Last active May 6, 2024 13:13
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;
@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;
}