GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech PHP/Linux Guru's (https://gfy.com/showthread.php?t=1324631)

Applebite Media 03-17-2020 10:52 AM

PHP/Linux Guru's
 
I have a question....

I have been searching for an answer to this but I am falling short of what I need and hoping one of you can help me.

I am writing a program to store information on my movie collection, maybe you have seen it on my site https://applebitemedia.com/media-organizer.php ... maybe not. Anyway....

I have a computer with server hooked up to my television. I would like to link the movie file to an external hard drive and not a server folder. I want it to open in an external program like VLC and not in a browser. I am reading that Linux security will not allow this.

If I store the files on a server folder, the file will open and play in a browser. This is not bad, but not really the way I envisioned this program working. I would like to movie to open full screen so it fills up the entire viewing space on the screen, like watching anything else on the television and not have a browser or the programs menu.

Is there a way around this?

The program is still in development and very basic but free for download. Would work for porn movies too.... since they play in the browser anyway.... just saying. :winkwink:

Any help would be GREATLY appreciated!!!!

Thanks :thumbsup

Klen 03-17-2020 11:14 AM

By "external drive" , are you reffering to local drive of user ?

k0nr4d 03-17-2020 12:31 PM

Quote:

Originally Posted by Applebite Media (Post 22627959)
I have a question....

I have been searching for an answer to this but I am falling short of what I need and hoping one of you can help me.

I am writing a program to store information on my movie collection, maybe you have seen it on my site https://applebitemedia.com/media-organizer.php ... maybe not. Anyway....

I have a computer with server hooked up to my television. I would like to link the movie file to an external hard drive and not a server folder. I want it to open in an external program like VLC and not in a browser. I am reading that Linux security will not allow this.

If I store the files on a server folder, the file will open and play in a browser. This is not bad, but not really the way I envisioned this program working. I would like to movie to open full screen so it fills up the entire viewing space on the screen, like watching anything else on the television and not have a browser or the programs menu.

Is there a way around this?

The program is still in development and very basic but free for download. Would work for porn movies too.... since they play in the browser anyway.... just saying. :winkwink:

Any help would be GREATLY appreciated!!!!

Thanks :thumbsup

Try disabling selinux if you have it enabled, and try mounting the external drive then making a link or symlink to it and see if that lets you bypass the issue.

awxm 03-17-2020 12:50 PM

Why not just use something like Kodi or Plex and save yourself the ball ache.

Apologies if I misunderstood what you are trying to achieve.

Applebite Media 03-17-2020 01:19 PM

Quote:

Originally Posted by Klen (Post 22627967)
By "external drive" , are you reffering to local drive of user ?

External drive as in a 4tb usb drive. My internal on this computer is only 1tb, which I could change to a bigger one, but I would still have the issue of being able to access a system program like VLC via the browser. I have read that this is a newer feature to Linux to keep the system safe from server abuse or hacks. The user thing is if anyone was using this on their own website for what ever reason. I had one person download it for a site that distributes pirated movies. I was not real happy about that but... that is on them.

Quote:

Originally Posted by k0nr4d (Post 22628023)
Try disabling selinux if you have it enabled, and try mounting the external drive then making a link or symlink to it and see if that lets you bypass the issue.

I am not 100% familiar with those but I will do some research on that and see if that solves my issue. Thank you :)

Quote:

Originally Posted by awxm (Post 22628045)
Why not just use something like Kodi or Plex and save yourself the ball ache.

Apologies if I misunderstood what you are trying to achieve.

I had Plex installed on my xbox and would stream from my computer. it was not hardwired so the quality suffered a little. This is something I wanted to build for myself, it's no where near what Plex is, but I do not really need it to do much.

There is a similar program out there that is no longer supported that actually will pull data from IMDB and fill in all the form fields which is really nice, but it's in PHP5 and will not work on my server using PHP7. The only thing it does not pull is the movie cover. But that program will not link to the movie file and play it. The auto fill would be nice. Data entry is boring LOL.

-----------------------------------------------------------------------------
NEW:

Do any of you think Python could do this? It is a machine language but I do not know it at all. It is a language I would like to learn but time can be limited.

Thank you for the responses. I would really like to get this worked out.

k0nr4d 03-17-2020 02:48 PM

Does your TV support DLNA?

plsureking 03-17-2020 02:58 PM

yea like k0nr4d said, you need to mount that drive. if you know the IP of the server, selinux is disabled, you can call it from anywhere on the network. you can open ip addresses in vlc. then you just need a simple directory list linking the movie to the location on your network. this is how servers and sites work, so its good stuff to learn.

#

Applebite Media 03-17-2020 03:02 PM

Quote:

Originally Posted by k0nr4d (Post 22628093)
Does your TV support DLNA?

