Hello World, Again 🙂
My site active again.
Let’s begin.
KAYNAKLAR:
https://learnxinyminutes.com/ x i y dakikada öğrenme
HTML – CSS – JAVASCRIPT ÖGRENME:
FreeCodeCamp: https://www.freecodecamp.org/
Codecademy: https://www.codecademy.com/
React: https://react.dev/
MDN: https://developer.mozilla.org/en-US/ __________________
PROJE ÖRNEKLERİ:
30 Günlük Javascript Kod Challenge: https://javascript30.com/ ________________
İŞ MÜLAKATINA HAZIRLIK:
Codewars: https://www.codewars.com/
LeetCode: https://leetcode.com/ ________________
GITHUB: GitHub: https://github.com/ ________________
UDEMY KURSLARI: Colt Steele Dr. Angela Yu ________________
YOUTUBE SAYFALARI: DaveGrayTeachesCode JamesQQuick Treehouse LearWithJason TheNetNinja Jack Herrington Coding Garden The Coder Coder The Coding Train LearnCode.academy Traversy Media Free Code Camp Kevin Powell _________________
import vlc
import os
import tkinter as tk
class MusicPlayer:
def __init__(self):
self.instance = vlc.Instance(“–no-xlib”, “–quiet”)
self.player = self.instance.media_player_new()
self.media_list = []
def play(self, index):
if 0 <= index < len(self.media_list):
media = self.media_list[index]
self.player.set_media(media)
self.player.play()
def pause(self):
self.player.pause()
def stop(self):
self.player.stop()
def add_song(self, file_path):
if os.path.isfile(file_path):
media = self.instance.media_new(file_path)
self.media_list.append(media)
class MusicPlayerApp:
def __init__(self, master):
self.master = master
master.title("Music Player")
self.player = MusicPlayer()
# Örnek şarkıları, bunları kendi müzik dosyalarınızla değiştirin
self.player.add_song("C:/Users/ikark/Downloads/LVBEL C5 – GAZ PEDAL ft. AREM OZGUCARMANAYDİN.mp3")
self.player.add_song("C:/Users/ikark/Downloads/LVBEL C5 – GAZ PEDAL ft. AREM OZGUCARMANAYDİN.mp3")
self.player.add_song("C:/Users/ikark/Downloads/LVBEL C5 – GAZ PEDAL ft. AREM OZGUCARMANAYDİN.mp3")
# Tuşlara basıldığında bu fonksiyonları çağırmak için bir bind metodu ekleyelim
master.bind("0", lambda event: self.player.play(0))
master.bind("1", lambda event: self.player.play(1))
master.bind("2", lambda event: self.player.play(2))
if __name__ == "__main__":
root = tk.Tk()
app = MusicPlayerApp(root)
root.mainloop()
# importing vlc module
import vlc
# importing time module
import time
# creating Instance class object
player = vlc.Instance()
# creating a new media
media = player.media_new(“1.mp4”)
# creating a media player object
media_player = player.media_player_new()
media_player.set_media(media)
# setting video scale
media_player.video_set_scale(0.6)
# start playing video
media_player.play()
# wait so the video can be played for 5 seconds
# irrespective for length of video
time.sleep(100)