Reputation: 96
Excellent
- Group:
- Members
- Active Posts:
- 2070 (1.82 per day)
- Most Active In:
- General Discussion (475 posts)
- Joined:
- 14-April 10
- Profile Views:
- 6353
- Last Active:
May 23 2013 05:10 PM- Currently:
- Offline
My Information
- Member Title:
- 兄貴 シャンク
- Age:
- 21 years old
- Birthday:
- June 8, 1991
- Gender:
-
Male
- Location:
- New Brunswick, NJ
- Expertise:
-
HTML
CSS
PHP
Java
Javascript
Node.js
Graphics
MongoDB
CouchDB
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
sashankta@hotmail.com
- Website URL:
-
http://souless.co
- Yahoo:
-
sashankta
Topics I've Started
-
HTML5 Video - Funneh Issue
24 January 2013 - 11:23 PM
Perhaps I'm futile in my attempts, but here goes nothing.
At the fundamental level, I'm trying to recreate some of the features of Youtube but with pure HTML5. One of the more interesting features is the automatic switching of video quality from SD to HD (on fullscreen, and with bandwidth measurement). I didn't delve into the bandwidth calculations yet, but I'm already running into problems when trying to use VideoJS (from Zencoder folks).
http://jsfiddle.net/soulcyon/5GtnC/
var fire = function(obj, o){ // o Flag to ensure we are ready to read obj.buffered if( o ){ // Lame check to detect bandwidth if( (obj.buffered.end(0) - obj.buffered.start(0)) / obj.duration > 0.05 ){ // Do the switcheroo oldTime = obj.currentTime; obj.preload = "auto"; obj.src = obj.currentSrc.replace("http://dijj.it/", "http://dijj.it/shd/"); obj.load(); obj.pause(); // Yet again, we may not be able to read obj.seekable thus setTimeout (function(){ if( obj.seekable.length > 0 && obj.seekable.end(0) > oldTime ){ // Seek to where we were last off and play obj.play(); return obj.currentTime = oldTime; } setTimeout(arguments.callee, 100); })(); } } else { // We may not be ready to read obj.buffered, setTimeout dat shizz if( obj.buffered.length > 0 ){ setTimeout(arguments.callee, 5000, obj, true); } else { setTimeout(arguments.callee, 1, obj, false); } } }, fired = false; $("video").bind("play", function(){ // Check that we're not already in HD if( $(this).prop("currentSrc").indexOf("/shd/") !== -1 ) return; // Check that we didn't fire fire yet if( fired ) return; fired = new Date(); fire($(this)[0]); });
The magic is at the fire variable, which handles buffered detection and the video-switching thereafter.
The most obvious problem is that there is a flicker just as the video switches. What's even wierder is that obj.seekable.end(0) never updates after the video switch. I'm kinda losing hope on HTML5 Video, not to mention the ridiculous closure hacky nonsense. -
Hover domain management
14 September 2012 - 12:23 PM
I'm not looking to buy new domains, but just transfer a bulk of domains to "somewhere else". Name.com has been great to me for the past few years, but the prices are just burning a hole in my wallet.
I have about 13 .com/.net/.org (mixed bag) domains, 2 .co domains and 1 .im domain. Name.com asks for $272 for a total yearly charge (including whois privacy), and with a nice coupon I can bring that down to $212 (pm me if you want that coupon).
I'd rather not transfer to Godaddy, to save my sanity, even though their initial transfer prices seem tempting (the Whois is like $12 or something). Are there any other good registrars out there? Anyone have experience with Hover Domain Management?
With Hover, I can bring the whole transfer pricetag down to $190 with free whois. I wonder if I can save any more with this set domains. -
GoDaddy (lol)
10 September 2012 - 03:37 PM
My condolences for those of you who've chosen to host with Godaddy.
For the rest of us:

http://www.foxnews.c...rarily-offline/






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None
Find My Content
Display name history


Help
Comments
markbrown4
18 Jul 2012 - 00:43