On Fri, Mar 11, 2011 at 5:26 PM, Mrinal <[email protected]> wrote:
> I am trying to develop a DLNA client. I want the user to see all the
> playable data (not at the same time) on the network.
> I wanted to store the information of the media in some form of a
> database. I tried to use MediaService to scan a particular media
>
> http://10.205.111.81:10243/WMPNSSv4/2201497635/1_ezQ3MzNGOERCLTE4MkMtNDBEOC1BQTNDLUZFOTg1RjUyQTlBRX0uMC44.mp4

That is not a file. That is a URL. The scanFile() method on
MediaScannerConnection works on files -- in other words, paths to
files on the local filesystem.

> Is it possible to scan a file and add it to the MediaStore db

Yes, but you don't have a file. A URL is not a file.

> or will
> I have to create my own scanning service and db for this.

If you want to maintain a database of URLs and metadata about those
URLs, you would write that yourself, or simply obtain the details from
a Web service you put on the Web server.

> Also how would i scan a file in android.

Since you don't have a file, there is nothing for you to scan.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Oslo: http://bit.ly/fjBo24

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to