My environment:
Drupal core 7.8
MediaFront 7.x-1.4
Ctools 7.x-1.0-rc1
Views 7.x-3.0-rc1
Problem
When creating a view using format "media player" or "media player advanced", the media player displays without content.
Work Around
If I change the format to "Unformatted List" and insert the player in the fields, I receive the appropriate query results. The problem being that if results is n>1, I get multiple media players on the same page which is not what I want.
I use the same presets for both formats. I've tried this on multiple pages, in blocks, in and out of panels all with the same results. I do not use the media module as I cannot get it to work reliably with video formats, even without MediaFront in the picture... the media module code doesn't seem ready for prime time yet. Thoughts?
PS... watched the Dallas Drupal presentation on YouTube many times.. helped immensely and only difference I could see is that I am not using the media module.
Comments
Comment #1
enjoylife commentedI recently set up a view with MediaFront. My view does not use the Media module.
I have used MediaFront for many months without Views. I loaded each video into a single node in my node type named "Video". So I had multiple video nodes with one video displayed on each node. You will need to have video nodes in order to display videos in a View.
I'm including a full list of steps for anyone else having problems with set-up. But skip steps according to where you are in set-up.
1. Install MediaFront and Views.
(You'll also need to install Chaos Tools and Advanced Help because Views won't work without these.)
2. Create a MediaFront preset.
In Template settings, select default.
(See "installation" and "set-up" at http://www.mediafront.org/documentation/drupalmediafront-osm-cms-integra...)
3. Create a node type for videos.
This node type needs a title, a File field, and a Media Player field.
(See steps 1-4 at http://www.mediafront.org/documentation/drupalmediafront-osm-cms-integra...)
4. Create a view.
(See step 5 of the link in #3.)
If you already have successfully loaded more than one video into two separate video nodes, then those videos should appear in your View.
Comment #2
philosurfer commentedit only works for the default player. the other players do not work.
For the other players to work, you have to use a view to create a playlist, then link that player to a media player block.
Unless someone else has another way to make this work. It is a shame the Shockplayer doesn't work with a view.. I would really like to not show the playlist and be able to use the controls to switch between videos....
Comment #3
CMatters commented@ EnjoyLife: This is precisely what I did originally. I just tried it again with the same result... an empty media front player on a page. I have multiple video clips in this field type. Any other ideas?
Comment #4
enjoylife commentedYes, this only works for the default template. There's a discussion about that: #1278040: Only default template seems to work. I really think the other two templates look great too.
CMatters, were you able to successfully set-up Views with MediaFront?
Comment #5
CMatters commented@philosurfer: Sure enough, changing the template from simpleblack did the trick and my view now works as intended. Too bad the simpleblack template doesn't work in the manner... it really looks better.
Comment #6
enjoylife commentedI just saw your comment, CMatters. Are these video clips loaded into separate nodes? Or are they all loaded into one node?
Comment #7
enjoylife commentedI'm glad you were able to get it working.
Comment #8
enjoylife commentedComment #9
CMatters commentedI wouldn't call it fixed... I'd say it is a work around. To fix it would mean I could use any template I wanted... but I can't. Per comment #4 above, there is still an issue... maybe a more accurate description would be duplicate? I know, a minor nit.. but just saying it's not fixed.
Comment #10
enjoylife commentedI think the issue you were having about not getting Views to work has been resolved. But the template issues do need work. Specifically the shockplayer and simpleback templates need to be formatted to work with Views. Please change the status to whatever you think is best. I'm new to the issue queue.
Comment #11
philosurfer commentedAfter digging into the code....
The non-default players are not configured to work with views as a playlist. I think I have pinpointed the issue as just incomplete work at this point and this should stay open as an issue till its fixed.
Travis, If you need help on this... let me know I can spend some time towards this after BADcamp.
Comment #12
enjoylife commentedComment #13
enjoylife commentedI'm marking this issue as a duplicate of #1278040: Only default template seems to work. Let's focus our efforts there.
Comment #13.0
enjoylife commentedAdd comment about video tutorial