Help with ebook chapter 1 playing the video.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
apprentice12
Posts: 8
Joined: Fri Mar 28, 2014 2:47 pm

Help with ebook chapter 1 playing the video.

Post by apprentice12 » Sat Apr 26, 2014 3:06 pm

So i have been trying to play the video. Following the instructions

on openCard
play videoClip (specialfolderpath("desktop")&"/ebook/Video/Intro.mp4")
end openCard

on playStopped
go to the next card
end playStopped


(I've only changed the folder name on my desktop from Bitterrevenge to ebook)

I've read that there are some bug issues with various livecode versions .
So i tried with livecode.6.6 - 6.7 6.5 but still with no result. Any help ?

Is there some problem with the code?

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Help with ebook chapter 1 playing the video.

Post by MaxV » Wed Apr 30, 2014 2:49 pm

First of all play video works only on mobile device like Andorid or iOS, you can't see anything on a PC. On a pc you have to use a player (you found it in the tool window under slider and scroller)
Second, your code on a mobile device should be:

Code: Select all

on openCard
put specialFolderPath("engine") & "/ebook/Video/Intro.mp4" into tVideoFile
play video tVideoFile
end openCard
On mobile you have just the following folders paths:
  • engine - The (virtual) path to the engine and its assets.
  • documents - The path to a folder that can be used for per-application data files.
  • cache - The path to a folder that can be used for transient per-application data files.
(iOS has some one more)


Third, playerstopped works only on iOS.

When you write your code activate Documentation tab and click on Full document, this way you can see code documentation during typing!!! :D
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help with ebook chapter 1 playing the video.

Post by jacque » Wed Apr 30, 2014 6:19 pm

Actually, the script is correct and should work fine on desktop. I think MaxV missed the "videoclip" terminology, which refers to desktop videos.

The problem is likely the format of the video you are trying to play. Videoclips must be in QT, avi, or MPEG format, mp4 files won't work. Try the test with a video file in one of the supported formats.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

ericleesmith
Posts: 10
Joined: Mon Jan 05, 2015 11:28 pm

Re: Help with ebook chapter 1 playing the video.

Post by ericleesmith » Tue Jan 06, 2015 12:41 am

I too cannot get the video to run - the sound runs fine, but not the picture. I'm on a Mac following the exact instructions for the E-Book Academy. The line of code is the same one at the top of this thread:

play videoClip (specialfolderpath("desktop")&"/BitterRevenge/Video/Intro.mp4")

I'm frustrated that I can't even get past what would seem to be a simple command. Ideas?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Help with ebook chapter 1 playing the video.

Post by Simon » Tue Jan 06, 2015 2:54 am

Hi ericleesmith,
Welcome to the forum!

There is a bug in some versions of liveCode
http://forums.livecode.com/viewtopic.php?f=7&t=22390

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Help with ebook chapter 1 playing the video.

Post by LCNeil » Tue Jan 06, 2015 10:55 am

Hi All,

We are aware of this issue with the latest versions of LiveCode and are looking into a fix. More info from a similar report can be found in the following bug entry-

http://quality.runrev.com/show_bug.cgi?id=13951

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

rookienr101
Posts: 4
Joined: Sun Aug 09, 2015 10:30 am

Re: Help with ebook chapter 1 playing the video.

Post by rookienr101 » Thu Oct 15, 2015 5:10 pm

Hello all
I have just started and finished the eBook lesson 1 session working on a PC - there appears to be a few differences between LC on PC and LC on PC that may relate to this issue.

You see, I found that the path used in the lesson does indeed not work on my WIN 7 and LC license version 7.0.5. Instead I copy/pasted the directory directly from my Explorer. It looked something like this:
C:\directory\...\BitterRevenge\Video\Intro.mp4

In other words, I skipped using the "specialFolderPath" and the "/" and it looks something like
play videoClip ("C:\directory\...\BitterRevenge\Video\Intro.mp4")
instead. Works like a charm for me, sound as well as video.

Cannot comment on the playMobileVideo, so it may be different here.

Can anybody confirm or comment on the validity on using the "\" instead of the "/", please?

I do not know if this is helpful to anybody. I hope so. All the best from ehre anyway.

Kind regards
Mike from Denmark

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Help with ebook chapter 1 playing the video.

Post by Klaus » Thu Oct 15, 2015 5:26 pm

Hi Mike,

1. welcome to the forum! :D

2.
rookienr101 wrote:Can anybody confirm or comment on the validity on using the "\" instead of the "/", please?
This has been discussed recently on the mailing list and althought this does work (Windows only!) it is highly recommended
to use the slash / as a path delimiter, which LC uses internally on ALL platforms.

Future versions of the engine may not be so forgiving as the current one! :D


Best

Klaus

Post Reply