エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Elixir stream audio to users
The following code streams a file to a process. I want to stream audio/mp3 to many users who will... The following code streams a file to a process. I want to stream audio/mp3 to many users who will hear it via html5 audio tag. How can it be done via File.stream!? defmodule Test do def start do p = spawn(Test, :say, []) send p, {self, "a message"} end def say do receive do {from, msg} -> IO.puts "Process #{inspect self} says: #{msg}" stream_bytes = 128 File.stream!("./song.mp3", [], stream_bytes)



2016/12/18 リンク