PDA

View Full Version : My Mezzmo Website - Play Audio Files in DIV / FRAME player



homertino
06-05-2019, 04:04 AM
I just started listening to audio using My Mezzmo Website on my desktop at work and it works great. However, when playing a song you cannot browse files without the music stopping to load another page. It would be nice if the website played audio files in a sticky DIV layer or iFrame player (fixed position at the bottom of the screen) so we can still browse files while the audio plays. I noticed that the Mezzmo Android app functions this way so hopefully it is an easy update to add.

I used to listen to my music through Microsoft Groove with all of my files stored on OneDrive. Groove recently removed the ability to play music stored on OneDrive so I decided to add all of my music to my Mezzmo server (which I previously only used for video.)

The Mezzmo Website would be a great replacement to Microsoft Groove for my music needs if it played tracks and allowed us to also browse music at the same time.

Peter
06-05-2019, 08:58 AM
As a workaround you can open the library in a new tab to browse or open the player in a new tab so that you can leave the music playing in a tab while you browse in the other tab.

homertino
06-06-2019, 03:36 AM
As a workaround you can open the library in a new tab to browse or open the player in a new tab so that you can leave the music playing in a tab while you browse in the other tab.

That doesn't work since "CTRL+click" does not function correctly in a Mezzmo website the way it is coded.

Even if that did work, it would become a real pain having to always open a song in a new tab. When we wanted to switch songs, we would have to close the first tab and then start a new song in a another new tab. It is definitely not the ideal situation.

I am a full time web developer / software engineer and would be happy to supply code for free that can remedy the problem and clean up the look of the Mezzmo Generated Websites. I am a big fan of Mezzmo and have been using it for years. :cool:

Peter
06-06-2019, 09:12 AM
The current Mezzmo beta supports overriding the css and js used in the Mezzmo Web Access so this allows modifying the look and feel somewhat but the html is generated in the server so it is not easy to customize this. Please send an email to support [at] conceiva [dot] com and we can send you the beta and we can also try modifying the player to make it allow browsing while playing. Possibly we could make a new window or tab open for the player?

homertino
06-06-2019, 10:31 AM
WORKAROUND FIX (TEMPORARY)

In the website's HTML, adding a TARGET parameter to the <a> link will open the link in a new window...

<a name="L1" class="item_a" href="/web/taz1l0z5l33l385zal8496xfba9?sid=1122880155&amp;rel=1&amp;r ef=1&amp;mode=info" target="_blank"> <div class="item_i"> <img width="120" align="left" class="icon_i" alt="Image" src="http://ip:53169/get/jl1251xdf05?sid=1122880155" border="0" vspace="6" hspace="16"> </div></a>

The downside to this fix is that it will open a new window on EVERY file you click (video & audio). Ideally we would want only audio files to open in a new window.

------------

Is there an identifier in the software that would tell us what type of media a file is ? I can't see anything that distinguished the file types in the HTML or JAVA.

------------

All I noticed in the javascript, h_web_js_basic.js, is that there is a parameter for mode.

if (hdr && lnk && lnk.href) { url = (lnk.href).replace('&mode=info','&mode=play'); }

Perhaps we can include a new parameter for file type as well. That would allow for a re-write of the link based on what type of file it is. If the link is customized to an audio file then we can open it in a new window or even better yet, a different audio player altogether witin an overlay. We would just have to make sure that when a video file is played it closes the audio overlay before playing the video regularly.

------------

I'll send you an email a bit later and we can discuss more.

Peter
06-06-2019, 12:23 PM
In code code when generating the listing for an audio item we know if it is audio or video so for audio we could launch it in a new tab or window.