I'm not 100% sure... it's a 65" LG smart tv... 2019 model. I am connecting the CPU via HDMI to the television. I am not sure how that would help.

I also found out that this Linux system I am running and it's kernel require SELinux. When it's disabled, I can only access the computer in recovery mode. I cannot get the 4k resolution in recovery mode.

I tried to install an SELinux graphical interface to see it I could just disable certain features or areas however that crashed my system to where I could only boot in recovery mode. I actually had to restore from a backup file to get my system back to regular mode.

I am running Linux Mint 19.3 Trisha. It's built off Ubuntu and Debian. I am not sure if that helps or not.

I did try to uninstall SELinux, however it was trying to remove several programs such as app-armor, wine, samba and many others.

I may not be able to do this with straight PHP or via the server. I may have to look into python or see if I can use a combination of both.

There has to be a way to do this. Especially in today's technological world we live in. It's just a matter of finding the right combination. This is one of those things that will keep nagging at me until I get it worked out :1orglaugh

Applebite Media 03-17-2020 03:09 PM

Quote:

Originally Posted by plsureking (Post 22628100)
yea like k0nr4d said, you need to mount that drive. if you know the IP of the server, selinux is disabled, you can call it from anywhere on the network. you can open ip addresses in vlc. then you just need a simple directory list linking the movie to the location on your network. this is how servers and sites work, so its good stuff to learn.

#

The drive links are fine. Everything is connected and opens in the browser. Where the issue lies is opening VLC via the browser. This is a system security thing. The SELinux makes sense. I guess I need to figure out how to disable it for this one area and not have it affect any other software that is dependent on it.

k0nr4d 03-18-2020 01:50 AM

If it's a 2019 LG tv just install Mezzmo on your PC and call it a day. DLNA server that collects movie box images/posters and auto-transcodes when needed.

Applebite Media 03-18-2020 03:47 AM

Quote:

Originally Posted by k0nr4d (Post 22628426)
If it's a 2019 LG tv just install Mezzmo on your PC and call it a day. DLNA server that collects movie box images/posters and auto-transcodes when needed.

No windows. Just Linux. Do not see a download for Linux. I have win10 on this machine but I only use it for pulling video from my older canon video camera. Other than that. I don't use windows.

plsureking 03-18-2020 07:29 AM

Quote:

Originally Posted by Applebite Media (Post 22628107)
The drive links are fine. Everything is connected and opens in the browser. Where the issue lies is opening VLC via the browser. This is a system security thing. The SELinux makes sense. I guess I need to figure out how to disable it for this one area and not have it affect any other software that is dependent on it.

so don't use vlc. if you're building it in html, use videojs.

https://videojs.com/getting-started/

#

Applebite Media 03-18-2020 08:16 AM

Quote:

Originally Posted by plsureking (Post 22628561)
so don't use vlc. if you're building it in html, use videojs.

https://videojs.com/getting-started/

#

Thanks, I will look into that :thumbsup


Looks like I cannot use this...

Not compatible with your operating system or architecture: [email protected]

I can change the OS on that computer... not that big of an issue, I just have Apache2 and MySQL on it.... but I would like to know if this opens up to fill the entire screen. If is doesn't then it will not work for me.

I like the want VLC opens to fill the entire tv screen.

Thanks in advance for the help.

k0nr4d 03-18-2020 08:36 AM

Quote:

Originally Posted by Applebite Media (Post 22628592)
Thanks, I will look into that :thumbsup


Looks like I cannot use this...

Not compatible with your operating system or architecture: [email protected]

I can change the OS on that computer... not that big of an issue, I just have Apache2 and MySQL on it.... but I would like to know if this opens up to fill the entire screen. If is doesn't then it will not work for me.

I like the want VLC opens to fill the entire tv screen.

Thanks in advance for the help.

Then the answer is still any DLNA server for linux. You can connect to it using VLC.

Applebite Media 03-18-2020 08:49 AM

Quote:

Originally Posted by k0nr4d (Post 22628612)
Then the answer is still any DLNA server for linux. You can connect to it using VLC.

A DLNA server is just code. So what I want to do is achievable it's just a matter of finding the language to write it in. Maybe I should not be so concerned about a web based program and make it a machine based program.

I have been wanting to learn Python this might be a good project to start with.

plsureking 03-18-2020 09:06 AM

Quote:

Originally Posted by Applebite Media (Post 22628592)
Thanks, I will look into that :thumbsup


Looks like I cannot use this...

Not compatible with your operating system or architecture: [email protected]

I can change the OS on that computer... not that big of an issue, I just have Apache2 and MySQL on it.... but I would like to know if this opens up to fill the entire screen. If is doesn't then it will not work for me.

I like the want VLC opens to fill the entire tv screen.

Thanks in advance for the help.

