是否可以使用PHP从音频流中提取音轨信息?我已经做了一些挖掘,我能找到的最接近的函数是stream_get_transports,但我的主机不支持通过fsockopen()的http传输,所以我将不得不做一些修补,看看该函数返回的是什么.
目前,我正在尝试从AOL流中提取艺术家和跟踪元数据.
我必须创建提供在线广播流(icecast)的应用程序,最好是.ogg格式.所以我有下一个问题:
CFNetwork,CoreAudio,
AudioToolbox等(我不看cocos2d的,因为这很可笑),我错了?AVPlayer,MPMovieMediaController,AudioSreaming LIB通过MattGallagher和DigitalDJ,以及这些解决方案都不能为我提供了元数据访问.对于AVPlayer:
-(void)playButtonPressed:(id)sender
{
NSURL *grindURL = [NSURL URLWithString:@"http://radio.goha.ru:8000/grind.fm"];
grindFMPlayer = [[AVPlayer alloc] initWithURL:grindURL];
[grindFMPlayer.currentItem addObserver:self forKeyPath:@"status" options:0 context:nil];
AVPlayerItem *item = grindFMPlayer.currentItem;
[grindFMPlayer play];
}
-(void)stopButtonPressed:(id)sender
{
AVURLAsset *ass = grindFMPlayer.currentItem.asset;
NSArray *arr = [ass commonMetadata];
NSArray *it_meta = [grindFMPlayer.currentItem timedMetadata];
[grindFMPlayer pause];
}
Run Code Online (Sandbox Code Playgroud)
arr和it_meta计数总是0,没有歌曲\艺术家\任何元数据.
同样的MPMovieMediaController,从未调用metadataUpdate
streamAudioPlayer = [[MPMoviePlayerController alloc]
initWithContentURL:[NSURL URLWithString:@"http://radio.goha.ru:8000/grind.fm"];
streamAudioPlayer.movieSourceType = …Run Code Online (Sandbox Code Playgroud) 我正在使用音频元素从icecast服务器流式传输ogg源.音频元素是否提取了冰冷的元数据,是否有办法通过javascript访问它?
基本上,我想显示我正在播放的广播电台的"当前播放"信息.我有什么选择?
谢谢!