{"id":15110282,"url":"https://github.com/fdmediagroep/fdmg-ts-react-audio-widget","last_synced_at":"2025-09-27T12:32:07.491Z","repository":{"id":57233819,"uuid":"113564165","full_name":"FDMediagroep/fdmg-ts-react-audio-widget","owner":"FDMediagroep","description":"ReactJS AudioWidget component","archived":true,"fork":false,"pushed_at":"2020-05-07T09:09:00.000Z","size":1031,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-06T09:43:15.431Z","etag":null,"topics":["compnent","enzyme","fdmg","jest","react","reactjs","tslint","typescript","typescript2"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FDMediagroep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-08T10:48:56.000Z","updated_at":"2023-01-28T14:40:36.000Z","dependencies_parsed_at":"2022-08-27T18:32:21.053Z","dependency_job_id":null,"html_url":"https://github.com/FDMediagroep/fdmg-ts-react-audio-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ffdmg-ts-react-audio-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ffdmg-ts-react-audio-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ffdmg-ts-react-audio-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ffdmg-ts-react-audio-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FDMediagroep","download_url":"https://codeload.github.com/FDMediagroep/fdmg-ts-react-audio-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234437979,"owners_count":18832597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compnent","enzyme","fdmg","jest","react","reactjs","tslint","typescript","typescript2"],"created_at":"2024-09-25T23:43:51.084Z","updated_at":"2025-09-27T12:32:02.052Z","avatar_url":"https://github.com/FDMediagroep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e :exclamation: **DEPRECATED** :exclamation:\n\n# fdmg-ts-react-audio-widget\n\n[![Build Status](https://travis-ci.org/FDMediagroep/fdmg-ts-react-audio-widget.svg?branch=master)](https://travis-ci.org/FDMediagroep/fdmg-ts-react-audio-widget)\n[![Coverage Status](https://coveralls.io/repos/github/FDMediagroep/fdmg-ts-react-audio-widget/badge.svg?branch=master)](https://coveralls.io/github/FDMediagroep/fdmg-ts-react-audio-widget?branch=master)\n[![npm version](https://badge.fury.io/js/%40fdmg%2Fts-react-audio-widget.svg)](https://badge.fury.io/js/%40fdmg%2Fts-react-audio-widget)\n\n\n[ReactJS](https://reactjs.org/) AudioWidget component. This component renders a stand-alone Audio Widget for playing\naudio files. All you need is some styling and you're good to go.\n\n## Installation\n- Run `npm i --save-dev @fdmg/ts-react-audio-widget`\n\nor\n\n- Run `yarn add @fdmg/ts-react-audio-widget --dev`\n\n## Usage\n### TypeScript\n```\nimport * as React from 'react';\nimport H1 from 'fdmg-ts-react-audio-widget';\n\nexport default class foo {\n    public state: any;\n    public props: any;\n\n    constructor(props: any) {\n        super(props);\n        this.props = props;\n    }\n    \n    handleOnLoad() {}\n\n    handleOnCanPlay() {}\n\n    handleOnLoadStart() {}\n\n    handleOnLoadedData() {}\n\n    handleOnSeeked() {}\n\n    handleOnEnded() {}\n\n    handleOnSeeking() {}\n\n    handleOnTimeUpdate() {}\n\n    render() {\n        return (\n            \u003cAudio\n                playerSrc={'test.mp3'}\n                onLoad={this.handleOnLoad}\n                onCanPlay={this.handleOnCanPlay}\n                onLoadStart={this.handleOnLoadStart}\n                onLoadedData={this.handleOnLoadedData}\n                onSeeked={this.handleOnSeeked}\n                onEnded={this.handleOnEnded}\n                onSeeking={this.handleOnSeeking}\n                onTimeUpdate={this.handleOnTimeUpdate}\n                hideProgressBarCurrentTime=this.props.ideProgressBarCurrentTime}\n                hideProgressBarDuration={this.props.hideProgressBarDuration}\n            /\u003e\n        );\n    }\n}\n```\n\n### Resulting HTML\n```\n\u003cdiv class=\"audio\"\u003e\n    \u003caudio src=\"test.mp3\" autoplay=\"true\"\u003e\u003c/audio\u003e\n    \u003cdiv class=\"progress\"\u003e\n        \u003cdiv\u003e\n            \u003cdiv class=\"time-line\"\u003e\n                \u003cspan class=\"time-line-progress-bar\" style=\"width: 4%;\"\u003e\u003c/span\u003e\n                \u003cinput type=\"range\" step=\"0.01\"\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"counters\"\u003e\n            \u003cspan\u003e12s\u003c/span\u003e\n            \u003cspan\u003e5m 0s\u003c/span\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdmediagroep%2Ffdmg-ts-react-audio-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdmediagroep%2Ffdmg-ts-react-audio-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdmediagroep%2Ffdmg-ts-react-audio-widget/lists"}