realbasic-nug
[Top] [All Lists]

Re: Detecting if a movie is playable

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Detecting if a movie is playable
From: Jean-Luc Arnaud <jean-luc@cdmultimedia.fr>
Date: Tue, 30 Mar 2010 15:01:39 +0200
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <c32bad251003300509o3f0d99aj165afb682a6bd7df@mail.gmail.com>
References: <p06240803c7d6113beea5@62.161.36.122> <p06240800c7d7554aa0e5@62.161.36.122> <c32bad251003300509o3f0d99aj165afb682a6bd7df@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thanks a lot for your help, William.

It seems so obvious ...

Jean-Luc

On Tue, Mar 30, 2010 at 12:16 AM, Jean-Luc Arnaud
<jean-luc@cdmultimedia.fr> wrote:
 I got the solution by my own : the movie is not playable when the
 movieplayer.duration=0, given that the movie object is not nil.

 Do you agree with that?

In my movie player app I have...

  dim m As Movie = pFile.OpenEditableMovie
  if m <> nil then
    dim w As New MovieWind(pFile, m)
  else
    MsgBox "no movie?"
  end

I've been using the app for several months and new windows always have
a playable movie, otherwise I get the msgbox. Also the LR says "Nil is
returned if the movie can't be read." for both OpenAsMovie and
OpenEditableMovie.

Testing for nil should work... but I've never had a 0 duration movie. -w

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>