f792d24_part_12_GenericPlayer_1.js 471B

12345678910111213141516171819202122232425
  1. function GenericPlayer(ref_id, object_for_player)
  2. {
  3. var _ref_id = ref_id;
  4. var _object_for_player = object_for_player;
  5. this.play = function()
  6. {
  7. JQueryJson(url_get_embed_for_element+'/'+_ref_id, {}, function(response){
  8. if (response.status == 'success')
  9. {
  10. object_for_player.html(response.data);
  11. }
  12. });
  13. }
  14. this.stop = function()
  15. {
  16. _object_for_player.html('');
  17. }
  18. this.close = function()
  19. {
  20. this.stop();
  21. }
  22. }