0

特定の製品のビデオ デモを作成する必要があります。すべての一般的なプラットフォームで、できるだけ多くのブラウザで動画を再生できるようにする最善の方法は何ですか?

現在の実装: Flash プレーヤーに読み込まれる Flash ビデオのみがあります。

4

3 に答える 3

1

ホステッドサービスが実行可能なオプションである場合、VimeoやWistiaなどのサイトの有料アカウントはFlashビデオをデスクトップブラウザに提供し、HTML5ビデオをスマートフォンやiPadやSamsung、Blackberryなどの今後のタブレットなどの他のモバイルデバイスに提供します。

すべてのホスティングを自分で行う場合は、Flashへの単純なフォールバックでHTML5ビデオタグを使用することをお勧めします。優れたVideoJSスクリプトは、難しい作業のほとんどを処理し、カスタムの埋め込みコードを作成することもできます。

基本的に、HTMLは次のようになります。

<video width="640" height="360" poster="poster.png" controls preload>
    <source src="video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <!-- This video file is for Safari, Chrome and smartphones running iOS and Android, it will also be referenced later in the Flash fallback for Internet Explorer -->
    <source src="video.ogv" type='video/ogg; codecs="theora, vorbis"' /> <!-- This video file is for Firefox, Opera, and is also supported by Chrome -->

    <object id="flash_fallback" width="640" height="360" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf"> <!-- This calls on FlowPlayer, an excellent third party Flash video player -->
        <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="flashvars" value='config={"playlist":["poster.png", {"url": "video.mp4","autoPlay":false,"autoBuffering":true}]}' /> <!-- Notice here you're calling the same .mp4 file as above -->
        <img src="poster.png" width="640" height="360" alt="Poster Image" title="No video playback capabilities." /> <!-- If the browser can't handle any of the HTML5 video files and doesn't have Flash installed, they'll just get the poster frame as shown here -->
    </object>
</video>

お役に立てれば!

于 2010-10-21T13:51:35.710 に答える
0

WebサイトページでHTML5バージョンにフォールバックする埋め込み可能なビデオプレーヤー(JWPlayerなど)を使用します。そうすれば、すべてのブラウザでFlashを使用して予測可能で安定した再生を実現し、それをサポートするデバイス(Android、iOSなど)でHTML5を再生できます。

于 2010-10-20T16:47:46.040 に答える
0

Flash はどの iOS デバイスでも再生できません。

編集:質問を読み違えました。YouTube を使用してビデオをホストし、YouTube ビデオを埋め込むと、YouTube アプリを介して iOS デバイスでビデオを再生できます。それはそれを行う1つの方法でしょう。

于 2010-10-20T12:44:24.390 に答える