Skip to content
Mark Sch edited this page Jan 18, 2021 · 10 revisions

Welcome to the MediaEmbed wiki!

Contribute

You can run the tests locally using phpunit (the phar file, for example):

php phpunit.phar

Contributions as PR - respecting the coding standards of this project.

TODOs

  • Get embed local media working
  • Support oembed json files to get more media infos
  • Complete tests for all 100+ servives (and cleanup)
  • Optimize regex
  • Optimize attributes and params
  • Include more image() support

Missing services

  • veetle.com
  • ...

Services that are not includable

  • godtube.com (only js snippet so far)
    <script type="text/javascript" src="http://www.godtube.com/embed/source/ID.js?...></script>...
    

Roadmap and Ideas

Plugin of this, but improved, with a better API.

Also:

Check:

Basic idea for textarea input (e.g. in forum/board software):

Parse video URL and store a markdown syntax like version of it on save. Then upon display, reformat that markdown/bbcode syntax into the embedded video/audio etc.

Example:

  • https://www.youtube.com/watch?v=G-Bn_kD6QN4
  • becomes [video=youtube]G-Bn_kD6QN4[/video]
  • upon display of this markdown/bbcode board post, it will become <iframe src="http://www.youtube.com/embed/G-Bn_kD6QN4" width="100%" height="385"></iframe>

Alternative Markdown syntax to use?

http://comments.gmane.org/gmane.text.markdown.general/3049

OR

%[caption](URLs to video files)

This is the syntax for audio files:

~[title](URLs to audio files)

The percentage sign looks a little like the progress indicator on a video player; the tilde looks a bit like a waveform.

Here’s the code of the ruby library: https://github.com/rekado/rpeg-markdown

This is the code of the forked C library with the extended grammar: https://github.com/rekado/peg-markdown