You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file build-passport-player.php, on line 26, are two undefined vars, PASSPORT_ENABLED and $coveWindow. They appear to be placeholders for if the user is a member or not, but are never actually set anywhere.
The text was updated successfully, but these errors were encountered:
Hey @bymoulton -- that's really sample code that you'd add to your theme and customize as necessary, but here's what to do with them -- PASSPORT_ENABLED would want to be TRUE, and $coveWindow would be the derived value you'd get from the Media Manager API for the asset record -- a value of 'public', 'all_members', or 'station_members'. If you take a look at https://github.com/tamw-wnet/pbs-media-manager-wordpress I have a function in the main class, derive_asset_availability_from_asset_data(), that will do that derivation for you.
I really need to go and do more to document that script better and clean out stuff that refers to very site-specific code I have. It wouldn't be a big job at all to fix it to better refer to the object info we get directly from the Media Manager API.
@bymoulton I've added a file to the pbs-media-manager-wordpress plugin that should mostly get you a working passport player. See build-media-manager-video-player.php -- the function has NOT been tested but I think it should be pretty close.
In the file build-passport-player.php, on line 26, are two undefined vars, PASSPORT_ENABLED and $coveWindow. They appear to be placeholders for if the user is a member or not, but are never actually set anywhere.
The text was updated successfully, but these errors were encountered: