Skip to content

Instantly share code, notes, and snippets.

View Offbeatmammal's full-sized avatar

Offbeatmammal Offbeatmammal

View GitHub Profile
Verifying that +offbeatmammal is my blockchain ID. https://onename.com/offbeatmammal
@Offbeatmammal
Offbeatmammal / html5videoEvents.html
Created September 13, 2012 23:03
A sample showing HTML5 video events and appropriate properties. Useful for testing different browser behaviors. The Java file is an Android webView that can be used to host the HTML sample
package com.offbeatmammal.android.webview;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.RelativeLayout;
public class WebViewActivity extends Activity {
@Offbeatmammal
Offbeatmammal / pls2audio.html
Created October 6, 2011 04:06
HTML5, JavaScript to load a .pls file to <audio> tag. Uses error and ended events to move to the next item
<! DOCTYPE html>
<html>
<head>
<title>PLS Processor</title>
<!-- needed for IE9 to ensure it treats page as HTML5 properly -->
<meta http-equiv="X-UA-Compatible" content="IE=9" >
</head>
<body>
<p>Audio PLS processor<p>
<audio id="audio" controls="controls"></audio >