Help with ebook chapter 1 playing the video.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 8
- Joined: Fri Mar 28, 2014 2:47 pm
Help with ebook chapter 1 playing the video.
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?
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?
Re: Help with ebook chapter 1 playing the video.
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:
On mobile you have just the following folders paths:
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!!!
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
- 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.
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!!!

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Help with ebook chapter 1 playing the video.
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.
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 10
- Joined: Mon Jan 05, 2015 11:28 pm
Re: Help with ebook chapter 1 playing the video.
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?
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?
Re: Help with ebook chapter 1 playing the video.
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
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!
Re: Help with ebook chapter 1 playing the video.
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
--
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
--
-
- Posts: 4
- Joined: Sun Aug 09, 2015 10:30 am
Re: Help with ebook chapter 1 playing the video.
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
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
Re: Help with ebook chapter 1 playing the video.
Hi Mike,
1. welcome to the forum!
2.
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!
Best
Klaus
1. welcome to the forum!

2.
This has been discussed recently on the mailing list and althought this does work (Windows only!) it is highly recommendedrookienr101 wrote:Can anybody confirm or comment on the validity on using the "\" instead of the "/", please?
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!

Best
Klaus