bugGnash - The GNU Flash player - Bugs: bug #41930, Plug-in is messing up event...

 
 

bug #41930: Plug-in is messing up event handling (confirmed on Google's youtube API)

Submitter:  None
Submitted:  Sat 22 Mar 2014 12:50:26 AM UTC
   
 
Category:  release 0.8.10 Severity:  3 - Normal
Priority:  5 - Normal Release:  0.8.10
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 30 Jun 2014 10:22:14 AM UTC, comment #1: 

I haven't try your code yet.
But I suspected that it might be due to a bug on Gnash's JavaScript interface.
(Call from JavaScript -> Flash didn't work: http://savannah.g ... u.org/bugs/?37223)

Thus, when you enabled Gnash, Youtube API tries to call into Gnash,
and failed silently.

When you disabled Gnash, Youtube API falls back to JavaScript/HTML5 player
(which didn't have this problem), thus succeeded.

Nutchanon Wetchasit <nachanon>
Sat 22 Mar 2014 12:50:26 AM UTC, original submission:  

I was using Mozilla 23 with Gnash 0.8.10 and it interferes with event handling.

I confirmed this problem by disabling the plug-in (Gnash) and event handling worked as expected. Here is a sample standalone code page.

<html>
<head>
<script src="//ajax.googleapis ... 1.0/jquery.min.js"></script>
<script type="text/javascript">
var player;

function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
        events: {
            'onReady': onPlayerReady
        }
    });
}

function onPlayerReady(event) {
    $('#result').text('LOADED');
}
</script>
</head>
<body>
<iframe width="560" height="315" id="player" src="//www.youtube.com ... amp;enablejsapi=1" frameborder="0" allowfullscreen></iframe>

<h3 id="result">NOT LOADED</h3>
<script src="//www.youtube ... om/iframe_api"></script>
</body>
</html> 



With Gnash enabled, the previous page never triggers the event which changes the HTML title to "LOADED". If you disable Gnash then the JS event works as expected. I tested this same page across different browsers on Linux and Windows and it always works. Gnash is clearly doing something that interferes with event triggering. 
 

Here is the cross bug-report on Google's Youtube API http://code.googl ... sort=&id=6180

Anonymous

 

Attached Files

Attached Files
file #30997:  Screenshot_flash_plugin.png added by None (88KiB - image/png - Gnash plugin that causes event handling conflict )

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by nachanon (Posted a comment)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-22 None Attached File- Added Screenshot_flash_plugin.png, #30997

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code