Code Monkey home page Code Monkey logo

paper-audio-player's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paper-audio-player's Issues

Add Google Analytics events tracking

The idea is to extend the players functionality with GA tracking by adding JS to events that are dispatched on the player. Things like play, pause, scrubbing the timeline, view-through (listen-through).

Usage:

<paper-audio-player ga-trackingid="UA-000000-01" src="http://nadikun.com/audio/demo.mp3" title="Pink Shades - O+PNR" color="#F05C38"></paper-audio-player>

  • feature
  • docs

Accessibility: Keyboard Focus and Control

The current demo looses focus when play or pausing using the keyboard.

  1. Tab to focus on player.
  2. Press enter (or space key) to play.
  3. Focus moves to top of demo page; tabbing twice returns to focus on player.

NOTE: it would be useful (perhaps another feature request?) to be more accessible and provide keyboard access to use arrow keys, page up/down keys, to move through the audio stream as current users do now by clicking in the player graphic area.

Ability to provide more custom styling

Hi,

We're using paper-audio-player in a large web-app, but would like to be able to customise the styling more than the built in support for customising the accent colour offers.

Would there be a possibility of somehow having the player support the ability to provide a custom stylesheet to tweak the player styling?

I'm new to Polymer so not sure how this problem is usually solved with re-using shared components, so if this is already possible I'd appreciate any advice or guidance on how it can be done ๐Ÿ‘

Thanks!

Add multiple timestamp support / markers

I'd like to be able to include this player in my app, it takes a users text query and searches through an audio file and finds any time in which the word or phrase in the query is said in the audio file. We currently do this through markers in the videojs player, but would like a nice webcomponent player for just audio. We basically just need the player to:

  • Take an array of timestamps as an argument
  • Add marker to the progress bar for each timestamp in array
  • Add function to update current-time to next timestamp to jump between timestamps with arrow keys

Visual progress update is janky

This element is awesome!

One minor thing I noticed in the demo is that the visual progress updates at something less than 60fps, causing the progress bar to feel janky. During normal playback, maybe it makes sense to use a Web Animation or CSS Animation to smoothly animate at a given rate instead of setting the location at each interval? This is also more likely to move that work off the main thread and keep things smooth on low-end devices.

Made some heavy modifications to paper player

I'm using paper-audio-player in project of mine and in the process I made a bunch of changes and added some features. Some of the more notable ones are adding aurura.js support for FLAC playback, adding events that can be hooked into for playlist support, and cleaning up some style bugs. You can see a working example here:

http://darncoyotes.mstream.io/

Is there any interest in having these feature added to this repository? I can make a pull request if there's enough support. The changes are pretty extensive, and I want to make sure they are within the scope of the project before trying to make a pull request. You can look through my code here:

https://github.com/IrosTheBeggar/mstream-node

Tests needed

Tests needed for:

  • time-offset feature
  • all actions (play, pause, replay)
  • auto-play feature
  • keyboard support (play, pause, jump back&forward with arrow keys)

Icons not showing

Player and elapsed time works fine but icons such as play and restart are not showing
Screen Shot 2021-03-18 at 2 32 23 PM

Have ability to set audio preload to metadata / none on player

It would be very useful to be able to be able to set the preload attribute on the audio element to either metadata or none, to save on bandwidth and/or also make things easier when trying to track audio downloads (preloads count, but aren't really listens).

I did some preliminary testing, and a preload="metadata" seems to work just fine, however preload="none" breaks the player (clicking on the player does nothing).

I'll keep playing a bit and see how far I get, but this would be a very handy feature for me.

Thanks for the player never the less, this is super handy!

Element not working in chromium.

paper-audio-player is not working on chromium v55. It's always showing Sorry, can't play track: Click to play this audio file.
Attached image below.

screen shot 2017-05-08 at 1 02 57 pm

But the same thing is working fine in chrome v58.

Add volume control

Browsers' built-in <audio> widgets include sliders to control the volume at which the audio is played.
paper-audio-player seems to lack this feature.

Invalid path and title inversion

Clicking in the last quarter of a paper-audio-player will cause the inversed title to still be shown which incorrectly aligns with the normal title and thus causes unreadable text.

{{ title }} not rendering...

Hi all,
thanks for the component. I was using properly p-a-p, but without any change it's now showing {{ title }} and {{. It's playing the file successfully, but has an display error. No error on console.
paper-audio-player

regards...

Deprecation Warning: Styling master document from stylesheets defined in HTML Imports is deprecated

Hey,

We're using this component in production, and started noticing that it appears to be using web platform features which are soon to be deprecated, at which point I assume the player may break...

From the console on the demo page:

[Deprecation] Styling master document from stylesheets defined in HTML Imports is deprecated, and is planned to be removed in M65, around March 2018. Please refer to https://goo.gl/EGXzpw for possible migration paths.

I've never done any Polymer development so I don't know if this is an easy fix. I'll do a bit more investigating to see if I might be able to raise a small PR to fix it but I worry that it might require fundamental changes to the component...

Thanks

Show pause button on hover

Hovering anywhere on the element should probably show the pause button as it can be somewhat confusing otherwise for the user to find the pause button.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.