i thought you were displaying in a browser? how are you writing it? if you're building in php/html, you can include js packages.

the video on this page is using videojs. it has fullscreen..

https://screencast.porncms.com/?mb=V...hsNXQzczhvNA==

#

Applebite Media 03-18-2020 09:16 AM

Quote:

Originally Posted by plsureking (Post 22628641)
i thought you were displaying in a browser? how are you writing it? if you're building in php/html, you can include js packages.

the video on this page is using videojs. it has fullscreen..

https://screencast.porncms.com/?mb=V...hsNXQzczhvNA==

#

Yes, a browser is the only way I can display it from the server since I am running into security issues accessing machine programs from the Apache2. From what I have read, the extra security was added into Linux to help secure the servers better. I forget when it was implemented.

It is all PHP/HTML. Feel free to look at the code, I offer this for free. It's very basic, nothing to brag about yet. It is already outdated with PHP 7.2 and the removal of mcrypt. There is a work around for that but I have not gotten around to changing the code yet.

This is a hobby for me so I have not really been focused on it. But with all the downtime I have right now, I thought I could invest some time in it to keep me occupied.

I can check on StackOverflow and see what I can find in their Python forums and see about converting this over. If nothing else, I already have the database built with all the information entered for my collection... I hope to be able to use that or incorporate it into the new code.

plsureking 03-18-2020 09:34 AM

Quote:

Originally Posted by Applebite Media (Post 22628654)
It is all PHP/HTML.

check that getting started page for videojs. you'll be playing a video in under 2 minutes. the package is loaded in the head and pulled from a cdn. or you can host it yourself.

drop this into an html page, change MY_VIDEO to the path of your video, and load the page in the browser on your tv.

Code:

<head>
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]-->
  <link href="https://vjs.zencdn.net/7.6.6/video-js.css" rel="stylesheet" />

  <!-- If you'd like to support IE8 (for Video.js versions prior to v7) -->
  <script src="https://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
</head>

<body>
  <video
    id="my-video"
    class="video-js"
    controls
    preload="auto"
    width="640"
    height="264"
    poster="MY_VIDEO_POSTER.jpg"
    data-setup="{}"
  >
    <source src="MY_VIDEO.mp4" type="video/mp4" />
    <p class="vjs-no-js">
      To view this video please enable JavaScript, and consider upgrading to a
      web browser that
      <a href="https://videojs.com/html5-video-support/" target="_blank"
        >supports HTML5 video</a
      >
    </p>
  </video>

  <script src="https://vjs.zencdn.net/7.6.6/video.js"></script>
</body>

there's nothing to it. if you can run an html page with js on your server and in your browser, you can do this....

#

k0nr4d 03-18-2020 09:53 AM

Quote:

Originally Posted by plsureking (Post 22628641)
i thought you were displaying in a browser? how are you writing it? if you're building in php/html, you can include js packages.

the video on this page is using videojs. it has fullscreen..

https://screencast.porncms.com/?mb=V...hsNXQzczhvNA==

#

It sounds like he's wanting to load this in VLC from an android enabled tv or something. I don't think that's gonna fly as an html/js front-end.

plsureking 03-18-2020 10:27 AM

Quote:

Originally Posted by k0nr4d (Post 22628679)
It sounds like he's wanting to load this in VLC from an android enabled tv or something. I don't think that's gonna fly as an html/js front-end.

his web app loads in a browser on his tv/monitor. the vlc requirement is just so it will play fullscreen. embedding videojs resolves that issue fast.

that's what i'd do and call it done lol

#

Applebite Media 03-18-2020 11:48 AM

Quote:

Originally Posted by k0nr4d (Post 22628679)
It sounds like he's wanting to load this in VLC from an android enabled tv or something. I don't think that's gonna fly as an html/js front-end.

Yes, something like that... The button that says play from the page itself is what I wanted to open VLC with.

This is my vision:

I want to look through my collection for something to watch. Once found, I just want to hit the play button and have it open VLC. I like VLC because of the additional features such as a graphic equalizer, which would be useful not only for movies but music as well.

Quote:

Originally Posted by plsureking (Post 22628697)
his web app loads in a browser on his tv/monitor. the vlc requirement is just so it will play fullscreen. embedding videojs resolves that issue fast.

that's what i'd do and call it done lol

#

Thanks PlsureKing... this may be a temporary fix until I can get it to do what I have envisioned. If anything else, this would be a good fix for the internet version should I ever progress into making this more than it is that I have available now.

Thanks for all the help. I do appreciate it! Everyone :thumbsup

plsureking 03-18-2020 12:24 PM

Quote:

Originally Posted by Applebite Media (Post 22628753)
Thanks for all the help. I do appreciate it! Everyone :thumbsup

have fun!

#


All times are GMT -7. The time now is 04:16 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123