Giter Site home page Giter Site logo

Comments (17)

crossle avatar crossle commented on June 23, 2024

You can use io.vov.vitamio.MediaMetadataRetriever ? is it satisfy you ?

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Oh does this work with icy/shoutcast streams?

from vitamiobundle.

crossle avatar crossle commented on June 23, 2024

streams? what you wanna do ?

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Basically I'm streaming audio with your media player. It is working very well but I'd like to retrieve the metadata as well. This is usually described in the headers of the stream (Icy-MetaData and icy-metaint). See the Shoutcast metadata protocol description for more details.

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Anyway, the app is crashing on this line in an activity:

MediaMetadataRetriever retriever = new MediaMetadataRetriever(this);

from vitamiobundle.

crossle avatar crossle commented on June 23, 2024

error log? you wanna get Titles?

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Yeah I wanna get the stream titles.
I'm not sure what line to give you from the error log. Maybe that will help: https://gist.github.com/RomainPiel/5047214

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Apparently I'm missing that class:

java.lang.NoClassDefFoundError: io/vov/vitamio/MediaScanner

from vitamiobundle.

crossle avatar crossle commented on June 23, 2024

It's a bug...

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Ok, no problem.
One thing, it would be good to have some kind of listener instead of the extractMetadata way. A live stream can update its metadata constantly and we wouldn't know when to check whereas the listener would notify when a metadata has be found.

from vitamiobundle.

crossle avatar crossle commented on June 23, 2024

But you can try add /src/io/vov/vitamio/MediaScanner.java to VitamioBundle ?

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Ok, where do I find this class?
Oh, do you mean an empty file?

from vitamiobundle.

crossle avatar crossle commented on June 23, 2024

ok. empty file , you can try? I not sure if get title?

from vitamiobundle.

romainpiel avatar romainpiel commented on June 23, 2024

Ok if I use an empty file it doesn't crash but I've got an exception after when running extractMetadata:

Native method not found: io.vov.vitamio.MediaMetadataRetriever.extractMetadata:(I)Ljava/lang/String;

from vitamiobundle.

0proto avatar 0proto commented on June 23, 2024

I've faced similar issue when trying to generate Thumbnail for video file:

Bitmap thumb = ThumbnailUtils.createVideoThumbnail(this,f.getAbsolutePath(),ThumbnailUtils.MINI_KIND);

When i'm trying it without empty MediaScanner class, following error appearing:

05-14 13:13:53.205: ERROR/dalvikvm(10499): ERROR: couldn't find native method
05-14 13:13:53.205: ASSERT/libc(10499): Fatal signal 11 (SIGSEGV) at 0x00000018 (code=1)

I've created the empty MediaScanner.java class in io.vov.vitamio package, then i get following errors:

05-14 13:17:14.454: ERROR/dalvikvm(10657): ERROR: couldn't find native method
05-14 13:17:14.454: ERROR/dalvikvm(10657): Requested: Lio/vov/vitamio/MediaScanner;.processDirectory:(Ljava/lang/String;Ljava/lang/String;)V
05-14 13:17:14.464: ERROR/Vitamio[Player](10657): UNLOAD FFMPEG Symbol not found:
05-14 13:17:18.514: ERROR/Vitamio[Scanner](10657): avformat_open_input: Is a directory : -21

Could you please suggest any workaround for this?

from vitamiobundle.

0proto avatar 0proto commented on June 23, 2024

Sorry, i've noticed from the faq this is not supported in vitamio.
http://www.vitamio.org/en/docs/FAQ/2013/0509/11.html

from vitamiobundle.

cedricfung avatar cedricfung commented on June 23, 2024

Checkout Vitamio 4.0 https://github.com/yixia/VitamioBundle/tree/v4.

from vitamiobundle.

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.