[ASK] Cara Membuat Embed PHP di JWPlayer?

Discussion in 'WordPress' started by Dam Blue, Mar 21, 2016.

  1. Dam Blue

    Dam Blue New Member

    Joined:
    Dec 27, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Pagi rekan-rekan,
    salam sejahtera untuk kita semua hingga sampai detik ini kita masih diberi kesehatan...amiiin

    oke langsung aja ya sob, saya mau nanya cara membuat embed seperti ini menggunakan jwplayer, membuat source nya di PHP "http://domain.com/video/videopertama.php"
    Contoh Embednya:

    Code:
    <iframe src="http://domain.com/video/videopertama.php" width="100%" height="420" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe>
    
    nah cara membuat file PHP sperti ini "http://domain.com/video/videopertama.php"
    gimana caranya ya sob
    saya pusing opreknya ga nemu2 hasilnya.

    didalam file PHP "http://domain.com/video/videopertama.php" sourcenya kayak gini Tuan:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <div id="akf" style="position:relative;">
    < script src='/jwplayer/jwplayer7.js'/>
    < script>jwplayer.key='JQRZgGNhtEbFmuLfnE7Z5Uegogwj9TRKcC+qCw==';< /script></div>
    </head>
    <div id="no1">
    < script type="text/javascript">
    jwplayer("no1").setup({ width: '100%', height: "400", sources:[{file:"/video/video-sd.php", type:"video/mp4",label:"480p"},{file:"/video/video-hd.php",type:"video/mp4",label:"720p"}], image:"/img/videopertama.jpg", title: "videopertama",
            abouttext: 'domain.com',
            aboutlink: 'http://domain.com',
            captions: {
            color: '#FF00FF',
            fontSize: 18,
            backgroundOpacity: 0
            }
              });
         < /script ></div>
    </html>
    
    Sekian, Semoga ada yang bisa bantu jawab pertanyaan saya
    Thanks.
     
  2. Qoeple

    Qoeple Member

    Joined:
    Nov 21, 2015
    Messages:
    551
    Likes Received:
    90
    Trophy Points:
    28
    Google+:
    Ane gak ngerti koding, tapi ikutan penasaran :D
    itu video sama source nya di taruh dihosting ya Gan ?

    Embednya di Blogspot, WP, apa lainnya ?

    Kalo langsung templok kayak ini gak bisa ?

    Code:
    <script type="text/javascript" src="//cdn.jsdelivr.net/jwplayer/5.10/jwplayer.js"></script>
    <div id="player_1"></div>
    <script type="text/javascript">// <![CDATA[
    jwplayer('player_1').setup({
        file: "http://testing.grappler.tk/files/2013/01/trailer_1080p.mp4",
        width: "100%",
        height: "100%",
        stretching: "fill",
        flashplayer:"//cdn.jsdelivr.net/jwplayer/5.10/player.swf"
      });
    // ]]></script>
    
     
  3. Ardilas

    Ardilas Super Level

    Joined:
    Feb 18, 2013
    Messages:
    4,243
    Likes Received:
    317
    Trophy Points:
    83
    Google+:
    Sebenernya kan hanya perlu HTML dan pengodingannya ada yang salah, harusnya seperti ini...
    HTML:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    </head>
    <body>
    <div id="akf" style="position:relative;">
    < script src='/jwplayer/jwplayer7.js'/>
    < script>jwplayer.key='JQRZgGNhtEbFmuLfnE7Z5Uegogwj9TRKcC+qCw==';< /script></div>
    
    <div id="no1">
    < script type="text/javascript">
    jwplayer("no1").setup({ width: '100%', height: "400", sources:[{file:"/video/video-sd.php", type:"video/mp4",label:"480p"},{file:"/video/video-hd.php",type:"video/mp4",label:"720p"}], image:"/img/videopertama.jpg", title: "videopertama",
            abouttext: 'domain.com',
            aboutlink: 'http://domain.com',
            captions: {
            color: '#FF00FF',
            fontSize: 18,
            backgroundOpacity: 0
            }
              });
         < /script ></div>
    </body>
    </html>
     
    Last edited: Mar 21, 2016
  4. Dam Blue

    Dam Blue New Member

    Joined:
    Dec 27, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    maksud ane seperti source yg ane contohin itu yg diatas.. file:"/video/video-sd.php", type:"video/mp4",label:"480p",
    jadi file video .mp4 nya ga nongol ketika klik kanan untuk melihat menggunakan view selection source. filenya jadi ga kelihatan hanya seperti ini file:"/video/video-sd.php", type:"video/mp4",label:"480p",
    jadi harus buat PHP nya, dan ane ga faham buat file PHPnya. disini saya menggunakan wordpress.

    klo source seperti punya ente ini kelihatan nama file videonya.
    file: "http://testing.grappler.tk/files/2013/01/trailer_1080p.mp4",

    maksud ane biar ga kelihatan soucenya semacam ditutupi sama code PHP tersebut.
     
  5. Dam Blue

    Dam Blue New Member

    Joined:
    Dec 27, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    om bisa buat embednya ga?
    bantuin dong :D
     
  6. Qoeple

    Qoeple Member

    Joined:
    Nov 21, 2015
    Messages:
    551
    Likes Received:
    90
    Trophy Points:
    28
    Google+:
  7. Dam Blue

    Dam Blue New Member

    Joined:
    Dec 27, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
Loading...

Share This Page