Accessing audio and video songs data that played using blackberry phones - blackberry

I want to make a blackberry app. which will store audio and video files,those are played by BB device (play list) and other information related to those songs (as artist name, album name) on the server.
i succeed to access all audio and video songs that are on BB device, but dont know how to access only those songs ,which are played. And i got those songs only as byte array, how could i get information about those songs?
Does blackberry have any special api for this?

This page in a guide about working with multimedia on the BB may help you. If not, surely something in the guide will answer your question.

Related

Application that plays videos from the video library

I would like to create a simple app that does some video playback (with a few extra controls) of videos that you would find in the videos app. I've been searching and searching for a way to access the videos but I haven't found a single API that plays from the videos app.
Every solution I find plays videos from the photos app. I have apps that access the videos library on my iPad/iPhone so I'm assuming it's possible. Does anyone have the api for this?
Apps cannot access data from other applications on iOS, you cannot access the data of other apps unless it's made available by the app via a web server etc.
Your best bet is to use UIImagePicker to load the videos and images that are on your phone.
You can check out a reference here.
As for getting the videos off the videos app, that's not really possible (as far as I know), but you are able to show just photos or just videos with UIImagePicker using the mediaTypes property.

Detecting which audio track is playing on device in iOS Swift

I'm creating a mood tracking app that, among other things, should use information about the songs the user listens to. Specifically, I'm interested in just extracting the titles that are otherwise visible from the locked screen view, when a track is playing. I've search the interwebs and have had no luck finding a solution to access this data using Swift.
Can anyone help?
The short answer is no.
You may be able to retrieve song information from the iTunes library (if it's not a shared song using Home Sharing). Read about MPMusicPlayerController for more information. Specially the nowPlayingItem is probably what you're looking for.
However, most third-party applications such as Spotify, Deezer or Pandora will most likely have implemented their own player, which does not integrate with the iPod music player. This blog post also covers some of the details.
It is not about your ask, but it is about theme.
I made a code to get information about track in Itunes Media, and if you need get album art or correctly track name or artist, well I think it is will help you. The code is free to use in github.
ItunesSearch

Read raw MPMediaItem data from iCloud item

I have written an iOS app that allows you to play back music on your iPhone/iPad at slower/faster speeds but at the origin an pitch (for practicing playing music, dancing, etc).
The app reads raw PCM data from the songs stored on the device no problem, using AVAssetReader and AVAssetReaderTrackOutput. But, this fails when trying to load raw PCM data from songs stored in iCloud. Does anyone know if this is possible? As far as I know, Apple have not published an API for doing this, and the APIs used for reading raw PCM from songs stored on the device do not work with iCloud items.
Some of my users have requested playback of songs stored in iTunes, so any help would be greatly appreciated.

Get streaming URL from any YouTube video

I know about how to play video in device. But Here I just want to know that is it possible to get streaming URL from any YouTube Video? Then how can I do it, I tried to search on google but I can not able to find my solution.
Generally I does not want to play direct stream from video, actually I want to save this URL (stream) in my buffer memory OR whatever temporary file and whenever user click on particular button then particular URL Stream is play.
Al Last I got YouTube APIs + iPhone = Cool mobile apps. But I am not sure that it's helpful in my case or not ? If anybody who worked on this API then please suggest me, Otherwise How can I get streaming URL.
Your suggestion will be appreciated.
Thanks in advance.
http://www.youtube.com/get_video_info?&video_id={VIDEO_ID}
This will not work on all files, some will display the message "This+video+contains+content+from.....". But many will work.
Is it possible to get streaming URL from any YouTube Video? - No, it is not possible without hurting the terms of service of youtube. Google has built the business model of youtube around the advertisements all over youtube, in-video banners and video ads and they want your user to see their ads. This is the reason they completely hide the video stream and would ban your app if you anyway access and stream it directly.
The only consented way to play youtube videos on iOS is to embed it into an iframe of a web view.

Extract metadata from audio stream

I developing an online radio app. The app plays the streams by giving a url to to Player object:
player = javax.microedition.media.Manager.createPlayer(url)
How can I extract the metadata like song name and artist name from the stream? I am developing using BlackBerry OS 5.
I am afraid you cannot do that. There is no API afaik which gives you that information.
You can attach PlayerListener to a player and get information about many kinds of events(start,stop,update playback time,error and other events) but there is no event which tells you the name of the song.
Are you using rtsp:// url?

Resources