Просмотр исходного кода

clarify license information

tags/vichan-4.4.98
ccd0 10 лет назад
Родитель
Сommit
37887abfd4
9 измененных файлов: 21 добавлений и 4 удалений
  1. +8
    -4
      README.md
  2. +3
    -0
      expandvideo.js
  3. +2
    -0
      matroska.php
  4. +1
    -0
      player.php
  5. +1
    -0
      playersettings.js
  6. +1
    -0
      playerstyle.css
  7. +2
    -0
      posthandler.php
  8. +2
    -0
      settings.js
  9. +1
    -0
      videodata.php

+ 8
- 4
README.md Просмотреть файл

@@ -1,14 +1,13 @@
This project is an effort to enable imageboards to host small video clips. With modern video compression, it's possible to share much higher-quality videos in a few megabytes than the with animated GIF files.
This project is an effort to enable imageboards to host small video clips. With modern video compression, it's possible to share much higher-quality videos in a few megabytes than what you can do with animated GIF files.

The software here extends [Tinyboard](http://tinyboard.org/) to display metadata and create pseudo-thumbnails for WebM video files. It is intended to work on very basic web hosting services, including any hosting service that can run Tinyboard. In particular, it does not depend on any video conversion software such as FFmpeg. For this reason, it cannot create true thumbnails, but uses pseudo-thumbnails consisting of a single frame extracted from the video.
The software here extends [Tinyboard](http://tinyboard.org/) to display metadata and create pseudo-thumbnails for WebM video files. It is intended to work on very basic web hosting services, including any hosting service that can run Tinyboard. In particular, it does not depend on any external video conversion software such as FFmpeg or Libav. Rather, it parses the video container to extract a single frame from the video to use in place of a thumbnail. If you can run FFmpeg or Libav on your server, it's a good idea to modify this code to use those tools to create true thumbnails; in the future, an option will be added to enable this.

A board using this code can be found at:
http://containerchan.org/tb/demo/

Be aware that this is beta software. Please report any bugs you find.

The modified Tinyboard templates (post_reply.html and post_thread.html) are subject to the Tinyboard licence (see LICENSE.md). The portions of this software not derived from Tinyboard are released into the public domain.

Much of the code is not specific to Tinyboard, and you are welcome to use it in your own projects. See the [core](https://github.com/ccd0/containerchan/tree/core) branch for a version without material from Tinyboard.

Installation
------------
@@ -45,3 +44,8 @@ And add this to stylesheets/style.css:
top: 1em;
right: 1em;
}

License
-------

See [LICENSE.md](https://github.com/ccd0/containerchan/blob/master/LICENSE.md).

+ 3
- 0
expandvideo.js Просмотреть файл

@@ -1,3 +1,6 @@
/* This file is dedicated to the public domain; you may do as you wish with it. */
/* Note: This code expects the global variable configRoot to be set. */

function setupVideo(thumb, url) {
var video = null;
var videoContainer, videoHide;


+ 2
- 0
matroska.php Просмотреть файл

@@ -1,4 +1,6 @@
<?php
/* This file is dedicated to the public domain; you may do as you wish with it. */

// Information needed to parse an element type
class EBMLElementType {
public $name;


+ 1
- 0
player.php Просмотреть файл

@@ -1,4 +1,5 @@
<?php
/* This file is dedicated to the public domain; you may do as you wish with it. */
$params = '?v=' . urlencode($_GET['v']) . '&amp;t=' . urlencode($_GET['t']);
$loop = ($_GET['loop'] != "0");
?><!DOCTYPE html>


+ 1
- 0
playersettings.js Просмотреть файл

@@ -1,3 +1,4 @@
/* This file is dedicated to the public domain; you may do as you wish with it. */
if (window.addEventListener) window.addEventListener("load", function(e) {
document.getElementById("playerheader").appendChild(settingsMenu);



+ 1
- 0
playerstyle.css Просмотреть файл

@@ -1,3 +1,4 @@
/* This file is dedicated to the public domain; you may do as you wish with it. */
body {
background: black;
color: white;


+ 2
- 0
posthandler.php Просмотреть файл

@@ -1,4 +1,6 @@
<?php
// Glue code for handling a Tinyboard post.
// Portions of this file are derived from Tinyboard code.

function postHandler($post) {
global $board, $config;


+ 2
- 0
settings.js Просмотреть файл

@@ -1,3 +1,5 @@
/* This file is dedicated to the public domain; you may do as you wish with it. */

// Default settings
var defaultSettings = {
"videoexpand": true,


+ 1
- 0
videodata.php Просмотреть файл

@@ -1,4 +1,5 @@
<?php
/* This file is dedicated to the public domain; you may do as you wish with it. */
require dirname(__FILE__) . '/matroska.php';

function matroskaSeekElement($name, $pos) {


Загрузка…
Отмена
Сохранить