[Title] Fix the 'SelfCamera' issue
[Problem] N_SE-45035
Real video width and height is different with property value of video element in emulator.
[Cause] Depends on camera device, resolution of video is different.
[Solution] Set video size of emulator as different value with target.
Change-Id: Iffa5cd68dcf690ee083d1cd79b2b1f572a113ce7
// Set m_videoSize as frame size which comes from webkitCameraSource.
// This size is fixed.
if (isLocalMediaStream())
- m_videoSize = IntSize(480, 640);
+ if (gst_element_factory_find("camerasrc"))
+ m_videoSize = IntSize(480, 640);
+ else
+ m_videoSize = IntSize(640, 480);
#endif
if (m_preload == MediaPlayer::None) {