| 1 | | function run_client_action(client_id, action_name, action_data) |
|---|
| 2 | | { |
|---|
| 3 | | //console.log("run_client_action client_id: "+client_id+" action_name: "+action_name); |
|---|
| 4 | | |
|---|
| 5 | | var receiver = jQuery('[@nnf_id=' + client_id + ']'); |
|---|
| 6 | | //console.log("receiver nnf_id: "+receiver.attr('nnf_id')); |
|---|
| 7 | | //console.log("receiver nnf_type: "+receiver.attr('nnf_type')); |
|---|
| 8 | | |
|---|
| 9 | | if (receiver.attr('nnf_type') == 'player') |
|---|
| 10 | | { |
|---|
| 11 | | receiver.run_playerclient_action(action_name, action_data); |
|---|
| 12 | | } |
|---|
| 13 | | else |
|---|
| 14 | | { |
|---|
| 15 | | receiver.run_playlistclient_action(action_name, action_data); |
|---|
| 16 | | } |
|---|
| 17 | | } |
|---|
| 18 | | |
|---|
| 19 | | /* |
|---|
| 20 | | * jQuery("#video_holder").net_nemein_flashplayer(); |
|---|
| 21 | | * jQuery("#playlist_holder").net_nemein_flashplaylist(); |
|---|
| 22 | | * jQuery("#video_holder").connect_playlist( jQuery("#playlist_holder").getID() ); |
|---|
| 23 | | */ |
|---|
| 24 | | |
|---|
| 25 | | jQuery.fn.extend({ |
|---|
| 26 | | net_nemein_flashplayer: function(options) { |
|---|
| 27 | | options = jQuery.extend({}, jQuery.net_nemein_flashplayer_player.defaults, { |
|---|
| 28 | | }, options); |
|---|
| 29 | | return new jQuery.net_nemein_flashplayer_player(this, options); |
|---|
| 30 | | }, |
|---|
| 31 | | run_playerclient_action: function(action, args) { |
|---|
| 32 | | return this.trigger("run_client_action",[action, args]); |
|---|
| 33 | | }, |
|---|
| 34 | | run_player_action: function(action, args) { |
|---|
| 35 | | return this.trigger("run_player_action",[action, args]); |
|---|
| 36 | | }, |
|---|
| 37 | | set_video: function(item, options) { |
|---|
| 38 | | return this.trigger("set_video",[item, options]); |
|---|
| 39 | | } |
|---|
| 40 | | }); |
|---|
| 41 | | |
|---|
| 42 | | jQuery.net_nemein_flashplayer_player = function(object, options) |
|---|
| 43 | | { |
|---|
| 44 | | //console.log("net_nemein_flashplayer_player object: "+object); |
|---|
| 45 | | |
|---|
| 46 | | var _object = object; |
|---|
| 47 | | var _player_id = generate_id(); |
|---|
| 48 | | var _proxy = new FlashProxy(_player_id, generate_static_url(options.proxy_gateway_swf_path)); |
|---|
| 49 | | |
|---|
| 50 | | var _flashvars = "player_id="+_player_id; |
|---|
| 51 | | |
|---|
| 52 | | var flashplayer_tag = new FlashTag(generate_static_url(options.flash_player_path), options.player_width, options.player_height); |
|---|
| 53 | | flashplayer_tag.setVersion(options.flash_version); |
|---|
| 54 | | flashplayer_tag.setFlashvars(_flashvars); |
|---|
| 55 | | |
|---|
| 56 | | _object.attr("nnf_id",_player_id) |
|---|
| 57 | | .attr("nnf_type","player") |
|---|
| 58 | | .html(flashplayer_tag.toString()) |
|---|
| 59 | | .bind("run_client_action", function(event, action, args){ |
|---|
| 60 | | //console.log("player run_client_action action: "+action); |
|---|
| 61 | | //console.log("player run_client_action args: "+args); |
|---|
| 62 | | var functionToCall = eval(action); |
|---|
| 63 | | functionToCall.apply(functionToCall, [args]); |
|---|
| 64 | | }).bind("run_player_action", function(event, action, args){ |
|---|
| 65 | | //console.log("run_player_action action: "+action); |
|---|
| 66 | | //console.log("run_player_action args.length: "+args.length); |
|---|
| 67 | | proxy_send(action, args); |
|---|
| 68 | | }).bind("set_video", function(event, item, options){ |
|---|
| 69 | | //console.log("set_video item.id: "+item.id); |
|---|
| 70 | | //console.log("set_video item.video_url: "+item.video_url); |
|---|
| 71 | | //console.log("set_video options: "+options); |
|---|
| 72 | | set_video(item, options); |
|---|
| 73 | | }); |
|---|
| 74 | | |
|---|
| 75 | | proxy_send('player_embedded', {element_id: _object.attr("id")}); |
|---|
| 76 | | |
|---|
| 77 | | function set_video(item, video_options) |
|---|
| 78 | | { |
|---|
| 79 | | //console.log("set_video item:"+item+" video_options:"+video_options); |
|---|
| 80 | | |
|---|
| 81 | | var args_options = jQuery.extend({ |
|---|
| 82 | | auto_play: options.auto_play |
|---|
| 83 | | }, video_options || {}); |
|---|
| 84 | | |
|---|
| 85 | | //console.log("item.video_url: "+item.video_url); |
|---|
| 86 | | |
|---|
| 87 | | var send_args = [ |
|---|
| 88 | | item, |
|---|
| 89 | | args_options |
|---|
| 90 | | ]; |
|---|
| 91 | | |
|---|
| 92 | | if ( options.set_video_callback |
|---|
| 93 | | && typeof(options.set_video_callback) == "function") |
|---|
| 94 | | { |
|---|
| 95 | | var functionToCall = eval(options.set_video_callback); |
|---|
| 96 | | functionToCall.apply(functionToCall, [send_args]); |
|---|
| 97 | | } |
|---|
| 98 | | |
|---|
| 99 | | proxy_send('set_video',send_args); |
|---|
| 100 | | } |
|---|
| 101 | | |
|---|
| 102 | | function proxy_send(action, args) |
|---|
| 103 | | { |
|---|
| 104 | | _proxy.call(action, args); |
|---|
| 105 | | } |
|---|
| 106 | | |
|---|
| 107 | | function generate_id() |
|---|
| 108 | | { |
|---|
| 109 | | random_key = Math.floor(Math.random()*4013); |
|---|
| 110 | | return "net_nemein_flashplayer_player_" + (10016486 + (random_key * 22423)); |
|---|
| 111 | | } |
|---|
| 112 | | |
|---|
| 113 | | function generate_static_url(suffix) |
|---|
| 114 | | { |
|---|
| 115 | | return options.site_root + options.static_prefix + suffix; |
|---|
| 116 | | } |
|---|
| 117 | | |
|---|
| 118 | | /** |
|---|
| 119 | | * Functions callable from flash |
|---|
| 120 | | **/ |
|---|
| 121 | | |
|---|
| 122 | | function player_initialized(args) |
|---|
| 123 | | { |
|---|
| 124 | | //console.log("player_initialized"); |
|---|
| 125 | | } |
|---|
| 126 | | }; |
|---|
| 127 | | |
|---|
| 128 | | jQuery.net_nemein_flashplayer_player.defaults = { |
|---|
| 129 | | site_root: '/', |
|---|
| 130 | | static_prefix: 'midcom-static/', |
|---|
| 131 | | proxy_gateway_swf_path: 'net.nemein.flashplayer/gw/JavaScriptFlashGateway.swf', |
|---|
| 132 | | flash_player_path: 'net.nemein.flashplayer/player.swf', |
|---|
| 133 | | flash_version: '8,0,0,0', |
|---|
| 134 | | set_video_callback: false, |
|---|
| 135 | | auto_play: false, |
|---|
| 136 | | player_width: 450, |
|---|
| 137 | | player_height: 358 |
|---|
| 138 | | }; |
|---|
| 139 | | |
|---|
| 140 | | jQuery.fn.extend({ |
|---|
| 141 | | net_nemein_flashplaylist: function(options) { |
|---|
| 142 | | options = jQuery.extend({}, jQuery.net_nemein_flashplayer_playlist.defaults, { |
|---|
| 143 | | }, options); |
|---|
| 144 | | return new jQuery.net_nemein_flashplayer_playlist(this, options); |
|---|
| 145 | | }, |
|---|
| 146 | | run_playlistclient_action: function(action, args) { |
|---|
| 147 | | //console.log("run_playlistclient_action action: "+action); |
|---|
| 148 | | //console.log("run_playlistclient_action args: "+args); |
|---|
| 149 | | return this.trigger("run_client_action",[action, args]); |
|---|
| 150 | | }, |
|---|
| 151 | | run_playlist_action: function(action, args) { |
|---|
| 152 | | return this.trigger("run_playlist_action",[action, args]); |
|---|
| 153 | | }, |
|---|
| 154 | | load_playlist: function(url) { |
|---|
| 155 | | return this.trigger("load_playlist",[url]); |
|---|
| 156 | | }, |
|---|
| 157 | | add_item: function(item_data) { |
|---|
| 158 | | var item = new jQuery.net_nemein_flashplayer_playlist_item(item_data); |
|---|
| 159 | | return this.trigger("add_item",[item]); |
|---|
| 160 | | }, |
|---|
| 161 | | remove_item: function(item_id) { |
|---|
| 162 | | return this.trigger("remove_item",[item_id]); |
|---|
| 163 | | }, |
|---|
| 164 | | connect_player: function(player_id) { |
|---|
| 165 | | return this.trigger("connect_player",[player_id]); |
|---|
| 166 | | }, |
|---|
| 167 | | disconnect_player: function(player_id) { |
|---|
| 168 | | return this.trigger("disconnect_player",[player_id]); |
|---|
| 169 | | }, |
|---|
| 170 | | change_movie: function(item) { |
|---|
| 171 | | return this.trigger("change_movie",[item]); |
|---|
| 172 | | } |
|---|
| 173 | | }); |
|---|
| 174 | | |
|---|
| 175 | | jQuery.net_nemein_flashplayer_playlist = function(object, options) |
|---|
| 176 | | { |
|---|
| 177 | | //console.log("net_nemein_flashplayer_playlist object: "+object); |
|---|
| 178 | | |
|---|
| 179 | | var _object = object; |
|---|
| 180 | | var _playlist_id = generate_id(); |
|---|
| 181 | | var _proxy = new FlashProxy(_playlist_id, generate_static_url(options.proxy_gateway_swf_path)); |
|---|
| 182 | | var _playlist_content = []; |
|---|
| 183 | | |
|---|
| 184 | | var _playlist_initialized = false; |
|---|
| 185 | | var _playlist_loaded = false; |
|---|
| 186 | | var _playlist_sended = false; |
|---|
| 187 | | |
|---|
| 188 | | var _players = []; |
|---|
| 189 | | |
|---|
| 190 | | var _flashvars = "playlist_id="+_playlist_id; |
|---|
| 191 | | |
|---|
| 192 | | var flashplaylist_tag = new FlashTag(generate_static_url(options.flash_playlist_path), options.width, options.height); |
|---|
| 193 | | flashplaylist_tag.setVersion(options.flash_version); |
|---|
| 194 | | flashplaylist_tag.setFlashvars(_flashvars); |
|---|
| 195 | | |
|---|
| 196 | | _object.attr("nnf_id",_playlist_id) |
|---|
| 197 | | .attr("nnf_type","playlist") |
|---|
| 198 | | .html(flashplaylist_tag.toString()) |
|---|
| 199 | | .bind("run_client_action", function(event, action, args){ |
|---|
| 200 | | //console.log("playlist run_client_action action: "+action); |
|---|
| 201 | | //console.log("playlist run_client_action args: "+args); |
|---|
| 202 | | var functionToCall = eval(action); |
|---|
| 203 | | functionToCall.apply(functionToCall, [args]); |
|---|
| 204 | | }) |
|---|
| 205 | | .bind("run_playlist_action", function(event, action, args){ |
|---|
| 206 | | //console.log("run_playlist_action action: "+action); |
|---|
| 207 | | //console.log("run_playlist_action args.length: "+args.length); |
|---|
| 208 | | proxy_send(action, args); |
|---|
| 209 | | }) |
|---|
| 210 | | .bind("load_playlist", function(event, url){ |
|---|
| 211 | | //console.log("set_video url: "+url); |
|---|
| 212 | | load_playlist(url); |
|---|
| 213 | | }).bind("add_item", function(event, item){ |
|---|
| 214 | | //console.log("add_item item: "+item); |
|---|
| 215 | | add_item(item); |
|---|
| 216 | | }).bind("remove_item", function(event, item_id){ |
|---|
| 217 | | //console.log("remove_item item_id: "+item_id); |
|---|
| 218 | | remove_item(item_id); |
|---|
| 219 | | }).bind("connect_player", function(event, player_id){ |
|---|
| 220 | | //console.log("connect_player player_id: "+player_id); |
|---|
| 221 | | connect_player(player_id); |
|---|
| 222 | | }).bind("disconnect_player", function(event, player_id){ |
|---|
| 223 | | //console.log("disconnect_player player_id: "+player_id); |
|---|
| 224 | | disconnect_player(player_id); |
|---|
| 225 | | }).bind("change_movie", function(event, item){ |
|---|
| 226 | | //console.log("change_movie item.id: "+item.id); |
|---|
| 227 | | change_movie(item); |
|---|
| 228 | | }); |
|---|
| 229 | | |
|---|
| 230 | | proxy_send('playlist_embedded', {element_id: _object.attr("id")}); |
|---|
| 231 | | |
|---|
| 232 | | function change_movie(item) |
|---|
| 233 | | { |
|---|
| 234 | | var data = { |
|---|
| 235 | | item: item, |
|---|
| 236 | | options: {}, |
|---|
| 237 | | playlist_id: _playlist_id |
|---|
| 238 | | }; |
|---|
| 239 | | //console.log("change_movie item.video_url: "+item.video_url); |
|---|
| 240 | | jQuery(_players).each(function(i,player){ |
|---|
| 241 | | player.set_video(item); |
|---|
| 242 | | }); |
|---|
| 243 | | } |
|---|
| 244 | | |
|---|
| 245 | | function _player_exists(player_id) |
|---|
| 246 | | { |
|---|
| 247 | | var existing = false; |
|---|
| 248 | | existing = jQuery.grep( _players, function(n,i){ |
|---|
| 249 | | return n.attr("nnf_id") == player_id; |
|---|
| 250 | | }); |
|---|
| 251 | | |
|---|
| 252 | | if (existing == false) |
|---|
| 253 | | { |
|---|
| 254 | | return false; |
|---|
| 255 | | } |
|---|
| 256 | | |
|---|
| 257 | | return true; |
|---|
| 258 | | } |
|---|
| 259 | | |
|---|
| 260 | | function connect_player(player_id) |
|---|
| 261 | | { |
|---|
| 262 | | //console.log("connect_player player_id: "+player_id); |
|---|
| 263 | | if (!_player_exists(player_id)) |
|---|
| 264 | | { |
|---|
| 265 | | var player = jQuery('[@nnf_id=' + player_id + ']'); |
|---|
| 266 | | _players.push(player); |
|---|
| 267 | | } |
|---|
| 268 | | } |
|---|
| 269 | | |
|---|
| 270 | | function disconnect_player(player_id) |
|---|
| 271 | | { |
|---|
| 272 | | //console.log("disconnect_player player_id: "+player_id); |
|---|
| 273 | | if (_player_exists(player_id)) |
|---|
| 274 | | { |
|---|
| 275 | | _players = jQuery.grep( _players, function(n,i){ |
|---|
| 276 | | return n != player_id; |
|---|
| 277 | | }); |
|---|
| 278 | | } |
|---|
| 279 | | } |
|---|
| 280 | | |
|---|
| 281 | | function _item_exists(item_id) |
|---|
| 282 | | { |
|---|
| 283 | | var existing = false; |
|---|
| 284 | | existing = jQuery.grep( _playlist_content, function(n,i){ |
|---|
| 285 | | return n.id == item_id; |
|---|
| 286 | | }); |
|---|
| 287 | | |
|---|
| 288 | | if (!existing) |
|---|
| 289 | | { |
|---|
| 290 | | return false; |
|---|
| 291 | | } |
|---|
| 292 | | |
|---|
| 293 | | return true; |
|---|
| 294 | | } |
|---|
| 295 | | |
|---|
| 296 | | function add_item(item) |
|---|
| 297 | | { |
|---|
| 298 | | if (!_item_exists(item.id)) |
|---|
| 299 | | { |
|---|
| 300 | | _playlist_content.push(item); |
|---|
| 301 | | |
|---|
| 302 | | var args = { |
|---|
| 303 | | item: item |
|---|
| 304 | | }; |
|---|
| 305 | | proxy_send('add_item',args); |
|---|
| 306 | | } |
|---|
| 307 | | } |
|---|
| 308 | | |
|---|
| 309 | | function remove_item(item_id) |
|---|
| 310 | | { |
|---|
| 311 | | if (_item_exists(item_id)) |
|---|
| 312 | | { |
|---|
| 313 | | _playlist_content = jQuery.grep( _playlist_content, function(n,i){ |
|---|
| 314 | | return n.id != item_id; |
|---|
| 315 | | }); |
|---|
| 316 | | |
|---|
| 317 | | var args = { |
|---|
| 318 | | id: item_id |
|---|
| 319 | | }; |
|---|
| 320 | | proxy_send('remove_item',args); |
|---|
| 321 | | } |
|---|
| 322 | | } |
|---|
| 323 | | |
|---|
| 324 | | function load_playlist(url) |
|---|
| 325 | | { |
|---|
| 326 | | //console.log("load_playlist url: "+url); |
|---|
| 327 | | |
|---|
| 328 | | _request(url, loading_success, loading_failure) |
|---|
| 329 | | } |
|---|
| 330 | | |
|---|
| 331 | | function loading_success(server_data) |
|---|
| 332 | | { |
|---|
| 333 | | var results = []; |
|---|
| 334 | | jQuery('item',server_data).each(function(idx) { |
|---|
| 335 | | var rel_this = jQuery(this); |
|---|
| 336 | | |
|---|
| 337 | | results[idx] = { |
|---|
| 338 | | index:idx, |
|---|
| 339 | | id:rel_this.find("id").text(), |
|---|
| 340 | | title:rel_this.find("title").text(), |
|---|
| 341 | | video_url:rel_this.find("video_url").text(), |
|---|
| 342 | | thumbnail_url:rel_this.find("thumbnail_url").text(), |
|---|
| 343 | | data_url:rel_this.find("data_url").text() |
|---|
| 344 | | }; |
|---|
| 345 | | |
|---|
| 346 | | jQuery.each(options.item_extra_keys,function(i,key){ |
|---|
| 347 | | //console.log("rel_this.find("+key+").text(): "+rel_this.find(key).text()); |
|---|
| 348 | | results[idx][key] = rel_this.find(key).text(); |
|---|
| 349 | | }); |
|---|
| 350 | | }); |
|---|
| 351 | | |
|---|
| 352 | | _playlist_content = results; |
|---|
| 353 | | |
|---|
| 354 | | //console.log("_playlist_content.length: "+_playlist_content.length); |
|---|
| 355 | | _playlist_loaded = true; |
|---|
| 356 | | |
|---|
| 357 | | if ( _playlist_content.length > 0 |
|---|
| 358 | | && _playlist_initialized |
|---|
| 359 | | && !_playlist_sended) |
|---|
| 360 | | { |
|---|
| 361 | | var args = { |
|---|
| 362 | | content: _playlist_content |
|---|
| 363 | | }; |
|---|
| 364 | | proxy_send('playlist_loading_success',args); |
|---|
| 365 | | } |
|---|
| 366 | | } |
|---|
| 367 | | |
|---|
| 368 | | function loading_failure(type, expobj) { |
|---|
| 369 | | //console.log("loading_failure type: "+type); |
|---|
| 370 | | |
|---|
| 371 | | var status = type; |
|---|
| 372 | | |
|---|
| 373 | | var args = { |
|---|
| 374 | | status: status |
|---|
| 375 | | }; |
|---|
| 376 | | proxy_send('playlist_loading_failure',args); |
|---|
| 377 | | } |
|---|
| 378 | | |
|---|
| 379 | | function _request(url, success, failure) { |
|---|
| 380 | | //console.log("_request url: "+url); |
|---|
| 381 | | |
|---|
| 382 | | jQuery.ajax({ |
|---|
| 383 | | type: "GET", |
|---|
| 384 | | url: url, |
|---|
| 385 | | dataType: 'xml', |
|---|
| 386 | | data: jQuery.extend({ |
|---|
| 387 | | limit: options.max_items |
|---|
| 388 | | }, {}), |
|---|
| 389 | | error: function(obj, type, expobj) { |
|---|
| 390 | | failure(type, expobj); |
|---|
| 391 | | }, |
|---|
| 392 | | success: function(data) { |
|---|
| 393 | | success(data); |
|---|
| 394 | | } |
|---|
| 395 | | }); |
|---|
| 396 | | } |
|---|
| 397 | | |
|---|
| 398 | | function proxy_send(action, args) |
|---|
| 399 | | { |
|---|
| 400 | | //console.log("Call Flash Playlist with action: "+action); |
|---|
| 401 | | _proxy.call(action, args); |
|---|
| 402 | | } |
|---|
| 403 | | |
|---|
| 404 | | function generate_id() |
|---|
| 405 | | { |
|---|
| 406 | | random_key = Math.floor(Math.random()*4013); |
|---|
| 407 | | return "net_nemein_flashplayer_playlist_" + (10016486 + (random_key * 22423)); |
|---|
| 408 | | } |
|---|
| 409 | | |
|---|
| 410 | | function generate_static_url(suffix) |
|---|
| 411 | | { |
|---|
| 412 | | return options.site_root + options.static_prefix + suffix; |
|---|
| 413 | | } |
|---|
| 414 | | |
|---|
| 415 | | /** |
|---|
| 416 | | * Functions callable from flash |
|---|
| 417 | | **/ |
|---|
| 418 | | |
|---|
| 419 | | function playlist_initialized(args) |
|---|
| 420 | | { |
|---|
| 421 | | //console.log("playlist_initialized"); |
|---|
| 422 | | _playlist_initialized = true; |
|---|
| 423 | | |
|---|
| 424 | | if ( _playlist_content.length > 0 |
|---|
| 425 | | && !_playlist_sended) |
|---|
| 426 | | { |
|---|
| 427 | | var args = { |
|---|
| 428 | | content: _playlist_content |
|---|
| 429 | | }; |
|---|
| 430 | | if (_playlist_loaded) |
|---|
| 431 | | { |
|---|
| 432 | | proxy_send('playlist_loading_success',args); |
|---|
| 433 | | } |
|---|
| 434 | | } |
|---|
| 435 | | } |
|---|
| 436 | | }; |
|---|
| 437 | | |
|---|
| 438 | | jQuery.net_nemein_flashplayer_playlist.defaults = { |
|---|
| 439 | | site_root: jQuery.net_nemein_flashplayer_player.defaults.site_root, |
|---|
| 440 | | static_prefix: jQuery.net_nemein_flashplayer_player.defaults.static_prefix, |
|---|
| 441 | | proxy_gateway_swf_path: jQuery.net_nemein_flashplayer_player.defaults.proxy_gateway_swf_path, |
|---|
| 442 | | flash_playlist_path: 'net.nemein.flashplayer/playlist.swf', |
|---|
| 443 | | flash_version: '8,0,0,0', |
|---|
| 444 | | item_extra_keys: [], |
|---|
| 445 | | max_items: 20, |
|---|
| 446 | | width: 450, |
|---|
| 447 | | height: 118 |
|---|
| 448 | | }; |
|---|
| 449 | | |
|---|
| 450 | | jQuery.net_nemein_flashplayer_playlist_item = function(data) |
|---|
| 451 | | { |
|---|
| 452 | | //console.log("net_nemein_flashplayer_playlist_item data: "+data); |
|---|
| 453 | | |
|---|
| 454 | | data = jQuery.extend({}, jQuery.net_nemein_flashplayer_playlist_item.defaults, { |
|---|
| 455 | | }, data); |
|---|
| 456 | | |
|---|
| 457 | | return this; |
|---|
| 458 | | }; |
|---|
| 459 | | |
|---|
| 460 | | jQuery.net_nemein_flashplayer_playlist_item.defaults = { |
|---|
| 461 | | id: '', |
|---|
| 462 | | title: '', |
|---|
| 463 | | video_url: '', |
|---|
| 464 | | thumbnail_url: '', |
|---|
| 465 | | data_url: '' |
|---|
| 466 | | }; |
|---|
| | 1 | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 M(1Z,1s,1t){3 10=4(\'[@H=\'+1Z+\']\');d(10.q(\'1m\')==\'u\'){10.1W(1s,1t)}2k{10.1D(1s,1t)}}4.25.w({2j:1(2){2=4.w({},4.t.p,{},2);6 r 4.t(b,2)},1W:1(9,5){6 b.g("M",[9,5])},1q:1(9,5){6 b.g("1q",[9,5])},s:1(7,2){6 b.g("s",[7,2])}});4.t=1(13,2){3 C=13;3 Z=19();3 18=r 1C(Z,D(2.N));3 Y="a="+Z;3 11=r 1H(D(2.21),2.28,2.1F);11.1O(2.R);11.1M(Y);C.q("H",Z).q("1m","u").1J(11.1I()).f("M",1(e,9,5){3 l=1a(9);l.1p(l,[5])}).f("1q",1(e,9,5){c(9,5)}).f("s",1(e,7,2){s(7,2)});c(\'2l\',{1B:C.q("o")});1 s(7,2c){3 26=4.w({1d:2.1d},2c||{});3 1i=[7,26];d(2.12&&2i(2.12)=="1"){3 l=1a(2.12);l.1p(l,[1i])}c(\'s\',1i)}1 c(9,5){18.2d(9,5)}1 19(){16=17.1N(17.1L()*1G);6"2n"+(1U+(16*22))}1 D(W){6 2.Q+2.K+W}1 2o(5){}};4.t.p={Q:\'/\',K:\'2g-2h/\',N:\'1l.1f.1x/2m/2r.1c\',21:\'1l.1f.1x/u.1c\',R:\'8,0,0,0\',12:h,1d:h,28:1Q,1F:2y};4.25.w({2A:1(2){2=4.w({},4.T.p,{},2);6 r 4.T(b,2)},1D:1(9,5){6 b.g("M",[9,5])},1n:1(9,5){6 b.g("1n",[9,5])},J:1(m){6 b.g("J",[m])},F:1(1E){3 7=r 4.S(1E);6 b.g("F",[7])},A:1(j){6 b.g("A",[j])},G:1(a){6 b.g("G",[a])},I:1(a){6 b.g("I",[a])},O:1(7){6 b.g("O",[7])}});4.T=1(13,2){3 C=13;3 L=19();3 18=r 1C(L,D(2.N));3 k=[];3 1k=h;3 1h=h;3 1j=h;3 B=[];3 Y="1K="+L;3 X=r 1H(D(2.2e),2.2b,2.29);X.1O(2.R);X.1M(Y);C.q("H",L).q("1m","27").1J(X.1I()).f("M",1(e,9,5){3 l=1a(9);l.1p(l,[5])}).f("1n",1(e,9,5){c(9,5)}).f("J",1(e,m){J(m)}).f("F",1(e,7){F(7)}).f("A",1(e,j){A(j)}).f("G",1(e,a){G(a)}).f("I",1(e,a){I(a)}).f("O",1(e,7){O(7)});c(\'2p\',{1B:C.q("o")});1 O(7){3 x={7:7,2:{},1K:L};4(B).1e(1(i,u){u.s(7)})}1 1o(a){3 E=h;E=4.U(B,1(n,i){6 n.q("H")==a});d(E==h){6 h}6 15}1 G(a){d(!1o(a)){3 u=4(\'[@H=\'+a+\']\');B.2f(u)}}1 I(a){d(1o(a)){B=4.U(B,1(n,i){6 n!=a})}}1 1b(j){3 E=h;E=4.U(k,1(n,i){6 n.o==j});d(!E){6 h}6 15}1 F(7){d(!1b(7.o)){k.2f(7);3 5={7:7};c(\'F\',5)}}1 A(j){d(1b(j)){k=4.U(k,1(n,i){6 n.o!=j});3 5={o:j};c(\'A\',5)}}1 J(m){1S(m,2a,1R)}1 2a(1V){3 14=[];4(\'7\',1V).1e(1(V){3 v=4(b);14[V]={2q:V,o:v.y("o").z(),1g:v.y("1g").z(),1v:v.y("1v").z(),1y:v.y("1y").z(),1z:v.y("1z").z()};4.1e(2.1X,1(i,1A){14[V][1A]=v.y(1A).z()})});k=14;1h=15;d(k.23>0&&1k&&!1j){3 5={1P:k};c(\'1T\',5)}}1 1R(P,1w){3 1r=P;3 5={1r:1r};c(\'2t\',5)}1 1S(m,1u,1Y){4.2v({P:"2u",m:m,2E:\'2s\',x:4.w({2w:2.24},{}),2x:1(2B,P,1w){1Y(P,1w)},1u:1(x){1u(x)}})}1 c(9,5){18.2d(9,5)}1 19(){16=17.1N(17.1L()*1G);6"2z"+(1U+(16*22))}1 D(W){6 2.Q+2.K+W}1 2C(5){1k=15;d(k.23>0&&!1j){3 5={1P:k};d(1h){c(\'1T\',5)}}}};4.T.p={Q:4.t.p.Q,K:4.t.p.K,N:4.t.p.N,2e:\'1l.1f.1x/27.1c\',R:\'8,0,0,0\',1X:[],24:20,2b:1Q,29:2D};4.S=1(x){x=4.w({},4.S.p,{},x);6 b};4.S.p={o:\'\',1g:\'\',1v:\'\',1y:\'\',1z:\'\'};',62,165,'|function|options|var|jQuery|args|return|item||action|player_id|this|proxy_send|if|event|bind|trigger|false||item_id|_playlist_content|functionToCall|url||id|defaults|attr|new|set_video|net_nemein_flashplayer_player|player|rel_this|extend|data|find|text|remove_item|_players|_object|generate_static_url|existing|add_item|connect_player|nnf_id|disconnect_player|load_playlist|static_prefix|_playlist_id|run_client_action|proxy_gateway_swf_path|change_movie|type|site_root|flash_version|net_nemein_flashplayer_playlist_item|net_nemein_flashplayer_playlist|grep|idx|suffix|flashplaylist_tag|_flashvars|_player_id|receiver|flashplayer_tag|set_video_callback|object|results|true|random_key|Math|_proxy|generate_id|eval|_item_exists|swf|auto_play|each|nemein|title|_playlist_loaded|send_args|_playlist_sended|_playlist_initialized|net|nnf_type|run_playlist_action|_player_exists|apply|run_player_action|status|action_name|action_data|success|video_url|expobj|flashplayer|thumbnail_url|data_url|key|element_id|FlashProxy|run_playlistclient_action|item_data|player_height|4013|FlashTag|toString|html|playlist_id|random|setFlashvars|floor|setVersion|content|450|loading_failure|_request|playlist_loading_success|10016486|server_data|run_playerclient_action|item_extra_keys|failure|client_id||flash_player_path|22423|length|max_items|fn|args_options|playlist|player_width|height|loading_success|width|video_options|call|flash_playlist_path|push|midcom|static|typeof|net_nemein_flashplayer|else|player_embedded|gw|net_nemein_flashplayer_player_|player_initialized|playlist_embedded|index|JavaScriptFlashGateway|xml|playlist_loading_failure|GET|ajax|limit|error|358|net_nemein_flashplayer_playlist_|net_nemein_flashplaylist|obj|playlist_initialized|118|dataType'.split('|'),0,{})) |
|---|