Extension talk:TimedMediaHandler

Jump to: navigation, search

About this board

Ponkabonk (talkcontribs)

I'm trying to get my first video file to play.

I've tried the following:

[[Video:Foxhat.ogv]|Video Test]]

[[File:Foxhat.ogv]|Video Test 2]]

But when clicking on either of the links, it opens the file upload page.

If I use: [[Media:Foxhat.ogv]] then it plays the video but in a full-screen player but I'd really like to be able to embed the video on the page.

I have no idea how to approach fixing this. Any help would be greatly appreciated.


Bawolff (talkcontribs)

You have an extra ]. Syntax is [[file:Foxhat.ogv]].

If its just rendering as a link, it means that the extension is not installed properly (talkcontribs)

I`am having an exact same problem, i tried everything and it simply isn`t working.

The ogg, and oga files are displayed, and played properly. But link with

[[File:sample.ogv|sample]] always opens upload files page.

Since installation is a simple unpacking of files to certain spot i doubt that any 1 can miss install it.

Reply to "Syntax for embedding a .ogv file?"
2604:2000:2440:3400:4054:F1F3:64C3:E44B (talkcontribs)

Are there any updates to the this item on the roadmap?

  • "GIF mode" for autoplay silent videos

it's something I've been wanting to try in MediaWiki for a while, and would be great to have.

Or, at least, are there ways to make an embedded video autoplay/silent/looping as individual parameters?


Reply to "Updates on GIF mode?" (talkcontribs)

Hello, I am evaluating this extension for use in my wiki. I still see this as part of the roadmap:

"Add support for mp3 uploads and audio transcoding to mp3 and ogg. ( Off by default until mp3 patents expire in 2012 )"

It's not crossed out. Does it mean that at the moment I will still be unable to use it for the mp3 files that I have uploaded in my wiki?


Jdforrester (WMF) (talkcontribs)

Hey there. This code is working in master, but you have to configure it on (set $wgTmhEnableMp3Uploads to true). Relatively soon I imagine we'll remove the disablement.

Reply to "Mp3 support?"
Scarred Sun (talkcontribs)

