正在读取远程mp3文件的ID3标签? [英] Reading ID3 tags of a remote mp3 file?

查看:121
本文介绍了正在读取远程mp3文件的ID3标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Silverlight读取MP3标签让我开始阅读id3标签,但是我是否意识到taglib#在线处理本地文件路径?

Read MP3 Tags with Silverlight got me started with reading id3 tags, but i realize that taglib# online deals with local file paths ?

是否可以从远程文件中读取此信息?

Is there a way of reading this info from a remote file ?

推荐答案

我最近对Ruby回答了相同的问题(见下文)-我很确定你可以做类似的事情.

I recently answered the same question for Ruby (see below) - I'm pretty sure you can do something similar.

这个想法是:

  1. 使用HTTP 1.1协议或更高版本,以及Range HTTP请求.

  1. use HTTP 1.1 protocol or higher, and a Range HTTP-request.

下载ID3v2标签的开头部分(100字节)

download the beginning section (100 bytes) of the ID3v2-tag

,您可以确定完整ID3v2标签的正确长度,例如N

from the first few bytes downloaded, you can determine the correct length of the complete ID3v2 tag, e.g. N

下载文件的前N个字节(例如完整的ID3v2-tag)

download the first N bytes of the file (e.g. the complete ID3v2-tag)

为您的目的解析ID3v2标签

parse the ID3v2 tag for your purposes

请参阅:

在Ruby中读取远程MP3文件的ID3标签/铁路?

这篇关于正在读取远程mp3文件的ID3标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