Closed (fixed)
Project:
MediaFront
Version:
7.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2010 at 18:16 UTC
Updated:
30 Jun 2012 at 00:20 UTC
Hello, I followed your installation guide, and created a page display view.
I can see my 10 videos (emfield youtube) view with a good playlist and I can play them.
But if I log out and watch this page as an anonymous user, the player won't display any image or video. Just black screen and the "waiting" circle.
Comments
Comment #1
travist commentedSounds like a permission issue. Please make sure that you have enabled the "view" CCK permissions for you emfield within the Permissions section for your anonymous users and try again. Let me know if that works.
Thanks,
Travis
Comment #2
Cero commentedI thought that before but I don't have set content permission for this emfield.
If I leave another display type (table, unformatted etc) in the view, the fields are displayed.
I granted to anonymous users the "access all views" permission, but still no solution..
Comment #3
travist commentedAre you using the Services module? Try changing the "Communication Protocol" within the "Other Settings" of your preset to just say "AJAX ( json )". This will skip over any Services calls and may make your player work for non-anonymous users.
Let me know if that works.
Travis.
Comment #4
Cero commentedNo, I'm not using the Services module.
I upgraded to beta 2 and still not working for anonymous..
Too bad, I really like this module :(
It's a only-me problem or have you seen it too?
Comment #5
travist commentedI have heard before of there being an issue with the player not working without Services. Please do the following...
Open up FireBug in Firefox and refresh your page ( make sure you have the console enabled ). Copy and paste what you see in the console into your reply.
This will tell me what is going on...
Thanks,
Travis.
Comment #6
benlotter commentedI'm having the same issue: anonymous user can't view videos. I haven't yet enabled services since I'm still learning the module and always test things from the bottom up. I only have MediaFront and OSM player modules enabled.
I'm using 2 filefields (1 for the video, 1 for the image) and 1 preset assigned to a view. So far I only have 1 node in the view.
I have the following permissions enabled for anonymous but I still can't get it to play:
access content
access all views
Here's the output from Chrome's firebug extension (as anonymous with no video play):
Here's the output from Chrome's firebug extension (as admin with video play):
This is the error from IE.
Comment #7
benlotter commentedI just tried this workaround: changed Other Settings -> Communication Protocol to AJAX (json). The anonymous user can now view the video fine. Thanks for the workaround.
Comment #8
travist commentedI just checked in a fix for this into CVS. Basically what I am doing is just checking to see if you have the Services module installed. If not, then it will just force to use the JSON communication to the server and not XMLRPC.
I would try the next DEV version found at http://drupal.org/node/774970.
Make sure you download the version that is built AFTER May 1, 2010 - 07:20. As of writing this comment, this has not been built yet.
Comment #9
travist commentedComment #10
Cero commentedYes now it's visible to anonymous. Thank you
Comment #12
benlotter commentedLooks like this one auto-closed but it's still an issue. I just recently updated to 6.x-1.0-rc7 and when using the Auto setting, the anonymous users cannot see the video. One has to know to dig into the settings and change this to Ajax. I was trying to troubleshoot permissions (again) until I remembered this thread.
Having no idea what any of these settings actually do, may I humbly suggest the following workaround? Change the default setting to Ajax ( JSON ) since that works for both logged in and anonymous users, at least until the Auto setting can be fixed.
Comment #13
benlotter commentedWhen the MediaFront module first came out (or any new module for that matter), I always install the minimum to get it working and then ramp up from there as my knowledge of the module increases. Recently, I decided to try enabling the Services module again but even with the documentation (http://www.mediafront.org/documentation/drupalmediafront-osm-cms-integra...) I can't make it work. All it does is prevent anonymous users from seeing the videos. What am I missing? I followed everything in the documentation except where it mentions Access Services permissions because I don't have that option on the role permissions screen.
The best I can tell is the Services is supposed to allow remote access to a feature on your site. Why do I need that if I just want visitors to see the videos and play then on the site? All, I'm trying to do right now that I can't get working is allow people to play the video in any browser, including mobile.
Comment #14
travist commentedBen,
Sorry for all the trouble. The Services module should only be used if you wish to enable voting on the Media Player. Since the Services module is constantly changing, I would actually recommend just using the Communication Protocol ( JSON ) within your presets Other Options. This will completely bypass any Service calls and only use JSON as the primary form of communication.
I hope this is helpful.
Thanks,
Travis.
Comment #15
robotcake commentedI using the newest dev version and ajax(json) setting, but still can't let user other than admin see the video...
Edit: Solved, which is related to the permission issue, will try the service later as well. Thanks!
Comment #16
choosedrupal commentedThis solved it for me. I turn on "Access block refresh content" in permissions.
Comment #17
voughndutch commentedi have the content access module enabled. fixed it under the access content tab for my video content type
Comment #18
travist commentedComment #20
egrotke commentedHaving this problem now in version 7.
Here is the error I get in Firebug when logged out:
jQuery("#mediafront_my_video_preset").mediaplayer is not a function
[Break On This Error]
...umeUpdate:"#mediafront_my_video_preset_mediavolumeupdate",volumeBar:"#mediafront...
Also, in the current version there is no communication Protocol setting under "Other settings" in the media front presets.
Has this been moved or removed?
I.E. this: "Other Settings -> Communication Protocol to AJAX (json)"
Also have content access module enabled and view all content checked for all roles for my video content type here:
admin/structure/types/manage/video/access
Comment #21
pkchoo commentedI'm having the same problem. I'm not sure when this problem occurred because I've been using Mediafront for a while now on Drupal 7 and haven't come across it till now. Maybe because I'm usually logged in and nobody has brought this to my attention.
The last version I was using before I upgraded was 7.x-1.3.
I have a mediafront block set up with a grid view linked to it. The player initially displays fine, but when I navigate away from the page and return, the player is broken (no player is visible, just the player text and spinning ball icon).
If I refresh the site cache, the player becomes visible again and works normally, but when I navigate away from the page again and come back, it's broken again.
I did update quite a few modules (which makes it a little hard to track down) on this site and everything appeared to be working fine along the way, except for this issue :(.
-Joe
Comment #22
pkchoo commentedOk. I discovered that if I turn "cache blocks" on (Home » Administration » Configuration » Development) the player block for my view breaks and does not play. When I disable it and reload it works fine.
-Joe
Comment #23
enjoylife commentedEgrotke, did Joe's answer fix your problem?
Comment #24
enjoylife commented