Index: branches/MwEmbedStandAlone/mwEmbedFrame.php |
— | — | @@ -66,6 +66,11 @@ |
67 | 67 | if( isset($_GET['apiTitleKey'])){ |
68 | 68 | $this->apiTitleKey = htmlspecialchars( $_GET['apiTitleKey'] ); |
69 | 69 | } |
| 70 | + |
| 71 | + if( isset($_GET['apiProvider'])){ |
| 72 | + $this->apiProvider = htmlspecialchars( $_GET['apiProvider'] ); |
| 73 | + } |
| 74 | + |
70 | 75 | if( isset( $_GET['poster'] ) ){ |
71 | 76 | $this->poster = htmlspecialchars( $_GET['poster'] ); |
72 | 77 | } |
— | — | @@ -98,6 +103,9 @@ |
99 | 104 | if( $this->apiTitleKey ){ |
100 | 105 | $o.= 'apiTitleKey="' . htmlspecialchars( $this->apiTitleKey ) . '" '; |
101 | 106 | } |
| 107 | + if( $this->apiProvider ){ |
| 108 | + $o.= 'apiProvider="' . htmlspecialchars( $this->apiProvider ) . '" '; |
| 109 | + } |
102 | 110 | if( $this->poster ){ |
103 | 111 | $o.= 'poster="' . htmlspecialchars( $this->poster ) . '" '; |
104 | 112 | } |
— | — | @@ -139,8 +147,8 @@ |
140 | 148 | margin-right: 0px; |
141 | 149 | margin-bottom: 0px; |
142 | 150 | } |
143 | | - </style> |
144 | | - <script type="text/javascript" src="ResourceLoader.php?class=window.jQuery,mwEmbed"></script> |
| 151 | + </style> |
| 152 | + <script type="text/javascript" src="ResourceLoader.php?class=window.jQuery,mwEmbed,mw.style.mwCommon,$j.fn.menu,mw.style.jquerymenu,mw.EmbedPlayer,mw.EmbedPlayerNative,mw.EmbedPlayerJava,mw.PlayerControlBuilder,$j.fn.hoverIntent,mw.style.EmbedPlayer,$j.cookie,$j.ui,mw.style.ui_redmond,$j.widget,$j.ui.mouse,mw.PlayerSkinKskin,mw.style.PlayerSkinKskin,mw.TimedText,mw.style.TimedText,$j.ui.slider"></script> |
145 | 153 | <script type="text/javascript"> |
146 | 154 | //Set some iframe embed config: |
147 | 155 | |
— | — | @@ -149,6 +157,7 @@ |
150 | 158 | |
151 | 159 | // We can't support full screen in object context since it requires outter page DOM control |
152 | 160 | mw.setConfig( 'EmbedPlayer.EnableFullscreen', false ); |
| 161 | + |
153 | 162 | </script> |
154 | 163 | </head> |
155 | 164 | <body> |