baker icon indicating copy to clipboard operation
baker copied to clipboard

Video playback issue

Open ghost opened this issue 13 years ago • 9 comments

Hello, I am working on my first Baker app. Thank you for such a wonderful framework!

But i have a problem with video playback. Video can't be paused when user press on pause button on youtube player. Video playback pauses for a moment and then resumed. Tested with the Laker magazine. This bug is reproduced only on iPad with iOS 5.0, 5.1, 6.0

You can download .hpub file from https://dl.dropbox.com/s/dh6zbefobjcymq9/Laker-Example.hpub You can use link https://dl.dropbox.com/s/3m5yliyztuoskbm/issues.json as NEWSSTAND_MANIFEST_URL for testing.

ghost avatar Jan 30 '13 09:01 ghost

Have you tried testing this in Safari Mobile as well?

Simbul avatar Jan 30 '13 11:01 Simbul

Yes, I tested in Safari Mobile. I also created a test project with a single UIWebView and loaded this magazine from the resources. In both cases, this bug is not reproduced

ghost avatar Jan 30 '13 12:01 ghost

I'm having this issue too, the only solution I found was downloading the videos from youtube and host it myself using the html5 player.

2013/1/30 Dmitry-Gruzd [email protected]

Yes, I tested in Safari Mobile. I also created a test project with a single UIWebView and loaded this magazine from the resources. In both cases, this bug is not reproduced

— Reply to this email directly or view it on GitHubhttps://github.com/Simbul/baker/issues/681#issuecomment-12888027.

yujulio avatar Jan 30 '13 13:01 yujulio

Hmm, it seems that the problem was in the UserAgent. Thus, if we remove the UserAgent, the video will play without any problems and the video player will look like in Safari.

ghost avatar Jan 30 '13 15:01 ghost

I am also having a similar issue. With vimeo I can embed the video it appears ok on the surface but when it comes to playback it just spins trying to load. I have also tried loading the link directly. ie: vimeo.com/video/12345678?referrer=Baker still nothing but spinning.

brianharrington avatar Jan 30 '13 21:01 brianharrington

@brianharrington. I am facing the same issue with the Vimeo files :(

yitweng avatar Feb 02 '13 06:02 yitweng

@Dmitry-Gruzd so did you solve it in the end? And how exactly? Your solution may be helpful to other people in the future :)

Note that possible solutions for Vimeo are discussed in issue #510.

Simbul avatar Feb 02 '13 10:02 Simbul

@Dmitry-Gruzd Did you delete the UserAgent from AppDelegate.m? I can't find any other files with that parameter. I tried to delete it but the video still can't be paused :(

UPD: Solved it! I've just clean the Xcode build

wwarder avatar Feb 02 '13 14:02 wwarder

Simbul, yes i solved it. Just remove initialization of UserAgent from AppDelegate (or set another one). After that video player will looks like a native video player in Safari and problems with playback will be solved (tested with youtube videos)

ghost avatar Feb 06 '13 14:02 ghost