投稿時間:2023-04-17 14:19:28 RSSフィード2023-04-17 14:00 分まとめ(25件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
ROBOT ロボスタ 東急不動産/東急コミュ/ソフトバンク/日建設計がロボットフレンドリー環境構築の共同研究の成果発表 人とロボットの衝突防止など https://robotstart.info/2023/04/17/collaborative-research-robotfriendly.html 2023-04-17 04:13:47
IT ITmedia 総合記事一覧 [ITmedia News] Twitterからブロック機能がなくなる? マスク氏のツイート巡り物議 https://www.itmedia.co.jp/news/articles/2304/17/news093.html itmedianewstwitter 2023-04-17 13:30:00
IT ITmedia 総合記事一覧 [ITmedia PC USER] トランセンド、USB 3.2外付けSSD「ESD380C」に4TBモデルを追加 https://www.itmedia.co.jp/pcuser/articles/2304/17/news102.html itmediapcuser 2023-04-17 13:21:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 決して明るくはない“湾岸タワマン”の未来 管理費はかなり割高 https://www.itmedia.co.jp/business/articles/2304/17/news098.html itmedia 2023-04-17 13:20:00
IT ITmedia 総合記事一覧 [ITmedia News] 位置情報ゲームで配電設備を点検を効率化できるか 「電柱聖戦」東北電力など開催 https://www.itmedia.co.jp/news/articles/2304/17/news097.html itmedia 2023-04-17 13:16:00
IT ITmedia 総合記事一覧 [ITmedia News] ワコムが液晶ペンタブを一部値上げ 約30%アップ https://www.itmedia.co.jp/news/articles/2304/17/news095.html itmedia 2023-04-17 13:14:00
AWS AWS Japan Blog 週刊AWS – 2023/4/10週 https://aws.amazon.com/jp/blogs/news/aws-weekly-20230410/ amazonbedrock 2023-04-17 04:38:46
AWS AWS - Japan AWS Systems Manager Incident Manager 編【AWS Black Belt】 https://www.youtube.com/watch?v=03MiGRe9fkI AWSSystemsManagerIncidentManager編【AWSBlackBelt】本動画の資料はこちらAWSSystemsManagerSSMは統合的なAWS環境を運用するためのツールとして進化しており、多くの機能を持っています。 2023-04-17 04:31:40
技術ブログ Developers.IO [clasp] アカウントを切り替えてGoogle Apps Scriptをデプロイする[GAS] https://dev.classmethod.jp/articles/clasp-gas-deploy/ clasp 2023-04-17 04:28:44
技術ブログ Developers.IO API Gateway に統合されたバックエンドからの JSON 形式のレスポンスを API Gateway だけで編集する https://dev.classmethod.jp/articles/api-gateway-vtl-template-response/ apigateway 2023-04-17 04:20:44
技術ブログ Developers.IO 【5/17(水)リモート】クラスメソッドの会社説明会〜フリーランスエンジニア編〜を開催します https://dev.classmethod.jp/news/jobfair-freelance-230517/ 事業会社 2023-04-17 04:19:15
海外TECH DEV Community Create A Custom Audio Player Component Using React/Next.js, Tailwind & Howler https://dev.to/designly/create-a-custom-audio-player-component-using-reactnextjs-tailwind-howler-pgd Create A Custom Audio Player Component Using React Next js Tailwind amp HowlerReact is a popular front end framework used by developers around the world to build web applications One of the key advantages of React is its ability to create reusable components that can be easily shared across different parts of a project or even between projects However building custom React components can be a challenging task especially if you re not familiar with the tools and libraries that are available In this tutorial we will explore how to create a custom React component that combines the power of Tailwind CSS for styling and Howler for audio playback Tailwind CSS is a popular utility first CSS framework that allows developers to easily style their components using pre defined classes while Howler is a fast and lightweight JavaScript library for audio playback We ll start by setting up a new React project and installing the necessary dependencies We ll then create a new custom component that will render an audio player interface allowing the user to play pause and stop an audio file We ll use Tailwind CSS to style the interface and Howler to handle the audio playback functionality The AudioPlayer ComponentIf you re relatively new to React then you ve probably only dealt with functional components FCs are great for small sized components but for larger more complex interfaces you ll want to use a full fledged React Component class In this example I use FCs for the smaller bits and a class for the player itself import React from react import ReactHowler from react howler import raf from raf import ImVolumeMedium from react icons im import FaPlay FaStop from react icons fa import Switch from Switch import Loading from Loading import TimeItem from TimeItem class AudioPlayer extends React Component constructor props super props this state playing false loaded false loop false mute false volume seek rate isSeeking false hours minutes seconds this handleToggle this handleToggle bind this this handleOnLoad this handleOnLoad bind this this handleOnEnd this handleOnEnd bind this this handleOnPlay this handleOnPlay bind this this handleStop this handleStop bind this this renderSeekPos this renderSeekPos bind this this handleLoopToggle this handleLoopToggle bind this this handleMuteToggle this handleMuteToggle bind this this handleMouseDownSeek this handleMouseDownSeek bind this this handleMouseUpSeek this handleMouseUpSeek bind this this handleSeekingChange this handleSeekingChange bind this this handleRate this handleRate bind this componentWillUnmount this clearRAF handleToggle this setState playing this state playing handleOnLoad this setState loaded true duration this player duration handleOnPlay this setState playing true this renderSeekPos handleOnEnd this setState playing false this clearRAF handleStop this player stop this setState playing false Need to update our local state so we don t immediately invoke autoplay this renderSeekPos handleLoopToggle this setState loop this state loop handleMuteToggle this setState mute this state mute handleMouseDownSeek this setState isSeeking true handleMouseUpSeek e this setState isSeeking false this player seek e target value handleSeekingChange e this setState seek parseFloat e target value renderSeekPos if this state isSeeking this setState seek this player seek if this state playing this raf raf this renderSeekPos handleRate e const rate parseFloat e target value this player rate rate this setState rate clearRAF raf cancel this raf render return lt div className max w px gt lt ReactHowler src this props src playing this state playing onLoad this handleOnLoad onPlay this handleOnPlay onEnd this handleOnEnd loop this state loop mute this state mute volume this state volume ref ref gt this player ref gt lt div className bg text sky font mono rounded lg flex flex col gap p gt lt div className flex justify around gt lt Loading loaded this state loaded title this props title gt lt div gt lt TimeItem time this state seek toFixed gt lt TimeItem time this state duration this state duration toFixed NaN gt lt div gt lt div gt lt div gt lt input className w full type range min max this state duration this state duration toFixed step value this state seek onChange this handleSeekingChange onMouseDown this handleMouseDownSeek onMouseUp this handleMouseUpSeek gt lt div gt lt div className flex text xl gt lt div className mx auto flex gap gt lt button onClick this handleStop gt lt FaStop className this state playing opacity gt lt button gt lt button onClick this handleToggle gt lt FaPlay className this state playing opacity gt lt button gt lt div gt lt div gt lt div className grid grid cols gt lt div className col span md col span flex gap amp gt my auto text xl amp gt mb md amp gt mb gt lt ImVolumeMedium gt lt input className w full type range min max step value this state volume onChange e gt this setState volume parseFloat e target value gt lt div gt lt div className col span md col span flex amp gt mx auto gt lt Switch checked this state loop onChange this handleLoopToggle label Loop gt lt div gt lt div className col span md col span flex amp gt mx auto gt lt Switch checked this state mute onChange this handleMuteToggle label Mute gt lt div gt lt div gt lt div gt lt div gt export default AudioPlayerThis component implements an audio player using the ReactHowler library The audio player allows users to play and stop audio tracks adjust the volume seek through the track and change the playback rate It also uses raf short for requestAnimationFrame to schedule and synchronize animations and updates with the browser s rendering engine This technique is commonly used for performance optimization and smoother animation as it allows the browser to schedule the update for the next frame usually at frames per second and avoids overloading the browser with too many updates in a short period of time In this specific code raf is used to repeatedly call this renderSeekPos when the player is playing which updates the seek position on the seek bar This creates a smooth animation effect and prevents the update from happening too frequently or too infrequently We use several state variables to keep track of the player s current state such as whether the audio is playing or not whether the audio is muted the current volume level and the current seek position Also several event handlers are there to handle user interaction with the audio player such as when the user toggles play or stop mutes or unmutes the audio adjusts the volume or seek position and changes the playback rate The component also uses some custom components such as Loading to show a loading spinner when the audio is loading Switch to toggle the loop mode and TimeItem to display the current time and duration of the audio track Please visit the repository link at bottom for the code for those items LinksGitHub RepoDemo PageThank you for taking the time to read my article and I hope you found it useful or at the very least mildly entertaining For more great information about web dev systems administration and cloud computing please read the Designly Blog Also please leave your comments I love to hear thoughts from my readers I use Hostinger to host my clients websites You can get a business account that can host websites at a price of mo which you can lock in for up to months It s the best deal in town Services include PHP hosting with extensions MySQL Wordpress and Email services Looking for a web developer I m available for hire To inquire please fill out a contact form 2023-04-17 04:33:49
医療系 医療介護 CBnews 24年度同時改定での常勤・専任要件緩和を提言-規制改革WGでメディヴァ・大石氏 https://www.cbnews.jp/news/entry/20230417132605 介護報酬 2023-04-17 13:54:00
金融 ニッセイ基礎研究所 Z世代の消費を読み解く5つのキーワード https://www.nli-research.co.jp/topics_detail1/id=74574?site=nli そのため、結果がわかっていても、わざわざ自分でそれを消費する再現必要があるか検討する消費行動が定着している。 2023-04-17 13:14:20
ニュース BBC News - Home Sudan fighting: RSF and army clash in Khartoum for third day https://www.bbc.co.uk/news/world-africa-65293538?at_medium=RSS&at_campaign=KARANGA khartoum 2023-04-17 04:01:45
ニュース BBC News - Home Ahmad Jamal dies at 92: Acclaimed jazz pianist who influenced Miles Davis https://www.bbc.co.uk/news/entertainment-arts-65295893?at_medium=RSS&at_campaign=KARANGA davis 2023-04-17 04:34:59
ニュース BBC News - Home The Papers: Nurses' strike warning and PM's maths promise https://www.bbc.co.uk/news/blogs-the-papers-65295278?at_medium=RSS&at_campaign=KARANGA papers 2023-04-17 04:55:03
ニュース BBC News - Home Sudan crisis: Shock and anger in Khartoum, a city not used to war https://www.bbc.co.uk/news/world-africa-65293537?at_medium=RSS&at_campaign=KARANGA neighbourhood 2023-04-17 04:46:02
ビジネス ダイヤモンド・オンライン - 新着記事 【社説】縮みゆく日本、なお輝き失わず - WSJ発 https://diamond.jp/articles/-/321455 社説 2023-04-17 13:02:00
ビジネス プレジデントオンライン 大学病院が多い都道府県ほど平均寿命が短い…和田秀樹「高齢者が迂闊に大学病院へ行っては行けない理由」 - 専門医による臓器別の診療は高齢者の健康や長寿に役立たない https://president.jp/articles/-/68523 和田秀樹 2023-04-17 14:00:00
IT 週刊アスキー 小松菜といちごを身近に感じる「港北区丼」がスタート! https://weekly.ascii.jp/elem/000/004/133/4133103/ 身近 2023-04-17 13:30:00
IT 週刊アスキー GW期間中は特別価格で販売 横浜中華街マーラーカオ専門店「ちーさん家のマーラーカオ」の新商品「パンダープリン」4月29日より1日100個限定で販売開始 https://weekly.ascii.jp/elem/000/004/133/4133096/ 横浜中華街 2023-04-17 13:15:00
IT 週刊アスキー ドミノ・ピザの全ピザを制覇することも! Sサイズピザがお買い得価格な「お試しWEEK(ウィーク)」 https://weekly.ascii.jp/elem/000/004/133/4133118/ 限定 2023-04-17 13:40:00
海外TECH reddit Is Ace's supposed gf... https://www.reddit.com/r/NightRavenCollege/comments/12p1ajp/is_aces_supposed_gf/ Is Ace x s supposed gf View Poll submitted by u xXSkullCrusherXx to r NightRavenCollege link comments 2023-04-17 04:03:46
海外TECH reddit Mostro lounge now has a Goldfishy tank https://www.reddit.com/r/NightRavenCollege/comments/12p1cuw/mostro_lounge_now_has_a_goldfishy_tank/ Mostro lounge now has a Goldfishy tank submitted by u No Shock to r NightRavenCollege link comments 2023-04-17 04:05:53

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)