I currently use a shared repository wiki a la Commons to host files that should be on multiple wikis. When I upload a mp4 file to this shared repository (http://retrocdn.net/File:FinalBlasterBurningForce_MD-PCE_JP_TVAdvert.mp4) and try to use it on another site (http://segaretro.org/Burning_Force) I receive the following PHP Fatal Error:

Fatal error: Call to undefined method FileRepo::fetchImageQuery() in extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 686

Any help on why this may be happening? For the record, locally-uploaded video files to either wiki are fine.

TheDJ (talkcontribs)

This is phab:T63986. You can bypass this problem, by using ForeignDBViaLBRepo instead of ForeignDBRepo.

Nbrouard (talkcontribs)

Do you mean that we should use $wgForeignFileRepos with 'class' => 'ForeignDBViaLBRepo'?

But what if using old syntax with $wgSharedUploadPath, $wgSharedUploadDirectory etc?

T0lk (talkcontribs)

I was having this problem too. The easiest solution was switching to Extension:EmbedVideo, which met my needs.

Reply to "Interwiki breaking video display?"

This extension work with audio stream from external server?

Tartarugav (talkcontribs)

Does this extension allow you to listen to an audio stream from another external server?

You seem to me not to ...

Does anyone know if this is possible in MediaWiki?

My intention is to put this streaming: http://icecast.taina.net.br/radiosapo.mp3

with a small player to listen to in our Wiki.


Reply to "This extension work with audio stream from external server?"

Not Working - uploaded files not found

2 (talkcontribs)

Once I activate TimedMediaHandler (and MwEmbedSupport), "[[File:XXXX]]" links simply change to red as if the file wouldn't exist (previously they were ok).

Files have been uploaded correctly.

Tested on a vanilla MW 1.27.3 (LTS) with TMH 1.27 and 1.28. (talkcontribs)

Same with MW 1.29.0

Reply to "Not Working - uploaded files not found"

Unterminated string literal in file 'MediaWiki:Common.js' on line 8

Ponkabonk (talkcontribs)

OK. New question. I'm trying to play .ogg files on my site. Chrome works great but Firefox doesn't. When I press "play" nothing happens.

I see the error "Unterminated string literal in file 'MediaWiki:Common.js' on line 8" in the console for both FF and Chrome. Don't know if that's related to the problem

I've heard that Safari and IE aren't working either but I haven't verified that yet. Probably have some questions about ogv.js sometime in the future.

Ponkabonk (talkcontribs)
Kghbln (talkcontribs)

I wonder why it is not working. Since this is an extension used on WMF sites. I use the Html5mediaAudio widget via the Widgets extension instead of this one.

TheDJ (talkcontribs)

When I look at that site and use "debug=true" i see dozens of errors. It seems as if the html being served is generating incorrect links to load.php (which serves up much of the javascript and css), instead all referring to the non-existing "http://islapedia.com/?d41d8"

You'll have to figure out why it does that, because it's not normal.

Ponkabonk (talkcontribs)

I'm getting much closer. Chrome, Safari, Edge and IE all work. But, when I try to play the file in Firefox, I get the following message:

HTTP load failed with status 403. Load of media resource http://islapedia.com/images/1/10/Mike_Test_DH_1.ogg failed.

Any ideas why FF is having trouble with this file? I've tried dumping my cache and cookies and have tried a second machine. It didn't help. There may be other issues with the site but I'm only trying to get TMH working for now.


Ponkabonk (talkcontribs)

Got that one fixed. I modified .htaccess to redirect to www. when the www. is missing. No more 403 errors. But, I'm still getting the "Unterminated string literal in file 'MediaWiki:Common.js' on line 8" error and the file doesn't play. I believe it's caused by FF just stopping when it encounters that error but all the other browsers ignore the error.

Help is greatly appreciated.

Reply to "Unterminated string literal in file 'MediaWiki:Common.js' on line 8"
Summary by Kghbln

Make sure that the required database tables are being created.

Ponkabonk (talkcontribs)

Hello. I am really new to TMH to please forgive me if these questions are too basic. I've installed the extension and can play the uploaded file when looking at the recent files list. But, when I click on the file name, I am taken to a page with this message: "A database query error has occurred. This may indicate a bug in the software." I see others with a similar problem and the solution was to restart the server. But, I'm on a shared server so a restart isn't possible. Does anyone have a different suggestion or could possibly point me in the right direction?

I also get the error message when I go to Special Pages/TimedMediaHandler.

Kghbln (talkcontribs)

You need to run "update.php" after installing this extension. Otherwise the required database tables are not being created which in turn results in what you are currently experiencing.

Ponkabonk (talkcontribs)

OK. I turned on verbose SQL error reporting and found that I'm missing at least one DB table. Where can I find a DB schema for TMH? Is there a .sql file available I can run to manually create the necessary tables?

Ponkabonk (talkcontribs)

I did that. Didn't work. I found a file called TimedMediaHandler.sql which gave me the SQL required to manually create the table. Seems to be working now.

Kghbln (talkcontribs)

Usually running the script should indeed create the tables. Dunno why it was not working for you. However, glad that you managed to manually create the tables.

Scoutladen (talkcontribs)


On this article, I use the the following code.

Spirit of BP
[[Datei:spiritofbp.mp3|thumb|Spirit of Bipi]]
[[Datei:spiritofbp.mp3|thumb|Spirit of Bipi]]

The first player didn't work.

The second is fine... whats wrong for me?

Using Mediawiki 1.27.1 on Centos7

Scoutladen (talkcontribs)

Error seams to be only with .mp3

While using .ogg, everything is fine.

TheDJ (talkcontribs)

The extension doesn't really support MP3 yet. See also phab:T115170. That ticket has some patches that you might be able to use to add this functionality locally. Hopefully support will be added in the next version of the extension, since it seems the the patents for MP3 have lapsed.

Reply to "First Kaltura Player didn't work"
Anna Frodesiak (talkcontribs)

It is dark text on black and really hard to see. Can we do something about that? Could we get the text in a nice, bright yellow? ~~~~

Reply to "Options menu colours"