Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Xmoov: video goes back to beginning

7 replies [Last post]

Hey guys,

I really don't know what I am missing here...

I've checked my metadata, the xmoov is working properly when i access it directly, the video loads properly. it just doesn't seek...

any ideas?

sry. i forgot to post the link to my page.

www.dfwsda.org/newsite/multi.php

 
You don't need this embed element. SWFObject is fully cross-browser compliant.

<embed src="jwplayer/player.swf" width="550" height="350" allowscriptaccess="always" allowfullscreen="true" flashvars="type=http&streamer=http://www.dfwsda.org/newsite/xmoov.php&file=0002.flv" />

You are not really using the xmoov script. In fact, if you make this request in your browser:http://www.dfwsda.org/newsite/xmoov.php&file=naotardara.flv&start=0you will get back an error message stating:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>300 Multiple Choices</TITLE>
</HEAD><BODY>
<H1>Multiple Choices</H1>
The document name you requested (<code>/newsite/xmoov.php&file=naotardara.flv&start=0 -O naotardara.flv

) could not be found on this server.
However, we found documents with names similar to the one you requested.<p>Available documents:
<ul>
<li><a href="/newsite/xmoov.php">/newsite/xmoov.php</a> (common basename)
</ul>
</BODY></HTML>

You may need to adjust the file path at the beginning of the xmoov script. Normally, the script is in the same directory as your video files, so you would use:define('XMOOV_PATH_FILES', './');
Or if the xmoov script is one directory above your video files, you would use:define('XMOOV_PATH_FILES', './vod/');

You should get the xmoov script working independently of the player, so that you get an FLV file if you make the request in your browser.

Next, you need to adjust your JavaScript player embedding code. See the documentation for HTTP Streaming here: http://developer.longtailvideo.com/trac/wiki/FlashFormats#HTTPStreaming

<div id='mediaspace'>This text will be replaced</div>

<script type="text/javascript">
  var so = new SWFObject('jwplayer/player.swf', 'mpl', '550', '350', '9.0.124');
      so.addParam('allowfullscreen',     'true');
      so.addParam('allowscriptaccess',   'always');
      so.addVariable('streamer',         'http://www.dfwsda.org/newsite/vod/xmoov.php');
      so.addVariable('file',             'naotardara.flv');
      so.addVariable('type',             'http');
      so.write('mediaspace');
</script>

ummmmmm. it seems to me the xmoov is working.

I think it wasnt loading for you because tried to access

http://www.dfwsda.org/newsite/xmoov.php&file=naotardara.flv&start=0

instead of

http://www.dfwsda.org/newsite/xmoov.php<strong>?</strong>file=naotardara.flv&start=0

lol.

I have the player now in js and i still am not getting the seeking function i need... :/

any more ideas?

 
Your FLV file naotardara.flv is missing the metadata array of time/byte-position that is required for pseudostreaming FLV files. Use FLVMDI, flvtool2, flvtool, flvmeta or one of the other available tools to create and inject the metadata.

Magic: FLV
Version: 1
Has audio: no
Has video: yes
Offset: 9
--- Tag #1 at 0xD (13) ---
Tag type: Meta
Body length: 503
Timestamp: 0
* Metadata event name: onMetaData
* Metadata contents: {
    'author' => 'Dallas Brazilian SDA Church Band'
    'copyright' => ''
    'creationdate' => 'Fri Oct 02 20:56:32 2009
'
    'description' => 'The band practicing friday nights'
    'duration' => 37.866000
    'fmleversion' => '3.0.1.5963'
    'framerate' => 30.000030
    'height' => 240.000000
    'keywords' => ''
    'lastkeyframetimestamp' => 34999.000000
    'lasttimestamp' => 37866.000000
    'presetname' => 'Custom'
    'rating' => ''
    'title' => 'Band Rehearsal'
    'videocodecid' => 'VP62'
    'videodatarate' => 100.000000
    'videodevice' => 'Pinnacle 510-USB'
    'videokeyframe_frequency' => 5.000000
    'width' => 352.000000
}
Previous tag size: 514

dang it... i mustve checked the wrong file for the meta....

just out of curiosity... whats the keyframes metadata supposed to look like?

 

Magic: FLV
Version: 1
Has audio: no
Has video: yes
Offset: 9
--- Tag #1 at 0xD (13) ---
Tag type: Meta
Body length: 895
Timestamp: 0
* Metadata event name: onMetaData
* Metadata contents: {
    'author' => 'Dallas Brazilian SDA Church Band'
    'copyright' => ''
    'creationdate' => 'Fri Oct 02 20:56:32 2009
'
    'description' => 'The band practicing friday nights'
    'duration' => 37.866000
    'fmleversion' => '3.0.1.5963'
    'framerate' => 30.000000
    'height' => 240.000000
    'keywords' => ''
    'lastkeyframetimestamp' => 34.999000
    'lasttimestamp' => 37.866000
    'presetname' => 'Custom'
    'rating' => ''
    'title' => 'Band Rehearsal'
    'videodatarate' => 100.000000
    'videodevice' => 'Pinnacle 510-USB'
    'videokeyframe_frequency' => 5.000000
    'width' => 352.000000
    'videocodecid' => 4.000000
    'canSeekToEnd' => false
    'audiodatarate' => 0.000000
    'metadatacreator' => 'Manitu Group FLV MetaData Injector 2'
    'metadatadate' => Wed, 18 Nov 2009 16:17:23 Pacific Standard Time
    'keyframes' => {
        'filepositions': [
            923.000000
            75543.000000
            136419.000000
            199158.000000
            262697.000000
            326832.000000
            392038.000000
            456475.000000
        ]
        'times': [
            0.000000
            4.999000
            9.999000
            14.999000
            19.999000
            24.999000
            29.999000
            34.999000
        ]
    }
    'filesize' => 496496.000000
    'videosize' => 495535.000000
    'audiosize' => 0.000000
    'datasize' => 948.000000
}
Previous tag size: 906

thz. ill try that!