[Gambas-user] R: Fwd: Re: MediaPlayer
Shane
shanep1967 at ...169...
Tue Sep 8 08:51:50 CEST 2015
Ok i got End event to trigger but still can't get Progress event to trigger
On 08/09/15 16:03, Shane wrote:
> i don't like the loop thing
> but thanks i obviously need to call stop
> i guess i can just call stop before for calling play but i want to load
> the next song after one is finished
> like what you have done.
> i tried to declare an event Process but it isn't being called i must be
> doing something wrong
> this seems to be the way it should be done
>
> thanks Ru Vuott.
>
>
> On 08/09/15 09:22, Ru Vuott wrote:
>> Hello Shane,
>>
>> in " Public Sub Button1_Click() " routine you can try:
>>
>>
>> Public Sub Button1_Click()
>>
>> If Not Dialog.OpenFile()
>> hPlayer.URL = Media.URL(Dialog.Path)
>> hPlayer.Play
>> Endif
>>
>> Do
>> Wait 0.01
>> Loop Until hPlayer.Position >= hPlayer.Duration
>>
>> hPlayer.Stop
>>
>> End
>>
>>
>> regards
>> vuott
>>
>>
>>
>>
>>
>> --------------------------------------------
>> Mar 8/9/15, Shane <shanep1967 at ...169...> ha scritto:
>>
>> Oggetto: [Gambas-user] Fwd: Re: MediaPlayer
>> A: ">> mailing list for gambas users" <gambas-user at ...720...net>
>> Data: Martedì 8 settembre 2015, 00:16
>>
>> sent this already but it looks like
>> it didn't work trying again
>>
>>
>>
>> -------- Forwarded Message --------
>> Subject: Re: MediaPlayer
>> Date: Mon, 7 Sep 2015 17:18:57 +1000
>> From: Shane <shanep1967 at ...169...>
>> To: Benoît Minisini <gambas at ...1...>
>>
>>
>>
>> On 07/09/15 13:20, Benoît Minisini wrote:
>> > Le 07/09/2015 04:45, Shane a écrit :
>> >> hi I'm trying to use the media player component i
>> can load a song and
>> >> play it
>> >> but when i change the URL field to a new file and
>> then call play it
>> >> won't play the new file
>> >> is there something else i need to do to play the
>> next file funnily
>> >> enough if i add the next song
>> >> before it finishes playing it will play the new
>> song when the old one
>> >> finishes
>> >>
>> >>
>> >
>> > Can you provide your project so that I can see what you
>> are doing
>> > exactly?
>> >
>>
>> [System]
>> Gambas=3.8.0
>> OperatingSystem=Linux
>> Kernel=3.19.0-22-generic
>> Architecture=x86
>> Distribution=Ubuntu 15.04
>> Desktop=LXDE
>> Theme=Gtk
>> Language=en_AU.UTF-8
>> Memory=3889M
>> [Libraries]
>> Cairo=libcairo.so.2.11400.2
>> Curl=libcurl.so.4.3.0
>> DBus=libdbus-1.so.3.8.9
>> GStreamer=libgstreamer-0.10.so.0.30.0
>> GStreamer=libgstreamer-1.0.so.0.405.0
>> GTK+3=libgtk-3.so.0.1400.13
>> GTK+=libgtk-x11-2.0.so.0.2400.27
>> OpenGL=libGL.so.1.2.0
>> Poppler=libpoppler.so.49.0.0
>> Qt4=libQtCore.so.4.8.6
>> Qt5=libQt5Core.so.5.4.1
>> SDL=libSDL-1.2.so.0.11.4
>> [Environment]
>> CLUTTER_IM_MODULE=xim
>> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3LjCxec38A
>> DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path
>> DESKTOP_SESSION=Lubuntu
>> DISPLAY=:0.0
>> GB_GUI=gb.qt4
>> GDMSESSION=Lubuntu
>> GDM_LANG=en_AU
>> GNOME_KEYRING_CONTROL=
>> GNOME_KEYRING_PID=
>> GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
>> GTK_IM_MODULE=xim
>> HOME=/home/shane
>> IM_CONFIG_PHASE=1
>> INSTANCE=
>> JOB=dbus
>> LANG=en_AU.UTF-8
>> LANGUAGE=en_AU:en
>> LOGNAME=shane
>> MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path
>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
>> PWD=/home/shane
>> QT4_IM_MODULE=xim
>> QT_IM_MODULE=ibus
>> QT_PLATFORM_PLUGIN=lxqt
>> QT_QPA_PLATFORMTHEME=lxqt
>> SAL_USE_VCLPLUGIN=gtk
>> SESSION=Lubuntu
>> SESSIONTYPE=lxsession
>> SHELL=/bin/bash
>> SHLVL=0
>> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>> TZ=:/etc/localtime
>> UPSTART_EVENTS=started xsession
>> UPSTART_INSTANCE=
>> UPSTART_JOB=lxsession
>> UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/763
>> USER=shane
>> XAUTHORITY=/home/shane/.Xauthority
>> XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg
>> XDG_CONFIG_HOME=/home/shane/.config
>> XDG_CURRENT_DESKTOP=LXDE
>> XDG_DATA_DIRS=/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/
>> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/shane
>> XDG_MENU_PREFIX=lxde-
>> XDG_RUNTIME_DIR=/run/user/1000
>> XDG_SEAT=seat0
>> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
>> XDG_SESSION_DESKTOP=Lubuntu
>> XDG_SESSION_ID=c1
>> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
>> XDG_SESSION_TYPE=x11
>> XDG_VTNR=7
>> XMODIFIERS=@...3498...=ibus
>> _LXSESSION_PID=894
>>
>>
>>
>> -----Segue allegato-----
>>
>> ------------------------------------------------------------------------------
>>
>> -----Segue allegato-----
>>
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MediaTest-0.0.2.tar.gz
Type: application/gzip
Size: 12806 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150908/df734b74/attachment.gz>
More information about the User
mailing list