-
答案 1:
< audio controls="controls" autoplay="autoplay" > < source src="file.ogg" / > < source src="file.mp3" / > < a href="file.mp3" > Download this file. < /a > < /audio > php[php] < ?php// mp3, wav or any other file formats that media player supports.$file = "C:/I Wanna Go To A Place.mp3";if (!file_exists($file)) { exit("Meida file does not exist.");}// Create an instance of Windows Media Player$player = new COM("WMPlayer.OCX");$media= $player- > newMedia($file);// Get the duration of a media file (seconds)print $media- > duration;[/php]
html5 中可以获取链接歌曲的时长么?javascript可以获取么?如何获取链接歌曲的时长?
2012-01-19 19:47:52 来源: 点击:
相关热词搜索:
上一篇:中关村卖场大调整在即,从IT业者和商业运营的角度,你怎么看待这件事?
下一篇:为什么音乐能够承载记忆?