MediaView1.URL = music1

otherwise you're not setting the URL to the content of the variable 
music1 but to the literal string "music1"!


On 11/07/15 13:55, tsukuba GIMP user wrote:
> Public Sub Button1_Click()
>    
>    Dim music1 As String
>    music1 = application.Path & "/music1.mp3"
>    MediaView1.URL = "music1"
>    MediaView1.play
>
> End
>
> i try this but when MediaView1.play will be "cannot set status"
>
>
>
> ------------------ ???????? ------------------
> ??????: "Marco Ancillotti";<gam...@servinfo.it>;
> ????????: 2015??7??11??(??????) ????6:56
> ??????: "gambas-user"<gambas-user@lists.sourceforge.net>;
>
> ????: Re: [Gambas-user] ??????  how to cite mplayer
>
>
>
>
> So the path is not right , U have to use full path or use:
> application.path & "/music1.mp3"
>
>
> Il 11/07/2015 12:31, tsukuba GIMP user ha scritto:
>> I just want when i click button1 mediaview1 will be play in Program 
>> directory mp3 file
>>
>>
>> Il 11/07/2015 11:48, tsukuba GIMP user ha scritto:
>>> I would like to quote an external file??music1.mp3??
>>>
>>> #======|code|======
>>> #
>>> #Public Sub Button1_Click()
>>> #
>>> #  Dim music1 As String
>>> #  music1 = "/music1.mp3"
>>> #  Mediaview1.URL = music1
>>> #
>>> #End
>>>
>>> #
>>>
>>> IS wrong?
>> I don't use the media module , but for what I see U need to use the play
>> function of mediaview to play the mp3 after U set the url.
>>
>> Also , are U sure that the file is in / ? it seem strange that U put a
>> mp3 on the root of the system.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Don't Limit Your Business. Reach for the Cloud.
>> GigeNET's Cloud Solutions provide you with the tools and support that
>> you need to offload your IT needs and focus on growing your business.
>> Configured For All Businesses. Start Your Cloud Today.
>> https://www.gigenetcloud.com/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> ------------------------------------------------------------------------------
>> Don't Limit Your Business. Reach for the Cloud.
>> GigeNET's Cloud Solutions provide you with the tools and support that
>> you need to offload your IT needs and focus on growing your business.
>> Configured For All Businesses. Start Your Cloud Today.
>> https://www.gigenetcloud.com/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to