Hi

I've noticed that video embedding breaks when using this module with Views Infinite scroll. On initial inspection it seems that this is because the video detail JS is not being injected into the page when the infinite scroll AJAX request is fired.

After a bit of research it appears that the problem may stem from the fact that drupal_add_js() does not function properly over an AJAX request. Hence the function that adds the video JS fails, and the video breaks.

Any thoughts / suggestions / work arounds (or even fixes!) much appreciated

Cheers,
Rich

Comments

aaron’s picture

without looking more, my initial suspicion is the fault lies with Views Infinite Scroll, which should inject the required js and fire behaviors on AJAX.

rich.3po’s picture

Project: Media: YouTube » Views Infinite Scroll
Version: 6.x-1.3 » 6.x-1.x-dev

Hi

I'm moving this issue into the views Infinite Scroll project from Embedded media field, because it should probably live here.

(see details above)

Thanks

jamiegotluckies’s picture

I am finding the same problem with custom jQuery scripts on my node types. The first page of nodes always load the scripts properly, but any loaded afterwords with infinite scroll does not. Would like to see if there is fix/workaround as well.

Remon’s picture

Title: Compatibility with Infinite scroll (views 3 plugin) » Compatibility with Media module
jpromeo’s picture

I echo @jamiegotluckies as I am trying to integrate IS with the YoxView project. I encounter no issues on the first page but do not have the popup effect working on any of the others. I have even tried to use jQuery.noConflict() with no success. Any thoughts would be appreciated.

mad_matt’s picture

I experienced a similair problem when using the "MP3 Player" module in combination with views and Infinite Scroll.
My view uses "fields" as row style...

Any hint where we could alter the module code to inject the required js when loading new content?

thanks a lot
matt

arkjoseph’s picture

Whats the status on this? I have a view which is output as a list. THe list consists of one video and one colorbox per node. I have upto 50 nodes on one page and also contains 1 facebook like button per node.

Thanks!

EDIT: This module does work with embedded media.

Currently looking into how to apply custom js to newly loaded items

Remon’s picture

Category: support » bug
tessa bakker’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new404 bytes

Hi,

Problem: Media can't generate an extra upload field, while Infinity Scroll isn't loaded.

Fix: check if var settings has any Infinity Scroll settings (patch included).

Works with media-7.x-2.x-alpha3+114-dev

honza pobořil’s picture

Status: Needs review » Closed (outdated)
honza pobořil’s picture