Extension talk:TimedMediaHandler

Jump to: navigation, search

About this board

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
114.35.110.220 (talkcontribs)

file's page will show it.

Reply to "Database error"
Innosflew (talkcontribs)

How can I use this extension to embed YouTube and Vimeo videos and videos from other hosting services into my wiki?

Brion VIBBER (talkcontribs)

TimedMediaHandler supports only locally-uploaded video files. You can use Extension:Video I believe for externally-hosted videos.

TheDJ (talkcontribs)

Or Extension:Youtube or Extension:EmbedVideo.

Andreas Plank (talkcontribs)

Is there a way to view ogg audio files from a remote repo, eg. commons? I use MW 1.26.2, Extension:TimedMediaHandler 0.5.0 and $wgUseInstantCommons=true;. I can see Ogg video from commons but not ogg audio from commons repo. Extension:MultimediaViewer is disabled. Any hints to resolve this?

Brion VIBBER (talkcontribs)

Hmm, it should work as-is...

Andreas Plank (talkcontribs)

It works now, but the setup got a little complicated because I uses several foreign repos including commons. Another issue was that extension:TimedMediaHandler does not work presently with ForeignDBRepo (see Topic «Fatal error: Call to undefined method ForeignDBRepo::fetchImageQuery») so a setup with $wgLBFactoryConf and $wgForeignFileRepos[] was needed:

I guess, finally the mistake was the wrong repo order and its configuration

Reply to "View remote repo Ogg files?"

Player turns to the spinner

1
Summary by Cristal01

Apparently downloading a version dedicated for 1.26 worked even tho my wiki is on 1.25

Cristal01 (talkcontribs)

Hi,

I just installed the TimedMediaHandler extension and even reuploaded the Example.ogg on my website but right after the player appears on the page it turns into the spinner.

If you are fast enough you can press the play button and it will work, for a second.

Weird thing, if I place two players on the same page, the 2nd one will work properly.

Any ideas what might be causing it? I turned off my twitter plugin, disqus and adsense but none of those were the problem.

Alex Mashin (talkcontribs)

I wrote an MP3 handler to work with TimedMediaHandler (as a MediaWiki extension), based on WAV handler and extending ID3Handler. Unfortunately, under Internet Explorer 10, the player is removed on page load by some JavaScript. How can I prevent this?

This comment was hidden by 151.227.77.167 (history)
Alex Mashin (talkcontribs)

$wgEnabledAudioTranscodeSet [] = WebVideoTranscode::ENC_MP3; is not enough to make an MP3 player appear. It needs a handler and I didn't find it in handlers directory, so I wrote one.

151.227.77.167 (talkcontribs)

Ok maybe you could upload the patch to gerrit where users can look at it and find errors. and tell you if you need to edit other files to get it working.

You could try this

$wgMediaHandlers['audio/mpeg'] = 'Mp4Handler';
$wgFileExtensions[] = 'mp3';
Alex Mashin (talkcontribs)

Thank you, Mp4Handler really can handle MP3, and even under IE 10.

Andreas Plank (talkcontribs)

There is also a problem when your Mp3Handler writes an <audio> tag then it gets automatically rewritten and the tag may vanish too. But there is a setting in TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.config.php this can then be modified to not rewrite <audio> tag:

$wgMwEmbedModuleConfig['EmbedPlayer.RewriteSelector' ] = 'video,playlist';

In my case Mp4Handler did not work

Reply to "MP3 player vanishes"
Alex Mashin (talkcontribs)

Is running maintenance/runJobs.php --type webVideoTranscode the only way to run a video transcode job? Can it be called from somewhere else; if so, how can it be prevented?

Bawolff (talkcontribs)

Thats normally the only way

Reply to "Transcode job: entry point"

TimedMediaHandler directly links to file even on HTML5 browsers after upgrading

4
98.196.93.46 (talkcontribs)

I tried Firefox and Chrome with a webm file and it would just direct link to the file and give the prompt.

