Adding tracks to video player

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/12/2012 9:33:08 AM
Gravatar
Total Posts 15

Adding tracks to video player

I am trying to add tracks to the video player, every time i click add track it gives me an error page saying it could be just a hiccup and gives me a link to the home page.

It is after I select the uploaded file then click add.

mojo version 2.3.8.1

mssql 2005

Not sure which version of windows, its on a host.

5/12/2012 10:53:59 AM
Gravatar
Total Posts 15

Re: Adding tracks to video player

I just updated to latest version of mojoportal to see if would fix the issue.

Now every page gives the error screen as soon as I log in.

  We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

Is there a place this error log is that I can review it?

5/12/2012 11:09:49 AM
Gravatar
Total Posts 18439

Re: Adding tracks to video player

Hi,

Start with Basic Troubleshooting to find out the error details.

Hope that helps,

Joe

5/12/2012 11:36:11 AM
Gravatar
Total Posts 15

Re: Adding tracks to video player

I worked out the issues I had with the site after the upgrade, it had to do with my machine key in the web config i think. I had changed the sql connection in the user config but had not changed the machine key in web config, after doing that site log in worked.

 

However the video player page still does not work.

 

No Matching Video File Extension Found

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: No Matching Video File Extension Found

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: No Matching Video File Extension Found]
mojoPortal.MediaPlayerUI.VideoPlayer.SetupScripts() +1158
mojoPortal.MediaPlayerUI.VideoPlayer.Page_Load(Object sender, EventArgs e) +89
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

5/12/2012 11:38:53 AM
Gravatar
Total Posts 15

Re: Adding tracks to video player

I had tried 2 different file types, flv and mp4.

5/13/2012 6:28:14 AM
Gravatar
Total Posts 18439

Re: Adding tracks to video player

Hi,

The problem is the mime types are not registered on the server. If you look in the Web.config file, you'll find that there is a commented out <staticContent section that has the mime types. Uncommenting this section "may" solve the problem, but depending on other factors may also cause an error. I would try uncommenting it but be prepared to comment it back out if that does cause an error.

Note that in verison 2.3.8.5 there is one entry in that section like this:

<mimeMap fileExtension=".m4v" mimeType="video/m4v" />

subsequent to the 2.3.8.5 release one user has told me they needed to change that to:

<mimeMap fileExtension=".m4v" mimeType="video/mp4" />

If registering mime types by Web.config causes errors then comment it back out and look in your hosting control panel and see if they have something there that allows you to add mime types, if so you can add them there, if not you may need to contact your host for help in getitng those mime types registered.

On my server I was able to uncomment that section in Web.config and it solved the problem for me but others have reported errors when doing that, it may vary by operating system and security policy on the server whether you are allowed to register mime types by Web.config

Hope that helps,

Joe

5/13/2012 6:37:34 AM
Gravatar
Total Posts 18439

Re: Adding tracks to video player

You may also need to rename the .mp4 video to .m4v 

See also additional notes about media encoding for jPlayer

5/13/2012 3:24:59 PM
Gravatar
Total Posts 15

Re: Adding tracks to video player

I am able to get a mp4 tyo play not but if I try and edit the player I get this error.

 

An item placeholder must be specified on ListView 'FileListview'. Specify an item placeholder by setting a control's ID property to "itemPlaceholder". The item placeholder control must also specify runat="server".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: An item placeholder must be specified on ListView 'FileListview'. Specify an item placeholder by setting a control's ID property to "itemPlaceholder". The item placeholder control must also specify runat="server".

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: An item placeholder must be specified on ListView 'FileListview'. Specify an item placeholder by setting a control's ID property to "itemPlaceholder". The item placeholder control must also specify runat="server".]
System.Web.UI.WebControls.ListView.GetPreparedContainerInfo(Control outerContainer, Boolean isItem, Int32& placeholderIndex) +446610
System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +67
System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +776
System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +33
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
System.Web.UI.WebControls.ListView.PerformSelect() +57
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

5/14/2012 7:56:49 AM
Gravatar
Total Posts 18439

Re: Adding tracks to video player

Hi,

What version of .NET are you using? You can find out from Administration > System Information.

I'm not able to reproduce this problem. When I research the error I find it should only happen if you are using a <LayoutTemplate> with ListView then you need to specify an itemPlaceholder. We are not using a LayoutTemplate so this error should not happen and does not happen for me.

However I can add a LayoutTemplate and an itemPlaceholder without causing any problems so maybe you can try that on your end and see if it solves the error.

Edit the file /KDMediaPlayer/Edit.aspx with a text editor, look for this inside the mojoGridView:

<asp:ListView ID="FileListview" runat="server">
<ItemTemplate>
<%# Eval("FilePath") %>
</ItemTemplate>
<ItemSeparatorTemplate>
<br />
</ItemSeparatorTemplate>
</asp:ListView>

and add a layouttemplate so it looks like this:

<asp:ListView ID="FileListview" runat="server">
<LayoutTemplate>
<asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
</LayoutTemplate>
<ItemTemplate>
<%# Eval("FilePath") %>
</ItemTemplate>
<ItemSeparatorTemplate>
<br />
</ItemSeparatorTemplate>
</asp:ListView>

Let me know if that solves it.

Hope that helps,

Joe

5/14/2012 3:43:51 PM
Gravatar
Total Posts 15

Re: Adding tracks to video player

Hi Joe,

v2.0.50727 for the .net

Setting that layout code you posted made the error go away.

Thanks for the help.

5/15/2012 7:29:08 AM
Gravatar
Total Posts 18439

Re: Adding tracks to video player

Thanks. I'm not sure why that is needed in some installations and not others but I have made the same change so it will be in the next release.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.