Wie spielt man Facebook-Videos in Phonegap ein?

Ich habe ein Facebook-Video in meine Phonegap-App eingebettet, bei dem zwei verschiedene Probleme aufgetreten sind und ich nur eines davon beheben kann.

1. erstes Problem (behoben) - Das Facebook-Video wurde in meiner App nicht angezeigt. Also könnte ich das Problem beheben, indem ich so etwas mache

    .fb-video { width: 100% !important; height:100%!important;  } .fb-video span { width: 100% !important; height:4650px!important; } .fb-video iframe[style] { width: 100% !important; height:100%!important;  }

Übrigens bin ich mir nicht sicher, ob es das zweite Problem gemacht hat, ich denke nicht.

2. zweites Problem - Wenn ich auf das Video klicke, wird es nicht abgespielt. Hier ein paar Schnipsel

<body>
  <div id="fb-root"></div>
  <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "http://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.6";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    <div data-height="250" class="fb-video" data-href="https://www.facebook.com/facebook/videos/10153231379946729/" data-width="500" data-show-text="false"></div>
</body>

So wie c, ein ich das zweite Problem beim Abspielen des Videos in Phonegap App beheben? Ich bin mir auch nicht sicher, ob es der richtige und einfachste Weg ist, das zu erreichen, wonach ich suche.

Antworten auf die Frage(0)

Ihre Antwort auf die Frage