Bug 44098 - [EFL] Support to enable HTML5's Video based on gstreamer in WebKit-EFL
Summary: [EFL] Support to enable HTML5's Video based on gstreamer in WebKit-EFL
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 43790 44508
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-17 03:14 PDT by Gyuyoung Kim
Modified: 2010-09-08 07:28 PDT (History)
10 users (show)

See Also:


Attachments
Patch (13.38 KB, patch)
2010-08-17 03:29 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (13.65 KB, patch)
2010-08-24 05:13 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Remove whitespace (13.58 KB, patch)
2010-08-25 03:31 PDT, Gyuyoung Kim
kenneth: review+
Details | Formatted Diff | Diff
Patch (14.22 KB, patch)
2010-09-08 04:02 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gyuyoung Kim 2010-08-17 03:14:25 PDT
Let's support to enable HTML5's video in WebKit-EFL.
Comment 1 Gyuyoung Kim 2010-08-17 03:29:11 PDT
Created attachment 64571 [details]
Patch

I try to support HTML5's video in WebKit-EFL. I investigated if EFL supports video / audio. But, I am not sure if EFL supports multimedia framework. Is the emotion library still alive ? If EFL can support video framework, IMO, we need to support HTML5's video using the framework.

In this bug, I make a patch to support HTML5's video using gstreamer. I think WebKit-EFL can use gstreamer. If there are multimedia framework in EFL or WebKit EFL can't use gstreamer, please let me know.

Thanks,
Gyuyoung Kim
Comment 2 Kenneth Rohde Christiansen 2010-08-17 04:09:15 PDT
Cmake guys, how does this look?
Comment 3 Antonio Gomes 2010-08-17 11:18:00 PDT
I'd are rather defer approval for the other CMake heroes. ProFusion?

ps: Kim, please you can add more than one person to the CC list all at once, separated bug "," :-)
Comment 4 Antonio Gomes 2010-08-17 11:18:34 PDT
(In reply to comment #3)
> I'd are rather defer approval for the other CMake heroes. ProFusion?

*I'd rather*
Comment 5 Rafael Antognolli 2010-08-23 07:39:01 PDT
Gyuyoung,

I don't know if the current state of emotion is good enough to try to enable video support using it. So I would also stay with gstreamer. But for using gstreamer, you should also set the ENABLE_GLIB_SUPPORT.

You can do something similar to what is done when enabling the soup backend. Just check the cmake/OptionsEfl.cmake, in the "IF (NETWORK_BACKEND STREQUAL "soup") section.

Other than that, your patch just didn't compile here on my machine. Does it work fine for you, really enabling video support?

Leandro, do you have any other comments regarding the additions to the cmake building system?
Comment 6 Leandro Pereira 2010-08-23 10:16:12 PDT
(In reply to comment #5)
> 
> Leandro, do you have any other comments regarding the additions to the cmake 
> building system?
>

Nope, patch seems fine. Gyuyoung, just send another that forces ENABLE_GLIB_SUPPORT like Rafael said and you'll get my informal r+.
Comment 7 Gyuyoung Kim 2010-08-24 05:13:27 PDT
Created attachment 65257 [details]
Patch

Hello Rafael,

I modify this patch according to your point. I add ENABLE_GLIB_SUPPORT condition for ENABLE_VIDEO as below,

383 +IF (ENABLE_VIDEO)
384 +  SET(ENABLE_GLIB_SUPPORT 1)
385 +  MESSAGE("Forcing Glib support")
386 +ENDIF()  
387 +

I tested this patch in http://www.html5demos.com/video. Video is played on EWebLauncher.
However, video should be tested further. So, I cannot enable video as default yet.

Unfortunately, recently, gtk guy added a patch for fullscreen video. The patch influences on this patch. So,I need to solve the problem first. I make a bug for the issue. (https://bugs.webkit.org/show_bug.cgi?id=44508). I think this bug can be reviewed after finishing the new bug.

Thanks,
Gyuyoung Kim
Comment 8 Rafael Antognolli 2010-08-24 11:38:05 PDT
Ok, the patch seems nice now (besides two trailing whitespaces after this "endif":

+IF (ENABLE_VIDEO)
+  SET(ENABLE_GLIB_SUPPORT 1)
+  MESSAGE("Forcing Glib support")
+ENDIF()  

I'm waiting for bug 44508 get fixed to then try your patch again.
Comment 9 Gyuyoung Kim 2010-08-25 03:31:13 PDT
Created attachment 65394 [details]
Remove whitespace

Ok, I remove the whitespace.
Comment 10 Gyuyoung Kim 2010-08-31 23:11:30 PDT
Bug 44508's patch was landed. Please review this patch. :)
Comment 11 Rafael Antognolli 2010-09-02 15:21:05 PDT
(In reply to comment #10)
> Bug 44508's patch was landed. Please review this patch. :)

Ok, as I told before, the patch is nice, and I just tried it. And it works!

Did you have any problems with the controls (progress bar and play/pause buttons)?

Anyway, if this still needs any fix, I think it can come in a later patch. The current patch is good for landing IMHO.
Comment 12 Gyuyoung Kim 2010-09-02 18:05:49 PDT
(In reply to comment #11)
> (In reply to comment #10)
> > Bug 44508's patch was landed. Please review this patch. :)
> 
> Ok, as I told before, the patch is nice, and I just tried it. And it works!
> 
> Did you have any problems with the controls (progress bar and play/pause buttons)?
> 
> Anyway, if this still needs any fix, I think it can come in a later patch. The current patch is good for landing IMHO.

I think so. Play / Pause button is working well in the "http://www.html5demos.com/video site. However, I need to check if html5 video should be tested further.
I'd like to enable "ENABLE_VIDEO" as default after verifing this further.

For the time being, I also want to land this patch fot testing html5 video. :)
Comment 13 Gyuyoung Kim 2010-09-07 21:41:42 PDT
Hello kenneth and Tonikitoo,

Could you please review this patch ?
Comment 14 Kenneth Rohde Christiansen 2010-09-08 01:40:14 PDT
Comment on attachment 65394 [details]
Remove whitespace

Seems fine with me, but shouldn't it be called GStreamer? and not Gstreamer?
Comment 15 Gyuyoung Kim 2010-09-08 01:46:55 PDT
(In reply to comment #14)
> (From update of attachment 65394 [details])
> Seems fine with me, but shouldn't it be called GStreamer? and not Gstreamer?

It seems "GStreamer" is right. Should I change "Gstreamer" with "GStreamer" in this patch ?
Comment 16 Kenneth Rohde Christiansen 2010-09-08 01:47:23 PDT
yes, please
Comment 17 Gyuyoung Kim 2010-09-08 04:02:10 PDT
Created attachment 66871 [details]
Patch

I change "Gstreamer" with "GStreamer". 

Thank you.
Comment 18 WebKit Commit Bot 2010-09-08 07:28:46 PDT
Comment on attachment 66871 [details]
Patch

Clearing flags on attachment: 66871

Committed r66980: <http://trac.webkit.org/changeset/66980>
Comment 19 WebKit Commit Bot 2010-09-08 07:28:53 PDT
All reviewed patches have been landed.  Closing bug.