Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Piper984
OK: attached are some sample clips. These might be the most uninteresting
video clips ever posted on the internet. ;)

test1-002.mp4   
test1-003.mp4   
test1-004.mp4   



--
View this message in context: 
http://gambas.8142.n7.nabble.com/MediaPlayer-bug-with-AboutToFinish-and-URL-tp57513p57623.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Benoît Minisini
Le 27/10/2016 à 00:49, Piper984 a écrit :
> Hello Benoît,
>
> Glad you were able to use the archive.  FYI: Looks like the Nabble website
> removes the .tar from the archive, but it's still a valid .tar file.  I
> opened it on 16.04, 14.04, and Mac OSX, and I could see the source files (I
> did have to turn hidden files off).
>
> Regarding gb.media.form and the MediaView control, when setting the .URL
> during the AboutToFinish() event it is the same as the control from the
> gb.media component.  I see the warning:
>
> gb.media: warning: could not catch end of stream
>
> ... and the next video clip does not load.  I tried the same set of code,
> but changing the .URL to .NextURL but this just made the app hang at the end
> of the first clip.  The 'END' event didn't fire, but the next URL didn't
> load either.  If I invoked the .Stop() method the warning above will print
> to the console.
>
> If you are seeing this work on your development machine(s), could I ask what
> video card you use?  Could the issue be related to the Intel video
> card/driver I am using?  Although all works as expected w/ Python +
> Gstreamer library to maybe that's not the case.
>

I just took your code, replaced .URL by .NextURL inside the 
AboutToFinish event handler, and the two media URLs by URLs that exist 
on my disk. And things worked as expected.

The End event is raised (according to the documentation) when the player 
finishes all its job. Not when a stream ends.

If your streams are not too big, maybe you can send them? Or put them on 
a server so that I can get and test them.

I have an Intel GPU on Ubuntu 16.04.

Regards,

-- 
Benoît Minisini

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Piper984
Hello Benoît,

Glad you were able to use the archive.  FYI: Looks like the Nabble website
removes the .tar from the archive, but it's still a valid .tar file.  I
opened it on 16.04, 14.04, and Mac OSX, and I could see the source files (I
did have to turn hidden files off).

Regarding gb.media.form and the MediaView control, when setting the .URL
during the AboutToFinish() event it is the same as the control from the
gb.media component.  I see the warning:

gb.media: warning: could not catch end of stream

... and the next video clip does not load.  I tried the same set of code,
but changing the .URL to .NextURL but this just made the app hang at the end
of the first clip.  The 'END' event didn't fire, but the next URL didn't
load either.  If I invoked the .Stop() method the warning above will print
to the console.  

If you are seeing this work on your development machine(s), could I ask what
video card you use?  Could the issue be related to the Intel video
card/driver I am using?  Although all works as expected w/ Python +
Gstreamer library to maybe that's not the case.





--
View this message in context: 
http://gambas.8142.n7.nabble.com/MediaPlayer-bug-with-AboutToFinish-and-URL-tp57513p57621.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Benoît Minisini
Le 27/10/2016 à 01:43, Benoît Minisini a écrit :
> Le 27/10/2016 à 01:41, Benoît Minisini a écrit :
>> Le 27/10/2016 à 01:37, Benoît Minisini a écrit :
>>> Le 26/10/2016 à 23:59, Piper984 a écrit :
 ok: Attached is the file that is produced via Project -> make -> source
 archive.

 Thanks!

 prjVideoTest01-0.gz
 

>>>
>>> Are you kidding? Your project is still almost void and unusable (no
>>> media player in it at all), and did you really create the source archive
>>> with the IDE? The IDE creates "tar.gz" files.
>>>
>>> Regards,
>>>
>>
>> Sorry, I found the media player. Can you do the same thing with the
>> MediaView control of gb.web.form? And tell me if it works for you?
>>
>
> By the way: if you want to create a media URL from a local file path,
> you can use the Media.URL() method.
>

OK, I found. You must use the NextURL property, not the URL property. 
Setting the URL property directly resets the player, and even can crash 
GStreamer if it is done while it is finishing a stream.

Regards,

-- 
Benoît Minisini

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Benoît Minisini
Le 27/10/2016 à 01:41, Benoît Minisini a écrit :
> Le 27/10/2016 à 01:37, Benoît Minisini a écrit :
>> Le 26/10/2016 à 23:59, Piper984 a écrit :
>>> ok: Attached is the file that is produced via Project -> make -> source
>>> archive.
>>>
>>> Thanks!
>>>
>>> prjVideoTest01-0.gz
>>> 
>>>
>>
>> Are you kidding? Your project is still almost void and unusable (no
>> media player in it at all), and did you really create the source archive
>> with the IDE? The IDE creates "tar.gz" files.
>>
>> Regards,
>>
>
> Sorry, I found the media player. Can you do the same thing with the
> MediaView control of gb.web.form? And tell me if it works for you?
>

By the way: if you want to create a media URL from a local file path, 
you can use the Media.URL() method.

-- 
Benoît Minisini

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Benoît Minisini
Le 27/10/2016 à 01:37, Benoît Minisini a écrit :
> Le 26/10/2016 à 23:59, Piper984 a écrit :
>> ok: Attached is the file that is produced via Project -> make -> source
>> archive.
>>
>> Thanks!
>>
>> prjVideoTest01-0.gz
>> 
>>
>
> Are you kidding? Your project is still almost void and unusable (no
> media player in it at all), and did you really create the source archive
> with the IDE? The IDE creates "tar.gz" files.
>
> Regards,
>

Sorry, I found the media player. Can you do the same thing with the 
MediaView control of gb.web.form? And tell me if it works for you?

-- 
Benoît Minisini

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Benoît Minisini
Le 26/10/2016 à 23:59, Piper984 a écrit :
> ok: Attached is the file that is produced via Project -> make -> source
> archive.
>
> Thanks!
>
> prjVideoTest01-0.gz
> 
>

Are you kidding? Your project is still almost void and unusable (no 
media player in it at all), and did you really create the source archive 
with the IDE? The IDE creates "tar.gz" files.

Regards,

-- 
Benoît Minisini

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Piper984
ok: Attached is the file that is produced via Project -> make -> source
archive.  

Thanks!

prjVideoTest01-0.gz
  



--
View this message in context: 
http://gambas.8142.n7.nabble.com/MediaPlayer-bug-with-AboutToFinish-and-URL-tp57513p57616.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Benoît Minisini
Le 26/10/2016 à 22:14, Piper984 a écrit :
> Hi Benoît,
>
> Touching base here to see if you had a chance to pull down the source I
> uploaded?  Any update?  Anything I can do to help?
>
> Regards!
>

Your project is apparently not complete and so unusable. Please send a 
usable project, and archive it with the IDE "make -> source archive" 
menu entry.

Regards,

-- 
Benoît Minisini

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-26 Thread Piper984
Hi Benoît,

Touching base here to see if you had a chance to pull down the source I
uploaded?  Any update?  Anything I can do to help?

Regards!



--
View this message in context: 
http://gambas.8142.n7.nabble.com/MediaPlayer-bug-with-AboutToFinish-and-URL-tp57513p57614.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user