[5939] | 1 | /* |
---|
| 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
[6289] | 12 | main-programmer: David Hasenfratz |
---|
[5939] | 13 | co-programmer: |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | /* this is for debug output. It just says, that all calls to PRINT() belong to the DEBUG_MODULE_MEDIA module |
---|
| 19 | For more information refere to https://www.orxonox.net/cgi-bin/trac.cgi/wiki/DebugOutput |
---|
| 20 | */ |
---|
| 21 | #define DEBUG_MODULE_MEDIA |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | /* include your own header */ |
---|
| 25 | #include "movie_player.h" |
---|
| 26 | |
---|
| 27 | /* header for debug output */ |
---|
| 28 | #include "debug.h" |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * Default constructor |
---|
| 33 | */ |
---|
| 34 | MoviePlayer::MoviePlayer(const char* filename) |
---|
| 35 | { |
---|
[6289] | 36 | media_container = new MediaContainer(filename); |
---|
| 37 | } |
---|
[5939] | 38 | |
---|
[6289] | 39 | MoviePlayer::MoviePlayer() |
---|
| 40 | { |
---|
| 41 | media_container = new MediaContainer(); |
---|
[5939] | 42 | } |
---|
| 43 | |
---|
| 44 | /** |
---|
| 45 | * Default destructor |
---|
| 46 | */ |
---|
| 47 | MoviePlayer::~MoviePlayer() |
---|
| 48 | { |
---|
| 49 | |
---|
| 50 | } |
---|
| 51 | |
---|
[6289] | 52 | void MoviePlayer::loadMovie(const char* filename) |
---|
| 53 | { |
---|
| 54 | media_container->loadMedia(filename); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | void MoviePlayer::printInformation() |
---|
| 58 | { |
---|
| 59 | media_container->printMediaInformation(); |
---|
| 60 | } |
---|
| 61 | |
---|
[5939] | 62 | void MoviePlayer::start(unsigned int start_frame) |
---|
| 63 | { |
---|
| 64 | |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | void MoviePlayer::resume() |
---|
| 68 | { |
---|
| 69 | |
---|
| 70 | } |
---|
| 71 | |
---|
| 72 | void MoviePlayer::pause() |
---|
| 73 | { |
---|
| 74 | |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | void MoviePlayer::stop() |
---|
| 78 | { |
---|
| 79 | |
---|
| 80 | } |
---|
| 81 | |
---|
| 82 | void MoviePlayer::tick(float time) |
---|
| 83 | { |
---|
| 84 | |
---|
| 85 | } |
---|
| 86 | |
---|
| 87 | const void MoviePlayer::draw() |
---|
| 88 | { |
---|
| 89 | |
---|
| 90 | } |
---|
| 91 | |
---|
| 92 | void MoviePlayer::setSpeed(float speed) |
---|
| 93 | { |
---|
| 94 | |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | float MoviePlayer::getSpeed() |
---|
| 98 | { |
---|
| 99 | |
---|
| 100 | } |
---|
[5950] | 101 | |
---|
| 102 | const MP_STATUS MoviePlayer::getStatus() |
---|
| 103 | { |
---|
| 104 | |
---|
| 105 | } |
---|