简体   繁体   English

QuickTime插件无法播放M4A(Apple无损音频)文件

[英]QuickTime Plugin not playing M4A (Apple Lossless Audio) Files

I'm using the Quicktime via the QT_GenerateOBJECTText_XHTML JavaScript call to a QT player which is controlled via the JS API. 我正在通过QT_GenerateOBJECTText_XHTML对QT播放器的JavaScript调用来使用Quicktime,QT播放器是通过JS API控制的。 For some reason, MP3 files are beeing played just fine, but Apple Lossless (16 and 24 bit) files seem to be playing correctly (player is initalised and JS calls renturen correct values, eg GetDuration() returns the curret song lenght), but no sound is playing. 出于某种原因,MP3文件可以正常播放,但是Apple Lossless(16位和24位)文件似乎可以正确播放(播放器被初始化,并且JS调用了Renturen正确的值,例如GetDuration()返回当前歌曲的长度),但是没有声音在播放。 Every other file type works just fine. 其他所有文件类型都可以正常工作。 This is true for Windows 8.1 with QT 7.7.6 and OS X 10.10 with QT 10.4 Dose anyone have an idea what is going on here and how to fix this? 对于具有QT 7.7.6的Windows 8.1和具有QT 10.4的OS X 10.10,这是正确的。剂量任何人都知道这里发生了什么以及如何解决此问题?

Here is the test code I'm woring with. 这是我担心的测试代码。 Test files can be downloaded at http://www.linnrecords.com/linn-downloads-testfiles.aspx for example. 例如,可以从http://www.linnrecords.com/linn-downloads-testfiles.aspx下载测试文件。

<!DOCTYPE html>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div id="playerContent">
            <object 
                classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" 
                width="150" 
                height="150" 
                codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=7,3,0,0" 
                id="ld_player_obj">
                <param name="src" value="/test/recit16bit.m4a">
                <param name="enablejavascript" value="True">
                <param name="postdomevents" value="True">
                <param name="autoplay" value="true">
                <param name="controller" value="true">
                <param name="loop" value="false">
                <param name="bgcolor" value="0000">
                <embed src="/test/recit16bit.m4a" width="150" height="150" pluginspage="http://www.apple.com/quicktime/download/" name="movie1" id="ld_player_emd" enablejavascript="True" postdomevents="True" autoplay="true" controller="true" loop="false" bgcolor="0000">
            </object>
        </div>
    </body>
</html>

Quicktime 7.7.6 web plugin stopped supporting some legacy codecs. Quicktime 7.7.6 Web插件停止支持某些旧编解码器。 If you download version 7.7.4 it should still work. 如果您下载版本7.7.4,它仍然可以正常工作。

But a better solution would be to move away from plugins. 但是更好的解决方案是放弃插件。 Stop using Quicktime and use the HTML5 audio control instead, or have a download link to the audio file that opens up the default audio file player. 停止使用Quicktime并改用HTML5音频控件,或者具有指向音频文件的下载链接,以打开默认的音频文件播放器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM