This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs' | |
import wav from 'node-wav' | |
import wrtc from 'wrtc' | |
let buffer = fs.readFileSync("Drifting.wav") | |
let result = wav.decode(buffer) | |
let audioSource = new wrtc.nonstandard.RTCAudioSource() | |
audioSource.onData({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('send and track upload progress', () async { | |
var file = File('test/fixtures/lisanto.jpg'); | |
var length = await file.length(); | |
var bytesRead = 0; | |
var watch = Stopwatch(); | |
watch.start(); | |
file.openRead().listen((chunks) { | |
bytesRead += chunks.length; | |
if (bytesRead == length) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:http/io_client.dart'; | |
import 'package:http/http.dart' hide Client; | |
import 'package:test/test.dart'; | |
import 'package:uploader/services/client.dart'; | |
import 'package:uploader/extensions/round_double_to_decimal_places.dart'; | |
void main() async { | |
HttpClient inner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:intl/intl.dart'; | |
import 'package:timezone/timezone.dart'; | |
import 'package:timezone/data/latest.dart'; | |
// A DateTime in dart contains the TimezoneOffset from UTC/GMT | |
// However formatting a Date using timezone patterns/symbols like "Z" or "Z" | |
// is not supported yet. | |
// See: https://github.com/dart-lang/intl/issues/19 for more details. | |
Future<void> main() async { |