10 liens privés
Just a quick update for those who could be interested.
"Right arrow" and "Left arrow" allow you to "fast forward/backward" with omxplayer.
To simulate it using fifo to control omxplayer you can :
#Right arrow :
echo -n $'\x1b\x5b\x43' > /tmp/cmd
#Left arrow :
echo -n $'\x1b\x5b\x44' > /tmp/cmd
"forward/backward" work when playing from the local SDCard or a plugged USB Stick, but don't when playing from "http://"
Works with either movies or mp3 (any thing you can feed omxplayer with I guess).
There is many others keys that can control volume, subtitles, etc ... <- See :
https://github.com/huceke/omxplayer/blo ... player.cpp
Example :
z : m_tv_show_info = !m_tv_show_info;
1 : SetSpeed(m_av_clock->OMXPlaySpeed() - 1);
2 : SetSpeed(m_av_clock->OMXPlaySpeed() + 1);
j : m_omx_reader.SetActiveStream(OMXSTREAM_AUDIO, m_omx_reader.GetAudioIndex() - 1);
k : m_omx_reader.SetActiveStream(OMXSTREAM_AUDIO, m_omx_reader.GetAudioIndex() + 1);
etc ...
I have not been able to use "+" and "-" for controlling volume
omxcontrol
intégrer des fils dupont dans une pince pour multimètre
ajouter la gestion d'erreru dan sla boucle
while 1:
for i in truc:
try:
print(personnages[i])
except IndexError:
print(i)
comme ca la boucle continue meme si on a une erreur
et dans la gestion d erruer fair ele reste et réécire
avec ce sytsteme aucun byte ne devrait etre manquant
while (Serial.available()<9) {} // Wait 'till there are 9 Bytes waiting
for(int n=0; n<9; n++)
RFin_bytes[n] = Serial.read(); // Then: Get them.
//zoomkat 9-9-10 simple delimited ',' string parce
//from serial port input (via serial monitor)
//and print result out serial port
// CR/LF could also be a delimiter
String readString;
void setup() {
Serial.begin(9600);
}
void loop() {
//expect a string like wer,qwe rty,123 456,hyre kjhg,
//or like hello world,who are you?,bye!,
while (Serial.available()) {
delay(1); //small delay to allow input buffer to fill
char c = Serial.read(); //gets one byte from serial buffer
if (c == ',') {break;} //breaks out of capture loop to print readstring
readString += c; //makes the string readString
}
if (readString.length() >0) {
Serial.println(readString); //prints string to serial port out
//do stuff here
readString=""; //clears variable for new input
}
}
pince a tiques