Re: [webkit-dev] Media Server Development

2013-02-01 Thread Kiran K
Yes Phippe, you are right. I will start doing it , once I am done with
hacking of MediaPlayerPrivateGstreamer.

Regards,
Kiran


On Fri, Feb 1, 2013 at 4:26 PM, Philippe Normand  wrote:

> You should write a new MediaPlayerPrivate backend instead of hacking the
> MediaPlayerPrivateGStreamer one.
>
> Philippe
>
> On Thu, 2013-01-31 at 23:04 +0530, Kiran K wrote:
> > HI All,
> >
> > I am working on QtWebKit  on Media Server development. Basic Idea is
> > to run Gstreamer in seperate process which acts like a Media server.
> > The calls  from WebKit in MediaPlayerPrivateGStreamer.cpp are routed
> > to Media Server via DBUS. Media Server implements the methods in
> > MediaPlayerPrivateGStreamer class. I am basically doing this to have
> > control over the resources like maximum playback instances, hw codec
> > control etc. I am able to do achieve playback to some extent. I am
> > facing some problems  (race conditions) especially when deleting
> > playback instance. From the logs i concluded that when duration()
> > function is made  and is waiting for response from server,
> > ~MediaPlayerPrivateGStreamer destructor is getting called. (some times
> > vice versa too). I am suspecting that the MediaPlayer object is being
> > shared between two threads (or across timers). Can anybody give me
> > some pointers about HTMLMediaElement  and the timers involved? Any
> > help is appreciated.
> >
> > Thanks,
> > Arun
> >
> > ___
> > webkit-dev mailing list
> > webkit-dev@lists.webkit.org
> > https://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Media Server Development

2013-02-01 Thread Philippe Normand
You should write a new MediaPlayerPrivate backend instead of hacking the
MediaPlayerPrivateGStreamer one.

Philippe

On Thu, 2013-01-31 at 23:04 +0530, Kiran K wrote:
> HI All,
> 
> I am working on QtWebKit  on Media Server development. Basic Idea is
> to run Gstreamer in seperate process which acts like a Media server.
> The calls  from WebKit in MediaPlayerPrivateGStreamer.cpp are routed
> to Media Server via DBUS. Media Server implements the methods in
> MediaPlayerPrivateGStreamer class. I am basically doing this to have
> control over the resources like maximum playback instances, hw codec
> control etc. I am able to do achieve playback to some extent. I am
> facing some problems  (race conditions) especially when deleting
> playback instance. From the logs i concluded that when duration()
> function is made  and is waiting for response from server,
> ~MediaPlayerPrivateGStreamer destructor is getting called. (some times
> vice versa too). I am suspecting that the MediaPlayer object is being
> shared between two threads (or across timers). Can anybody give me
> some pointers about HTMLMediaElement  and the timers involved? Any
> help is appreciated.
> 
> Thanks,
> Arun
> 
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Media Server Development

2013-01-31 Thread Kiran K
Thanks I will try webkit-help
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Media Server Development

2013-01-31 Thread John Yani
Hi Kiran,

I'm afraid, this is not the right place to ask questions like that. Try
asking webkit-help.

On 31 January 2013 19:34, Kiran K  wrote:

> HI All,
>
> I am working on QtWebKit  on Media Server development. Basic Idea is to
> run Gstreamer in seperate process which acts like a Media server. The
> calls  from WebKit in MediaPlayerPrivateGStreamer.cpp are routed to Media
> Server via DBUS. Media Server implements the methods in
> MediaPlayerPrivateGStreamer class. I am basically doing this to have
> control over the resources like maximum playback instances, hw codec
> control etc. I am able to do achieve playback to some extent. I am facing
> some problems  (race conditions) especially when deleting playback
> instance. From the logs i concluded that when duration() function is made
> and is waiting for response from server, ~MediaPlayerPrivateGStreamer
> destructor is getting called. (some times vice versa too). I am suspecting
> that the MediaPlayer object is being shared between two threads (or across
> timers). Can anybody give me some pointers about HTMLMediaElement  and the
> timers involved? Any help is appreciated.
>
> Thanks,
> Arun
>
>
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Media Server Development

2013-01-31 Thread Arunprasad RajKumar
Basically WebKit runs in the event thread(main thread) of the porting(qt,gtk). 
WebKit node data structures will be created and destroyed only from the 
mainthread. Also WebKit's timer scheduled from the main thread. Are u running 
multiple instance of webview from multiple  threads? If so it shouldn't be done 
like tat. You can check the thread id of duration and destrutor's caller if u r 
not sure.

Sent from my Xperia™ smartphone 

Kiran K  wrote:

>HI All,
>
>I am working on QtWebKit  on Media Server development. Basic Idea is to run
>Gstreamer in seperate process which acts like a Media server. The calls
>from WebKit in MediaPlayerPrivateGStreamer.cpp are routed to Media Server
>via DBUS. Media Server implements the methods in
>MediaPlayerPrivateGStreamer class. I am basically doing this to have
>control over the resources like maximum playback instances, hw codec
>control etc. I am able to do achieve playback to some extent. I am facing
>some problems  (race conditions) especially when deleting playback
>instance. From the logs i concluded that when duration() function is made
>and is waiting for response from server, ~MediaPlayerPrivateGStreamer
>destructor is getting called. (some times vice versa too). I am suspecting
>that the MediaPlayer object is being shared between two threads (or across
>timers). Can anybody give me some pointers about HTMLMediaElement  and the
>timers involved? Any help is appreciated.
>
>Thanks,
>Arun
>
>___
>webkit-dev mailing list
>webkit-dev@lists.webkit.org
>https://lists.webkit.org/mailman/listinfo/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev