Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0mediaplayer stops/starts everytime when I do postback or navigate to another page.mediaplayer stops/starts everytime when I do postback or navigate to another page.
Previous
 
Next
New Post
6/18/2010 2:55 AM
 
Hi Etienne Richard,

where did you put the player? in a pane?  how did solve the postback function?

thanks

mesut
 
New Post
6/18/2010 11:10 AM
 
If your site is as follows (what you have tried):

<start page (body)>
<!-- player iframe -->
<iframe></iframe>
</end page>

Each time you navigate to another page, the whole page is unloaded, including the iframe with your player, and the music stops. When another page is loaded, the iframe is loaded back, the music starts again.

What you need is make sure the music player is never unloaded when you navigate from page to page. The only way is to make sure the player is not defined / embedded in the page (even with an iframe -- using an iframe will not change anything, the player will still be unloaded if embedded in the page).

The solution is to use frames at the top level, one for the website and another for the music player. This way, when you navigate the site, the frame with the music player is not unloaded and the music does not stop.

<frameset>
<frame>WEBSITE (frame source should be something like /Home.aspx)</frame>
<frame>MUSIC PLAYER</frame>
</frameset>

You can wrap this in a DNN skin and apply this to your home page.
 
New Post
6/21/2010 11:18 AM
 
Hi Richard,

Ok. I got it. I made a test in plain HTML and ASPX and indeed the code  player doesn't stop on any navigation.

but where do I put the Frameset / frame Website in dotnetnuke? I mean in portal/0/skins/MinimalExrptoy/index.ascx  is not the good place because it postback.
I tried in root Default.aspx and I player is not shown. so I think this is also not the right place.


SO I understand the idea, but where and which code in DNN do I need to change?  which usercontrol/page?

So the player should shown e.g. 30px height on all pages....

thanks,

mesut

 
New Post
6/21/2010 12:18 PM
 
Hi,

You will need to place the frameset in a new skin and apply this skin to your DNN homepage.

As a quickstart, you can use the MinimalExtropy and strip / adjust it:

- Copy the MinimalExtropy folder to a new folder in the skins folder
- Edit the index.ascx file and put your frameset there
- Apply this skin to your home page
 
New Post
6/22/2010 7:09 AM
 
Hi Richard,

thank you for answering... I think you guide me right place. I tried as you suggested but I I don't get the frames working below. I've added the mediaplayer in a frame and DNN code on other frame. But mediaplyer is not shown.... Below I copy my index.ASCx file... I've use default DNN skin (index.ascx) I've delete a lot of code to make it easy for you to read. 

The code below is not well formatted because I deleted a lot of stuff before I copied in this forum, because of easy overview... But it's default DNN skin I use. just added the Frames + media player....

What's wrong with the frameset below...?

thanks for your help,

mesut 

<%@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TAGS" Src="~/Admin/Skins/Tags.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LINKS" Src="~/Admin/Skins/Links.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.ascx" %>

<frameset border="1" frameborder="1" framespacing="0" cols="30%,70%">
            <frame src="http://www.hadisfm.com/_Backupsite/Player1/Player1/styx_wmp9_red2/player.html" name="aac+plus" frameborder="0" scrolling="no">
</frame>

<frame>
        <div id="s_wrap_main">
        <div id="s_wrap_sub">
        <div class="template_style">
        <div class="cpanel_left">
        <div class="cpanel_right">
        <div runat="server" id="ControlPanel">
        </div>
        </div>
        <div>
        </div>
        </div>

        <div id="login_style" class="user">
        <dnn:USER runat="server" id="dnnUSER" CssClass="user" />&nbsp;&nbsp;|&nbsp;&nbsp;<dnn:LOGIN runat="server" 
        id="dnnLOGIN"  CssClass="user" /></div>
        <div class="clear_float"></div>
        </div>
        </div>
        </div>
        <div class="content_width">
        <div runat="server" id="TopPane" class="TopPane">
        </div>
        <div class="menu_style">
        <dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="false" 
        ControlOrientation="Horizontal"         CSSControl="mainMenu" />
        </div>
        <div class="clear_float">
        </div>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
             <td valign="top" id="LeftPane" class="LeftPane" runat="server">
        </td>
        <td valign="top" id="ContentPane" class="ContentPane" runat="server"></td>
        <td valign="top" id="RightPane" class="RightPane" runat="server"></td>
        </tr>
        </table>
            <div runat="server" id="BottomPane" class="BottomPane">
              </div></div></div></div></div></div></div></div></div>
           <dnn:STYLES runat="server" id="StylesIE6" Name="IE6Minus" StyleSheet="css/ie6skin.css" Condition="LT IE 7" UseSkinPath="true" />

</frame>

</frameset>

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0mediaplayer stops/starts everytime when I do postback or navigate to another page.mediaplayer stops/starts everytime when I do postback or navigate to another page.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out