Problem with Vdo fullscreen when Orientation change.
This is example.How i do it. And got this problem.
1.I use "orientation": "both"
2.I my css
// in portrait
.bg{background-image:url(.......)};
.boxcontent{display:none}
// in landscape
.bg{display:none};
.boxcontent{margin:0; padding:0;}
3.In my html use basic tag video
Now, When I play vdo and change it to full screen. Try to rotate and exit vdo full screen.Html still show display in landscape mode. How to solved it.
in iOS5 it work perfectly. But not working on iOS6
Did you follow all the steps here? https://github.com/Simbul/baker/wiki/It%27s-crashing%2C-exploding-or-any-other-issue
So sry My mouse have problem(double click).
Yes,I tried it. And i use Baker3.2.2.3
So... as that page says, could you transcribe here the debug log (point 4) and tell us in more details (point 2) what happens on Mobile Safari (point 5)? :)
I have weak skill in english.But I have link for this sample. http://www.mediafire.com/?6wlthc1p383rtjb
simulator iOS6 and iPad iOS6 not working. But iOS5 still work
///////////////////// In landscape mode Try to do vdo fullscreen and rotate to portrait and close fullscreen. /////////////////////
I have the same problem.
Ok, but does it work in Mobile Safari? That's the very first thing to check, since it's HTML. :)
Ok,I tried it in Mobile Safari.
iPad1 iOS5 work fine. New iPad iOS6 work fine.
and I put that source to "Book" in latest versions of Baker.It still not working.
this my log // Start with Portrait
Set IndexView size to 1024x768, with pageY set to 0 2012-10-19 18:19:13.706 Baker[1821:19d03] • Setting current page height from 1040 to 1040.000000 2012-10-19 18:19:13.706 Baker[1821:19d03] Prevent page from changing until layout is updated 2012-10-19 18:19:13.706 Baker[1821:19d03] • Set size for orientation: landscape //Ok it's now Landscape 2012-10-19 18:19:13.706 Baker[1821:19d03] • Set tappable area size 2012-10-19 18:19:13.706 Baker[1821:19d03] • Show page details for the book pages 2012-10-19 18:19:13.709 Baker[1821:19d03] Unlock page changing
//Tap for play Video 2012-10-19 18:21:53.170 Baker[1821:19d03] • User tap at [229.000000, 90.000000] 2012-10-19 18:21:53.315 Baker[1821:19d03] [MPAVController] Autoplay: Enabling autoplay 2012-10-19 18:21:53.315 Baker[1821:19d03] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1) 2012-10-19 18:21:53.315 Baker[1821:19d03] setting movie path: http://video-js.zencoder.com/oceans-clip.mp4 2012-10-19 18:21:53.316 Baker[1821:19d03] [MPAVController] Autoplay: Enabling autoplay 2012-10-19 18:21:53.320 Baker[1821:19d03] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0 2012-10-19 18:21:54.838 Baker[1821:19d03] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1) 2012-10-19 18:21:54.845 Baker[1821:19d03] [MPAVController] Autoplay: Enabling autoplay 2012-10-19 18:21:56.838 Baker[1821:19d03] [MPAVController] Autoplay: _streamLikelyToKeepUp: 0 -> 1 2012-10-19 18:21:56.839 Baker[1821:19d03] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1)
//Tap for full screen 2012-10-19 18:23:32.048 Baker[1821:19d03] • User tap at [343.000000, 139.000000] 2012-10-19 18:23:32.498 Baker[1821:19d03] [MPAVController] Autoplay: Enabling autoplay
//Rotate for portrait. But nothing to show in log. //Then I exit fullscreen. And display still show in landscape mode.
Anyone got this problem before?
You can try it with your iPad. Links: http://ipad.2fellows.com/test.html Source. http://www.mediafire.com/?6wlthc1p383rtjb
Ok, that's clear, thanks. We'll look into it. :)
I'm thinking in two ways to solve that - Alternative #1 (tested and works): create a script to listen to webkitendfullscreen and call a custom scheme to updateBookLayout. Ex:
in HTML:
var html5Video = function() { return { init: function() { var video = document.getElementsByTagName('video')[0]; video.addEventListener('webkitendfullscreen', exitFS, false); } }; }();
function exitFS() {
window.location = "exitfs://";
}
html5Video.init();
in webview shouldStartLoadWithRequest: (add another else loop to catch new scheme)
else if ([[url scheme] isEqualToString:@"exitfs"]) {
[self performSelector:@selector(updateBookLayout)];
// Cancel the location change
return NO;
}
Alternative #2: I think it's an undocumented feature, so use it with caution: use UIMoviePlayerControllerDidExitFullscreenNotification to fire updateBookLayout.
@aspek are you still experiencing this issue with the new 4.1 release?
4.1 It works perfectly.I will close this issue. Thanks