TimedMediaHandler used to work before I upgraded from MW 1.23 to 1.25

Can anyone help?

ComputeVictory (talkcontribs)

Additionally, I am using the REL1_25 versions of TimedMediaHandler and MwEmbedSupport

This is the log I got while trying to find the problem

processEmbedPlayers:: Do: 1 players EmbedPlayer:: addElement:: mwe_player_0 EmbedTypes::detectPlayers running detect EmbedTypes::addJavaPlayer: adding cortadoPlayer (19) EmbedPlayer::trigger:embedPlayerUpdateMediaPlayersEvent processEmbedPlayers::runPlayerSwap::mwe_player_0 EmbedPlayer: initEmbedPlayer: 800 EmbedPlayer::init:mwe_player_0 duration is: 310.294 EmbedPlayer::mediaElement:init:mwe_player_0 processEmbedPlayers::swapEmbedPlayerElement: mwe_player_0 processEmbedPlayers::trigger:: EmbedPlayerNewPlayer mwe_player_0 TimedText: init() EmbedPlayer::addPlayerElement :trigger startPlayerBuildOut:mwe_player_0 EmbedPlayer::checkPlayerSources: mwe_player_0 EmbedPlayer::setupSourcePlayer: mwe_player_0 sources: 2 EmbedPlayer::mediaElement::autoSelectSource MediaElement::GetPlayableSources mimeFilter:undefined 0 sources playable out of 2 EmbedPlayer::showPlayerError MediaElement::GetPlayableSources mimeFilter:undefined 0 sources playable out of 2 EmbedPlayer:updatePosterHTML::mwe_player_0 load.ph...214618Z (line 12976) mw.PlayerControlBuilder: addWarningBinding: EmbedPlayer.ShowNativeWarning wm: For a better video playback experience we recommend an <a href="//www.mediawiki.org/wiki/Extension:TimedMediaHandler/Client_download" target="_blank">HTML5 video browser</a>. EmbedPlayer:: setupSourcePlayer > player ready ( but with errors ) EmbedPlayer:: Trigger: widgetLoaded

ComputeVictory (talkcontribs)

Never mind I found the cause of the problem at T91431

151.225.22.50 (talkcontribs)

Hi has your problem be fixed yet. The patch was backported to the REL1_25 branch. Please could you try the latest from the REL1_25 branch.

Reply to "TimedMediaHandler directly links to file even on HTML5 browsers after upgrading"
Alex Mashin (talkcontribs)

Is line 139 of WebVideoTranscode/WebVideoTranscodeJob.php the only place that can set staus "Source not found" on transcode job?

151.227.77.167 (talkcontribs)

Hi please could you explain your problem including which MediaWiki version your using and which branch for timedmediahandler your using.

Alex Mashin (talkcontribs)

MW 1.25.2, TMH REL1_25.

My problem is that some of the transcode jobs fail with "Source not found" but may succeed next time. I inserted some code to give me debug information in the place I mentioned, but it is never called. I therefore suspect there may be another place setting the status "Source not found".

Reply to "Source not found"
93.220.206.104 (talkcontribs)

transcode_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT in the file TimedMediaHandler.sql is not standard SQL. I use postgres and had to change it to transcode_id SERIAL PRIMARY KEY.

Further, transcode_error longtext NOT NULL must be changed to transcode_error TEXT NOT NULL for postgres.

It would be nice if this extension could be made to also support postgres, as this only needs the above changes. Thanks.

151.227.77.167 (talkcontribs)

Hi yes the sql is for MySQL. Postgres is currently not supported but may be in the future.

Reply to "SQL is MySQL specific"

$wgEnableNiceBackgroundTranscodeJobs and cron

1
Alex Mashin (talkcontribs)

If I set $wgEnableNiceBackgroundTranscodeJobs = true; , should I still create a cron job to run video transcodes?

Reply to "$wgEnableNiceBackgroundTranscodeJobs and cron"