• mediaSync应用程序的设计是一个小的程序,允许多个人同步视频他们在监视,以便停顿/寻求/戏剧都是同步,在所有的客户。

    你可能会注意到,虽然它看起来就像是书面的多播放机的类型插件中心,它只适用于媒体播放器经典,只有当的网站界面启用。 这是因为它是原来的计划我需要控制并希望我的"探索"的方式与其他玩家当时出现了。

    不幸的是,没有其他的球员都有一个随时可用接口查询播放机的状态和位置在目前的标题,并以交替地寻求一个自定义的位置和玩/暂停/停止。 我大概可以写一个插件的软件来做到这一点,但从未有过一个需要所以它仍然是一个mplayerc只应用程序。

    首先,需要媒体播放的经典。 版本是无关紧要,只要它具有该网络界面功能,其所有新的做。 我相信,该网络界面启用了默认,但如果它不,打开它是简单的。

    mediaSync默口13579谈到媒体播放器经典,但你可以自由改变它,如果你喜欢。 一定要保持"允许接入自localhost只有"检查作为mediaSync服务器进行通信与其他mediaSync的客户,而不是与客户的媒体播放器经典的网站界面。

    一旦你的Web界面运行,你可以mediaSync和获得一切事情的。

    -打开一个视频文件在媒体播放器经典(你可以让它停下).

    -开始mediaSync,然后右击中mediaSync窗口和选择"Config媒体播放器经典"。 确保该版本和网络端口是正确的,并按确定的。

    -测试mediaSync在服务模式,看它是否是谈到媒体播放的经典。 选择"服务"无线电按钮下的"同步模式",配置其港口你想要的mediaSync服务器上听的客户(22222是默认),并点击"发射服务器"的按钮。 如果mediaSync不能帮你的播放器,它将有"播放机不可用"的状态条底部的窗口。 如果是的话,它应该显示的视频的标题和位置适当的现状吧。 这也意味着我们准备好测试的客户!

    如果你没有朋友或其他计算机可供测试,你仍然可以运行的另一个实例mediaSync作为一个客户在相同的计算机服务器。 运行mediaSync无论你想要测试的客户,选择"客户"无线电按钮(默认),设在港口的任何服务器被倾听,并点击"联接服务器"。 客户机会重新连接只要它没有连接,所以你不必担心启动/停止的客户遍又一遍如果没有服务器。

    一旦你连接时,客户应有"服务器的"确定"平xx。xx ms"在它的现状吧。 服务器将会有"服务器:x客户(y准备)",在它的条状态,其中x是数量的客户连接,y是多客户都有同样的媒体文件的打开服务器的作用。 如果服务器不能接触它的球员,0客户将假定做好准备。 如果所有的客户都没有准备好,每个人都将被迫暂停。

    一旦所有的客户都准备好了,任何人都可以随后改变播放器国家(发挥,暂停或停止),或寻求一个位置在该视频,以及它们的改变将propogate其他客户和服务器。 变化是对最后改变了基础,因此,如果两个客户的企图寻求不同职位的同时,客户发送的更新服务器上将是改变这种经历。

  • के mediaSync आवेदन डिजाइन किया गया था होना करने के लिए एक छोटे से कार्यक्रम की सुविधा देता है कि कई लोगों को सिंक एक वीडियो वे देख रहे हैं इतना है कि रुक जाता है / प्रयास / नाटकों सिंक्रनाइज़ कर रहे हैं भर में सभी ग्राहकों.

    आप सूचना हो सकता है कि जबकि ऐसा लगता है कि यह लिखा गया था के साथ कई खिलाड़ी प्रकार plugins के मन में, यह केवल काम करता है के साथ मीडिया प्लेयर क्लासिक, और केवल जब वेब इंटरफ़ेस को सक्षम किया गया है. यह इसलिए है क्योंकि यह मूल कार्यक्रम मैं की जरूरत करने के लिए नियंत्रण था और आशा व्यक्त की मैं "खोज" तरीके इंटरफेस करने के लिए जब अन्य खिलाड़ियों के साथ समय पैदा हुई है ।

    दुर्भाग्य से, कोई अन्य खिलाड़ी एक आसानी से उपलब्ध इंटरफ़ेस क्वेरी करने के लिए खिलाड़ी राज्य और स्थिति में वर्तमान शीर्षक और करने के लिए बारी-बारी से की तलाश करने के लिए एक कस्टम स्थिति और खेल/ठहराव/बंद करो. मैं कर सकता शायद लिखने Winamp प्लगइन ऐसा करने के लिए, लेकिन वहाँ कभी नहीं गया है एक की जरूरत है, तो यह बनी एक mplayerc केवल आवेदन है ।

    सबसे पहले, आप की जरूरत है, मीडिया प्लेयर क्लासिक है । संस्करण अप्रासंगिक है के रूप में लंबे समय के रूप में यह वेब इंटरफेस की सुविधा है, जो सभी नए लोगों को करना है । मेरा मानना है कि वेब इंटरफेस डिफ़ॉल्ट रूप से सक्षम है, लेकिन अगर यह नहीं है, यह मोड़ पर है, सरल है ।

    mediaSync के लिए डिफ़ॉल्ट पोर्ट 13579 के लिए बात करने के लिए मीडिया प्लेयर क्लासिक है, लेकिन आप कर रहे हैं मुक्त करने के लिए इसे बदल अगर आप की तरह. रखने के लिए सुनिश्चित करें "की अनुमति केवल स्थानीय होस्ट से उपयोग" में जाँच के रूप में mediaSync सर्वर के साथ संचार, अन्य mediaSync ग्राहकों को और नहीं के साथ ग्राहक के मीडिया प्लेयर क्लासिक के वेब अंतरफलक में.

    एक बार जब आप वेब इंटरफेस चल रहा है, आप कर सकते हैं आग mediaSync और सब कुछ मिल जा रहा है ।

    - खोलने के लिए एक वीडियो फ़ाइल में मीडिया प्लेयर क्लासिक (आप रख सकते हैं यह रुका हुआ है).

    - शुरू mediaSync, तो ठीक क्लिक करें में mediaSync खिड़की और चुनें "Config मीडिया प्लेयर क्लासिक". सुनिश्चित करें कि संस्करण और वेब पोर्ट सही हैं और ठीक मारा ।

    - परीक्षण mediaSync सर्वर मोड में देखने के लिए अगर यह बात करने के लिए मीडिया प्लेयर क्लासिक है । चुनें "सर्वर" रेडियो बटन के नीचे "सिंक", कॉन्फ़िगर करें, जो बंदरगाह आप चाहते हैं mediaSync सर्वर पर सुनने के लिए ग्राहकों के लिए(22222 डिफ़ॉल्ट है), और "लांच सर्वर" बटन. अगर mediaSync बात नहीं कर सकते खिलाड़ी के लिए, यह होगा "खिलाड़ी के अनुपलब्ध" स्थिति पट्टी में पर खिड़की के नीचे. अगर यह बात कर रही है, यह प्रदर्शित करना चाहिए वीडियो के शीर्षक और स्थिति में उचित स्थिति सलाखों के. यह भी मतलब है कि हम तैयार कर रहे हैं परीक्षण करने के लिए एक ग्राहक!

    अगर तुम नहीं एक दोस्त है, या किसी अन्य कंप्यूटर पर परीक्षण करने के लिए उपलब्ध के साथ, आप कर सकते हैं अभी भी चलाने का एक और उदाहरण mediaSync एक ग्राहक के रूप में एक ही कंप्यूटर पर एक सर्वर के रूप में. चलाने mediaSync जहाँ भी आप चाहते हैं परीक्षण करने के लिए ग्राहक का चयन, "ग्राहक" रेडियो बटन (डिफ़ॉल्ट), पोर्ट सेट करने के लिए जो कुछ भी सर्वर पर सुन रहा है, और हिट शामिल हों "सर्वर" है । ग्राहक फिर से प्रयास करेंगे जोड़ने के रूप में लंबे समय के रूप में यह जुड़ा हुआ नहीं है, तो आप के लिए नहीं है के बारे में चिंता शुरू / रोक ग्राहक और अधिक से अधिक यदि कोई सर्वर नहीं है ।

    एक बार जब आप कनेक्ट है, ग्राहक होना चाहिए "सर्वर ठीक पिंग xx.xx एमएस में" यह स्थिति पट्टी. सर्वर होगा "सर्वर: x ग्राहकों (y)" यह स्थिति पट्टी, एक्स है जहां ग्राहकों की संख्या में जुड़ा हुआ है, और वाई ग्राहकों की संख्या है, जो एक ही मीडिया फाइल को खोलने के रूप में सर्वर । यदि सर्वर से संपर्क नहीं कर सकता है यह खिलाड़ी, 0 ग्राहकों को ग्रहण किया जाएगा के लिए तैयार है । यदि सभी ग्राहकों के लिए तैयार नहीं हैं, हर कोई मजबूर हो जाएगा को थामने के लिए ।

    एक बार सभी ग्राहकों के लिए तैयार हैं, किसी को भी हो सकता है तो खिलाड़ी बदलने राज्य (करने के लिए खेलते हैं, को थामने, या बंद कर दिया), या की तलाश में एक स्थिति के लिए वीडियो, और अपने परिवर्तनों को propogate के आराम करने के लिए क्लाइंट और सर्वर के खिलाड़ी ही है । परिवर्तन कर रहे हैं पर एक अंतिम-बदल के आधार पर, तो, अगर दो ग्राहकों की तलाश करने का प्रयास करने के लिए अलग-अलग पदों पर एक ही समय में, ग्राहक भेजता है कि यह अद्यतन सर्वर के लिए पिछले जाएगा कि परिवर्तन के माध्यम से चला जाता है ।

  • The mediaSync application was designed to be a small program that lets multiple people sync up a video they're watching so that pauses / seeks / plays are synchronized across all the clients.

    You might notice that while it looks like it was written with multiple player type plugins in mind, it only works with Media Player Classic, and only when the Web Interface is enabled. This is because it was the original program I needed to control and had hoped I would "discover" ways to interface with other players when the time arose.

    Unfortunately, no other player has a readily available interface to query player state & position in the current title and to alternately seek to a custom position and play/pause/stop. I could probably write a Winamp plugin to do this, but there has never been a need so it's remained an mplayerc only application.

    First off, you need Media Player Classic. Version is irrelevant as long as it has the Web Interface feature, which all the newer ones do. I believe the Web Interface is enabled by default, but if it isn't, turning it on is simple.

    mediaSync defaults to port 13579 for talking to Media Player Classic, but you are free to change it if you like. Make sure to keep "Allow access from localhost only" checked as the mediaSync server communicates with other mediaSync clients and not with the client's Media Player Classic Web Interface.

    Once you have the Web Interface running, you can fire up mediaSync and get everything going.

    - Open a video file in Media Player Classic (you may keep it paused).

    - Start mediaSync, then right click in the mediaSync window and choose "Config Media Player Classic". Make sure the version and web port are correct and hit ok.

    - Test mediaSync in server mode to see if it's talking to Media Player Classic. Choose the "Server" radio button under "Sync Mode", configure which port you want the mediaSync server to listen on for clients(22222 is default), and hit the "Launch Server" button. If mediaSync cannot talk to the player, it will have "Player Unavailable" in the status bar on the bottom of the window. If it is talking, it should display the title of the video and the position in the appropriate status bars. This also means we're ready to test a client!

    If you don't have a friend or another computer available to test with, you can still run another instance of mediaSync as a client on the same computer as the server. Run mediaSync wherever you want to test the client, choose the "Client" radio button (default), set the port to whatever the server is listening on, and hit "Join Server". The client will retry connecting as long as it is not connected, so you do not have to worry about starting / stopping the client over and over if no server is up.

    Once you connect, the client should have "Server OK ping xx.xx ms" in it's status bar. The server will have "Server: x clients (y ready)" in it's status bar, where x is the number of clients connected, and y is the number of clients who have the same media file open as the server. If the server cannot contact it's player, 0 clients will be assumed ready. If all clients are not ready, everybody will be forced to pause.

    Once all clients are ready, anyone may then change the player state (to Play, Pause, or Stopped), or seek to a position in the video, and their changes will propogate to the rest of the clients and the server player itself. Changes are on a last-changed basis, so if two clients attempt to seek to different positions at the same time, the client that sends it's update to the server last will be the change that goes through.