Skip to content

Instantly share code, notes, and snippets.

View noseglid's full-sized avatar

Alexander Pochill noseglid

  • Storytel
  • Lomma, Sweden
View GitHub Profile
package main
import (
"testing"
"time"
dockerinitiator "github.com/Storytel/go-docker-initiator"
)
func TestGetUsers(t *testing.T) {
@noseglid
noseglid / users.go
Last active September 11, 2018 12:13
package main
import (
"database/sql"
"fmt"
"log"
"os"
)
type UserRepository struct {
@noseglid
noseglid / ff-with-locomote.md
Created April 30, 2015 08:43
Fast forward using Locomote

A simple and effective way to achieve fast forward using the Locomote Video Player would be to modify timestamps before inserting them into the buffer. It can fairly easy be tested by adding the line

ts /= 2;

at row 345 in src/com/axis/rtspclient/FLVMux.as. This would play back the video twice the normal speed.

This is achieved by simply putting the timestamps closer together (above, each timestamp is divided by 2, hence that frame come in half the time it would at normal playback speed).

Some considerations:

play(in:*):void {
if (in is Object) {
urlParsed = url.parse(in.url);
in.url = null;
urlParsed.extend(in); // Add all parameters which was not `url` to the `urlParsed` object.
} else {
urlParsed = url.parse(in);
}
}