pandeiro245 / 245cloud Goto Github PK
View Code? Open in Web Editor NEWhttp://245cloud.com
http://245cloud.com
これをやらないと
https://mlkcca.com/sample.html
に載せてもらってるのが嘘になってしまう
SoundCloudの音量調節をさっくり書いてみました。
245CloudでSoundCloud再生中に以下のスクリプトをコンソールにぶち込んだら、
プレーヤーの上にボリュームスライダーが挿入される、はず。
実際に入れるならもうちょいきれいに書けるかと。
ちなみにプルリクは良く知らないんで勉強中...
//SoundCloud APIをインジェクション
function injectAPI(loadHandler){
if(window.SC){
loadHandler();
} else {
$('<script>')
.attr('src', 'https://w.soundcloud.com/player/api.js')
.appendTo(window.document.head);
//.on('load', loadHandler); //does not work
checkLoaded(loadHandler);
}
}
//onloadがうまく動かないかもなので、ごりっと監視
function checkLoaded(loadHandler){
setTimeout(function(){
if(window.SC){
loadHandler();
} else {
checkLoaded(loadHandler);
}
}, 100);
}
//SoundCloudのiframeを探す
function findSoundCloudPlayer(){
var player = null;
$('iframe').each(function(){
var src = $(this).attr('src');
if(src.indexOf('https://w.soundcloud.com/player') === 0){
player = $(this)[0];
}
});
return player;
}
//ボリュームバーを作成
function createVolumeBar(playerElement){
var player = SC.Widget(playerElement);
var input = $('<input>').attr({
type: 'range',
min: 0,
max: 100,
value: 100
}).on('change', function(){
player.setVolume($(this).val() / 100);
});
player.getVolume(function(volume){
input.val(volume * 100);
});
return input;
}
//245クラウドにボリュームバー挿入
function insertTo245Cloud(input, player){
input.insertBefore(player).wrap(
$('<label>')
.text('Volume')
.css({
'float': 'right',
'margin-right': '2%',
'width': '10%'
})
);
}
injectAPI(function(){
var player = findSoundCloudPlayer();
if(player){
var input = createVolumeBar(player);
insertTo245Cloud(input, player);
}
});
おおよそ表題の内容ですが、たまに切り替わる時が有ります。
cache回避がうまくいかないため
方はtext型
Soundcloudは除外とかそういうやつ
youtube v3対応などを先行リリースしたいため
主にオフ会とデバッグ用
下記参照
#66 (comment)
parse_resource使ってもできるけど遅いのでエクスポート機能経由も試す
再生する曲がニコニコ動画だった場合に出るconfirmでキャンセルすると
リロードされる挙動はreturnで返す挙動にするのはいかがでしょうか?
「アーティストや曲名」を入力していた場合、再入力が必要になるためです。
コマンドラインからpomoを始めたい
対象テーブルは
User, Accesslog, Comment, Room, Workload の5つ。少なw
これによりポップアップではなく画面遷移のログインになるので
ポップアップブロックを回避できる
※Milkcocoaへ登録して頂いた方にメールをお送りしています。
いつもMilkcocoaをご利用頂き、ありがとうございます。
ベータ版終了まで残り2日となりました。30日以降はベータ版のアプリケーションは動かなくなります。ご了承ください。
お手数をおかけしますが、以下のリンクを参考にし移行をお願いします。
β版との違いについて:https://github.com/milk-cocoa/document/wiki/%CE%B2%E7%89%88%E3%81%A8%E3%81%AE%E9%81%95%E3%81%84%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6
またデータの移行については、以下のデータ移行用のスクリプトをご利用ください。
http://syuhei176.github.io/moving-data-milkcocoa/
※データ移行の際はこちらのスクリプトをご利用ください。今回のリニューアルに伴い、Milkcocoaのデータフォーマットを変更しています。一部の機能をご利用の方は、正しく移行できないケースがございますが、ご了承ください。
今後ともMilkcocoaをよろしくお願いします。
今はEvernoteに曲のタイトルを保存して毎回検索しているのですが、マイリストにしたいです。
https://developer.spotify.com/
https://github.com/icoretech/spotify-client
https://github.com/guilhermesad/rspotify
#56 (comment)
にて @tkrkt さんが神対応してくれたものの、
ちょうどnodeからRails変わるタイミングにぶつかってしまいマージならず。
しかし、またリトライしたいです… |ω・`)チラ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.