jiangyuwei [Wed, 6 Mar 2024 21:50:07 +0000 (05:50 +0800)]
[M120 Migration] Dummy Implementation for EWK APIs
ewk_check_chromium_ready
ewk_wait_chromium_ready
Change-Id: Iddb3f4afc1d1dfe7dcc606c62128774e568a557f
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
yanqing.lu [Mon, 4 Mar 2024 08:17:26 +0000 (16:17 +0800)]
[M120 Migration] Support Comma Delimiter for isTypeSupported
most app use semi-colone to query format support.
eg: isTypeSupported("video/mp4; codecs=\"avc1.4d4015\"; width=426; height=240; framerate=30; bitrate=246887")
but some app use comma format.
eg: isTypeSupported("audio/mp4; codecs=\"ec-3\", channels=7.1, features=\"JOC\"")
it revert this patch to support comma format
https://chromium.googlesource.com/chromium/src.git/+/
15e2e8f54574ace251541c3b4589513e22131b85
Original Patch Title: change mode to get parameter of idTypeSupported
Migration from:
https://review.tizen.org/gerrit/290761
Change-Id: I0eed0ebb5e491cf67461e85bd5202f366272fc86
Signed-off-by: yanqing.lu <yanqing.lu@samsung.com>
Manjeet [Tue, 5 Mar 2024 16:47:02 +0000 (22:17 +0530)]
[M120 Migration] Add --as-needed to Clang option
Remove Unused direct dependencies from libchromium-impl.so
Reference:
https://review.tizen.org/gerrit/291183
Change-Id: Ic2037a8bbb1af2192d28efdbd7877d8850799a10
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
zhishun.zhou [Tue, 5 Mar 2024 13:00:49 +0000 (21:00 +0800)]
[M120 Migration][HBBTV][MM] Support H5 drm error feature
1. Set drm info for video decoding
2. Add drm error callback
Patch from:
https://review.tizen.org/gerrit/#/c/293258/
Change-Id: Id33f5a2b83d3ea0afa34d3bd3d430e98de9e745b
Signed-off-by: peng1xiao <peng1.xiao@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
Yu Yang [Fri, 1 Mar 2024 01:47:34 +0000 (09:47 +0800)]
[M120 Migration]Changing code for re-factored accessory
Port new accessory and Nintendo Pro gamepad support patches from tizen_8.0:
https://review.tizen.org/gerrit/#/c/297678/
https://review.tizen.org/gerrit/#/c/297966/
https://review.tizen.org/gerrit/#/c/291195/
https://review.tizen.org/gerrit/#/c/290514/
Change-Id: I5e1403d6a313fc1b0ef9623f3f1ecf2641970c7c
Signed-off-by: Yu Yang <yangy.yu@samsung.com>
Satyaveer Singh [Mon, 4 Mar 2024 10:15:21 +0000 (15:45 +0530)]
[M120 Migration][Canvas2D] Do not disable acceleration on gpu readback.
On M76 and earlier acceleration is disabled on readbacks based on
heuristics, but currently for gpu readback canvas2d acceleration is
disabled straightaway and heuristics are removed in upstream[1,2]. This
impacts performance of canvasmark KPI heavily. Hence we dont disable
acceleration during gpu readbacks.
Performance(TV):
Ubrowser CanvasMark
Before: 28.8, 29.0, 29.2, 29.0, 29.1
After: 33.3, 32.4, 32.5, 33.3, 33.5
References:
[1] https://chromium-review.googlesource.com/c/chromium/src/+/1845511
[2] https://chromium-review.googlesource.com/c/chromium/src/+/1752546
[3] https://review.tizen.org/gerrit/291138
Change-Id: I5c8388a042e0bbe17bca5a635aeace8959587640
Signed-off-by: Satyaveer Singh <satyaveer.s@samsung.com>
chiragmaheshwari [Mon, 19 Feb 2024 08:55:15 +0000 (14:25 +0530)]
[M120 Migration][VD][V8] Increase page size bits and min semi space size for performance.
This change updates kPageSizeBits and kMinSemiSpaceSizeInKB values for product tv profile for performance.
VD-CanvasMark-Pixelblur scores.
BaseCode: 28.7 kPageSizeBits = 20, kMinSemiSpaceSizeInKB = 1024K: 33.3
References:
1. https://review.tizen.org/gerrit/290956
2. https://chromium-review.googlesource.com/c/v8/v8/+/1496367
3. https://chromium-review.googlesource.com/c/v8/v8/+/1529006
[2], [3] reduces heap/page size parameters in upstream.
Though performance is improved with page size as 512K, it is increased
to 1024K to keep performance in par with earlier versions.
Change-Id: Id9cccbd678f4aa08eff4862bec12916a7ecdc86f
Signed-off-by: chiragmaheshwari <c.maheshwari@samsung.com>
zhishun.zhou [Tue, 5 Mar 2024 06:08:38 +0000 (14:08 +0800)]
[M120 Migration][MM] Support webmedia playback state notification
1. webbrowser need playbackstart event to show miniplayer button,
this patch implement ewk interface to notify player state to APP,
at the same time it get translated url and drm information from APP;
2. Impement a switch kEnableMediaPlaybackNotification, set from
ewk_settings_media_playback_notification_set;
3. Impement GetContentMIMEType from html media element and set it to esplayer;
Patch from:
https://review.tizen.org/gerrit/#/c/292410/
Change-Id: I88c787896baa4176769c3eb64214d94bee72ffaa
Signed-off-by: xiaofang <fang.xiao@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
fangfengrong [Tue, 5 Mar 2024 03:08:55 +0000 (11:08 +0800)]
[M120 Migration][VD] Don't set focus when FinishLoad
For WRT type App, will set focus when app show:
WRTNativeWindow::Show()->WRTNativeWindow::Focus();
For Browser/hbbtv type App, will set focus by ewk_view_focus_set api.
Keep same with M94, don't set focus when FinishLoad, or else will cause
two focus issue: one focus on webview, another focus on app(such as on
webbrowser url).
refer:
https://review.tizen.org/gerrit/#/c/296637/
Change-Id: I61eee8952019b9cc342ad88503276bb6399a6d43
Signed-off-by: fangfengrong <fr.fang@samsung.com>
yangzhiwen [Mon, 4 Mar 2024 08:57:42 +0000 (16:57 +0800)]
[M120 Migration] Support Downloadable font info feature
Migration from:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/292674/
Change-Id: I71b63bab8327083cc23aaccaf485e0364e1cbea5
Signed-off-by: yangzhiwen <zw714.yang@samsung.com>
Qiang Ji [Mon, 4 Mar 2024 08:40:37 +0000 (16:40 +0800)]
[M120 Migration] NUI related patch
1. Fix rotation issue for NUI app
Ecore_Evas can't sense that NUI app has rotated,
so get the wrong value from ecore_evas_rotation_get API
refs:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/305631/
2. Fix NUI video can't play issue
NUI app use wayland window but video hole
set as evas window default.
refs:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/295315/
3. Fix crash
refs:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/297840/
Change-Id: Id043740ee26661581c754b5b2cbf71f65130f7ee
Signed-off-by: Qiang Ji <qiang.ji@samsung.com>
fang fengrong [Mon, 4 Mar 2024 12:09:26 +0000 (20:09 +0800)]
[M120 Migration][VD] Fix ewk_view_focus_set fail issue
WebBrowser set focus through ewk_view_focus_set api not work at
first launch. Because when set focus, the offscreen_helper haven't
been created, it cause don't SetFocus.
So pending send focus till RenderFrameLive.
refer:
https://review.tizen.org/gerrit/#/c/298820/
Change-Id: I6a0722bd7853aefce9547864642383dc199ba7b5
Signed-off-by: fang fengrong <fr.fang@samsung.com>
wuxiaoliang [Mon, 4 Mar 2024 06:40:43 +0000 (14:40 +0800)]
[M120 Migration][MM] Merge HDR and use RM API to get Codec resolution
1. Add max codec resolution for Sero TV.
2. Update VP9* codec info.
3. Set HDR info.
4. Not support spatial rendering feature.
* Multiview resource allocation depends on left/right launch, and limitations are:
- not support trick play
- not support HDR
- not support 360 video
Migration from:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/290344/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/297093/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/290415/
Change-Id: If91d6130281ac10cc0dc5b414f819d1ff557b9a2
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
wuxiaoliang [Fri, 1 Mar 2024 05:37:46 +0000 (13:37 +0800)]
[M120 Migration] Add new api for webbrowser to get media device list
void ewk_view_media_device_list_get(Evas_Object* o, Ewk_Media_Device_List_Get_Callback callback, void* user_data);
add this api for browser youtube to get audio input/audio output/video input device
Migrated from:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/295121/
Change-Id: If3a30453dd05377c206d53cd6bba5ca383ad35a9
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
jiangyuwei [Mon, 4 Mar 2024 22:33:47 +0000 (06:33 +0800)]
[M120 Migration][VD] Add ewk_file_chooser_request APIs
Evas smart callback, "file,chooser,request", has not been supported
since Tizen 3.0. This patch implements ewk_file_chooser_request APIs
to suport "file,chooser,request". API spec is same as Tizen 2.4(WebKit).
- ewk_file_chooser_request_allow_multiple_files_get
- ewk_file_chooser_request_accepted_mimetypes_get
- ewk_file_chooser_request_cancel
- ewk_file_chooser_request_files_choose
- ewk_file_chooser_request_file_choose
Reference:
- https://review.tizen.org/gerrit/#/c/292148/
Change-Id: I62bb4192d615099f84766b2be5a29af0387ab3ee
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
Akshay Kanagali [Fri, 1 Mar 2024 08:36:11 +0000 (14:06 +0530)]
fixup! [M120 Migration] Show the context menu and settings menu
This patch disables the function call updateFocus in
EflWindow::InitializeEventHandler for only chrome build which
impacts settings menu and enables for other builds.
Change-Id: I7a5613a2a1185a16c7e8ea2c91ce79c72793a232
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>
yangzhiwen [Thu, 29 Feb 2024 06:40:01 +0000 (14:40 +0800)]
[M120 Migration] Support Dash high bitrate
void ewk_media_start_with_high_bit_rate(Evas_Object* ewkView, Eina_Bool high_bitrate)
This API was added so that Dash streams can support Dash high bitrate.
Process the URL of the video.
migrate from:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/292658/
Change-Id: Ic452e289854b7efbca6ccb958f8a8f68eca3e7b2
Signed-off-by: yangzhiwen <zw714.yang@samsung.com>
zhishun.zhou [Fri, 1 Mar 2024 09:49:39 +0000 (17:49 +0800)]
[M120 Migration] Destroy mmplayer while video tag receive removedFrom
issue:when exit app, video is still on screen.
solution: when exit app, destroy the player.
Patch from:
https://review.tizen.org/gerrit/#/c/301621/
Change-Id: I1d21cba123b08ed69dc098a500a00e11486ff0bb
Signed-off-by: yangzhiwen <zw714.yang@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
fang fengrong [Fri, 1 Mar 2024 11:08:25 +0000 (19:08 +0800)]
[M120 Migration][VD] Support ewk apis of key event
1.Support ewk apis of key event in case some other application will use
it.
Support ewk_view_send_key_event & ewk_view_key_events_enabled_set.
ewk_view_key_events_enabled_set:
EINA_FALSE---delete keydown and keyup callback in chromium
EINA_TRUE----add keydown and keyup callback in chromium
If callback is delete, WRT use ewk_view_send_key_event to send
keydown and keyup event to chromium.
Currently WRT dose not use ewk interface, but we keep this API in case
some other application will use it.
2.Add ewk_view_send_key_event to internal API header
refer:
https://review.tizen.org/gerrit/#/c/291454
Change-Id: I257fa7491efacb20b192fccfec1378d4630862cf
Signed-off-by: fang fengrong <fr.fang@samsung.com>
venu.musham [Fri, 1 Mar 2024 06:23:46 +0000 (11:53 +0530)]
fixup! RiscV support for M120.
Clang setting was disabled for riscv build, due to this gcc
build was enabled in QB, gcc build has complitation failures.
Enable clang as default build for QB.
Change-Id: I79b1b29205b4a14a9c72539cb401c187f97d1ba1
Signed-off-by: venu.musham <venu.musham@samsung.com>
zhishun.zhou [Wed, 28 Feb 2024 10:00:23 +0000 (18:00 +0800)]
[M120 Migration] Notify media device state to webbrowser
1) web engine get current user media state from media device.
2) web engine notify webbrowser state by ewk callback.
Add new ewk type:
UserMediaState
DECLARE_EWK_VIEW_CALLBACK(UserMediaState, "usermedia,state", void*)
From patch:
https://review.tizen.org/gerrit/#/c/294421/
Change-Id: I6acab4de98627aa478017512da79f1e0520236f8
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
Signed-off-by: xiaofang <fang.xiao@samsung.com>
Manjeet [Wed, 28 Feb 2024 12:34:10 +0000 (18:04 +0530)]
[M120 Migration] Fix coverity issues
This commit fixes following coverity issues
CID 115640, 1027471, 1029366, 1079885, 1084336, 1273651,
1278478, 1280131, 1672601
Reference:
https://review.tizen.org/gerrit/290923
Change-Id: Ib18b5bc86bb04770114c769e28b7e40a670b13a6
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
Manjeet [Sat, 24 Feb 2024 20:45:22 +0000 (02:15 +0530)]
[M120 Migration][TCT] Fix viewport user-scalable web-tct issue(behavior test)
Value changing of |user-scalable| property of view point meta tag is not applied
instantly. Due to this, zooming gesture is not working even if |user-scalable|
is changed to |true|. To apply this change instantly, changed to make layout
after updating |user-scalable| property.
Reference:
https://review.tizen.org/gerrit/288621
Change-Id: Id9ac0b4180cdea4ba9668fd9abb414cb3964d2d4
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
Koyyani Maheswari [Wed, 21 Feb 2024 12:29:23 +0000 (17:59 +0530)]
[HOTFIX] Web app is crashing during exit
when the web app is terminated, crash is reported with the below
callstack:
(gdb) bt
0xb30f4f16 in mojo::InterfaceEndpointClient::~InterfaceEndpointClient() ()
at /usr/share/chromium-efl/lib/libchromium-impl.so
Disabling the CHECK temporarily since crash is happening only on termination.
Change-Id: Id4c4fa55ee6398a6a1bb637634103c2a5985cf27
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
qiang.ji [Wed, 12 Apr 2023 02:12:39 +0000 (10:12 +0800)]
[M120 Migration] Fix Terms and Condition wizard shows transparent/white bg
As the viz strategy is totally updated, for bg logic, we need to flow below:
1. Set bg for Render CompositorFrame
EWebView::SetDrawsTransparentBackground -> WebFrameWidgetImpl::SetDrawsTransparentBackground
-> layer_tree_host -> CompositorFrameSinkImpl -> CompositorFrame with transparent bg
2. Set bg for Browser CompositorFrame
EWebView::SetDrawsTransparentBackground ->
RenderWidgetHostViewBase::SetBackgroundColor
2.1 RenderWidgetHostViewAura::UpdateBackgroundColor()
Compositor::SetBackgroundColor
layer_tree_host -> RootCompositorFrameSinkImpl -> CompositorFrame with transparent bg
2.2 RWHVAuraOffscreenHelperEfl::PaintTextureToSurface
RenderWidgetHostViewBase::GetBackgroundColor()
if set transparent bg, need to enable blend.
References:
https://review.tizen.org/gerrit/291210
https://review.tizen.org/gerrit/301497
https://review.tizen.org/gerrit/302739
Change-Id: I1b0650d5446917c6171df97eebef36c2f947f5fc
Signed-off-by: qiang.ji <qiang.ji@samsung.com>
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
Akshay Kanagali [Wed, 28 Feb 2024 09:17:04 +0000 (14:47 +0530)]
[M120] Fix build break for chrome
This patch fix chrome build issues occured by recent commits.
It also disables autofill for chrome build.
Change-Id: I9eb0b280057976de9c35faa125cf64cac9716121
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>
Gajendra N [Tue, 27 Feb 2024 05:22:00 +0000 (10:52 +0530)]
(Part 2) Use proper naming for handles/functions that represent EwkView
Commit [1] cleaned up most of the "evas_object" occurances inside tizen_src (but outside
ewk layer). This commit is follow up of [1], which replaces rest of the occurances with
ewk_view/EwkView inside ewk layer. Read [1]'s commit message for more details.
[1]
c65e88bc0c05def7e76e229beb506f2638034024
Also, cleans up unused/redundant functions.
Change-Id: I2f95f491e2dc72ebbb719df2efdccf1e2a229cb7
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
liwei90727 [Wed, 28 Feb 2024 10:14:07 +0000 (18:14 +0800)]
[WRTjs] Use BUILDFLAGS(IS_TV) for TV logic checking
USE BUILDFLAGS(IS_XXX) for OS checking, will disable
some unnecessary logic in compile stage
Change-Id: I4bfb553535776b35c1aac919359deecd81c69eb7
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
Chunling Ye [Wed, 28 Feb 2024 11:42:48 +0000 (19:42 +0800)]
[WRTjs] Use one FMS key to check is default mouse support product
New RQ for tizen8.0, only use one FMS key:
"com.samsung/featureconf/product.default_mouse_support" to get
if is default support mouse, in 8.0 the mouse default support
products are SmartMonitor, AOT and DTV.
Change-Id: Iffc704595075b8495554f0ff4efc3f1baf36b39d
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
Manjeet [Tue, 27 Feb 2024 13:15:08 +0000 (18:45 +0530)]
[M120 Migration] Free content_image_elm_host_properly
Evas object content_image_elm_host_belongs to a Layout, it will be
deleted when the layout deleted.
Just like List, Box, and other container widgets, any object added to
the Layout will become it's child, meaning that it will be deleted if
the layout is deleted, move if the Layout is moved, and so on.
https://docs.enlightment.org/elementery.1.15.0/group__layout.html
Reference:
https://review.tizen.org/gerrit/292255/
Change-Id: Ia86a429cf6891e1c152108f9c7c0763beb99ca59
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
Akshay Kanagali [Wed, 21 Feb 2024 12:21:29 +0000 (17:51 +0530)]
[M120 Migration] Handle fullscreen event in chrome
This patch enables the fullscreen feature for chrome.
Reference : https://review.tizen.org/gerrit/304571/
Change-Id: Ia7a3686fad9fcc00403c1e49e075497820f93d7b
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>
Manjeet [Mon, 26 Feb 2024 19:25:51 +0000 (00:55 +0530)]
fixup! [M120 Migration] Enable event handling for Ozone EFL
On RPi4, due to focus lost on mouse out event when
hovered on IME panel, IME keys events were not dispatched
to engine. This patch fixes it.
Reference:
https://review.tizen.org//gerrit/291887/
Change-Id: Ida9b59e31674ba03fc5cb47e043154970e4d05c0
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
v-saha [Thu, 22 Feb 2024 04:21:21 +0000 (09:51 +0530)]
Remove EWK_BRINGUPS for M120 #1
This commit removes some EWK_BRINGUPs added during M120 upversion.
Upgrading to Clang18 fixed some of the build errors.
Change-Id: Id71747db710ebe7002829db7ae52c28989db883e
Signed-off-by: v-saha <v.saha@samsung.com>
Mateusz Bieganski [Wed, 29 Nov 2023 13:54:28 +0000 (14:54 +0100)]
uBrowser: Add '-i' switch, to execute WebInspector server on startup.
The rationale is to automate performance or correctness tests, with
host-side client connecting to WebInspector server and investigating
HTML that was rendered.
Change-Id: Ib88942b71210f444e44dc257c7dae4df9eaedad1
Signed-off-by: Mateusz Bieganski <m.bieganski@samsung.com>
Rohit Kumar [Wed, 21 Feb 2024 09:10:38 +0000 (14:40 +0530)]
[M120 Migration]Fix for crash during chrome exit
As g_bluez_dbus_manager is nullptr in BluezDBusManager::Shutdown()
a crash is observed during chrome exit. By enabling
BluezDBusManager::Initialize(), g_bluez_dbus_manager value is set
to a valid value.
Reference: https://review.tizen.org/gerrit/303262
Change-Id: Ia496ca7a06fcf33b7a34a4660f7c8303e4a15e5b
Signed-off-by: Rohit Kumar <rohit.16@partner.samsung.com>
venu.musham [Mon, 26 Feb 2024 04:48:26 +0000 (10:18 +0530)]
fixup! [M120 Migration] Apply opacity/filter/border-radius for video hole.
when video hole is disabled, build issue is observed.
Build fixes for standard profile & desktop.
Change-Id: I30866ed130d2463466997c32615c77ac9d4a425c
Signed-off-by: venu.musham <venu.musham@samsung.com>
Nikhil Shingne [Mon, 29 Jan 2024 06:51:57 +0000 (12:21 +0530)]
fixup! [M120] Bring up autofill
This commit enables the autofill feature which was disabled during
m120 bringup. Fixes all the build errors due to changes on upstream.
With this commit, autofill related TCs PASS on NativeTCT.
Change-Id: I64e291292d7b99572b69221b4e4d78d5d32a21b6
Signed-off-by: Nikhil Shingne <n.shingne@samsung.com>
Akshay Kanagali [Mon, 19 Feb 2024 09:05:20 +0000 (14:35 +0530)]
[M120 Migration] Show the context menu and settings menu
This patch includes below to show the context menu and settings menu.
- Set the type of each window
- Focus on evas objects
- Implement event capture
- Separation of header and source file of ElfWindowManager
- Implement |EflWindow::IsVisible|
- Convert event location for submenu
References :
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/302447
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/302577
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/302685
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/302811
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/302528
Change-Id: I32bf5fadb2fcd78a9cce6f7d8ad74d0c6e4fb542
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>
Sun-woo Nam [Fri, 23 Feb 2024 05:26:42 +0000 (21:26 -0800)]
[MM][HBBTV] Enable the url demuxer for the hls video.
DemuxerManager has been newly created in this version, so new path that selects
the url demuxer for HLS and HBBTV should be enabled.
Additionally, I fixed an issue with the video hole when url demuxer was enabled.
Change-Id: Ifa428bbb06881df449f93b818b4d750993da550e
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Nishitha S [Wed, 21 Feb 2024 10:21:18 +0000 (15:51 +0530)]
[M120 Migration][HBBTV] Dispatch key events through associated event dispatcher only
HBBTV app launches single ecore/elm window but two ewk_views within the
same window. The app can send key events through ewk api to any of the
ewk_view and they need to be dispatched irrespective of their focus state.
Currently the unfocused ewk_view is not dispatching event because of way
event forwarding logic is written in ozone layer.
This patch makes necessary changes to check the associated dispatcher handle
instead of CanDispatchEvent, also keeps both aura windows in focus parallely.
This change is only for HBBTV.
Reference: https://review.tizen.org/gerrit/299770
Change-Id: Iecb83a0f22665edd03795bd4745d69c88453395c
Signed-off-by: nishitha <n.saravanan@samsung.com>
Daniil Ruban [Wed, 14 Feb 2024 19:41:40 +0000 (20:41 +0100)]
RiscV support for M120
* Enables WebAssembly
* Fixes lot minor bugs and warnings
* Fixes casting in esplusplayer
Contains next commits from tizen.riscv branch:
* Support riscv architecture.
3e79c4675e3331d8697db326ad13accb4bd1e5b9
* Disable gold linker.
36204a4c8e1b1ef951e5001f8e2e12acd56ce412
* [ffmpeg] Add support for riscv configuration.
eb43f36d555818b4d9cbaf258ec2a26dd15679bf
* sandbox: add riscv arch definition and define syscall
5df214a8a89f3d31ee45ab963a8e22fd6e619c13
* [skia] add riscv64 architecture detection in gn phase
c236147d28521517e5abb950af462c258627c711
* Fixed the build error using gcc 13
bdfd554591ae83b189fcbe0c064ef545bb4be0ed
* Adding some files for riscv64 temporarily
0d36d8dad205e79be067cb7c72c9e988d4c3cb77
* Fixed the build error of wrt/src/base/string_utils.cc
372c01201d95916a53b6be87c9d4e99492b42a0d
* Fixed the build error for i586 using gcc 13
72a5eb4ae814a40e6470f68df079fea7a9abe998
* Fixed the build error for armv7l using gcc13
aeeb7a59aa41e058081d5e872a25e15c601ab9cc
* Fixed the build error for armv7l using gcc13
8686a1f6ad59dd019d71afea13f62390736a1f94
* Disable clang build for gcc 13.
c5df511720124822c2785ba9ae22afabc0fbac16
* Update gbs repositories for gcc 13.
bd7ff786dede19eb884135a3ec59db19cbeda217
* Adding python-accel for riscv64
53e307450705d54690c4cb33f1f965648045475d
inner tasks: #229 #253
Change-Id: I458be4dc8c868bb07f9664219ec400e7c4fb94d7
Signed-off-by: Aleksander Åšwiniarski <a.swiniarski@samsung.com>
Manjeet [Tue, 20 Feb 2024 20:47:12 +0000 (02:17 +0530)]
[M120 Migration][TTS] Ignore duplicate callbacks
On VD's autohub test, sometimes, tts engine sends multiple complete
callback for same utterance. This would lead to crash.
Reference:
https://review.tizen.org/gerrit/290773
https://review.tizen.org/gerrit/299242
Change-Id: Ia62b04815d87021a57de5505541c3435e024a0c4
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
Rohit Kumar [Thu, 22 Feb 2024 11:02:46 +0000 (16:32 +0530)]
[M120 Migration] Disable Select file on Chrome
Chrome is freezing when file system is accessed. This
patch disables the select file functionality.
Reference: https://review.tizen.org/gerrit/304907
Change-Id: Ifb5f9c3ccf573a1bcebcbd9133547be1cb43d4f3
Signed-off-by: Rohit Kumar <rohit.16@partner.samsung.com>
DongHyun Song [Mon, 19 Feb 2024 08:26:09 +0000 (17:26 +0900)]
[WRTjs][VD] Reduce IS_TIZEN_TV compile flag #4
Remove IS_TIZEN_TV on TV profile's file handlers.
Change-Id: I56843c1e5aeab42426f782a9156abacae9b86993
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Mon, 19 Feb 2024 06:40:34 +0000 (15:40 +0900)]
[WRTjs][VD] Reduce IS_TIZEN_TV compile flag #3
Remove IS_TIZEN_TV for code readability.
Change-Id: I0cd3ebef4b9ed9bb0465de96d64d3af09bec49d6
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Mon, 19 Feb 2024 06:34:08 +0000 (15:34 +0900)]
[WRTjs][VD] Reduce IS_TIZEN_TV compile flag #2
Add BlockNavigation API to remove IS_TIZEN_TV for code readability.
Change-Id: I1134508597a4dbd99b3424fd551cb14d7d871a74
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Manjeet [Wed, 21 Feb 2024 10:40:05 +0000 (16:10 +0530)]
fixup! [M120 Migration] Enable snapshot feature for EFL port
This commit adds sample code to test sync screenshot API in ubrowser.
Reference:
https://review.tizen.org/gerrit/298956
Change-Id: I9781243ac601361437d6330035f93a2d53aa9776
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
Sun-woo Nam [Sun, 23 Apr 2023 09:12:41 +0000 (17:12 +0800)]
[M120 Migration] Apply opacity/filter/border-radius for video hole.
1. Pass video hole flag to DirectRenderer
2. Disable blend for border-radius case
3. Disable blend and use Black Quad with opacity to simulate
opacity effect.
4. Update render target id for filter effect node
If parent node set filter:brightness, chromium will
create a kFilter effect node. This effect node will create a
contribute render surface which will cover on video. So we need to
update it's render target, let it to render on the same surface with
video hole rectangle.
5. Implement opacity css
Update video layer's target render surface to it's parent target
In some special case, like disney+, Hoichoi.tv opacity animation
will cause opacity abnormal. opacity is 1.0f, but create render surface.
Reference:
https://review.tizen.org/gerrit/#/c/291821/
https://review.tizen.org/gerrit/#/c/292417/
https://review.tizen.org/gerrit/#/c/297840/
https://review.tizen.org/gerrit/#/c/302794/
Change-Id: I6b07af528bb5e912fabec2a7c8a831adb96fbec9
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Manjeet [Tue, 20 Feb 2024 19:51:43 +0000 (01:21 +0530)]
[M120 Migration] Set IO|GPU thread type with higher priorites
This patch sets IO and InProcGPU thread types to higher priorites
kCompositing and kDisplayCritical respectively, like ANDROID,
to improve rendering performance.
Reference:
https://review.tizen.org/gerrit/290935/
Change-Id: Ib6de5c7a19feeb21e794889692439004ab39ff8a
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
yh106.jung [Tue, 20 Feb 2024 23:46:48 +0000 (15:46 -0800)]
Remove conditional statements for M/W profile
Since 8.0, Tizen supports a single set native of APIs.
So, this patch removes conditional statements for Mobile/Wearable
profile from ewk headers.
Change-Id: Id1e419e6fcf81cf0da5aa9c3d874f151b718d396
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
Gajendra N [Wed, 21 Feb 2024 04:15:05 +0000 (09:45 +0530)]
Fix desktop build error on Ubuntu 22.04
Error:
Package 'atspi-2' requires 'glib-2.0 >= 2.62.0' but version of glib-2.0 is 2.40.2
Could not run pkg-config.
System's atspi-2 package version is newer on Ubuntu 22.04 which is not compatible
with the older glib version listed in jhbuild. Since atk is not needed for desktop
build, place the related pkg-configs under is_tizen guard.
Change-Id: I77c8d686af36e6fcbf1e555d109b6a1473e1752d
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
chiragmaheshwari [Mon, 19 Feb 2024 07:25:15 +0000 (12:55 +0530)]
[M120 Migration][PERF]Setting low-end device memory threshold as was in M94
Chromium checks whether current device is low-end device in
`SysInfo::IsLowEndDevice`. Main test is based on how much RAM is
installed on the device. Between M94 and M108 this threshold has been
raised from 512MiB to 2GiB. As most of Tizen TV devices has less then
2GiB RAM available, this causes that these devices are considered
low-end ones.
This causes that `--optimize-for-size` flag is passed to V8 in
`RenderProcessImpl` ctor. Although this indeed lowers memory pressure, it
has also very negative performance implications. So to keep performance
of M108 Chromium on Tizen TVs this patch changes threshold to one used
for M94.
Patch form:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/292472/
Reference: https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/293179
Change-Id: Ieb1cad80ff96deca6bb23cd9e262870964b3a1f5
Signed-off-by: chiragmaheshwari <c.maheshwari@samsung.com>
venu.musham [Thu, 18 Jan 2024 11:00:21 +0000 (16:30 +0530)]
[M120 Migration] Error page isolation & navigation.
Disable error page isolation for EFL port
Use the current SiteInstance for error page navigation
Reference: https://review.tizen.org/gerrit/292258
Change-Id: I5a4d59f096a8814bd35d4ef57b4244105c53b457
Signed-off-by: venu.musham <venu.musham@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 05:23:57 +0000 (21:23 -0800)]
[M120 Migration][MM] Set mime type and fix the supported formats.
- Set mime type for Tizen
https://review.tizen.org/gerrit/#/c/293363/
- Support MPEG4 format on FFMpeg demuxer.
https://review.tizen.org/gerrit/#/c/301843/
- Fix warnings in supported_types.cc
https://review.tizen.org/gerrit/#/c/301927/
Change-Id: I85a28a3f77c6eb500ad24b1dd6de65eb10514dc8
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
jingjieli [Mon, 19 Feb 2024 09:28:28 +0000 (17:28 +0800)]
[M120 Migration][VD] elapsed time for url request
This adds end point logs for each url requests.
Also enables HWC log for url request.
Reference:
https://review.tizen.org/gerrit/#/c/297942/
https://review.tizen.org/gerrit/#/c/301473/
Change-Id: I3f3812551ca190c7d5e6b3abb222e60a21d724a0
Signed-off-by: jingjieli <jingjie.li@samsung.com>
Manjeet [Tue, 6 Feb 2024 06:10:48 +0000 (11:40 +0530)]
Cleanup dead code which is no longer needed or used.
Reference:
https://review.tizen.org/gerrit/#/c/290702
Change-Id: I033b9f6179f866d4ea07e9270fcd12c3de3ef411
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
Gajendra N [Tue, 20 Feb 2024 05:08:44 +0000 (10:38 +0530)]
Cleanup web_view_evas_handler and related code
This part of the code is no longer used since post aura, hence removing.
Change-Id: I857d5f588d0452dac3008c5bf0e1c2459fff7386
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
Manjeet [Wed, 7 Feb 2024 09:10:19 +0000 (14:40 +0530)]
[M120 Migration] Fix SVACE major issues.
Reference: https://review.tizen.org/gerrit/#/c/290723/
Change-Id: Ic39fb19057f0dd8d44bfcd104991e9b59b3aa1c4
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>
YongGeol Jung [Tue, 20 Feb 2024 04:22:12 +0000 (20:22 -0800)]
Fix buildbreak that occurs when boost lib dependency is removed from wgt module
Due to modification of wgt-manifest-handlers module, the header file related to
|usleep| was removed. Modified to directly include the relevant header file.
../wrt/src/common/app_db.cc -o obj/wrt/wrt_lib/app_db.o
[ 3577s] ../wrt/src/common/app_db.cc:91:28: error: use of undeclared identifier 'usleep'
[ 3577s] usleep(100000 * (count + 1));
[ 3577s] ^
[ 3577s] 1 error generated.
Change-Id: I0ce50874548dbb5c467366f5614761b101212b2d
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 05:21:52 +0000 (21:21 -0800)]
[M120 Migration][MM] Get WebContents in Realtime.
1.web_contents_ varaible is passed by TizenRendererImpl constructor
It may be destroyed and don't notify TizenRendererImpl
which makes dangling pointer access
So get webcontents by render_process_id and routing_id in realtime
References:
https://review.tizen.org/gerrit/#/c/295250/
https://review.tizen.org/gerrit/#/c/297630/
- fixup! Solve GetViewportRect crash
There is also a web_contents_ that is not modified.
https://review.tizen.org/gerrit/#/c/295250/
Change-Id: I2d26e63417d9b383dd8a516d6b7b1cb7d1393259
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
venu.musham [Fri, 16 Feb 2024 11:04:40 +0000 (16:34 +0530)]
[v8] Enable v8 optimization.
V8 lite mode was enabled during upversion to resolve build
issues during bringup. lite mode disables v8 optimizations,
hence canvas performance was low.
Enable V8 optimizations.
Change-Id: I705d25fd91d7b3c6bc11006ac92a1dca1799fbdc
Signed-off-by: venu.musham <venu.musham@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 05:12:01 +0000 (21:12 -0800)]
[M120 Migration][MM] Pass |user_agent| instead of WebContents during MediaPlayer creation
This is to avoid dependency on //content in //media/filters
for resolving DA build errors for tizen 6.0.
Reference:
https://review.tizen.org/gerrit/#/c/295064/
Change-Id: I01d5d57075b734e15394624e6572ff11cbae1d04
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
DongHyun Song [Mon, 19 Feb 2024 01:58:01 +0000 (10:58 +0900)]
[WRTjs][VD] Make optional value for multitasking support
Make optional value for multitasking support
Change-Id: Ia19a272c898213f1e70d1ec61369464c4fc4ced3
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
liwei90727 [Thu, 8 Feb 2024 09:12:26 +0000 (17:12 +0800)]
[WRTjs][VD] Unset 500ms delay suspend for non-multitasking app
If app doesn't support multitasking, it's unncessary to delay
500ms for suspend, WRT can suspend immediately, then this app
will be quitted at once.
Change-Id: I815c1c58a85092996d61cadb9fb605ba31c24dd9
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
nishitha [Thu, 15 Feb 2024 10:25:29 +0000 (15:55 +0530)]
[M120 Migration][Tizen] Fixes coverity issue AUTO_CAUSES_COPY
Reference : https://review.tizen.org/gerrit/302479/
Change-Id: If7e5ef6e084586c083d470e6a160c0c772bb85fe
Signed-off-by: nishitha <n.saravanan@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 05:09:47 +0000 (21:09 -0800)]
[M120 Migration][MM][CAPI] Fix the logic for media using capi player.
This patch migrates the below previous patches partially for hls contents
to make work normally.
- Support webmedia playback state notification
webbrowser need playbackstart event to show miniplayer button.
https://review.tizen.org/gerrit/#/c/292410/
- Support Preloading feature
Add preload feature for Ligada ADINS tcs.
Which need high performance during video switch.
https://review.tizen.org/gerrit/#/c/292683/
- Support seek for live streams
This patch adds support for seek event on HLS / DASH streams.
https://review.tizen.org/gerrit/#/c/292955/
- Fix SetStreamInfo called multi-times issue
Check ispreparing state to avoid multi-times call.
https://review.tizen.org/gerrit/#/c/293823/
- Report right status and currenttime to app
https://review.tizen.org/gerrit/#/c/295396/
https://review.tizen.org/gerrit/#/c/301906/
- Fix hls video can't seek issue
Add flush_cb.run in it to make mojom pipeline works.
https://review.tizen.org/gerrit/#/c/298059/
- Fix CAPI Player Rotation
Rotation will use resource_id in such cases
- ecore_wl2_window_resource_id_get()
https://review.tizen.org/gerrit/#/c/298825/
- Move player initialization and preparation forward.
The first player initialization and preparation can be moved forward.
TizenRendererImpl::StartPlayingFrom -> TizenRendererImpl::Initialize
https://review.tizen.org/gerrit/#/c/300864/
https://review.tizen.org/gerrit/#/c/301060/
- Fix player release issue
Relax condition to make it unprepre always.
https://review.tizen.org/gerrit/#/c/301908/
- Adjust seeking behavior on media-player-capi-tv
This commit adjusts the way seeking is handled by the media player capi
playback layer.
https://review.tizen.org/gerrit/#/c/302863/
Change-Id: I453a8a6c435ace16c93f767be3b27f82a0c99b5d
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 05:08:23 +0000 (21:08 -0800)]
[M120 Migration][MM] Handle media playback with buffering state.
This patch migrates patches to handle playback behaviors with buffering state.
- Pause video when buffered data is not enough.
Pause video when buffered data is not enough to play.
And play video again when enough data is pushed.
This patch fixes audio loss after network is disabled and reconnected.
https://review.tizen.org/gerrit/#/c/300705/
https://review.tizen.org/gerrit/#/c/301096/
https://review.tizen.org/gerrit/#/c/301303/
- Trigger waiting event to APP
Report kReadyStateHaveCurrentData when no data to decoder.
https://review.tizen.org/gerrit/#/c/303941/
Change-Id: I2b0c6161628dfb987b326f34e6b2539ab5b26f87
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
v-saha [Fri, 9 Feb 2024 12:45:43 +0000 (18:15 +0530)]
fixup! [WRTjs] Enable WRTjs
This patch fixes build errors after enabling WRTjs for M120.
Change-Id: Ib7cfe8ea6166a92c87f34e7d384de71d7c2c8d31
Signed-off-by: v-saha <v.saha@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 04:19:46 +0000 (20:19 -0800)]
[M120 Migration][MM] Migrate patches for suspend and resume.
This patch supports suspend and resume behaviors when media goes to
background or the mulit-videos scenario.
- Handle suspend for Capi Player.
Handle suspend request from MediaCapabilityManager and resource conflict.
https://review.tizen.org/gerrit/#/c/292279/
- Arrange the suspend logic.
Release the esplusplayer when resource is conflicted.
https://review.tizen.org/gerrit/#/c/298638/
- Fix potential crash issue
Add null check to avoid crash.
https://review.tizen.org/gerrit/#/c/300715/
- Fix the media suspend/resume issue between apps.
Cancel the request suspend task if it has not been completed
when the player is resumed.
Flush the player buffer before seek.
https://review.tizen.org/gerrit/#/c/298571/
- Distinguish suspend situations based on the resource conflict.
The suspend situation by the player is mainly as follows.
1) If there are multiple videos in one content, request suspend by
MediaCapabilityManager.
2) Resource conflict occurs when another video plays in another process.
In case 1), these suspended videos doon't need to be resumed
when the app is suspended and resumed.
In case 2), the video should be resumed when the app is suspended and resumed.
https://review.tizen.org/gerrit/#/c/299121/
Change-Id: I53a602665458945bd359b89276f3602479fea5e7
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 04:15:11 +0000 (20:15 -0800)]
[M120 Migration][MM] Modifications for basic operation of ME & MSE using espp.
This patch migrates previous patches for media operations such as play, pause
and seek. And this patch categorizes them into several groups.
[Buffer logic]
- Reduce read requests
Avoid read request when player is not playing / seeking.
https://review.tizen.org/gerrit/#/c/292239/
https://review.tizen.org/gerrit/#/c/294027/
- Read data from demuxer during buffer underrun
https://review.tizen.org/gerrit/#/c/294082/
-Shrink unnecessary OnBufferingStateChange call.
The player doesn't need to transfer the same state (BUFFERING_HAVE_ENOUGH)
to the renderer side, so add the condition to shrink it.
https://review.tizen.org/gerrit/#/c/299653/
- Do not return the index -1 for the array.
The potential defect was reported by Coverity.
https://review.tizen.org/gerrit/#/c/293011/
- Remove unutilized code
Remove buffering based player state handling.
https://review.tizen.org/gerrit/#/c/294537/
[Seek]
- fixup! [M108 Migration][MM] Introduce renderer seek
for resume play scenario, app will seek to previous playtime
expected_seek_ is set true, if the player is not ready,
it will stop espp to read data from demuxer, so espp prepare never complete
https://review.tizen.org/gerrit/#/c/294960/
https://review.tizen.org/gerrit/#/c/295324/
- Ignore Flush before prepared
https://review.tizen.org/gerrit/#/c/298597/
- Prevent to esplsuplayer_seek twice.
https://review.tizen.org/gerrit/#/c/300869/
- Do not ignore seeking to 0 before prepared.
https://review.tizen.org/gerrit/#/c/301027/
- Skip the seek when the requested time is same as pending seek position.
https://review.tizen.org/gerrit/#/c/301630/
- Fix seeking after esplayer destroyed
https://review.tizen.org/gerrit/#/c/302426/
[Other]
- Fix video_000 video tct
Fix manual tests "video_000" that expects reference frame
to be displayed on the screen.
https://review.tizen.org/gerrit/#/c/292260/
https://review.tizen.org/gerrit/#/c/292315/
- Do not mute when the playback rate is 2.0.
https://review.tizen.org/gerrit/#/c/296453/
- Keep last frame when receive EOS event
https://review.tizen.org/gerrit/#/c/298157/
- Fix browser main thread stuck issue
player_get_play_position called before prepared.
This sync api will block browser thread.
Only prepare complete, then call this api
https://review.tizen.org/gerrit/#/c/300201/
- Check an espp status before setting the buffer type.
https://review.tizen.org/gerrit/#/c/299286/
- Fix svace warning
https://review.tizen.org/gerrit/#/c/297825/
- Fixup! [MM] Ensure player is destroyed before IEMEDrmBridge
https://review.tizen.org/gerrit/#/c/302624/
Change-Id: I6c77f75da170119892803d3d943cf3422ac5a9df
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
uzair [Tue, 9 May 2023 15:07:59 +0000 (20:37 +0530)]
[M120 Migration] Disable GL_EXT_disjoint_timer_query for TV profile
Below change disables GL_EXT_disjoint_timer_query extension for
TV as its giving invalid values during webapp launch which results
in DidFirstVisuallyNonEmptyPaint() not being sent from engine side
due to which we see black screen on emanual launch.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/292539/
Change-Id: Ib378fea473fb6272d9a2f848f48ffca32703a876
Signed-off-by: uzair <uzair.jaleel@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 04:08:19 +0000 (20:08 -0800)]
[M120 Migration][MM] Refactor the relationship between TizenRendererImpl and MediaPlayer.
TizenRendererImpl has MediaPlayer as a memeber variable and calls the functions
of MediaPlayer. MediaPlayer doesn't depend on TizenRendererImpl, but needs to
deliver messages to TizenRendererImpl in some cases.
To remove coupling caused by these two-way calls,
MediaPlayer uses RendererClientInternal which inherits RendererClient
and MediaPlayerTizenClientExtension interface.
(The mojo interfaces RendererClient and MediaPlayerTizenClientExtension are
used to access pipeline from TizenRendererImpl.)
There are three problems in this structure.
1. MediaPlayer has two member variables with different interfaces,
but they point to the same object.
2. In the case of RendererClient, two RendererClient variables are created
according to the audio and video type. They are required when there are
audio and video renderers, but not in the current tizen renderer.
3. I don't think it needs to be implemented according to those interfaces.
The function not included in those interfaces may also be needed.
Therefore, in order to solve these problems,
create MediaPlayerTizenClient interface and make TizenRendererImpl
implement the interface and hand over to MediaPlayer.
In addition, include functions in MediaPlayerTizenClient that were handed over
as callback.
Refernce:
https://review.tizen.org/gerrit/#/c/294565/
https://review.tizen.org/gerrit/#/c/297907/
https://review.tizen.org/gerrit/#/c/300743/
Change-Id: I4da99a4329d7ce1bff02b60dd7ac36b3b1037811
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
DongHyun Song [Wed, 14 Feb 2024 08:12:54 +0000 (17:12 +0900)]
[M120 Migration][Service][VD] Support file extension resolver for ESM type
require.extensions[] extension resolver is only supported on cjs(CommonJS).
For ESM modules, it needs to try to search path with extensions again.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/296123/
Change-Id: I693902979f51d7267cf8d23e2c66d723bc9c45ee
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Thu, 15 Feb 2024 06:52:01 +0000 (15:52 +0900)]
[WRTjs][VD] Hide early if app is visible when termination
If an application is terminated by 3rd party when app is visible,
black screen or abnormal last frame can be observerable for a moment.
So, this patch will hide the window early while closing window.
Change-Id: Ied14bdd3f40891c9695b1ef89250f4bd7010d8f1
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 04:06:25 +0000 (20:06 -0800)]
[M120 Migration][MM] Create the factory class for MediaPlayer creation.
MediaPlayer created in TizenRendererImpl varies depending on the platform
and a media stream type. It complicates the code and makes unnecessary
dependencies.
Therefore, use the factory pattern to increase scalability and
reduce code complexity and dependencies.
Refernce:
https://review.tizen.org/gerrit/#/c/293253/
Change-Id: I57c38e0f6973b57214c8cc04434107cfdca02023
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Nishitha S [Wed, 14 Feb 2024 11:21:41 +0000 (16:51 +0530)]
[M120 Migration] Fix IME flicker issue
Corresponding IME panel should be shown directly for each input type without
any visible switching between the panel layout types. This patch makes
necessary changes to handle IME flicker issue in RPI4 and FHUB.
Reference: https://review.tizen.org/gerrit/#/c/302466
Change-Id: I3774f05b75d33f538c23decdb19ec99499bc149f
Signed-off-by: nishitha <n.saravanan@samsung.com>
DongHyun Song [Wed, 14 Feb 2024 08:44:32 +0000 (17:44 +0900)]
[WRTjs] Remove build warning
Remove build warning of wrt_service_manager.cc
Change-Id: I027b2476f8d6a971a9a1d7e60f85340f93f8a0c6
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
yh106.jung [Thu, 15 Feb 2024 00:17:26 +0000 (16:17 -0800)]
[M120 Migration][HBBTV] export more symbols to hbbtv
some methods have been moved out of the V8 class into
the namespace v8::api_internal
references:
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/291878
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/301019
Change-Id: Ieae8248ca5d246d2cb750d7f5d9b19e8cfe455b7
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 04:03:54 +0000 (20:03 -0800)]
[M120 Migration][MM] Remove esplusplayer dependency from the BufferObserver interface.
There is a buffer observer for processing media buffering-related callback
from player.
The current structure is that ESPlusPlayerBufferObserverImpl implements
the BufferObserver interface, which has esplusplayer dependency.
The dependency of certain players is removed from BufferObserver
for scalability to allow Capi mmplayer to also use this interface.
Reference:
https://review.tizen.org/gerrit/#/c/292484/
https://review.tizen.org/gerrit/#/c/292740/
Change-Id: Ie7f5297f37d77f17fe02b8b8a97d903746198e75
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 03:58:36 +0000 (19:58 -0800)]
[M120 Migration][MM] Enable video hole when in full-screen mode in the public profile.
In accordance with the policy, video hole should only be enabled
when the video is in full-screen mode in the public profile.
Therefore, video hole should be dynamically turned on/off
based on whether the video is in full-screen mode or not.
- |esplusplayer_enable_video_hole| is used for this feature.
- Create MediaPlayerESPlusPlayerCommon because |esplusplayer_enable_video_hole|
can be used only for the public profile.
- Extract |SetBufferType| function that sets the buffer type
because the buffer type should be always 'copy' to use
|esplusplayer_enable_video_hole| in the public profile.
- Extract |PrepareVideoHole| function that calls video hole-related apis
to keep the following function call order.
esplusplayer_set_video_frame_buffer_type -> esplusplayer_set_display
-> esplusplayer_enable_video_hole -> esplusplayer_prepare_async
Reference:
https://review.tizen.org/gerrit/#/c/291803/
https://review.tizen.org/gerrit/#/c/292529/
Change-Id: Ibe85b1ad0e2885eb201f309e0630d2eeb40b69a4
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
DongHyun Song [Thu, 8 Feb 2024 09:02:19 +0000 (18:02 +0900)]
[WRTjs][Service][VD] Fix wrt-service crash
When finalize ApplicationData instance on wrt-service, unexpected
acrash is happened probably with wrong instance size.
Change-Id: I5e859f467e3de27def4f7f208087aac3b7fcfdbc
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
sidpaswan [Tue, 6 Feb 2024 04:16:44 +0000 (09:46 +0530)]
[Clang] Updated to Clang 18
Open source llvm 18.0 is built and accelerated for tizen to generate clang,
lld and llvm binaries that are required for clang build for standard profile.
The commit replaces 11.0 headers and binaries with the ones built for 18.0
Basic functionalities tested on TV and rpi4. Working Fine.
Change-Id: Iacd68612b0a04554a9f96105123c0487aa849f59
Signed-off-by: sidpaswan <s.paswan@samsung.com>
sidpaswan [Wed, 7 Feb 2024 09:00:18 +0000 (14:30 +0530)]
Fix for compiler and linker errors with clang 18
Fixes the following linker error:
ld.lld: error: relocation R_ARM_TLS_LE32 against blink::g_thread_specific_
cannot be used with -shared
More details related to the error can be found at:
https://reviews.llvm.org/D93331?id=311994
Change-Id: Ib9471e396415baa5eb77d8471c73433dc88d30f2
Signed-off-by: sidpaswan <s.paswan@samsung.com>
Chandan Padhi [Fri, 9 Feb 2024 08:08:18 +0000 (13:38 +0530)]
fixup! [M120 Migration][MM] Camera and WebRTC patches migration.
This commit fixes desktop build errors resulting from the parent patch.
Change-Id: I8e46faae50771ac8dd1a92d7d457096c5e73204c
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
Satyaveer Singh [Thu, 8 Feb 2024 06:10:40 +0000 (11:40 +0530)]
[VD] Disable GPU Rasterization by default
M120 enables GPU Rasterization by default, so we disable it until
it is fully verified. With this patch, improvements on GPU memory
consumption are seen for Naver.
References: https://review.tizen.org/gerrit/291676/
Change-Id: I302d249908e21923f4be8e99616d9547bf956b3e
Signed-off-by: Satyaveer Singh <satyaveer.s@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 03:27:35 +0000 (19:27 -0800)]
[M120 Migration][MM] Refactor codes for upversion migration.
Move some codes related to espp to other scopes to migrate next patches easily.
These codes are included in some patches.
https://review.tizen.org/gerrit/#/c/290566/
https://review.tizen.org/gerrit/#/c/291285/
https://review.tizen.org/gerrit/#/c/293459/
Change-Id: I7d3ddd1b81b9ef5d6836c6432bf64f42e3688b1c
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
DongHyun Song [Mon, 5 Feb 2024 06:37:55 +0000 (15:37 +0900)]
[WRTjs][VD] Reduce IS_TIZEN_TV compile flag
Reduce IS_TIZEN_TV compile flag of ApplicationData class
for code readability
Change-Id: I614018414f9b30c3478ab7c9a2fc829fd09e9936
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
zhaosy [Tue, 6 Feb 2024 02:47:11 +0000 (10:47 +0800)]
[M120 Migration][XWalkExtension][VD] Propagates --xwalk-extension-path to renderer
Copy '--xwalk-extension-path' to renderer process to handle xwalk
extensions.
Reference Patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294333/
Change-Id: I2cbda9b081a4f4a4a8688a0785911594d617da2d
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
zhaosy [Sun, 4 Feb 2024 03:21:25 +0000 (11:21 +0800)]
[M120 Migration][WRTjs][VD] Fix camera permission denied issue
In PermissionControllerDelegate::GetPermissionResultForCurrentDocument,
PermissionStatus::DENIED is return as default, so can't use camera for webapp.
Override GetPermissionResultForCurrentDocument in WRT, return PermissionStatus::GRANTED.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/292389/
Change-Id: Ib98e5ec9f73c66493a4df6f8bc1ffa3cfe4a7d7e
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 02:48:50 +0000 (18:48 -0800)]
[M120 Migration][MM] Add new class for HBBTV on TV
MediaPlayerBridgeCapi generated MediaPlayerTizen directly.
Delete MediaPlayerEfl MediaPlayerManager MediaPlayerBridgeCapiAdapter.
Reference:
https://review.tizen.org/gerrit/#/c/291756/
Change-Id: I681429ccbe926d8bfd3e6d1a57eb60c56a7428b2
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Sun-woo Nam [Fri, 2 Feb 2024 01:53:21 +0000 (17:53 -0800)]
[M120 Migration][MM] Make video hole work properly.
This patch includes the three patches below to make video hole work properly
in WRT and so on.
1. fixup! [MM] Fix the issue that video hole is not enabled.
In the previous patch, there is an issue that video hole often doesn't work.
Notify that preferences have been changed when video hole is enabled.
https://review.tizen.org/gerrit/#/c/290642/
2. Enable video hole and remove unused mirror blur codes in WRT.
The video hole feature should be enabled for the web app in the public profile.
To enable the feature, remove unused mirror blur codes in WRT.
The mirror blur is enabled for the wearable profile, but it is unclear whether
the wearable profile will continue to be supported.
https://review.tizen.org/gerrit/#/c/291868/
3. Set window handle for video hole
Video playback will fail on webapps on standard build.
Set window handle to be used for overlay.
https://review.tizen.org/gerrit/#/c/292251/
4. Add onMove logic for window while playing video
For mini-player, window canbe moved. while we move window, we
need to set new geometry for video element.
https://review.tizen.org/gerrit/#/c/295353/
5. Get a current viewport rect to set media geometry.
When a webview was moved, a new viewport rect should be passed to player
to set media geometry for video hole.
Therefore, call |SetPlayerMediaGeometry| in |OnWebViewMoved| callback.
Additionally, remove |ResetMediaGeometry| because there is already logic
for setting deferred.
https://review.tizen.org/gerrit/#/c/295430/
6. Add willdraw logic for web app (partially)
Use willdraw to commit wl_buffer to efl while rotation is done
https://review.tizen.org/gerrit/#/c/294798/
Change-Id: I1787dadff487562c0cffaab8cfdccace83330fdb
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
YongGeol Jung [Wed, 7 Feb 2024 02:15:32 +0000 (18:15 -0800)]
[M120 Migration][WRTjs] Default path for 'ready-to-show'
In order to show the WebApp, a "ready-to-show" message must be generated. The
message should be sent after the first frame is drawn and the layout has been
completed with minimal content. This patch ensures that this timing is met.
Reference:
[1] Modify to ensure |DidFirstVisuallyNonEmptyPaint| callback is called.
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/293610/
[2] fixup! Modify to ensure |DidFirstVisuallyNonEmptyPaint| callback is called.
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294060/
[3] fixup!(2) Modify to ensure |DidFirstVisuallyNonEmptyPaint| callback is called.
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294317/
[4] Check presentatoin feedback condition for |DidFirstVisuallyNonEmptyPaint|.
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294610/
[5] Do not ignore first frame for |DidFirstVisuallyNonEmptyPaint|.
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/295637/
Change-Id: I42979d84c6f3047824bc3e4bec034411b03b23e7
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
Sun-woo Nam [Wed, 24 Jan 2024 07:37:11 +0000 (23:37 -0800)]
[M120 Migration][MM] Camera and WebRTC patches migration.
This commit includes commits below.
- Add MJPEG support
Add support for MJPEG camera stream, jpeg frames are internally sent
with PIXEL_FORMAT_ENCODED instead of PIXEL_FORMAT_MJPEG, which avoids
the decoding in default camera pipeline and helps redirecting frames
towards the esplusplayer.
https://review.tizen.org/gerrit/#/c/290488/
https://review.tizen.org/gerrit/#/c/291867/ (partial)
- [GUM] Clean internal tizen codes for camera.
https://review.tizen.org/gerrit/#/c/290574/
- [GUM] Get lens orientation
Camera lenses may give rotated video streams. So, in application lens
orientation is obtained and is used for frame rotation.
https://review.tizen.org/gerrit/#/c/291838/
- Implementation of lazy start
Add lazy_start to capture params when request is generated by
user_media_processor to create camera in suspended state and to create
capture client in paused state.
https://review.tizen.org/gerrit/#/c/291188/
- Fix issues in video capture device tizen
We need keep MJPEG and ENCODED
Fix missing type in function GetCaptureApiTypeString()
https://review.tizen.org/gerrit/#/c/291169/
- Support H.264 codec for the public profile.
Set ffmpeg_branding to "Chrome" for enabling H.264 decoders.
https://review.tizen.org/gerrit/#/c/294042/
Change-Id: I02076dfa9c98ec344cbbdc18847d6a99a781d1a1
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Sun-woo Nam [Wed, 7 Feb 2024 00:30:33 +0000 (00:30 +0000)]
Add IS_TIZEN_DA to fix build break in standard build.
This patch fixes build break caused by the patch below.
https://review.tizen.org/gerrit/#/c/305076/
Change-Id: I278839c1027c91e3af31a35e6988b63716943891
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
zhaosy [Mon, 5 Feb 2024 07:56:11 +0000 (15:56 +0800)]
[M120][XWalkExtension] Remove EWK_BRINGUP in XWalkExtension
Remove EWK_BRINGUP in XWalkExtension
Change-Id: I9e8dfc0f18e0c5ff511ca7fb7534eae59258fa28
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
Gajendra N [Mon, 5 Feb 2024 09:32:15 +0000 (15:02 +0530)]
Fix HTLMInputElement.type not returing "datetime" string for <input type="datetime">
InputType::FormControlType() virtual method is removed in m120 upstream, because
if which 'datetime-local' is returned as string from base impl. Made necesasary
changes to fix the issue.
Change-Id: I439c0e257808f983cbe980c3c7188e208791b80e
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
liwei90727 [Sun, 4 Feb 2024 14:04:55 +0000 (22:04 +0800)]
[M120 Migration][XWalkExtension] Add ewk interface to load XWalk extensions
This interface set a path located xwalk extension json profile file.
- ewk_context_set_xwalk_extension_profile(context, path)
- i.e.,
ewk_context_set_xwalk_extension_profile(
ctx, "/usr/lib/tizen-extensions-crosswalk-ewk/");
Reference Patch:
https://review.tizen.org/gerrit/292805/
Change-Id: I2ddf3e6bdb2ebaf60bcbb360aa6b2a89e0d51b16
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
zhaosy [Sun, 4 Feb 2024 06:07:34 +0000 (14:07 +0800)]
[M120 Migration][WRTjs][Service] Fix some coverity issues
Add initialize for fix some coverity issues.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/305090/
Change-Id: I48a84938fa030fdec0f34a12cd5801b2ab76c06b
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
zhaosy [Mon, 22 Jan 2024 07:53:44 +0000 (15:53 +0800)]
[M120][WRTjs][VD] Suspend media tasks without 500ms delay
For webapps, when app is hide, WRT suspend app after 500ms.
But for media, there is resource conflict in this case:
1.Play H5 video in app A
2.Play H5 video in app B
3.Resume app A, media resource conflict
Reason:
In step3, app B is not suspend, so media resource of app B is not released.
Then when app A is fail to play video.
So when app is hide, notify media app is suspend without 500ms delay,
then media will release resource right now.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/304611/
Change-Id: I2aa28df76568d9aee86f5f9cbf68c95e840bb869
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
(cherry picked from commit
ee9a656b5306a78cfc166e5065b82ddd0b1eeb45)
zhaosy [Tue, 26 Dec 2023 10:45:56 +0000 (18:45 +0800)]
[M120][WRTjs][VD] Fix app is paused issue when VSS app is launched
1.InitializeVSS early for hosted app to make sure aul app com connection is created.
2.In custom case, hide VSS is too later, it caused app window is showing before VSS
video is stopped, then VSS recieve visibility change event and send INTERRUPT event
to app, so app is paused.
So hide VSS in HideSplashScreen(Followed M94 logic).
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/303450/
Change-Id: I096dff53987b2b5cdda73d6dfe2c29266f6ac9f7
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
(cherry picked from commit
3156f9570c64ed582530c98569c6948d7084d83d)