Corrupt Stack? video file playback blank

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
istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Corrupt Stack? video file playback blank

Post by istech » Tue Jul 08, 2014 12:54 pm

Hi all,

I have a small problem with a old project where I think the stack could be corrupt. When I place the code in a new stack the video works fine. However if I place the same code in the project stack the video control opens but no video.

The code is as follows:

put specialFolderPath("engine") & "/videos/Flash_Intro3_1_1.m4v" into tVidFile
put tVidFile into fld "videoFilePath"
play video tVidFile

any suggestions?

Using LC 6.6.2
Using Android 4.4.4
PS I have removed everything from the "preopen" and "opencard" handlers still no go.

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

Re: Corrupt Stack? video file playback blank

Post by Klaus » Tue Jul 08, 2014 4:25 pm

Just to be sure, can Android play m4v video files at all?

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Corrupt Stack? video file playback blank

Post by istech » Tue Jul 08, 2014 6:53 pm

Thanks Klaus for the reply.

The video file works fine on Android OS.

I think there is something going on or with the stack file is my last idea.

Going to start deleting a few controls and buttons and see if it starts to work, My last option is to just start fresh on the new stack and copy every control and script etc over. :cry:

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

Re: Corrupt Stack? video file playback blank

Post by Klaus » Tue Jul 08, 2014 8:33 pm

Hmmm...?

Did you check if this works in a button script?
And did you check the pathname?
iOS and Andoid have case-sensitive filesystems!
That's why I ALWAYS use lowercase for all my filenanes :D

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

Re: Corrupt Stack? video file playback blank

Post by Simon » Wed Jul 09, 2014 1:28 am

Might be a memory issue.
Everything in the "engine" is compressed and needs to be uncompressed before it can be used.
Maybe try moving the video's to "documents". (probably should do that anyways for the resources sake)

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

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Corrupt Stack? video file playback blank

Post by istech » Wed Jul 09, 2014 6:56 am

@ Klaus

Both code is in button scripts
Yes I have checked the file names and paths in the videoFilePath field on both stacks and they are the same. (different identifiers which is expected. However the problematic one has got (-1) after it could that be the problem? I will investigate and change identifiers and see if it does anything)

@ Simon

Not tried the document path yet. But will give anything a go at this point. :( Thanks

However I have spotted something on the project stack. the stack ID is over 15000000 !!(not sure how this happened) Should this not be the lowest ID? How do I change the stack ID as it says I can only increase the ID not lower it. (I know, looking for straws at the moment)

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Corrupt Stack? video file playback blank

Post by istech » Wed Jul 09, 2014 1:07 pm

I have found the problem!! but not sure how to fix it or if it is a bug.

It was in the stack script. I had this code:

on preOpenStack
set the fullscreenmode of this stack to "exactFit"
set the acceleratedRendering of this stack to true --here is the evil line that is causing a headache. But as far as I understand it this should work as is. no?
end preOpenStack

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

Re: Corrupt Stack? video file playback blank

Post by Klaus » Wed Jul 09, 2014 1:55 pm

Hi istech,

sounds like a bug to me!

But looks like this they already know about it:
http://quality.runrev.com/show_bug.cgi?id=10267


Best

Klaus

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Corrupt Stack? video file playback blank

Post by istech » Fri Jul 11, 2014 8:02 am

Thanks Klaus,

I am disabling it when I need to play a video for the time being. All works fine now. Hopefully we should see a fix soon.

Post Reply