Skip to content

Instantly share code, notes, and snippets.

@xinfushe
xinfushe / EncodeAndMuxTest.java
Created July 27, 2017 07:22 — forked from tc/EncodeAndMuxTest.java
OpenGL to video on Android, 4.3 API 18
/*
* Copyright 2013 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@xinfushe
xinfushe / EncodeAndMuxTest.java
Created July 27, 2017 07:22 — forked from tc/EncodeAndMuxTest.java
OpenGL to video on Android, 4.3 API 18
/*
* Copyright 2013 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@xinfushe
xinfushe / WebGL360Video.html
Created July 11, 2017 07:15 — forked from fieldOfView/WebGL360Video.html
Simple WebGL/GLSL video panorama viewer
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Simple WebGL/GLSL video panorama viewer</title>
<style>
body {
background-color: #000000;
@xinfushe
xinfushe / PreviewTestNew.cs
Created June 6, 2017 06:48 — forked from Paloghas/ PreviewTestNew.cs
Displaying Camera Preview on Android with Unity
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
using System;
using UnityEngine.Assertions;
public class PreviewTestNew : MonoBehaviour {
AndroidJavaClass androidNativeCam;
AndroidJavaObject androidNativeCamActivity;
@xinfushe
xinfushe / PreviewTestNew.cs
Created June 6, 2017 06:48 — forked from Paloghas/ PreviewTestNew.cs
Displaying Camera Preview on Android with Unity
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
using System;
using UnityEngine.Assertions;
public class PreviewTestNew : MonoBehaviour {
AndroidJavaClass androidNativeCam;
AndroidJavaObject androidNativeCamActivity;
package net.gangneux.dev.jrmgxlibview;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Surface;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebView;