Giter VIP home page Giter VIP logo

Comments (7)

jrfeng avatar jrfeng commented on June 13, 2024
  1. It's designed like this. If you want shutdown PlayerService, you can invoke PlayerClient#shutdown(), this will shutdown PlayerService and clear notification.
  2. You need create a custom NotificationView. NotificationView also have a shutdown method. You can customize all notification buttons: Create a notification with media controls
  3. You need create a custom NotificationView, because this is android built-in style.
  4. Can't do this, because when receive call, PlayerService will loss audio focus, then the player will pause. Can't on call finished start playing automatically. It's need yourself to handle this.

Note: After invoke PlayerCient#shudtown(), all PlayerClient will disconnect automatically, because PlayerService is shutdown. You need reconnection your PlayerClient.

Wiki: Custom NotificationView (Sorry, so far only chinese)

from snow.

webwayscript avatar webwayscript commented on June 13, 2024

mPlayerClient.shutdown(); Working fine

But how can we use With dummy Seek bar inside notification??? You must fix it bro

from snow.

jrfeng avatar jrfeng commented on June 13, 2024

What is "dummy seek bar"? can you please describe it in detail?

from snow.

webwayscript avatar webwayscript commented on June 13, 2024

Its Use like fastForward():and rewind():Right? its only work non Online content like local stored mp3.. or may be Online mp3 ( Its must Buffering again when click ???? )
But its may be Dummy for Streaming link using shoutcast , icecast, all other streaming audio . So only we need enable disable function .. I know its complicated ..

from snow.

webwayscript avatar webwayscript commented on June 13, 2024

Finally i fiund solutuion Just i passed duration "0" Not no seekbar in notification
MusicItem song1 = new MusicItemBuilder(0, "http://live.tamilkuyilradio.com:8026/rajaradio")
Thank you bro

from snow.

jrfeng avatar jrfeng commented on June 13, 2024

MusicItem have a setForbidSeek(boolean) method, if MusicItem is a live stream, you need set this as true. This will forbid all seek action seekTo, fastForward and rewind, Otherwise, seek action will cause some unexpected result.

Example:

// Live Stream
MusicItem musicItem = new MusicItemBuilder(Integer.MAX_VALUE, https://www.example.com/example.m3u8")
                ....

                // Forbid Seek
                .setForbidSeek(true)

                .build();

from snow.

webwayscript avatar webwayscript commented on June 13, 2024

Thank you its working fine

from snow.

Related Issues (20)

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.