YouTube fullscreen mode lost when switch to another window

How can I save fullscreen mode in YouTube videos after swith to another window?

Hi Serializable,
Currently this is not possible. There is theater view however if you click on the theater button of Youtube.

Similar Messages

  • How to prevent video playback from getting paused when switching to another tab on Firefox for Android?

    In Firefox for Android 27.0, if you play video in one tab and while it's playing you switch to another tab, the video gets paused. I want the video to continue to play while I'm viewing another tab (so I can at least hear its sound!).
    How can I do that?
    How can I prevent Firefox for Android from pausing video playback when switching to another tab?
    Thank you very much.

    Hi hamid_ss,
    Currently Firefox for Android does this by default with embedded players. Some sites go automatically to full screen too which may be what you are running into. Try it.

  • Hello!  I have an iMac that I lose the audio output for certain profiles.  The audio output will work on one profile, but when switching to another profile, I lose the audio output.  I've reset the NVRAM/PRAM and that hasn't solved the problem.  Help!

    Hello!
    I have an iMac (running iOS 10.6.8, not upgraded to Lion) that I'm having audio issues with.  I have 5 profiles on this machine.  The audio output will work fine out of one profile, then when switched to another, the profile will not have any audio output at all.  Rebooting the machine will occasionally solve the problem.  Administrator permissions are not the issue since this has also manifested itself on the administrator profile. I've also reset the NVRAM/PRAM and that hasn't helped.  All my software is up to date and I recently upgraded the RAM to 2x2GB sticks.  This problem was existing prior to the RAM upgrade. 
    Any suggestions?  Thanks in advance!

    Hi Tony,
    Long shot, but...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there, some things will change it for their own use, then not set it back.

  • Display lost when switching virtual consoles (xorg 1.12.1-1)

    Hi all,
    About a week ago I noticed that I will sometimes be left with a black screen when I switch between virtual consoles using Ctrl+Alt+F8, etc. The system is still running, and can be communicated with over the network, but, short of rebooting via ssh or killing X, there seems to be nothing I can do to get the screen working again. It seems especially common when switching between F7 and F8 (both graphical) but sometimes occurs when switching from a graphical to a text based console (F1-F6).
    I have downgraded from recent versions of xorg-server, xorg-server-common and the nvidia drivers to see if the problem would go away, but without success.
    Thanks for your thoughts!
    Last edited by conn-fused (2012-04-22 05:22:28)

    Well, many 20-nvidia-conf files later, the problem persists.
    Not only that, but the number of jumps between virtual consoles before failure seems to be perfectly consistent. I login as one user (a GUI session on tty7), then switch user to open a new GUI session on tty8. Now, (using Ctrl+Alt+F7 or F8, as appropriate), I switch back to the first user (enter a password because opening the new session locks the first one), switch back to the second user, back to the first, and then try switch back to the second ... and all is lost. The fifth switch fails: every ... single ... time.
    I'd appreciate it if someone else using an Nvidia card and the proprietary drivers would try this procedure and see if they too face the black screen after the fifth switch. If you do, it's not something I've misconfigured on my own, but an issue with a package (probably nvidia's) that I suppose I'll just have to wait for a fix for.
    Thanks!

  • Bridge ratings lost when switching to filter tab

    I lose my ratings when I switch to the filter pane of bridge, This has happened after running all of the most current updates including reinstalling software. Editing twice on several thousand images is no fun. The ratings, stars, show up in the file but when switching to the sort by filter tab they vanish about every other edit. ???? Thanks

    I apologize. I forgot to add the application details. I am using sqldeveloper version 1.5.0.52 build MAIN-52.03 using JDK 1.6.0_05 on a WinXP SP2 laptop.

  • When clicking on another window on photo booth...

    When I make a video on photo booth or a recording or whatever and i am doing the video so like i am talking in the video. And say I want to get a song on youtube once I click out of the photo booth window (not meaning x out of photo booth just going to another window) the movie stops.

    ... once I click ... another window) the movie stops.
    That is how Photo Booth works. It only records while it is the "active" window.
    Do you have a question?
    EZ Jim
    G5 DP 1.8GHz w/Mac OS X (10.5.6) PowerBook 1.67GHz (10.4.11)   iBookSE 366MHz (10.3.9)  External iSight

  • How do I switch to another window in Firefox for Mac?

    I often have multiple Firefox windows open. Does Firefox or Mac OS X provide a way to switch among windows?
    Normally I can switch from one window to another by Command-Tab, but when I have multiple Windows open for one application (such as Firefox), I only see the Firefox icon once, and so I only have the option to open one of the windows.
    (In Windows XP, the corresponding operation (Alt-Tab) shows the multiple Firefox windows separately. But under OS X I see only one.)
    Thanks for any help.

    Try Command+` (that is the back tick and is the same key as the ~ tilde, just above the tab key).

  • Full screen mode: How to switch between open windows?

    Hi There,
    Is there way to get CMD + ` working in full screen mode?
    Other shortcuts like CMD + OPT [ ] to switch between open tabs and CMD + TAB to switch apps seem to work - but without the ability to switch between open windows within the same app, full screen mode is kind of useless.
    Any pointers in the right direction would be much appreciated.
    BTW I'm using Yosemite but the forums won't find a Yosemite community (not sure the community search is working properly)
    Cheers

    or:
    And some additional shurtcuts:
    OS X: Keyboard shortcuts - Apple Support
    http://www.danrodney.com/mac/
    cmscss wrote:
    Hi There,
    Is there way to get CMD + ` working in full screen mode?
    Feedback: www.apple.com/feedback/

  • Captivate 5: Crashes when I open another window?

    I've been working with captivate 3 and 4 for years, and just upgraded to 5.  Usually, when I do my Close Captioning, I open my word document with the "script" and copy and paste the captioning in.  Suddenly, Captivate is crashing on me if I open another window while the captioning window is open, or if Captivate has ANY window open other than the main one. This even happened while I was editing/CCing and I needed to open an email!  Ack!
    Is this a known bug?  Is there anyway I can keep this from happening, short of NOT opening other windows while I'm working on a project?

    In Firefox 4 the cursor is placed automatically at the end of a text area.<br />
    Easiest to go to the top is by using Ctrl+Home

  • Windows 8.1 and Desktop IE11 | Youtube fullscreen mode crashing on Flashplayer

    Hello
    I have problem with flashplayer on desktop IE11. When i try to toogle between normal size mode video on youtube to fullscreen my IE11 crash on flashplayer problem.
    I have flashplayer add-on enabled and ActiveX filtering too.  And even your website wrote me that i dont have instaled flashplayer on my system or in browser (tried from desktop IE).  I tried download solution for windows 8.1 on your website but it doesnt work cuz its only system update and i already have it. And others doesnt work too cuz i have integrated flashplayer for Metro IE in my system from updates.
    I want to use my desktop IE instead of metro IE. Can you help me pls? In metro IE it works normaly.

    Well, if you're an IT guy, then you should know..
    IE is a Microsoft product - Adobe can't fix it. Only Redmond can, and they've given NO indication that they're in a hurry to do anything about IE11, which has caused widespread problems with Yahoo, Facebook, BBC, CBC, ESPN, NBA and NFL websites to name just a few.
    IE is the ONLY browser left on earth using ActiveX controls (circa 1993) which EVERYONE else abandoned twelve years ago - they cause more problems than they solve - Adobe can't fix that.
    Microsoft modifies and embeds the Flash Player plugin for IE in Windows 8 and 8.1. Adobe writes the base code and does collaborate with Redmond on updates and fixes, but the Win 8 plugin for ActiveX is Microsoft's baby once it goes into the browser. If they screw it up, it's gonna be their fix.
    Most of the web will be using HTML5 for video by the end of 2016. YouTube has already converted the majority of exisiting pages, and the code's already in place for new uploads, to automatically determine if Flash is installed and switch to HTML5 if it isn't detected. DailyMotion and Yahoo are doing the same, but not as fast or far along as Google. With the majority of web user on smartphones, Flash will see less and less use as time goes by. Adobe is aware of this. Knowing that aside from games, Flash will be almost non-existent in two years, just how eager do you think they are to develop new and better versions of it? They've dropped Linux development except for security fixes. Android dropped support last year, and Adobe ended security developments for Android Flash Player in September.

  • Word Wrap Lost When Switching Between XML and Author Views

    I compose DITA topics in the XML view with the word wrap option selected. If I switch to the Author view to check something and then return to the XML view, my nicely formatted XML view with all the happy element-nesting tabs goes away. I wind up with an ugly chunk of flush-left code and text that's difficult to read. Is there a reason why FM can't remember the tabs and word wrap when I return to the XML view?
    I'm relatively new to using FM's structured side for DITA, so perhaps I'm missing the obvious solution to this problem. If you know the answer, I'd appreciate if you'd clue me in.
    Thanks!

    Sarah,
    When you switch from XML to Author (or WYSIWYG) view, FM does not "remember" the XML document at all. Instead, internally it creates a structured FM document with the same element structure (possibly modified by the underlying XML application). When you switch back to XML view, it creates a new XML document from the current element structure, thereby preserving any changes you made in Author View. FM is very conservative about writing white space to XML in order to avoid inserting unwanted significant space.
    If you do all your editing in XML View and want to inspect the formatted version of the document without making changes to white space, always make a copy of the XML document (with File > Save As) and use the copy in Author View.
    --Lynne

  • Monitor settings lost when switching user accounts.

    Hi! I just recently noticed that every time i switch user accounts, my monitor settings get corrupted.
    There are 2 user accounts in my ibook. One account is used for work while the other one is used for home purposes. The work account has a specific monitor setting which is calibrated to our workstations. The other account has default settings on it.
    My question is that when I switch users, the settings for my work account gets corrupted. I also can't change the settings without having to restart the book.
    I already repaired permissions and zapped the pram. The same thing still happens.
    Thanks in advance!

    Hello Chuck!
    I've had this problem too. Like you, I managed to navigate to do a restart, but nothing else would make the mouse cursor reappear.
    Bruce, I wasn't using Biggy, PinPoint or any of the other mouse visibility things, simply the magnification provided by System Preferences.
    I put it down to a fault on 10.4.4—a very buggy release— and haven't yet been able to reproduce it on 10.4.5.
    I suggest you send a fault report to Apple ([email protected]), explaining all the circumstances. Try always undoing the cursor zoom before switching users (yes, that's a pain too!!!). And if I manage to reproduce the problem, I promise I'll send in a fault report too!
    HTH
    Archie

  • Sound is lost when switching from SD to HD

    I have this issue where I lose sound when I switch channels from SD to HD. I have Vizio VL420M. The issue is fixed temporarily when, either, I reset the HD STB or turn off TV and STB when on a HD channel. When I re-start the STB and TV, the sound comes back. Its been a week since installation but issue is not going away. According to Verizon it is a known issue in my neigbourhood so they won't give me new STB or send a technician.
    Do you think I have a faulty STB? Or I need to change some setting on the TV. I am connecting the STB to TV via HDMI cable.
    Solved!
    Go to Solution.

    Read this ... in particular, my instructions (written under the name "ravioli" during a time when I was temporarily unable to login to my account) on changing the audio settings on the STB.  This could be an HDMI handshake issue with it sensing the encoding technique it should be using for audio.
    http://forums.verizon.com/t5/FiOS-TV-Technical-Ass​istance/No-sound-on-HD-Channels/m-p/212632#M20815

  • Windows Phone camera App crash when switching to another page

    I am creating a Simple Face Detection App for Windows Phone in C#. I turn on my camera , everything works perfect and FaceDetector works too, but when I try to navigate to other page my App always crashes and I do not why. I tried to test my App in Windows
    Phone Emulator and here the navigation works. I also tried debug my App in real device, but there the method OnNavigatedFrom is never hit.
    FaceDetection.xaml.cs
    public partial class FaceDetection : PhoneApplicationPage
    #region member variables
    const string MODEL_FILE = "models/haarcascade_frontalface_alt.xml";
    FaceDetector.Detector _detector;
    int _downsampleFactor = 2;
    private byte[] _pixelDataGray;
    private byte[] _pixelDataDownsampled;
    private int[] _pixelDataGrayInt;
    private WriteableBitmap _wb;
    private DateTime _lastUpdate;
    public static int pocet = 5;
    double point1;
    double point2;
    double heightRectangle;
    double widthRectangle;
    #endregion
    public FaceDetection()
    InitializeComponent();
    _detector = new FaceDetector.Detector(XDocument.Load(MODEL_FILE));
    private void NewCameraFrame(object sender, CameraFrameEventArgs cameraFrameEventArgs)
    PageOrientation orientaciaObrazovky = ((PhoneApplicationFrame)Application.Current.RootVisual).Orientation;
    cameraViewer.UpdateOrientation(orientaciaObrazovky);
    var w = cameraViewer.CameraWidth;
    var h = cameraViewer.CameraHeight;
    if (_pixelDataGray == null || _pixelDataGray.Length != h * w)
    _pixelDataGray = new byte[w / _downsampleFactor * h / _downsampleFactor];
    _pixelDataDownsampled =
    new byte[w / _downsampleFactor * h / _downsampleFactor];
    _pixelDataGrayInt = new int[w / _downsampleFactor * h / _downsampleFactor];
    _wb = new WriteableBitmap(w / _downsampleFactor, w / _downsampleFactor);
    _lastUpdate = DateTime.Now;
    Utils.DownSample(cameraFrameEventArgs.ARGBData, w, h, ref _pixelDataGrayInt, _downsampleFactor);
    Utils.ARGBToGreyScale(_pixelDataGrayInt, ref _pixelDataGray);
    Utils.HistogramEqualization(ref _pixelDataGray);
    Utils.GrayToARGB(_pixelDataGray, ref _pixelDataGrayInt);
    List<FaceDetector.Rectangle> faces = new List<FaceDetector.Rectangle>();
    if (orientaciaObrazovky == PageOrientation.PortraitUp || orientaciaObrazovky == PageOrientation.PortraitDown)
    int scalw = w / _downsampleFactor;
    int scalh = h / _downsampleFactor;
    int[] _pixelDataGrayIntRotated = new int[scalw * scalh];
    for (int x = 0; x < scalw; x++)
    for (int y = 0; y < scalh; y++)
    _pixelDataGrayIntRotated[y + x * scalh] = _pixelDataGrayInt[x + y * scalw];
    faces = _detector.getFaces(
    _pixelDataGrayIntRotated,
    h / _downsampleFactor,
    w / _downsampleFactor,
    2f, 1.25f, 0.1f, 1, false, false); // height-width swapped
    else
    faces = _detector.getFaces(
    _pixelDataGrayInt,
    w / _downsampleFactor,
    h / _downsampleFactor,
    2f, 1.25f, 0.1f, 1, false, false);
    var elapsed = (DateTime.Now - _lastUpdate).TotalMilliseconds;
    _pixelDataGrayInt.CopyTo(_wb.Pixels, 0);
    _wb.Invalidate();
    Dispatcher.BeginInvoke(delegate()
    cnvsFaceRegions.Children.Clear();
    foreach (var r in faces)
    System.Windows.Shapes.Rectangle toAdd = new System.Windows.Shapes.Rectangle();
    TranslateTransform loc = new TranslateTransform();
    if (orientaciaObrazovky == PageOrientation.PortraitUp)
    loc.X = r.X * _downsampleFactor / (double)w * cnvsFaceRegions.ActualWidth;
    loc.Y = r.Y * _downsampleFactor / (double)w * cnvsFaceRegions.ActualHeight;
    point1 = r.X;
    point2 = r.Y;
    else if (orientaciaObrazovky == PageOrientation.PortraitDown)
    loc.X = r.X * _downsampleFactor / (double)w * cnvsFaceRegions.ActualWidth;
    loc.Y = r.Y * _downsampleFactor / (double)w * cnvsFaceRegions.ActualHeight;
    point1 = r.X;
    point2 = r.Y;
    else if (orientaciaObrazovky == PageOrientation.LandscapeLeft)
    loc.X = r.X * _downsampleFactor / (double)w * cnvsFaceRegions.ActualWidth - 50;
    loc.Y = r.Y * _downsampleFactor / (double)w * cnvsFaceRegions.ActualHeight + 90;
    point1 = r.X;
    point2 = r.Y;
    else if (orientaciaObrazovky == PageOrientation.LandscapeRight)
    loc.X = r.X * _downsampleFactor / (double)w * cnvsFaceRegions.ActualWidth+50 ;
    loc.Y = r.Y * _downsampleFactor / (double)w * cnvsFaceRegions.ActualHeight -90;
    point1 = r.X;
    point2 = r.Y;
    toAdd.RenderTransform = loc;
    toAdd.Width = r.Width * _downsampleFactor + 50;
    toAdd.Height = r.Height * _downsampleFactor + 50;
    toAdd.Stroke = new SolidColorBrush(Colors.Red);
    cnvsFaceRegions.Children.Add(toAdd);
    widthRectangle = toAdd.Width;
    heightRectangle = toAdd.Height;
    point1 = (loc.X);
    point2 = (loc.Y);
    protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
    base.OnNavigatedTo(e);
    cameraViewer.SaveToCameraRoll = true;
    cameraViewer.NewCameraFrame += NewCameraFrame;
    cameraViewer.StartPumpingFrames();
    CameraButtons.ShutterKeyHalfPressed += OnButtonHalfPress;
    CameraButtons.ShutterKeyPressed += OnButtonFullPress;
    CameraButtons.ShutterKeyReleased += OnButtonRelease;
    protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
    base.OnNavigatedFrom(e);
    cameraViewer.StopPumpingFrames();
    CameraButtons.ShutterKeyHalfPressed -= OnButtonHalfPress;
    CameraButtons.ShutterKeyPressed -= OnButtonFullPress;
    CameraButtons.ShutterKeyReleased -= OnButtonRelease;
    private void OnButtonHalfPress(object sender, EventArgs e)
    cameraViewer.NewCameraFrame -= NewCameraFrame;
    private void OnButtonFullPress(object sender, EventArgs e)
    SaveScreenShots();
    private void OnButtonRelease(object sender, EventArgs e)
    cameraViewer.NewCameraFrame += NewCameraFrame;
    private static WriteableBitmap CropImage(WriteableBitmap source, int xOffset, int yOffset, int width, int height)
    var sourceWidth = source.PixelWidth;
    var result = new WriteableBitmap(width, height);
    for (var x = 0; x <= height - 1; x++)
    var sourceIndex = xOffset + (yOffset + x) * sourceWidth;
    var destinationIndex = x * width;
    Array.Copy(source.Pixels, sourceIndex, result.Pixels, destinationIndex, width);
    return result;
    private void SaveScreenShots()
    string namePerson = PhoneApplicationService.Current.State["TextBoxValue"] as String;
    bool b = cnvsFaceRegions.Children.Any();
    cnvsFaceRegions.Children.Clear();
    if (!b)
    MessageBox.Show("No face detected ");
    else
    for (int j = 1; j <= pocet; j++)
    using (var isoStore = IsolatedStorageFile.GetUserStoreForApplication())
    var bmp = new WriteableBitmap((int)this.ActualWidth, (int)this.ActualHeight);
    bmp.Render(this, null);
    byte[] bb = EncodeToJpeg(bmp);
    bmp.Invalidate();
    WriteableBitmap bmp2 = CropImage(bmp, (int)point1, (int)point2, (int)widthRectangle, (int)heightRectangle);
    using (var isoFileStream = isoStore.CreateFile(namePerson + j))
    System.Windows.Media.Imaging.Extensions.SaveJpeg(bmp2, isoFileStream, bmp.PixelWidth, bmp.PixelHeight, 0, 100);
    isoFileStream.Close();
    MessageBox.Show("Saved successfully " + pocet + " images");
    cameraViewer.NewCameraFrame += NewCameraFrame;
    public byte[] EncodeToJpeg(WriteableBitmap wb)
    using (MemoryStream stream = new MemoryStream())
    wb.SaveJpeg(
    stream,
    wb.PixelWidth,
    wb.PixelHeight,
    0,
    85);
    return stream.ToArray();
    private void cameraViewer_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
    cameraViewer.NewCameraFrame -= NewCameraFrame;
    private void cameraViewer_MouseLeftButtonUp_1(object sender, MouseButtonEventArgs e)
    SaveScreenShots();
    private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
    NavigationService.Navigate(new Uri("/PersonAndGallery;component/Gallery.xaml", UriKind.Relative));
    CameraViewer.cs
    public class CameraFrameEventArgs : RoutedEventArgs
    public int[] ARGBData { get; set; }
    public static class AppGlobal
    public static bool isPortrait = true;
    public class CameraViewer : Grid
    #region Events
    public EventHandler<CameraFrameEventArgs> NewCameraFrame { get; set; }
    public EventHandler<ContentReadyEventArgs> NewCameraCaptureImage { get; set; }
    public EventHandler<CameraOperationCompletedEventArgs> CamInitialized { get; set; }
    #endregion
    #region Properties
    public int CameraWidth
    get { return _cameraWidth; }
    set { _cameraWidth = value; }
    public int CameraHeight
    get { return _cameraHeight; }
    set { _cameraHeight = value; }
    public bool PhotoOnPress
    get { return _photoOnPress; }
    set
    _photoOnPress = value;
    // CameraButtons.ShutterKeyPressed -= CameraButtonsOnShutterKeyPressed;
    if (_photoOnPress)
    // CameraButtons.ShutterKeyPressed += CameraButtonsOnShutterKeyPressed;
    public bool SaveToCameraRoll { get; set; }
    public PhotoCamera Camera
    get { return _camera; }
    public bool TakingPhoto
    get { return _takingPhoto; }
    #endregion
    #region Member Variables
    private PhotoCamera _camera; // the windows phone camera that takes the photos
    private int _cameraWidth = -1;
    private int _cameraHeight = -1;
    private Thread _pumpFramesThread;
    private static ManualResetEvent _pauseFramesEvent = new ManualResetEvent(true);
    private bool _takingPhoto;
    VideoBrush viewfinderBrush;
    private bool _photoOnPress;
    private SoundEffect _cameraShutterSound;
    private static ManualResetEvent _cameraCaptureEvent = new ManualResetEvent(true);
    private static ManualResetEvent _cameraInitializedEvent = new ManualResetEvent(false);
    private bool _pumpFrames;
    #endregion
    #region Constructor
    public CameraViewer()
    Unloaded += new RoutedEventHandler(OnUnloaded);
    PhotoOnPress = true;
    public override void OnApplyTemplate()
    base.OnApplyTemplate();
    #endregion
    #region Public methods
    public void StartPumpingFrames()
    _pauseFramesEvent = new ManualResetEvent(true);
    _cameraCaptureEvent = new ManualResetEvent(true);
    _cameraInitializedEvent = new ManualResetEvent(false);
    InitializeCamera();
    _pumpFrames = true;
    if (_pumpFramesThread == null)
    _pumpFramesThread = new Thread(PumpFrames);
    if (!_pumpFramesThread.IsAlive)
    _pumpFramesThread.Start();
    public void StopPumpingFrames()
    _pumpFrames = false;
    _pumpFramesThread = null;
    Camera.Dispose();
    public void TakePhoto()
    if (TakingPhoto)
    return;
    _cameraCaptureEvent.Reset();
    FrameworkDispatcher.Update();
    _cameraShutterSound.Play();
    _takingPhoto = true;
    Camera.CaptureImage();
    #endregion
    private void CameraButtonsOnShutterKeyPressed(object sender, EventArgs eventArgs)
    if (_photoOnPress && !TakingPhoto)
    _cameraCaptureEvent.WaitOne();
    TakePhoto();
    private void OnUnloaded(object sender, RoutedEventArgs e)
    _cameraInitializedEvent.Reset();
    public void InitializeCamera()
    _cameraInitializedEvent.Reset();
    // Check to see if the camera is available on the device.
    if ((PhotoCamera.IsCameraTypeSupported(CameraType.Primary) == true) ||
    (PhotoCamera.IsCameraTypeSupported(CameraType.FrontFacing) == true))
    // Initialize the default camera.
    _camera = new Microsoft.Devices.PhotoCamera();
    //Event is fired when the PhotoCamera object has been initialized
    Camera.Initialized +=
    new EventHandler<Microsoft.Devices.CameraOperationCompletedEventArgs>(CameraInitialized);
    Camera.CaptureImageAvailable += CameraOnCaptureImageAvailable;
    Camera.CaptureCompleted += CameraOnCaptureCompleted;
    //Set the VideoBrush source to the camera
    // var viewfinderBrush = new VideoBrush();
    viewfinderBrush = new VideoBrush();
    viewfinderBrush.Stretch = Stretch.Fill;
    viewfinderBrush.RelativeTransform = new CompositeTransform { CenterX = 0.5, CenterY = 0.5 };
    viewfinderBrush.SetSource(Camera);
    System.Windows.Shapes.Rectangle rect = new System.Windows.Shapes.Rectangle();
    rect.Fill = viewfinderBrush;
    this.Children.Add(rect);
    Stream stream = TitleContainer.OpenStream("models/shutter.wav");
    _cameraShutterSound = SoundEffect.FromStream(stream);
    // CameraButtons.ShutterKeyPressed -= CameraButtonsOnShutterKeyPressed;
    if (_photoOnPress)
    // CameraButtons.ShutterKeyPressed += CameraButtonsOnShutterKeyPressed;
    else
    // The camera is not supported on the device.
    MessageBox.Show(
    "Sorry, this sample requires a phone camera and no camera is detected. This application will not show any camera output.");
    private void CameraOnCaptureCompleted(object sender, CameraOperationCompletedEventArgs cameraOperationCompletedEventArgs)
    _cameraCaptureEvent.Set();
    _takingPhoto = false;
    private void CameraOnCaptureImageAvailable(object sender, ContentReadyEventArgs contentReadyEventArgs)
    if (SaveToCameraRoll)
    Dispatcher.BeginInvoke(() =>
    WriteableBitmap bitmap =
    CreateWriteableBitmap(contentReadyEventArgs.ImageStream,
    (int)Camera.Resolution.Width,
    (int)Camera.Resolution.Height);
    // SaveCapturedImage(bitmap);
    //TakeScreenShots();
    if (NewCameraCaptureImage != null)
    NewCameraCaptureImage.Invoke(this, contentReadyEventArgs);
    // Helper for CameraOnCaptureImageAvailable
    private void SaveCapturedImage(WriteableBitmap imageToSave)
    var stream = new MemoryStream();
    imageToSave.SaveJpeg(stream, imageToSave.PixelWidth, imageToSave.PixelHeight, 0, 100);
    //Take the stream back to its beginning because it will be read again
    //when saving to the library
    stream.Position = 0;
    var library = new MediaLibrary();
    string fileName = string.Format("{0:yyyy-MM-dd-HH-mm-ss}.jpg", DateTime.Now);
    library.SavePictureToCameraRoll(fileName, stream);
    //save to Save Photo
    Picture pic;
    private void TakeScreenShots()
    WriteableBitmap bmp = new WriteableBitmap((int)this.ActualWidth, (int)this.ActualHeight);
    bmp.Render(this, null);
    byte[] bb = EncodeToJpeg(bmp);
    bmp.Invalidate();
    MemoryStream mem = new MemoryStream();
    bmp.SaveJpeg(mem, bmp.PixelWidth, bmp.PixelHeight, 0, 100);
    mem.Seek(0, System.IO.SeekOrigin.Begin);
    if (mem != null)
    MediaLibrary library = new MediaLibrary();
    try
    pic = library.SavePicture("Mask_" + Guid.NewGuid().ToString(), mem);
    MessageBox.Show("Your picture is now accessible through the Saved Picture album.", "Saved successfully.", MessageBoxButton.OK);
    catch (Exception ex)
    MessageBox.Show("Unable to save the photo." + ex);
    public byte[] EncodeToJpeg(WriteableBitmap wb)
    using (MemoryStream stream = new MemoryStream())
    wb.SaveJpeg(
    stream,
    wb.PixelWidth,
    wb.PixelHeight,
    0,
    85);
    return stream.ToArray();
    // Creates a WriteableBitmap from an imageStream
    private WriteableBitmap CreateWriteableBitmap(Stream imageStream, int width, int height)
    var bitmap = new WriteableBitmap(width, height);
    imageStream.Position = 0;
    bitmap.LoadJpeg(imageStream);
    return bitmap;
    private void CameraInitialized(object sender, CameraOperationCompletedEventArgs e)
    if (e.Succeeded)
    try
    // available resolutions are ordered based on number of pixels in each resolution
    CameraWidth = (int)Camera.PreviewResolution.Width;
    CameraHeight = (int)Camera.PreviewResolution.Height;
    if (CamInitialized != null)
    CamInitialized.Invoke(this, e);
    _cameraInitializedEvent.Set();
    _pauseFramesEvent.Set();
    catch (ObjectDisposedException)
    // If the camera was disposed, try initializing again
    private void PumpFrames()
    _cameraInitializedEvent.WaitOne();
    int[] pixels = new int[CameraWidth * CameraHeight];
    int numExceptions = 0;
    while (_pumpFrames)
    _pauseFramesEvent.WaitOne();
    _cameraCaptureEvent.WaitOne();
    _cameraInitializedEvent.WaitOne();
    try
    Camera.GetPreviewBufferArgb32(pixels);
    catch (Exception e)
    // If we get an exception try capturing again, do this up to 10 times
    if (numExceptions >= 10)
    throw e;
    numExceptions++;
    continue;
    numExceptions = 0;
    _pauseFramesEvent.Reset();
    Deployment.Current.Dispatcher.BeginInvoke(
    () =>
    if (NewCameraFrame != null && _pumpFrames)
    NewCameraFrame(this, new CameraFrameEventArgs { ARGBData = pixels });
    _pauseFramesEvent.Set();
    //na zmenu orientacie
    public void UpdateOrientation(PageOrientation orientation)
    if (orientation == PageOrientation.PortraitDown)
    viewfinderBrush.RelativeTransform =
    new CompositeTransform { CenterX = 0.5, CenterY = 0.5, Rotation = 270 };
    /* else if (orientation == PageOrientation.PortraitDown && cameraType == 2)
    viewfinderBrush.RelativeTransform =
    new CompositeTransform { CenterX = 0.5, CenterY = 0.5, Rotation = 90 };
    else if (orientation == PageOrientation.PortraitUp && cameraType == 2)
    viewfinderBrush.RelativeTransform =
    new CompositeTransform { CenterX = 0.5, CenterY = 0.5, Rotation = -90 };
    else if (orientation == PageOrientation.PortraitUp)
    viewfinderBrush.RelativeTransform =
    new CompositeTransform { CenterX = 0.5, CenterY = 0.5, Rotation =90 };
    else if (orientation == PageOrientation.LandscapeLeft)
    viewfinderBrush.RelativeTransform =
    new CompositeTransform { CenterX = 0.5, CenterY = 0.5, Rotation = 0 };
    else if (orientation == PageOrientation.LandscapeRight)
    viewfinderBrush.RelativeTransform =
    new CompositeTransform { CenterX = 0.5, CenterY = 0.5, Rotation = -180 };
    Thanks for reply.

    Hi Facko,
    Thanks for posting at the forum, however it could be really difficult for us to copy/paste your code and try to repro the issue, I would suggest you to provide a repro sample for us so that we can debug for you.
    And base on your description, looks like your app only crashes on the real device, but not on the emulator. I have question here, how the app works on the emulator?
    As I know if we open the camera on emulator, the only thing we can see is kind of small color blocks instead of the real images.
    You could also try to close the camera and then dispose the object to see if it works.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • EA1: BUG: View Table Data: Filter gets lost when switching tabs

    Hi,
    open a table, choose the data tab and enter a filter condition. The data is filtered.
    Bug is
    a) choose e.g. constraint tab for the same table and then again the data tab. Data remains filtered, but filter is not displayed
    b) pin the table, open another table, navigate back to the previous table. Data remains filtered, but filter is not displayed.
    Regards
    Stephan

    The issue was reported already and will probably be fixed in EA2...
    Regards,
    K.

Maybe you are looking for