In the Intro To 7.x-2.x video, you (Travis) indicate that it's not possible (yet) to click an item in a Views grid and have that item begin playing in a Views header, but I'm not sure if this is related to my issue.

I have a player ("audio", Disable Playlist) in a Views header with the playlist ("audioplaylist", Playlist Only) in the Views content area. Under Player to Player, I've set "audioplaylist" to be the playlist for "audio" and (just in case) "audio" to be the controller for "audioplaylist."

When I click on an item in the playlist, that item is not played in the "audio" player. Am I missing a setting?

Comments

mrtoner’s picture

Issue summary: View changes

Fixed typo

jaymallison’s picture

Not that this is helpful as it regards to making your current setup work, but I've managed to basically recreate that views grid look and make it functional just by creating my own template based on the default OSMPlayer template. I've modified several of the scripts and added my own elements and code, pulled back a bunch of the default css, and ended up with something that looks completely different than the default player AND works.

I'd say for anyone wanting that views grid with clickable video links look, just create your own template based on the default and go from there.

mrtoner’s picture

Thanks, Jay. Since this is an audio-only player I'm using the Controller Only setting. Unfortunately, that also disables the playlist. I've done a fairly extensive modification of the OSM Player default template to get the playlist to look like I want and I need the Player to Player settings to work so that a playlist only preset can affect the controller only preset. I've not yet figured out how to put a vertically scrolling playlist below the controller without two separate presets.

travist’s picture

Status: Active » Fixed

I did some testing on my end and sure enough, the player to player was broken. I just committed a fix to the latest HEAD. Please try the DEV version tomorrow and let me know if you have better luck getting this to work. It should work the same as it did with 1.x.

Thanks,

Travis.

travist’s picture

Status: Fixed » Active

Alright, so I found another bug with this, so I am still looking into it... But I am able to reproduce the issue and am on it.

travist’s picture

Status: Active » Fixed

I just made a commit that should work. Please do some testing on your end and let me know if you see anything not working correctly.

Thanks for testing!

Travis.

mrtoner’s picture

When I display a View with MediaFront (Media Player) as the display format, I get no results (my No Results text area displays). However, If I change the display format to Unformatted List, I get the expected results.

I'm getting a few JavaScript errors:

mediafront:45     ReferenceError: Can't find variable: minplayer
mediafront:63     ReferenceError: Can't find variable: minplayer
mediafront:56     TypeError: 'undefined' is not a function (evaluating 'jQuery("#mediafront_audioplaylist").osmplayer')

Also, the player preview doesn't show on the edit preset page.

audio:60 TypeError: 'undefined' is not a function (evaluating 'jQuery("#player").osmplayer')

mrtoner’s picture

Status: Fixed » Active
travist’s picture

I cannot make sense of your last post mrtoner. Can you do a screencast of this issue so that I can just see what you are seeing?

EnjoyLife’s picture

Status: Active » Postponed (maintainer needs more info)
travist’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, so I have been doing some digging and did find some cases where player-to-player wasn't working. I ended up having to refactor how this works a little bit, but do believe that what I have just committed should work for most use cases. Please try the latest DEV version tomorrow and let me know if this is now fixed.

mrtoner’s picture

Sorry for the delay in getting back to you. I was about to post the screencast, but then gave the latest dev a try. It works! Thanks!

You have a new setting for media players in the header: "Link to Player: Check if you would like for this field to dynamically link to the MediaFront player attached to this view." What exactly does this do? I find that Player to Player works now regardless of this setting. (See my setup in the original post.)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fix typo