First off, I'm very excited about this project. +1 to the authors for taking the initiative on this!! Second, I'm hoping the authors may be able to give me a pointer or two before I dive in and perhaps develop a new OSM template. Something along the lines of "use node-display: none" somewhere.
My goal is to create a small player with a playlist out of the OSM player with 1) Track Info 2) pause/play button 3) next/previous buttons 4) track progress indicator. I could turn on the "Controller only" option, but then users can't go to the next track or see the meta info of the track. I could select the "Playlist only" option, but then users can't see the track progress or the play/pause button. By not selecting either options I get the node display which I don't need.
Approach 1 - Two Presets combined
I have achieved close to my requirement by combining two presets, one with controller only set, and the other with playlist only set and "Make this preset the Playlist for:" set to the Controller only preset, placing both of these presets in blocks using Views, and then targeting those blocks to the same page(s)/region. This approach has three problems: 1) The player and playlist are visually seperated. 2) You cannot control the width of presets when they are set to Playlist only AND have Playlist Orientation: Vertical. 3) There are no controls for the formatting of playlists so unwanted pictures may show up.
In osm_mini_player_two_presets_combined.png you can see the results of Approach 1 except with Playlist Orientation set to Horizontal so I could control the width of the playlist.
Approach 2 - Fudge it with one preset, don't use "Playlist Only" or "Controller Only"
By setting a preset to be fairly small we almost get the desired effect. See osm-miniplayer.png. The problem here is the playlist and the node info are colliding in the center.
My guess is what I need to do is create a new OSM Player template. I see the authors have posted some docs on how to do that here: http://www.mediafront.org/documentation/mediafront-osm-cms-integration/o...
Approach 3 - Use an OSM template
??
Comment | File | Size | Author |
---|---|---|---|
osm-miniplayer.png | 45.03 KB | R.J. Steinert | |
osm_mini_player_two_presets_combined.png | 20.67 KB | R.J. Steinert |
Comments
Comment #1
travist CreditAttribution: travist commentedrjstatic,
Thanks for the detailed post. What you are trying to achieve is something that I am working like crazy on as we speak. Allow for easier templating. Right now, it is kind of a nightmare, so I would just suggest wait until I have the updated player out sometime within the next two weeks ( hopefully a beta out by this weekend ). Along with the update, I am including a new simple template where I just use CSS and HTML to build a new player look and feel. I think this is what you are after, and looking at a different template might be a big help.
Thanks for your patience. I will keep you posted.
Travis.
Comment #2
travist CreditAttribution: travist commentedI just made a massive upgrade to the media player. Along with this upgrade is a new template called SimpleBlack that should help you create whatever template you would like. Please use it as a reference. Let me know if it helps.
The DEV version should be available tomorrow.
Comment #3
R.J. Steinert CreditAttribution: R.J. Steinert commentedI just played around with RC3 and enabled the Simple Black template. That's a very nice looking player :). Unfortunately it fails to load anything :(. Looking at the OSMTemplate class I see I can add playlists to a template file. I'll keep playing around with it.
Comment #4
R.J. Steinert CreditAttribution: R.J. Steinert commentedI've decided to start from the default template. Initial renaming is done but the template is breaking my test preset.
https://github.com/rj-steinert/osm-player-template-mini
Comment #5
R.J. Steinert CreditAttribution: R.J. Steinert commentedA playable of my "Approach 1" can be seen at http://rockthebike.com/music
The example uses dev code from 2010-12-09. RC3 renders the playlist unable to play.
Comment #6
travist CreditAttribution: travist commentedrjstatic,
Just commited a change that most likely would have fixed this issue. Please try the DEV version tomorrow. If it works, then I will submit a new release candidate.
Thanks,
Travis.
Comment #7
R.J. Steinert CreditAttribution: R.J. Steinert commentedSupport for this from my client just got pulled. Sorry :(.