1

私はMVCアプリケーションを持っていて、それはJQM用に設計されています。

ただし、YouTubeビデオを埋め込むと、次のエラーが発生します。

This content cannot be displayed in a frame 
To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
What you can try:
Open this content in a new window

これが私のコードです。

<asp:Content ID="Content4" ContentPlaceHolderID="PositionImage" runat="server">
    <div class="videoPlayer" id="PlayerPanel">
        <embed enablejsapi=1 id="player1" width="300"  src="http://youtu.be/_Nng-Ri4c2U" frameborder="0" allowscriptaccess="always" />
    </div>
</asp:Content>
4

1 に答える 1

1

これを試してみてください:

<asp:Content ID="Content4" ContentPlaceHolderID="PositionImage" runat="server">
    <div class="videoPlayer" id="PlayerPanel">
        <iframe src="http://www.youtube.com/embed/_Nng-Ri4c2U" width="300" height="190"></iframe>
    </div>
</asp:Content>

<embed />タグを使用するのではなく、<iframe />代わりに使用してください。

于 2012-09-24T00:34:03.863 に答える