I´m new to all of this. I´m working on a project for a prof.
Now I want to launch an audio file with the standard media player through XTerm.
I´m so far that I can start the media player UI.
What left is, how do I tell the media player that it should open a specific file. I tried the following ones. noch of which worked:
/usr/bin/mediaplayer-ui file:///path.mp3 and without the mp3
/usr/bin/mediaplayer-ui ./path.mp3 and without the mp3
The thing is, I kinda have to use the standard player. My boss wants it that way.
If you´re confused to why through XTerm, it´s because that is the only way I can get my prog to work. I have to open a prog/file through a click on a button. I tried the osso_mime_open_file() function but I can´t get it to work. But using system("command") worked fine with the fmradio for me. Since I know from Linux that you can start a specific file with a media player, I thought, why not try to make it work this way.
I´d be really grateful for help. And sorry for the long post.
I´m new to all of this. I´m working on a project for a prof.
Now I want to launch an audio file with the standard media player through XTerm.
I´m so far that I can start the media player UI.
What left is, how do I tell the media player that it should open a specific file. I tried the following ones. noch of which worked:
/usr/bin/mediaplayer-ui file:///path.mp3 and without the mp3
/usr/bin/mediaplayer-ui ./path.mp3 and without the mp3
The thing is, I kinda have to use the standard player. My boss wants it that way.
If you´re confused to why through XTerm, it´s because that is the only way I can get my prog to work. I have to open a prog/file through a click on a button. I tried the osso_mime_open_file() function but I can´t get it to work. But using system("command") worked fine with the fmradio for me. Since I know from Linux that you can start a specific file with a media player, I thought, why not try to make it work this way.
I´d be really grateful for help. And sorry for the long post.