User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Displaying duration of a directx object.

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Displaying duration of a directx object.

    I'm trying to create my own controls for a directx object that will show a video, specifically a trackbar so the user can slide it along and the video will fast forward or reverse along with it.

    I'm taking this one step at a time and the first thing I want to do is show the duration of the loaded video, but I'm having a little difficulty. I've created a string object and i'm using the Following:

    GetDuration( "Direct Show" )

    Which I assume will get the length of the video loaded in, but I can't get the text object to display the duration. I tried using the following:

    val(GetDuration( "Direct Show" ))

    But it gives an error: "Mixed string and numbers". How to I get the string object to display the duration? Or are there any other objects that would allow me to display the duration? Any help appreciated.

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    str$(GetDuration("Direct Show")) i'd imagine

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    Val() is for converting a string to a value.

    Str$() is for converting a value to a string.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    Already tried that

    Get the error "Please enter a numeric expression".

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    www.dingdongstudios.co.nr
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    xyzzy has to be right :/

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    Are you sure you are setting the alterable string and not the paragraph number?

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeň, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    Str$(GetDuration( "Direct Show" ))
    This works fine for me.. just tried it!

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    I wonder why it's giving me the error when I 'Check current expression'.


  9. #9
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,826
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Displaying duration of a directx object.

    Did you try it without the str$()?
    The number of the paragraph would be a value not a string.

  10. #10
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Displaying duration of a directx object.

    Are you sure you are setting the alterable string and not the paragraph number?
    Ahh, thanks Jamie, now I see it's asking for a paragraph, I assumed it was just displaying text. Do I have to set an alterable string / value somewhere and read that in?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [RC5 BUG] List Object still not displaying properly
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 9
    Last Post: 5th March 2013, 05:30 PM
  2. Standard vs. DirectX vs. DirectX+VRAM
    By The_Geohound in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 31st January 2011, 10:25 AM
  3. DirectShow-Object and duration of music files
    By Quinto in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th August 2007, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •