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)

Submitted by:  None
Submitted on:  Sat 22 Mar 2014 12:50:26 AM UTC  
 
Category: release 0.8.10Severity: 3 - Normal
Release: 0.8.10Status: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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.gnu.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.

Nachanon Vetjasit <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.com/ajax/libs/jquery/2.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/embed/M7lc1UVf-VE?rel=0&enablejsapi=1" frameborder="0" allowfullscreen></iframe>

<h3 id="result">NOT LOADED</h3>
<script src="//www.youtube.com/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.google.com/p/gdata-issues/issues/detail?can=2&start=0&num=100&q=&colspec=API%20ID%20Type%20Status%20Priority%20Stars%20Summary&groupby=&sort=&id=6180

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

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

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Mar 2014 12:50:26 AM UTCNoneAttached File-=>Added Screenshot_flash_plugin.png, #30997

    Back to the top


    Powered by Savane 3.1-cleanup