Skip to content

Instantly share code, notes, and snippets.

{
"ほんかか": "左門が鳥栖と叫びながら歌い出すための呪文です",
"ごんぴい": "左大臣がワインをのみながら歌い出す呪文です"
}
@goroya
goroya / WebRTC Custom OpenCV Video Capture.md
Created January 14, 2019 15:36
WebRTC Custom OpenCV Video Capture

WebRTC Custom OpenCV Video Capture

implementations for most platforms including Linux, Mac, Windows, iOS and Android, but what if we want to use our own video capture source such as a frame-grabber, or OpenCV or FFmpeg?
Linux、Mac、Windows、iOS、Androidなど、ほとんどのプラットフォームに実装できますが、フレームグラバー、OpenCV、FFmpegなどの独自のビデオキャプチャソースを使用する場合はどうなりますか。

The good news is that it’s quite easy, all you need to do is override the cricket::VideoCapturer class and create a custom cricket::VideoCapturerFactory for attaching to the cricket::DeviceManagerInterface.
幸い、cricket :: VideoCapturerクラスをオーバーライドして、cricket :: DeviceManagerInterfaceにアタッチするためのカスタムcricket :: VideoCapturerFactoryを作成するだけです。

The code below can be used as a replacement for the default cricket::VideoCapturer that’s used by the peerconnection_client example that’s distributed with the WebRTC source.

@goroya
goroya / index.html
Created January 12, 2019 13:24
駅ネット Webrtc
#https://www.eki-net.com/?sbbpg=sbbShell&gprid=mw&sbbgs=111&ddl=1111
<html lang="en">
<head>
<title>env</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="Expires" content="28FEB2002">
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
<meta name="robots" content="noindex, nofollow">
@goroya
goroya / file0.txt
Created November 27, 2018 16:27
Libwebrtcのwindowsビルド方法 ref: https://qiita.com/goroya/items/b40fed6d6c1ff2a9ebfa
mkdir webrtc-checkout
set GYP_MSVS_VERSION=2017
set DEPOT_TOOLS_UPDATE=0
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
cd webrtc-checkout
fetch --nohooks webrtc
gclient sync
cd src
gn gen out/Default
※gn gen out/Default --ide=vs2017を使ったかも
Google Assistant Library for Python
google.assistant.library package.
class google.assistant.library.Assistant(credentials)[source]
Client for the Google Assistant Library.
Provides basic control functionality and lifecycle handling for the Google Assistant.
Google Assistantの基本的な制御機能とライフサイクル処理を提供します。
@goroya
goroya / file0.txt
Last active July 26, 2017 04:15
KotlinでclassのsimpleNameを取得する方法 ref: http://qiita.com/goroya/items/b031d844074bb355243f
class MainActivity : Activity() {
  companion object {
val TAG: String = KotlinExampleActivity::class.java.simpleName
                //
// val TAG: String = this::class.java.simpleName
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Log.i(TAG, "onCreate")
}
@goroya
goroya / MainActivity.java
Created May 17, 2017 16:07
Android get GPS Info
package com.example.taro.gpstest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.PermissionChecker;
@goroya
goroya / 0_reuse_code.js
Created May 17, 2017 16:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console