Bukkit Map Video Player

Discussion in 'Resources' started by Mitch528, Apr 16, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Mitch528

    This is a simple API that allows you to play videos onto a map. It utilizes the Xuggler library in order to decode videos and convert them into images, which are then sent to the client through the use of ProtocolLib.

    Source Code

    Video



    Usage

    It's actually pretty easy to use. Here's an example:
    Code:java
    1.  
    2. Player player = Bukkit.getPlayer("PlayerName");
    3.  
    4. ItemStack is = player.getInventory().getItemInHand();
    5.  
    6. if (is != null && is.getType() == Material.MAP)
    7. {
    8.  
    9. MapView map = Bukkit.getMap(is.getDurability());
    10.  
    11. Video vid = new FileVideo(new File("filename"));
    12. vid.start();
    13.  
    14. VideoSender.startSending(vid, map, player);
    15.  
    16. }
    17.  

    Remember to put this in your plugin.yml file:
    Code:
    depend: [BukkitTube]
    

    Downloads


    BukkitTube-0.0.1.jar
    BukkitTubeExample.jar


    Current Problems
    • Uses a lot of CPU/RAM (depending on the video)
    • Uses a lot of bandwidth (depending on the video)
    • Does not work well with Windows-based servers
    Due to these major problems, I would not recommend this for actual use at this time.
     
    gabrielhowat, Vexil, ccrama and 16 others like this.
  2. Offline

    ftbastler

    Yes! That is cool.
     
  3. Offline

    chasechocolate

    Wow! That is awesome!
     
  4. Offline

    gomeow

    Didn't md_5 work on something like this too?
     
    DogeDev, finalblade1234 and Ivan like this.
  5. Offline

    Rprrr

    Nicely done! I was trying to create this by myself aswell, but you've done a great job! :D
     
  6. Offline

    md_5

    No offense but your FPS sucks: https://www.youtube.com/md5encryption
    NB: Those videos all have a slight FPS drop towards the end as I didn't film after fixing the bug

    Also live emulator input ftw!
     
  7. Offline

    Mitch528

    No offense taken.

    However, that video was actually using an older version. I have uploaded a new video (updated post) that reflects the newer version. The older version used MapRenderer, which I found to be not really ideal for sending video.

    Awesome! How come you didn't release it? :(
     
  8. Offline

    md_5

    Cause the code is.. somewhere, and as I did it before proto lib existed it used a modified CB
     
  9. Offline

    ferrybig

    it doesn't look like the source is complete (it contains an empty onenable)
     
  10. Offline

    Mitch528

    It is complete. "onEnable" is empty because BukkitTube has no actual function, except to provide a way for other plugins to hook into it and play videos to players. Have a look at the example on GitHub.
     
  11. Offline

    Jake0oo0

    That is amazing.
     
  12. Offline

    chaseoes Retired Staff

    Then why is it there?
     
    Ultimate_n00b likes this.
  13. Offline

    skipperguy12

    chaseoes
    Because it's like an API? So that we don't have to go through the trouble of figuring it out ourselves, and use a resource Mitch528 kindly shared with us?

     
  14. Offline

    chaseoes Retired Staff

    No, the onEnable.
     
  15. Offline

    Chlorek

    It is AMAZING!!! Probably heavy for server when more players watch it (might be heavy a bit for client too). No matter how heavy it is I can say only one thing - AMAZING!
     
  16. Offline

    BungeeTheCookie

    I am interested to know how server-heavy and cilent-intensive this is. Would it cause the whole server to lag as a whole, or just the cilent?
    chasechocolate xTrollxDudex
     
  17. Offline

    Garris0n

    Why don't you try it?
     
  18. Offline

    xTrollxDudex

    BungeeTheCookie
    I would not be surprised if both. It will be heavier on the server, that's a definite thing.
     
  19. Offline

    Assult

    Shouldnt audio be possible now because of the new resourcepacks?
     
  20. Offline

    DrJava

    The users would have to download a custom resourcepack.. Only if there were resourcepack packets :p
     
  21. Offline

    Chlorek

    I think it might be possible but just for one movie with sound, because downloading so big resource pack is not the best thing. However it is really nice idea to add sounds for even one movie, it could be used for beginners tutorial on some servers etc.. I am looking forward to see some nice usage of this.
     
  22. Offline

    Techy4198

    *cough* mojangpleaseaddthisnowibegyou *cough*
    (this was a reply to DrJava. apparently the reply button is broken.)
     
    DrJava likes this.
  23. Offline

    DrJava

    Dinnerbone
    Edit: Nevermind... [​IMG]
     
  24. Offline

    Techy4198

    DrJava lol. to twitter! (I don't have twitter so...)
     
  25. Offline

    DrJava

    Me either.
     
  26. Offline

    Techy4198

    DrJava crud. to the minecraft forums then!
     
    DrJava likes this.
  27. Offline

    DrJava

    Last Seen: Never.
    Well, off to Britai... Wait a second, I live in Britain.. Off to his house.
     
  28. Offline

    Techy4198

  29. Offline

    BungeeTheCookie

    Take me with you.
     
    DrJava likes this.
  30. Offline

    Ozcr

    I can't seem to get it to run with my plugin, when doing /loadvideo I get a map without any video on it.
    It just shows a map of where I am.

    Edit: I managed to fix it, but my game crashes now. Maybe its out of date?
     
Thread Status:
Not open for further replies.

Share This Page