Skip to content

Instantly share code, notes, and snippets.

View VCone's full-sized avatar

VC:One VCone

  • VC:One (freelance audio/visual design & apps)
  • Sheffield, U.K
View GitHub Profile
@VCone
VCone / AppendBytes_Seeking_Demo.as
Last active February 8, 2017 23:38
Basic demo of handling seeking with NetStream AppendBytes using AS3 (Flash) - ( by VC:One - vcone.co.uk)
package
{
import flash.display.*; import flash.media.*; import flash.text.*;
import flash.geom.*; import flash.net.*; import flash.system.*;
import flash.events.*; import flash.errors.*; import flash.utils.*;
import flash.system.ApplicationDomain;
/*
@VCone
VCone / AS3_Bitmap_to_AIR_FFmpeg
Created April 10, 2016 23:28
Use AS3 code to transfer bitmapData to an FFmpeg video frame (dynamically generated video frames via code)
/*
//## DYNAMIC VIDEO USING AS3 AND FFMPEG (as native AIR application)
A quick code example for using AS3 to transfer a bitmap object to an FFmpeg video frame.
In others word: Create video dynamically from pixel grabs of a displayObject (Sprite, MC, Bitmap etc).
> Inspired by : http://stackoverflow.com/a/13777166
> See example result : http://blog.vcone.co.uk/2016/04/10/dynamic-video-test-1/
@VCone
VCone / gist:fb7d8df5337c293a3fd3476b6fedf76d
Created April 22, 2016 11:27
Rectangular to Polar conversion (AS3 code) by Valerio Charles (https://vcone.co.uk). Inspired by Adobe Photoshop
private function convert_RectToPolar ( input_BMP : Bitmap ) : void
{
//# *** NOTES ***
//# "output_canvas" (used later) is the Sprite container for the "input_BMP" (source image)
//# ****************************************************************************************
trace("Doing Function : Rectangular To Polar convert");
var x : int = 0; var y : int = 0;
@VCone
VCone / webspeech_01.html
Created July 26, 2019 14:14
Plays Web Speech during I-Frame reload. (Tested with Chrome and FireFox browser)
<!DOCTYPE html>
<!-- Plays Speech during I-frame reload. (Even in FireFox) -->
<!-- Demo related to : -->
<!-- https://stackoverflow.com/questions/54328556/speech-gets-cut-off-in-firefox-when-page-is-auto-refreshed-but-not-in-google-chr -->
<html>
<style>
#content_Iframe